Txoj hauv kev tsim cov khoom ua si me me hauv xov tooj cua-tswj txhua qhov av tsheb.
Rau qhov "lub siab" ntawm peb txhua lub tiaj tsav tsheb, peb yuav muab tus nqi los ntawm Arduino tsev neeg. Txog kev ua cov chassis, peb yuav siv cov chassis npaj tiav, uas tam sim no yooj yim los yuav hauv txhua lub khw muag khoom online hauv Suav teb lossis hauv cov khw muag khoom hluav taws xob. Peb yuav tswj hwm peb txhua lub roob hauv lub tsheb los ntawm lub smartphone ntawm bluetooth los ntawm daim ntawv thov dawb, uas peb yuav rub tawm los ntawm Google Play.
Nws yog qhov tsim nyog
- - Arduino UNO lossis sib npaug;
- - Bluetooth module HC-06 lossis cov lus sib piv;
- - L9110S lub cev muaj zog tsav lossis analog;
- - tracked platform rau Pololu Zumo tank lossis zoo sib xws;
- - ib qho ntawm fiberglass raws li qhov loj me ntawm Arduino board lossis daim hlau thaiv rau kev ua qauv;
- - 2 lub tshuab hluav taws xob uas tsim nyog rau xaiv tau txais;
- - 2 LEDs ("teeb") thiab 2 resistors 180-220 Ohm;
- - roj teeb (1 "yas" lossis 4-6 ntiv tes roj teeb);
- - txuas cov xaim;
- - soldering hlau;
- - khoos phis tawj;
- - 6-10 bolts M2, 5.
Cov Lus Qhia
Kauj ruam 1
Peb txuas lub tshuab hluav taws xob rau daim kab dam. Kuv tabtom siv ob lub 12 hli coj mus muag motors yuav los ntawm Amperk. Lawv haum txig nrog Pololu Zumo crawler platform ntawm qhov kuv xaiv.
Kauj ruam 2
Peb muab cov khoom sib dhos taug qab raws li cov lus qhia txuas nrog lawv. Nws yooj yim heev rau kev sib sau ua ke hauv 10 feeb. Nov yog lub hauv paus rau peb lub neej yav tom ntej txhua qhov chaw tsav tsheb. Thov nco ntsoov tias lub chassis no muaj qhov sib piv rau 4 AA roj teeb. Nws yuav tsim nyog nqa 2 lub xov hlau rau "+" thiab "-" sab nraud kom muaj zog rau peb cov qauv. Koj tuaj yeem muag cov txuas hluav taws xob kom haum rau Arduino ntawm cov xaim. Qhov no yuav ua kom yooj yim dua rau kev txuas hluav taws xob rau pawg thawj coj. Yog tias siv lub platform sib txawv, tom qab ntawd koj yuav tsum nrhiav qhov chaw kom tso cov roj teeb thiab kuj coj cov xov hlau txhawm rau ua kom muaj zog ntawm Arduino board.
Kauj ruam 3
Peb muab daim Arduino board rau lub chassis. Cov neeg ntsaws nrawm ntawm qhov chaw pabcuam sib tsoo no tsis yog mus raws li hauv qhov nrog lub qhov txuas nrawm rau ntawm Arduino UNO. Yog li no, Kuv ua rau lub platform ntxiv ntawm fiberglass, uas kuv kho rau lub chassis siv bolts M2, 5, thiab tom qab ntawd ntsia hlau rau hauv lub rooj rau nws nrog 4 ntawm tib lub qub.
Kauj ruam 4
Peb tab tom xav tias yuav kho lub Bluetooth module, tus tsav lub cav thiab "taws teeb" ntawm lub chassis, yog li tom qab ntawd txhua qhov no tuaj yeem yooj yim txuas rau Arduino. Kuv yuav siv cov board tshwj xeeb, lossis Hluav Taws Xob Cib Hluav Taws Xob, xws li ib qho hauv duab. Tab sis nws tuaj yeem ua lwm daim hlau thaiv lossis txawm tias yog lub rooj tsavxwm hauv tsev. Peb txhim kho tus neeg tsav tsheb rau ntawm daim thaiv nrog cov thooj av, tom qab muaj qhov drilled qhov tsim nyog hauv daim thaiv. Peb nco ntsoov tias lub laum yuav tsis ua rau cov kev tswj hwm tsim nyog yog tias peb ua haujlwm nrog daim hlau thaiv. Thiab ceev faj: lub bolt yog hlau, koj tuaj yeem ua luv luv ua Circuit Court luv. Yog li, peb ntxuav cov cwj pwm tsis siv nyob ib ncig ntawm qhov drilled nrog rab riam ntse. Muab cov tshuab ntxhua khaub ncaws uas tsis muaj plua plav hauv qab cov txiv ntoo thiab hauv qab taub hau.
Kauj ruam 5
Tam sim no los feem ntau nyuaj thiab lub luag haujlwm. Peb yuav tsum sau txhua yam raws li lub tswvyim. Peb txuas lub Rx tus pin ntawm Bluetooth module rau Tx tus pin ntawm Arduino, Tx tus pin ntawm tus qauv mus rau tus pin Rx ntawm Arduino, GND rau Arduino hauv av, VCC mus rau 5 V ntawm Arduino (lossis rau 3.3 V - nyob ntawm BT module uas koj siv). Ntawm no koj tuaj yeem siv soldering lossis txuas cov xaim nrog cov pob tshwj xeeb xws li "Dupont".
Txhawm rau tswj ob lub cev muaj zog, 4 qhov kev tawm ntawm lub tshuab tsav + 2 khoom siv tau siv. Yog li ntawd, peb coj ib qho 4 pins dawb digital ntawm Arduino thiab txuas mus rau tus tswj pins ntawm tus tsav tsheb. Peb yuav sau tus lej tus lej tshwj xeeb tom qab hauv qhov txheej txheem, yog li tam sim no nws tsis tseem ceeb.
Thiab thaum kawg, peb txuas cov LEDs nrog anodes los ntawm resistors nrog ib qho kev cuam tshuam ntawm 200 Ohms rau qee qhov seem ob pins dawb ntawm Arduino, thiab cathodes rau GND.
Kauj Ruam 6
Yog li ntawd, koj yuav tsum tau txais ib yam dab tsi zoo li qhov uas pom hauv daim duab. Kuv kuj tseem muaj ultrasonic rangefinder ntawm no - txhawm rau txuas ntxiv kom tau txais txhua yam nrawm tsheb nrog "kev pom" thiab muaj peev xwm txav ntawm nws tus kheej. Tab sis peb mam li tawm qhov ntawd rau tom qab. Hauv qhov xwm txheej no ntawm txhua lub nraub qaum, koj yuav tsis muaj qhov nrhiav ncha rau ntawm daim thaiv.
Kauj Ruam 7
Tam sim no cia peb sau daim duab kos duab (program) rau Arduino thiab thau khoom rau hauv microcontroller lub cim xeeb. Cov ntawv nyeem ntawm cov programme yooj yim heev thiab yog qhia hauv daim duab. Txav cov duab kos rau hauv cov qauv kev. Peb twb tau sib tham txog qhov no ua li cas hauv ib qho ntawm cov ntawv sau dhau los. Txhua lub pins muab kev koom tes hauv qhov kev pab cuam ntawv xov mus rau daim duab kev sib txuas saum toj no.
Kauj ruam 8
Peb rub txoj haujlwm los tswj peb lub tagnrho txhua lub tsheb. Nws tau hu ua "Arduino Bluetooth RC Tsheb" thiab yog muaj pub dawb hauv Google Ua Si. Tus lej muab QR coj mus rau nplooj ntawv thov nplooj hauv Google Play.
Kauj Ruam 9
Tom qab rub lub sketch, txiav tawm Arduino ntawm lub computer thiab txuas peb daim hlau rau Arduino. Lub sijhawm tseem ceeb: thawj zaug kev ua haujlwm ntawm peb txhua lub nraub qaum! Yog tias txhua yam txuas nrog kom raug, ces cov LEDs ntawm Arduino thiab ntawm lub tshuab tsav tsheb yuav tsum taws, thiab LED ntawm lub bluetooth module yuav tsum nrawm.
Kauj ruam 10
Peb txuas mus rau tagnrho-cov tsheb ntawm bluetooth. Txhawm rau ua qhov no, khiav txoj haujlwm Arduino Bluetooth RC Tsheb Tsheb. Thaum nws pib, nws yuav thov kev tso cai los qhib bluetooth, yog tias nws tsis qhib. Peb tso cai. Peb nias lub pob nyem nrog qhov iav. Cov ntawv qhia zaub mov yuav tshwm sim hauv qab no, nias lub pob "Txuas". Koj yuav pom cov npe ntawm cov cuab yeej txuas nrog koj lub smartphone, nrog rau cov khoom siv muaj nyob ze. Ib qho ntawm cov khoom siv no yuav yog peb lub log tsheb tagnrho. Peb xaiv nws los ntawm daim ntawv. Koj yuav tau kev tshoov siab kom koom nrog qhov khoom siv no thiab ntaus tus lej. Qhov no feem ntau yog 0000 lossis 1234 nyob ntawm tus qauv bluetooth uas koj tau siv.
Yog tias kev sib koom ua ke tau ua tiav, LED ntawm qhov module yuav pib ntsais ntawm lub sijhawm ib zaug ntawm ib pliag, thiab qhov taw qhia hauv lub kaum sab laug sab sauv ntawm qhov kev zov me nyuam yuav ua ntsuab. Lub smartphone yuav nco qab cov cuab yeej no, thiab koj tsis tas yuav nkag rau kod.
Tam sim no koj tuaj yeem sim qhov peb tau txais. Lub tsheb yuav tsum tsav mus rau tom ntej thiab tig tom qab, tig sab lauj thiab sab xis, thiab tig cov taws tom hauv ntej thiab tawm.
Kauj ruam 11
Yog hais tias lub ATV tig los yog tsav rov qab ntawm Forward hais kom ua, cov xov hlau rau cov cav tau sib xyaw. Los ntawm kev sib pauv lub xov hlau daj thiab ntsuab mus los ntawm tus neeg tsav tsheb mus rau lub cev muaj zog (hauv daim duab saum toj saud), nco ntsoov tias txhua lub pob zeb mus rau qhov chaw uas nws xav tau. Yog tias koj muaj lus nug, sau lawv hauv cov lus rau kab lus!