Cov txheej txheem:

Bluetooth RC Arduino Tsheb: 5 Kauj Ruam (nrog Duab)
Bluetooth RC Arduino Tsheb: 5 Kauj Ruam (nrog Duab)

Video: Bluetooth RC Arduino Tsheb: 5 Kauj Ruam (nrog Duab)

Video: Bluetooth RC Arduino Tsheb: 5 Kauj Ruam (nrog Duab)
Video: How I Made this Electric Car that can go Anywhere 2024, Lub Xya hli ntuj
Anonim
Bluetooth RC Arduino Tsheb
Bluetooth RC Arduino Tsheb

Txoj haujlwm no tau nthuav tawm los qhia qhov yooj yim ntawm kev tsim lub tsheb RC hauv lub sijhawm luv luv nrog kev siv nyiaj tsawg. Hauv kuv qhov piv txwv kuv tab tom khiav ib lub log raws li kuv lwm tus hmoov tsis snapped - yog li tus Tsov tus tw kawg drags. Tab sis Yog tias kuv muaj txoj hauv kev ntxiv kuv yuav yuav lwm txheej vim tias lawv tsis kim heev.

Kauj Ruam 1: Siv Ob Qhov 5V thiab 3V Cov Khoom Tawm

Siv ob qho 5V thiab 3V Cov Lus Qhia
Siv ob qho 5V thiab 3V Cov Lus Qhia

Hauv txoj haujlwm no koj yuav xav tau ob qhov sib txawv qhov hluav taws xob tso tawm raws li 5V yuav ua haujlwm feem ntau ntawm Circuit Court thiab 3V khiav ntawm Bluetooth nkaus xwb. Thaum koj siv lub bluetooth module (HC-05) nws muaj 4 tus pin (3V, Gnd, Tx, Rx) thiab thaum txuas nws, koj txuas tus Tx thiab Rx rau qhov sib txawv hauv 1/2 txoj haujlwm ntawm arduino

Tx mus rau Rx

Rx mus rau Tx

Kauj ruam 2: Teeb tsa H-Choj

Teeb tsa H-Choj
Teeb tsa H-Choj

Txhawm rau teeb tsa H-Choj nti koj yuav tsum tau sau 8 txoj haujlwm ib sab (txhawm rau: pab kom, Kev Taw Qhia 1, Tsav 1, Hauv av, Hauv av, Tsav 2, Kev Taw Qhia 2 thiab Lub Hwj Huam rau lub cav). Qhov kev txiav txim tib yam yog thim rov qab rau lwm sab tshwj tsis yog lub zog rau lub cav yog lub zog los ntawm Arduino

Kauj Ruam 3: Teeb Teeb

Teeb Teeb
Teeb Teeb

Teeb tsa lub teeb suav nrog tsuas yog muaj xov hlau hauv av, 220 ohm resistor thiab tso tawm los ntawm arduino nws tus kheej. Muab tso rau ntawm plaub sab kom tau lub teeb uas qhib thiab kaw thaum koj hloov kev taw qhia.

Kauj Ruam 4: Piezo Buzzer (Rov Qab nrov nrov)

Raws li nrog lub teeb, tsuas yog tso lub zog ntawm arduino los ntawm lub suab nrov thiab cov xaim av ntawm lwm sab.

Kauj ruam 5: Hloov Nws Li (Code)

Lub tsheb no tau yooj yim heev los teeb tsa hauv lub sijhawm tsawg kawg. Cov neeg siv feem ntau tuaj yeem yooj yim txheeb xyuas teeb tsa nrog arduino tsuas yog muaj peb lub tshuab sib txawv hauv lub tsheb no (lub cav, choj txuas thiab bluetooth), nws tuaj yeem hloov pauv tau yooj yim kom haum ntau dua yog tias xav tau, txawm li cas los xij koj yuav xav tau ntau tus pin lossis ua me ntsis zoo dua ntawm coding.

Pom zoo: