Cov txheej txheem:

UCL - Embedded Controlled Tsheb: 5 Kauj Ruam
UCL - Embedded Controlled Tsheb: 5 Kauj Ruam

Video: UCL - Embedded Controlled Tsheb: 5 Kauj Ruam

Video: UCL - Embedded Controlled Tsheb: 5 Kauj Ruam
Video: UCL-Embedded control-MJJ 2024, Lub Xya hli ntuj
Anonim
UCL - Embedded Controlled Tsheb
UCL - Embedded Controlled Tsheb

Peb muaj lub hom phiaj loj rau txoj haujlwm no. Tsav tsheb tsav tus kheej! Ua raws txoj kab dub lossis tsav tsheb ib puag ncig kom tsis txhob muaj teeb meem. Bluetooth txuas, thiab 2nd arduino rau kev tswj nrog kev sib txuas lus wireless lub tsheb. Tej zaum lub tsheb thib 2 uas tuaj yeem ua raws thawj tus.

Thaum kawg peb muaj teeb meem ntau heev kom tau txais lub tsheb tsav phau ntawv qhia rau lub caij rov los yog rov qab.

Kauj Ruam 1: Daim Ntawv Teev Npe

Lub tsheb pib nrog servo motor rau lub kauj

Arduino pawg thawj coj saib

2 cav

Choj Tsav Tsav

IR-Sensor

IR-Tswj

Cov xim xim xim dub

Fais fab mov

Cov hlua, cov ntsia hlau, cov hlua thiab cov yas

Kauj Ruam 2: Kev Xav Ua Ntej

Kev Xav Ua Ntej
Kev Xav Ua Ntej
Kev Xav Ua Ntej
Kev Xav Ua Ntej

Ua ntej peb ua raws li phau ntawv qhia kev sib dhos rau 4wd lub tsheb neeg hlau nrog kev tswj tuav nrog infared thiab bluetooth, linetracking hom thiab teeb meem kev zam. Thaum nws tsis ua haujlwm tom qab peb sib sau ua ke, nws tsis yooj yim sua rau peb kom pom qhov yuam kev raws li peb tsis tau muaj dua ntawm cov cai. Yog li peb txiav txim siab pib dua thiab hloov ntawm 4wd tsav, peb txiav txim siab siv lub hauv paus ntawm lub qub tsis xws luag tswj lub tsheb. los ntawm lub hauv paus no muaj lub tshuab servo txuas nrog rau ob lub log pem hauv ntej rau lub luag haujlwm, thiab tom qab ntawd peb ntxiv ob lub cav thiab ob lub log los tsav tsheb mus rau tom ntej lossis rov qab yog li lub tsheb muaj 4 lub log tag nrho.

Kauj Ruam 3: Sib dhos thiab thaiv

Sib dhos thiab thaiv
Sib dhos thiab thaiv
Sib dhos thiab thaiv
Sib dhos thiab thaiv
Sib dhos thiab thaiv
Sib dhos thiab thaiv
Sib dhos thiab thaiv
Sib dhos thiab thaiv

Lub cev muaj zog uas tswj kev taw qhia ntawm lub log pem hauv ntej tau txuas nrog L298N lub cev muaj zog tsav tsav.

Ob lub DC motors uas tsav lub log tom qab txuas nrog tib L298N lub cev muaj zog tsav, ntawm lwm qhov tso tawm.

L298N txuas nrog los ntawm nws lub zog nkag mus rau lub zog siv. Peb tso qhov qhib/tawm ntawm ob. GND txuas nrog arduino GND thiab tseem muaj 5v tso tawm los ntawm L298N uas txuas nrog VIN tus pin ntawm arduino.

Muaj 6 lub teeb liab xov txuas nrog ntawm arduino thiab L298N. 3 rau txhua lub cav tswj. Thawj ob qhov tau siv los xaiv yog tias lub tshuab ua haujlwm thiab qhov kev taw qhia li cas. qhov thib peb yog txiav txim siab qhov nrawm ntawm lub cav.

Tam sim no muaj lub zog rau lub cav thiab lub tsheb tuaj yeem tsav tau thiab peb yuav ntxiv cov infared sensor kom muaj peev xwm tswj tau phau ntawv nrog cov chaw taws teeb tswj. Thiab peb yuav ntxiv 3 lub ntsej muag ntsuas xim dub los sim ua kom lub tsheb ua raws kab dub.

lub infared sensor tau txuas nrog rau arduinos 5v tso zis thiab gnd rau lub zog thiab lub teeb liab tau pib txuas nrog digita tus pin 13, tab sis xaim tawg nyob rau ntawd thiab tus pin 13 tam sim no siv tsis tau hauv peb cov arduino, yog li peb hloov nws mus rau tus lej pin 3

Cov ntsuas tau siv rau kab taug qab peb ua 1 xaim uas txuas txhua 5v rau L298N 5v cov zis thiab GNDs kuj tseem sib dhos hauv 1 xaim uas txuas nrog ntawm arduino GND tus pin. Cov cim teeb liab tau txuas nrog arduino digital pin 8, 7 thiab 2

Kauj Ruam 4: 3D Luam Nrog Fusion 360

3D Luam Nrog Fusion 360
3D Luam Nrog Fusion 360
3D Luam Nrog Fusion 360
3D Luam Nrog Fusion 360
3D Luam Nrog Fusion 360
3D Luam Nrog Fusion 360

Ua cov duab kos rau tus ntoo khaub lig hauv Fusion 360, uas tau npaj los tuav lub infared-sensor thiab bluetooth module.

Ntxiv cov ntawv rau CURA rau lub tshuab luam ntawv 3D Ultimaker 2+ los nyeem nws.

Kauj ruam 5: Code

Peb txoj haujlwm muaj ntau yam sib txawv. Thawj qhov peb tau ua yog ua qhov program kom nyeem tsis pom lub teeb liab los ntawm kev tswj chaw taws teeb, thiab sau cov lus txib twg txuas nrog rau cov nyees khawm twg.

Tom qab ntawd peb tsim txoj haujlwm los tswj 3 lub cav nrog tus tsav tsheb thiab phau ntawv tuav nrog kev tswj chaw taws teeb.

Tom qab ntawd peb tau tsim qhov program uas nyeem los ntawm 3 kab kev taug qab cov cim ntsuas, khiav cov cai sib txawv nyob ntawm seb qhov sib xyaw ua ke ntawm lub tshuab ua haujlwm zoo li cas.

thaum kawg peb tau sim ua ke cov haujlwm, yog li koj muaj kev tswj los ntawm cov chaw taws teeb kom mus rau hom kev taw qhia thiab tswj lub tsheb lossis hloov mus rau kab kev taug qab hom, qhov twg lub tsheb ua raws kab dub hauv qab nws.

Pom zoo: