Cov txheej txheem:

Yuav Tsim Li Cas Battlebot Nrog Cardboard thiab Arduino: 7 Kauj Ruam (nrog Duab)
Yuav Tsim Li Cas Battlebot Nrog Cardboard thiab Arduino: 7 Kauj Ruam (nrog Duab)

Video: Yuav Tsim Li Cas Battlebot Nrog Cardboard thiab Arduino: 7 Kauj Ruam (nrog Duab)

Video: Yuav Tsim Li Cas Battlebot Nrog Cardboard thiab Arduino: 7 Kauj Ruam (nrog Duab)
Video: hnub no yuav lo qhia qhov tseem ntawm na ej huab sib rau nej tau paub 2024, Kaum ib hlis
Anonim
Image
Image

Kuv tsim kev sib ntaus sib tua siv Arduino UNO thiab duab los qhia tau siv los tsim lub cev. Kuv sim siv cov khoom siv pheej yig thiab muab rau cov menyuam muaj kev ywj pheej muaj tswv yim yuav tsim lawv li kev sib ntaus sib tua li cas. Battlebot tau txais cov lus txib los ntawm lub wireless tswj siv joystick thiab nRF24L01 2.4GHz wireless module.

Kauj Ruam 1: Kho vajtse thiab Khoom siv

Kho vajtse thiab khoom siv yuav tsum tau:

Arduino Uno + USB Cable:

||

Arduino nano:

||

9v roj teeb: https://amzn.to/2wPmnSP ||

Jumper xov hlau: https://amzn.to/398mQhq ||

NRF24L01+ 2.4GHz Wireless RF Transceiver Module: https://amzn.to/30xQlp4 ||

9v Roj Teeb Clip Txuas: https://amzn.to/32D4R0b ||

Duab los qhia:

Ntuj Ntoo Craft Sticks: https://amzn.to/39rovPs ||

Mini Breadboard: https://amzn.to/2JujS9e ||

Dual Axis XY Joystick Module Arduino KY-023: https://amzn.to/3gOcWFZ ||

DC Motor 1:48 Gear Ratio Smart Car Robot + Log: https://amzn.to/3drHmvx ||

L298N tus tsav tsheb me: https://amzn.to/2MoYeqI ||

Hloov: https://amzn.to/2upTngE ||

Txiv neej DC Barrel Jack Adapter rau Arduino: https://amzn.to/2VwyKxx ||

Rab Phom Kub Kub: https://amzn.to/31sIko3 ||

Cov Khoom Siv Hluav Taws Xob: https://amzn.to/3eHmp0i ||

Kauj ruam 2: Tsim BattleRobot

Tsim BattleRobot
Tsim BattleRobot
Tsim BattleRobot
Tsim BattleRobot
Tsim BattleRobot
Tsim BattleRobot

Lub tswv yim tom qab qhov kev sib ntaus sib tua no yog sim ua kom pheej yig li sai tau. Kuv siv cov duab los qhia rau lub cev ntawm neeg hlau tsis siv cov ntawv hlau, txiab tsis siv cov saw saws, thiab cov kua nplaum kub hloov lub nkoj ntawm lub tshuab txuas.

Ua ntej, koj xav tau duab los qhia tom qab txiav cov duab. Yog tias koj tsis nyiam kuv tus qauv, koj tuaj yeem tsim koj tus kheej sib ntaus sib tua. Muab cov khoom sib dhos ua ke tshwj tsis yog sab saum toj vim tias peb xav muab lub voj voog rau hauv lub cev ntawm kev sib ntaus sib tua.

Kauj Ruam 3: Programming Battlebot thiab Controller

Txhawm rau ua haujlwm rau arduino koj yuav xav tau lub tsev qiv ntawv RF24 teeb tsa. Yog li rub tawm cov ntawv hauv qab no thiab qhib arduino IDE. Mus rau Sketch -> Xws li Lub Tsev Qiv Ntawv -> Ntxiv. ZIP Library thiab ntshuam 'RF24.zip' rau hauv ntawd. Tam sim no unplug Arduino UNO thiab txuas Arduino Nano thiab upload 'Controller.ino' rau Arduino. Nco ntsoov hloov 'board' thiab 'chaw nres nkoj' teeb tsa ib yam nkaus.

Kauj Ruam 4: Txuas lub Battlebot

Txuas lub Battlebot
Txuas lub Battlebot
Txuas lub Battlebot
Txuas lub Battlebot
Txuas lub Battlebot
Txuas lub Battlebot

Hauv qhov haujlwm no siv 3 x 9 volt alkaline roj teeb rau arduino uno, lub cev muaj zog, thiab tus kiv cua. L298N lub tshuab tsav tsheb me tau siv rau kev tswj hwm lub cav. Nws tau txais qee qhov 5V cov cim ntawm Arduino board, thiab muab cov hluav taws xob ntau dua rau cov tshuab. Nws kuj tseem tso cai rau cov tsav tsheb khiav hauv ob qho kev qhia, tsis txaus ntseeg ntawm kev ua ke ntawm cov teeb liab nkag. Txhua lub cuab yeej tau txuas nrog raws li daim duab thaiv.

Tom qab txuas cov kab hluav taws xob, Tom qab ntawd koj yooj yim lo lawv lossis muab ob kab xev rau hauv lub cev ntawm kev sib ntaus sib tua, nrog rau koj lub roj teeb thiab arduino uno.

Kauj Ruam 5: Txuas tus Tswj

Txuas tus Tswj
Txuas tus Tswj
Txuas tus Tswj
Txuas tus Tswj
Txuas tus Tswj
Txuas tus Tswj

Cov duab hauv qab no qhia pom daim kab xev ua tiav ntawm kev xa xov siv Arduino Nano. Tom qab txuas tag nrho cov khoom siv tom qab ntawd kuv tau tso tag nrho cov khoom no rau hauv lub thawv thiab kaw nws tag nrho siv cov nplaum kub. NRF24L01 2.4 GHz Transceiver Module tuaj yeem siv rau kev sib txuas lus wireless ntawm txog 100 meters.

Kauj Ruam 6: Ntsuam Xyuas Battlebot

Ntsuam xyuas Battlebot
Ntsuam xyuas Battlebot

Tam sim no, yog tias txhua yam mus tau zoo, koj yuav tsum muaj peev xwm tswj tau kev sib ntaus sib tua nrog tus tswj. Yog tias kev sib ntaus sib tua tsis ua haujlwm txhua qhov koj yuav tsum txheeb xyuas qhov sib txuas ntawm nRF24L01.

Nws tau lom zem los tsim cov kev sib ntaus sib tua no! Kuv vam tias tsab xov xwm no tau pab qhib koj lub qhov muag rau qhov muaj peev xwm faus rau hauv txhua yam khoom niaj hnub nyob ib puag ncig koj lub tsev. Cov thawv uas koj pov tseg no tuaj yeem dhau los ua koj txoj haujlwm loj tom ntej yog tias koj xav txog nws.

Koj tuaj yeem sau npe yuav kuv cov channel rau kev txhawb nqa.

Ua Tsaug.

Pom zoo: