Cov txheej txheem:
- Kauj Ruam 1: Cov Lus Qhia Tshwj Xeeb ntawm Led Matrix
- Kauj Ruam 2: Cov Cheeb Tsam Xav Tau
- Kauj Ruam 3: Txuas Led Matrix rau Arduino IDE
- Kauj ruam 4: Programming
- Kauj ruam 5: Enjoi Nws
Video: Kev Tswj Tus Led Matrix Siv Arduino: 5 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nyob zoo, phooj ywg.
Hauv kab lus no kuv yuav qhia koj yuav siv Led Matrix siv Arduino li cas.
Led Matrix yog sau los ntawm LEDs nyob rau hauv daim ntawv ntawm arrays. Led Matrices muaj ntau yam kab thiab kab, nyob ntawm hom. Los ntawm kev nthuav tawm ob peb LEDs nrog kev sib xyaw ua ke, Led matrix tuaj yeem tso saib tus lej cim, ntawv, cim, thiab lwm tus Lwm lub npe rau Led Matrix yog Dot Matrix.
Txoj haujlwm ua haujlwm ntawm Led Matrix zoo ib yam li "7-Segment Display" uas kuv tau tsim nag hmo. Qhov sib txawv ntawm ob yog daim ntawv ntawm qhov pom xwb.
Kauj Ruam 1: Cov Lus Qhia Tshwj Xeeb ntawm Led Matrix
Nov yog qhov tshwj xeeb ntawm Led Matrix:
- Cov LEDs: 64
- Tus naj npawb ntawm kab: 8
- Cov nab npawb: 8
- Ua haujlwm voltage: 4.7V - 5V DC
- Ua Haujlwm Tam Sim No: 320mA
- Max Ua Haujlwm Tam Sim No: 2A
Kauj Ruam 2: Cov Cheeb Tsam Xav Tau
Yuav tsum muaj cov khoom siv:
- Coj Matrik
- Arduino Nano Cov
- Jumper Hlau
- USBmini
- Pawg Thawj Coj
Yuav tsum muaj tsev qiv ntawv:
LedControl
Txhawm rau ntxiv lub tsev qiv ntawv rau Arduino IDE, koj tuaj yeem pom hauv kab lus no "Ntxiv Cov Tsev Qiv Ntawv rau Arduino"
Kauj Ruam 3: Txuas Led Matrix rau Arduino IDE
Saib cov lus piav qhia hauv qab no lossis saib daim duab saum toj no:
Coj Matrix rau Arduino
VCC ==> +5V
GND ==> GND
DIN ==> D6
CS ==> D7
CLK ==> D8
Kauj ruam 4: Programming
Nov yog qhov piv txwv piv txwv uas tuaj yeem siv los sim ua tus lej matrix:
// Peb ib txwm yuav tsum suav nrog lub tsev qiv ntawv#suav nrog "LedControl.h"
/*
Tam sim no peb xav tau LedControl los ua haujlwm nrog. ***** Cov lej tus lej no tej zaum yuav tsis ua haujlwm nrog koj lub khoos phis tawj ***** tus pin 6 txuas nrog rau DataIn tus pin 8 txuas nrog CLK tus pin 7 txuas nrog LOAD Peb tsuas muaj ib qho MAX72XX nkaus xwb. */
LedControl lc = LedControl (6, 8, 7, 1);
/ * peb ib txwm tos me ntsis ntawm kev hloov kho tshiab ntawm cov zaub */
unsigned ntev ncua sijhawm = 100;
void teeb tsa () {
/ * MAX72XX yog nyob rau hauv hom kev txuag hluav taws xob ntawm kev pib, peb yuav tsum hu xov tooj rau sawv daws */ lc.shutdown (0, tsis tseeb); / * Teeb qhov ci ci rau qhov nruab nrab qhov tseem ceeb */ lc.setIntensity (0, 8); / * thiab tshem cov zaub */ lc.clearDisplay (0); }
/*
Txoj hauv kev no yuav tso tawm cov cim rau lo lus "Arduino" ib qho dhau ib qho ntawm daim ntawv. (koj xav tau tsawg kawg 5x7 leds kom pom tag nrho cov cim) */ tsis muaj dab tsi sauArduinoOnMatrix () {/ *nov yog cov ntaub ntawv rau cov cim */ byte a [5] = {B01111110, B10001000, B10001000, B10001000, B01111110}; byte r [5] = {B00111110, B00010000, B00100000, B00100000, B00010000}; byte d [5] = {B00011100, B00100010, B00100010, B00010010, B11111110}; byte u [5] = {B00111100, B00000010, B00000010, B00000100, B00111110}; byte kuv [5] = {B00000000, B00100010, B10111110, B00000010, B00000000}; byte n [5] = {B00111110, B00010000, B00100000, B00100000, B00011110}; byte o [5] = {B00011100, B00100010, B00100010, B00100010, B00011100};
/ * tam sim no tso saib lawv ib ntawm ib qho nrog kev ncua me me */
lc.setRow (0, 0, a [0]); lc.setRow (0, 1, a [1]); lc.setRow (0, 2, a [2]); lc.setRow (0, 3, a [3]); lc.setRow (0, 4, a [4]); ncua (ncua sijhawm); lc.setRow (0, 0, r [0]); lc.setRow (0, 1, r [1]); lc.setRow (0, 2, r [2]); lc.setRow (0, 3, r [3]); lc.setRow (0, 4, r [4]); ncua (ncua sijhawm); lc.setRow (0, 0, d [0]); lc.setRow (0, 1, d [1]); lc.setRow (0, 2, d [2]); lc.setRow (0, 3, d [3]); lc.setRow (0, 4, d [4]); ncua (ncua sijhawm); lc.setRow (0, 0, u [0]); lc.setRow (0, 1, u [1]); lc.setRow (0, 2, u [2]); lc.setRow (0, 3, u [3]); lc.setRow (0, 4, u [4]); ncua (ncua sijhawm); lc.setRow (0, 0, i [0]); lc.setRow (0, 1, i [1]); lc.setRow (0, 2, i [2]); lc.setRow (0, 3, i [3]); lc.setRow (0, 4, i [4]); ncua (ncua sijhawm); lc.setRow (0, 0, n [0]); lc.setRow (0, 1, n [1]); lc.setRow (0, 2, n [2]); lc.setRow (0, 3, n [3]); lc.setRow (0, 4, n [4]); ncua (ncua sijhawm); lc.setRow (0, 0, o [0]); lc.setRow (0, 1, o [1]); lc.setRow (0, 2, o [2]); lc.setRow (0, 3, o [3]); lc.setRow (0, 4, o [4]); ncua (ncua sijhawm); lc.setRow (0, 0, 0); lc.setRow (0, 1, 0); lc.setRow (0, 2, 0); lc.setRow (0, 3, 0); lc.setRow (0, 4, 0); ncua (ncua sijhawm); }
/*
Txoj haujlwm no teeb qee qhov Leds uake. Tus qauv yuav rov ua dua ntawm txhua kab. Tus qauv yuav ntsais nrog rau kab-tus lej. kab zauv 4 (ntsuas == 3) yuav ntsais 4 zaug thiab lwm yam */ tsis muaj kab () {rau (int kab = 0; kab lus <8; kab ++) {ncua (ncua sijhawm)); lc.setRow (0, kab, B10100000); ncua (ncua sijhawm); lc.setRow (0, kab, (byte) 0); rau (int i = 0; i
/*
Txoj haujlwm no teeb qee qhov Leds hauv kab. Tus qauv yuav rov ua dua ntawm txhua kab ntawv. Tus qauv yuav ntsais nrog rau kab ntawv-tus lej. kem tus lej 4 (qhov ntsuas == 3) yuav ntsais 4 zaug thiab lwm yam */ void columns () {rau (int col = 0; col <8; col ++) {ncua (ncua sijhawm)); lc.setColumn (0, col, B10100000); ncua (ncua sijhawm); lc.setColumn (0, col, (byte) 0); rau (int i = 0; i
/*
Qhov kev ua haujlwm no yuav ua kom pom txhua Led ntawm lub matrix. Cov coj yuav ntsais nrog rau kab-tus lej. kab ntawv 4 (qhov ntsuas == 3) yuav ntsais 4 zaug thiab lwm yam */ tsis muaj ib leeg () {rau (int kab = 0; kab ntawv <8; kab ntawv ++) {rau (int col = 0; col <8; col ++) { ncua (ncua sijhawm); lc.setLed (0, kab, col, tseeb); ncua (ncua sijhawm); rau (int i = 0; i
void voj () {
writeArduinoOnMatrix (); kab (); kab (); tib (); }
Kuv kuj nthuav qhia nws ua ntaub ntawv:
Kauj ruam 5: Enjoi Nws
Qhov ntawd yog kev qhia ntawm coj matrix.
Ua tsaug rau koj nyeem kab lus no. pom koj hauv kab lus tom ntej.
Pom zoo:
Yuav Ua Li Cas Tsim Kev Tswj Tus Kheej 3D Luam Tus Kheej Tus Kheej Tus Kheej: 9 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Tsim Kev Tswj Tus Kheej 3D Luam Tus Kheej Tus Kheej Tus Kheej: Qhov no yog kev hloov pauv ntawm B-neeg hlau ua ntej. 100% Qhib QHOV CHAW / Arduino neeg hlau. CODE, 3D ntu thiab khoom siv hluav taws xob tau qhib yog li xav hloov kho nws lossis tsim qhov loj ntawm tus neeg hlau. Yog tias koj muaj kev ua xyem xyav, tswv yim lossis xav tau kev pab ua rau
Tsheb Tswj Chaw Taws Teeb - Tswj Kev Siv Wireless Xbox 360 Tus Tswj: 5 Kauj Ruam
Lub Tsheb Tswj Chaw Taws Teeb - Tswj Kev Siv Wireless Xbox 360 Tus Tswj: Cov no yog cov lus qhia txhawm rau tsim koj tus kheej lub tsheb tswj chaw taws teeb, tswj siv wireless Xbox 360 maub los
ARUPI - Tus Nqi Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi Uas Tau Txais Tus Nqi/Tus Kheej Tus Kheej (ARU) rau Soundscape Ecologists: 8 Kauj Ruam (nrog Duab)
ARUPI - Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi Tus Nqi Uas Tau Txais Tus Nqi/Tus Kheej Tus Kheej (ARU) rau Soundscape Ecologists: Cov lus qhia no tau sau los ntawm Anthony Turner. Txoj haujlwm tau tsim los nrog ntau qhov kev pab los ntawm Shed hauv Tsev Kawm Ntawv ntawm Kev Suav, University of Kent (Mr Daniel Knox tau pab zoo!)
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Nkag Platform: 9 Cov Kauj Ruam
Tsis Siv Neeg Kev Hla Hla Kev Siv Hluav Taws Xob Siv Arduino Raws Kev Nkag Siab Platform: Christmas tsuas yog ib lub lim tiam xwb! Txhua leej txhua tus tibneeg hu tauj coob nrog kev ua koob tsheej thiab tau txais khoom plig, uas, los ntawm txoj kev, tau txais txhua qhov nyuaj dua kom tau nrog qhov tsis muaj peev xwm nyob ib puag ncig peb. Yuav ua li cas mus los ntawm khoom plig qub thiab ntxiv qhov kov ntawm DIY rau
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej