Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
- Kauj ruam 2: Txuas GND
- Kauj Ruam 3: Txuas cov Resistors
- Kauj Ruam 4: Ntxig rau LED
- Kauj Ruam 5: Txuas Jumper Wires
- Kauj Ruam 6: Hwj chim ntawm Arduino
- Kauj ruam 7: Khiav qhov program
- Kauj Ruam 8: Ua tiav !
Video: Arduino Uno Multi-LED Project: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Txoj haujlwm kuv xaiv los tsim yog qib pib Arduino kos duab uas cuam tshuam nrog LED teeb pom kev zoo nyob rau hauv cov qauv sib txawv txhua 1000 ms (1 sec). Kuv yeej nyiam kawm paub txog ntau txoj hauv kev ntau yam LED tuaj yeem siv ua haujlwm siv Arduino Uno thiab ntseeg tias qhov no yog qhov uas kuv qhov kev txhawb siab ntau los. Txawm hais tias peb tau kawm ob peb yam kev kawm siab dua, kuv tau zoo siab ntau dua thiab ntseeg siab tsim cov lus qhia ntawm thaj tsam ntawm cov phiaj xwm uas kuv nkag siab zoo.
Yog li yog tias koj yog tus tshiab los siv Arduino Uno lossis tsim Arduino sketches, thov koj sim kuv taug kev tab sis nyeem!
Arduino Code Txuas:
Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau
(Hover nas hla daim duab kom paub meej ntxiv)
- Arduino Ib
- Cov qhob cij
- 6 Jumper Xov
- USB Cable (Rau Uno)
- 5 LEDs (2 Ntsuab, 2 Liab, 1 Xiav)
- 5560 Ohm Cov neeg tiv taus
Kauj ruam 2: Txuas GND
Siv lub jumper hlau (dub) txuas rau hauv av (GND) tus pin ntawm Arduino mus rau txoj kev tsis zoo ntawm lub khob cij. Qhov no yuav kawg tso cai rau LED siv tus pin hauv av ntawm Arduino.
Kauj Ruam 3: Txuas cov Resistors
Ntxig txhua ntawm tsib 560 ohm resistors rau hauv lub khob cij nrog ib txhais ceg txuas nrog txoj kev tsis zoo thiab lwm qhov txuas nrog cov chaw nres nkoj uas tau qhia hauv daim duab. Ua kom ntseeg tau tias txhua pawg ntawm ob txhais ceg tau sib dhos ua ke ib leeg.
Kauj Ruam 4: Ntxig rau LED
Txhua LED yuav koom nrog nws tus kheej tus tiv thaiv. Txhua LED kuj muaj ob txoj hauv kev (ib qho zoo/ib qho tsis zoo). Qhov luv ntawm ob txoj hauv kev yog qhov tsis zoo. Txuas qhov tsis zoo ntawm LED mus rau txoj kab tsheb tav toj uas tus tiv thaiv tau txuas nrog (qhov chaw nres nkoj mus rau sab xis ntawm tus tiv thaiv) thiab txuas cov hlau lead zoo rau txoj kev tsheb nqaj hlau uas nyob ib sab (chaw nres nkoj sab xis saum nws). Rov ua cov txheej txheem no rau tag nrho 5 lwm qhov LED. Saib cov duab kom paub meej ntxiv.
Kuv xaiv kom kuv LED mus ntsuab, liab, xiav, liab, ntsuab los ntawm sab saum toj mus rau hauv qab.
Kauj Ruam 5: Txuas Jumper Wires
Tam sim no txhawm rau txuas cov hlua txuas txuas ntxiv. Peb yuav siv cov chaw nres nkoj tso tawm 9, 10, 11, 12, thiab 13 rau 5 lub xov hlau jumper.
- Txuas lub jumper hlau (dawb) los ntawm cov zis 9 ntawm Arduino mus rau chaw nres nkoj uas nyob ib sab (mus rau sab xis) ntawm koj cov hmoov txhuas zoo nyob rau sab saum toj LED (ntsuab).
- Txuas lwm lub jumper hlau (ntsuab) los ntawm qhov tso tawm 10 mus rau qhov chaw nres nkoj uas nyob ib sab (rau sab xis) ntawm koj cov hmoov txhuas zoo nyob rau qhov thib ob mus rau sab saum toj LED (liab).
- Txuas lwm lub jumper hlau (dawb) los ntawm cov zis 11 mus rau qhov chaw nres nkoj uas nyob ib sab (rau sab xis) ntawm koj cov hlau lead zoo hauv qab LED (ntsuab).
- Txuas lwm lub jumper hlau (ntsuab) los ntawm cov zis 12 mus rau qhov chaw nres nkoj uas nyob ib sab (rau sab xis) ntawm koj cov hmoov txhuas zoo nyob rau sab thib 2 mus rau hauv qab LED (liab).
- Txuas cov hlua txuas zaum kawg (ntsuab) los ntawm cov zis 13 mus rau qhov chaw nres nkoj uas nyob ib sab (mus rau sab xis) ntawm koj cov hlau lead zoo nyob nruab nrab (xiav) LED.
Kauj Ruam 6: Hwj chim ntawm Arduino
Txhawm rau qhib Arduino, koj yuav tsum txuas USB cable los ntawm Arduino mus rau USB chaw nres nkoj ntawm koj lub computer thiab qhib Arduino Editing Software. Koj nws pom lub teeb ntsais kom pom tias Arduino Uno muaj hwj chim.
Kauj ruam 7: Khiav qhov program
Qhib Arduino app thiab ntaus cov cai hauv qab no hauv Arduino editor (txuas hauv qab no). Tom qab ntawd rub nws mus rau koj Arduino Uno. Yog ua kom raug koj yuav tsum pom qee yam xws li ……… (mus rau kauj ruam tom ntej)
Arduino Code:
Kauj Ruam 8: Ua tiav !
Qhov no!
Yog tias koj lub LED tsis ntsais muag nyob rau hauv qhov kev txiav txim ib yam li kuv, txheeb xyuas cov hauv qab no:
- Txhua yam ntawm koj cov xov hlau txuas, cov tiv thaiv, thiab LED tau txuas nrog rau cov chaw nres nkoj raug.
- Txhua yam ntawm koj cov xov hlau txuas, cov tiv thaiv, thiab LED tau txuas nrog khov kho.
- Koj Arduino Sketch raug raws li kuv tus lej.
Tseem muaj teeb meem.. tawm lus hauv qab no!
Pom zoo:
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom - Cov Kauj Ruam ntawm Kauj Ruam: 4 Kauj Ruam
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom | Cov kauj ruam ib kauj ruam: Hauv txoj haujlwm no, kuv yuav tsim qhov yooj yim Arduino Tsheb Rov Qab Tsheb Nres Tsheb Nres Sensor Siv Arduino UNO thiab HC-SR04 Ultrasonic Sensor. Qhov no Arduino raws Lub Tsheb Rov Qab ceeb toom tuaj yeem siv rau Kev Tshawb Fawb Txog Tus Kheej, Robot Ranging thiab lwm yam
STALKER GUARD (Arduino Uno Project): 4 Kauj Ruam
STALKER GUARD (Arduino Uno Project): Peb tes num hu ua Stalker Guard. Peb xaiv qhov kev kawm feem ntau vim tias raws li cov ntxhais, peb poob kev nyab xeeb taug kev ib leeg hauv qhov tsaus ntuj vim tias nws tuaj yeem ua rau muaj kev phom sij. Peb tes num tsim los ntawm lub tswv yim no kom hloov kho nrog servo SG90 lub cev muaj zog kom nws tuaj yeem suav nrog
RC Taug Qab Neeg Hlau Siv Arduino - Kauj Ruam Ib kauj ruam: 3 Kauj Ruam
RC Tracked Robot Siv Arduino - Kauj Ruam Ib Nrab: Hav guys, Kuv rov qab los nrog lwm tus neeg hlau txias chassis los ntawm BangGood. Vam tias koj tau dhau los ntawm peb cov phiaj xwm yav dhau los - Spinel Crux V1 - Tus Cwj Pwm Tswj Tus Neeg Hlau, Spinel Crux L2 - Arduino Xaiv thiab Muab Neeg Hlau nrog Robotic caj npab thiab Badland Braw
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: 12 Cov Kauj Ruam (nrog Duab)
Xaiv Cov Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau Arduino Automated Shade Screen Project: Hauv Cov Lus Qhia no, Kuv yuav hla cov kauj ruam uas kuv tau xaiv los xaiv Lub Kauj Ruam Tsav Tsheb thiab Tsav Tsheb rau qhov ua piv txwv Automated Shade Screen project. Cov ntxaij vab tshaus ntxoov ntxoo yog qhov nrov thiab pheej yig Coolaroo tes cranked qauv, thiab kuv xav hloov
DIY Arduino Robotic Arm, Kauj Ruam ntawm Kauj Ruam: 9 Kauj Ruam
DIY Arduino Robotic Arm, Kauj Ruam ntawm Kauj Ruam: Cov ntawv qhia no yog qhia koj yuav tsim lub Caj Npab Caj Npab ntawm koj tus kheej li cas