Cov txheej txheem:

Teeb Teeb Ua Rau Arduino: 3 Kauj Ruam
Teeb Teeb Ua Rau Arduino: 3 Kauj Ruam

Video: Teeb Teeb Ua Rau Arduino: 3 Kauj Ruam

Video: Teeb Teeb Ua Rau Arduino: 3 Kauj Ruam
Video: Marlin Firmware - VScode PlatformIO Install - Build Basics 2024, Hlis ntuj nqeg
Anonim
Teeb Teeb Ua Rau Arduino
Teeb Teeb Ua Rau Arduino

Qhov kev qhia no txhais tau tias yuav piav qhia li cas lub teeb liab teeb ci hauv cov xim sib txawv uas tseem qhia txog qhov tsis sib xws. Nws tsis nyuaj tab sis nthuav. Txhua yam ntaub ntawv koj tuaj yeem tau yooj yim los ntawm www. ICStation.com.

Accessories:

1. Arduino Air board x 1

2. RGB 3 Xim Xim Xim LED Module x 1

3. Kab x 5

4. AC-DC 220V rau 5V Raug Rho Tawm Lub Hwj Huam Buck x 1

Kauj ruam 1: Kev sib txuas

Kev sib txuas
Kev sib txuas
Kev sib txuas
Kev sib txuas

Txuas Arduino Air Board thiab LED Module. Nws tuaj yeem tsim teeb pom kev zoo nrog 3 lub diodes sib txawv hauv liab, ntsuab thiab xiav vim tias lawv lub teeb sib txawv. Daim duab kos npe ntawm daim npav tsav tsheb LED tau qhia raws li daim duab 1.

Lub diode D1 yuav teeb rau thaum lub siab tswj CTRLPWM pub lub suab q1 dhau los. Yog li koj tsuas tuaj yeem hloov kho lub luag haujlwm ntawm CTRLPWM los tswj D1 qhov tsis txaus ntseeg. Thiab tsuas yog 5 lub xov tooj xav tau ntawm no: 3 rau PWM tswj, 1 rau lub zog siv, thiab lwm yam rau lub ntiaj teb xaim. Qhia raws li daim duab 2.

Kauj Ruam 2: Lub Hwj Huam thiab Kho

Hwj chim Mov thiab Kho
Hwj chim Mov thiab Kho

Txhawm rau muab lub zog rau Arduino Air Board nrog microUSB los ntawm Pc lossis them nyiaj. Tom qab ntawd nkag mus rau nplooj ntawv tsim tawm thiab xaiv cov cuab yeej sib xws los pib kev debugger interface.

Cov LED yuav ci liab thiab ci dua thaum koj kho PWM tus nqi ntawm IO (DO3) siab dua, lossis tsaus dua kom tua thaum koj tswj hwm nws tsis zoo. Thiab nws yog tib txoj kev xav rau DO5 (ntsuab) thiab DO6 (xiav).

Kauj Ruam 3: Kauj Ruam Kawg

Txuas lub Power Buck Converter nrog Arduino Air Board, thiab tom qab ntawd muab lawv tso rau hauv qhov chaw hyaline nrog Lub Teeb thiab thaum kawg koj yuav tau txais lub teeb ci ntsa iab zoo. Tuaj sim.

Tau qhov twg los Code:

Pom zoo: