Cov txheej txheem:
- Kauj Ruam 1: Yam Khoom Siv Hauv Txoj Haujlwm no
- Kauj Ruam 2: Kev Kho Vajtse Txuas
- Kauj ruam 3: Software Programming
Video: Teeb Koj Lub Valentine Nrog Sparkling RGB Matrix: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Los Ntawm Pom StudioSeeed Ua Raws Li Ntxiv los ntawm tus sau:
Txog: Nyob zoo, peb yog daim ntawv thov engineers hauv Seeed. Sib koom cov phiaj xwm nrog cov zej zog tsim khoom yog txaus. Vam tias koj nyiam nws XD Pom yog IoT kho vajtse tus neeg muab kev pabcuam uas txhawb IoT cov neeg tsim khoom kom nrawm dua … Ntau Txog Pom Pom Studio »
Hnub Valentine tab tom los, koj puas tau ntsib ib tus neeg uas hlub thaum pom thawj zaug?
Kauj Ruam 1: Yam Khoom Siv Hauv Txoj Haujlwm no
Cov khoom siv kho vajtse
- Seeeduino V4.2
- Lub hauv paus ntaub thaiv npog V2
- Grove - RGB LED Matrix w/Tsav Tsheb
- Grove - Dej Sensor
Software apps thiab cov kev pabcuam online
Arduino IDE Cov
Kauj Ruam 2: Kev Kho Vajtse Txuas
Hauv txoj haujlwm no, peb siv lub ntsuas dej los ntsuas dej, yog tias muaj dej, lub plawv dhia yuav tshwm tawm hauv RGB LED Matrix.
Txhawm rau ua tiav cov txiaj ntsig no, koj yuav tsum txuas Grove - Dej Sensor mus rau D2 chaw nres nkoj hauv Base Shield, thiab tseem txuas Grove - RGB LED Matrix rau I2C chaw nres nkoj hauv nws. Tom qab ntawd ntsaws Base Shield rau Seeeduino, ib yam li daim duab saum toj no.
Kauj ruam 3: Software Programming
Txhawm rau siv RGB LED matrix hauv koj qhov haujlwm, koj yuav tsum ntxiv nws lub tsev qiv ntawv rau koj Arduino IDE. Lub tsev qiv ntawv tuaj yeem rub tawm hauv
Pom_RGB_LED_Matrix
Tom qab ntxiv lub tsev qiv ntawv, suav nrog matrix's header file hauv koj cov cai:
#suav nrog "grove_two_rgb_led_matrix.h"
Kev txhais cov macros yog tus cwj pwm zoo, nws tuaj yeem ua rau koj cov cai yooj yim nyeem lossis hloov kho. Piv txwv li, koj tuaj yeem txhais macros los qhia qhov chaw nres nkoj twg uas lub ntsuas dej txuas nrog, lossis qhov nrawm yuav tsum ua rau lub plawv dhia.
#define SENSOR_PIN 2
#define INTERVAL 500
Thaum txhua yam ua tiav, tshaj tawm qhov piv txwv piv txwv rau kev siv tom qab.
GroveTwoRGBLedMatrixClass matrix;
Thiab nyem qhov no kom tau cov duab kho kom tsim koj tus kheej cov duab. Xaiv cov xim hauv kab xim, nyem dots hauv qhov chaw kos duab los kos, thiab thawb hloov tshiab lossis ntxig khawm hauv qab ntawm thaj chaw teeb duab, koj cov duab yuav raug hloov pauv mus rau tus lej thiab tso rau hauv lub npov ntawm sab xis.
Kuv cov duab zoo li hauv qab no. Koj tuaj yeem luam cov cai ntawd tso rau hauv koj qhov haujlwm, thiab tom qab ntawd qhia lawv hauv RGB LED matrix los ntawm kev ntsuas.
Cov txheej txheem teeb tsa () txheej txheem yuav ua haujlwm ib zaug thaum koj pib qhov haujlwm, yog li peb pib ua ntu zus thiab cov ntsuas dej tus pin hauv nws.
void teeb tsa () {
Hlau.begin (); pinMode (SENSR_PIN, INPUT); WAIT_MATRIX_READY (); }
Lub voj () txheej txheem yuav rov ua dua, yog li peb siv nws los kuaj xyuas yog tias muaj dej lossis tsis yog los ntawm cov cai hauv qab no:
yog (digitalRead (SENSOR_PIN) == LOW) {
}
Thaum cov dej ntsuas tawm LOW, nws txhais tau tias muaj dej, yog li ntaus lub plawv yuav tsum tau tshwm hauv RGB LED matrix
rau (uint8_t i = 0; i <EMOJI_COUNT (piv txwv); ++ i) {matrix.displayFrames (EMOJI (piv txwv, i), INTERVAL, cuav, 1); ncua (INTERVAL); }
Lub voj ua tiav () txheej txheem zoo li hauv qab no, thiab koj tuaj yeem rub tawm qhov ua tiav qhov kawg ntawm kab lus no.
void voj () {
yog (digitalRead (SENSOR_PIN) == LOW) {rau (uint8_t i = 0; kuv <EMOJI_COUNT (piv txwv); ++ i) {matrix.displayFrames (EMOJI (piv txwv, i), INTERVAL, cuav, 1); ncua (INTERVAL); }}}
Nyem Upload khawm hauv Arduino IDE txhawm rau rub koj cov haujlwm mus rau Seeeduino, thiab sim muab qee yam ntub rau dej ntsuas, saib dab tsi tshwm sim.
TSEEM CEEB:
Hauv cov ntawv firmware ntawm RGB LED matrix yog tias koj xav diy koj tus kheej duab nrog UNO cov lej koj yuav tsum hloov kho cov ntaub ntawv ntawm arduino. Yog tias koj siv mega lossis lotus, qhov kev hloov pauv yuav tsis xav tau.
Nrhiav cov ntawv teeb tsa arduino Arduino kho vajtse / arduino / avr / libraries / Wire / src, qhib Wire.h file
hloov
#define BUFFER_LENGTH 32
rau hauv
#define BUFFER_LENGTH 128
Tom qab ntawd nrhiav cov ntawv teeb tsa arduino Arduino kho vajtse arduino avr libraries / Wire / src / utility, qhib cov ntaub ntawv twi.h.
hloov
#define TWI_BUFFER_LENGTH 32
rau hauv
#define TWI_BUFFER_LENGTH 128
Pom zoo:
Tswj koj cov LEDs nrog Koj Lub TV Chaw Taws Teeb?! -- Arduino IR Tutorial: 5 Kauj Ruam (nrog Duab)
Tswj koj cov LEDs nrog Koj Lub TV Chaw Taws Teeb?! || Arduino IR Tutorial: Hauv qhov haujlwm no kuv yuav qhia koj li cas kuv rov txhim kho cov nyees khawm tsis muaj txiaj ntsig ntawm kuv lub TV chaw taws teeb kom tswj cov LEDs tom qab kuv lub TV. Koj kuj tseem tuaj yeem siv cov txheej txheem no los tswj hwm txhua yam nrog kev kho me ntsis. Kuv tseem yuav tham me ntsis txog qhov kev xav
Teeb Koj Lub Valentine Nrog Sparkling Matrix: 5 Kauj Ruam
Teeb Pom Koj Lub Hnub Valentine Nrog Sparkling Matrix: Hnub Valentine yog lub sijhawm rau koj xa cov lus hlub. Vim li cas ho tsis ua lub ntsej muag lom zem LED nrog cov khoom pheej yig los qhia koj qhov kev xav
Tswj Teeb hauv Koj Lub Tsev Nrog Koj Lub Computer: 3 Kauj Ruam (nrog Duab)
Tswj Teeb hauv Koj Lub Tsev Nrog Koj Lub Khoos phis Tawj: Koj puas tau xav tswj lub teeb hauv koj lub tsev los ntawm koj lub khoos phis tawj? Nws yog qhov ncaj ncees pheej yig ua li ntawd. Koj tuaj yeem tswj hwm lub tshuab txau dej, tsis siv neeg qhov rai qhov muag tsis pom, lub tshuab ntsuas lub vijtsam, thiab lwm yam. Koj xav tau ob daim hardwar
Txuag lub Ntiaj Teb thiab Koj Lub Hnab. $$ Hloov Koj P & S Pheej Yig Pheej Yig Lub Koob Yees Duab kom rov them rov qab: 4 Cov Kauj Ruam (nrog Duab)
Txuag lub Ntiaj Teb thiab Koj Lub Hnab. $$ Hloov Koj Li P & S Pheej Yig Tshaj Lub Koob Yees Duab kom rov tau txais txiaj ntsig: Ntau xyoo dhau los, Kuv yuav Dolphin Jazz 2.0 Megapixel Digital Camera Nws muaj cov yam ntxwv zoo thiab tus nqi. Nws kuj tseem muaj qhov qab los noj mov rau AAA Bateries. Tsis yog ib tus neeg taug kev deb ntawm qhov kev sib tw, kuv xav tias kuv yuav hloov kho nws kom siv lub roj teeb rov tau los kom tsis txhob nkim sijhawm ntxiv
Ib qho $ 20 / 20min Kev Lag Luam Zoo Folding Lub Teeb Lub Teeb / Lub Tsev Teeb: 7 Cov Kauj Ruam (nrog Duab)
A $ 20 / 20min Kev Lag Luam Zoo Folding Lub Teeb Lub Teeb / Lub Tsev Teeb: Yog tias koj tau tab tom nrhiav DIY lub thawv rau lub teeb rau cov khoom lag luam lossis kaw cov duab koj twb paub tias koj muaj ntau txoj kev xaiv. Los ntawm cov thawv ntawv thawv rau khaub ncaws hampers koj yuav xav tias txoj haujlwm tau ua tiav kom tuag. Tab sis Tos! Rau $ 20