Cov txheej txheem:

Yuav Tsim Li Cas: Arduino Tus Kheej Tsav Tsheb: 7 Kauj Ruam (nrog Duab)
Yuav Tsim Li Cas: Arduino Tus Kheej Tsav Tsheb: 7 Kauj Ruam (nrog Duab)

Video: Yuav Tsim Li Cas: Arduino Tus Kheej Tsav Tsheb: 7 Kauj Ruam (nrog Duab)

Video: Yuav Tsim Li Cas: Arduino Tus Kheej Tsav Tsheb: 7 Kauj Ruam (nrog Duab)
Video: lam mloog zaj nkj no nb wb sib hlub g tau tsim nyog 2024, Hlis ntuj nqeg
Anonim
Image
Image
Cheebtsam
Cheebtsam

Arduino Tus Kheej Tsav Tsheb yog txoj haujlwm muaj los ntawm lub tsheb chassis, ob lub log tsheb, ib lub log 360 ° (tsis siv lub tshuab) thiab ob peb lub ntsuas. Nws tau siv los ntawm 9-volt roj teeb siv Arduino Nano txuas nrog lub khob cij me me los tswj lub cav thiab lub ntsuas pa. Thaum nws tau qhib, nws pib tsav ncaj nraim rau pem hauv ntej. Thaum nws pom qhov teeb meem ua ntej, nws saib rau ob sab, thiab tig mus rau sab uas nws muaj chaw seem ntau dua. Yog tias tsis muaj chaw seem ua ntej lossis ob sab, nws thim rov qab lub cav kom tsav rov qab.

PS: tsis txhob mloog tus dev:)

Kauj Ruam 1: Cheeb Tsam

Koj tuaj yeem xaj feem ntau ntawm cov khoom siv los ntawm Amazon. Kuv tso qhov txuas rau Cov Khoom Siv Tsheb Chassis Kuv yuav.

  1. 1x Cov Khoom Siv Tsheb Chassis: YIKESHU 2WD Smart Motor Robot Tsheb Chassis

    • 2x Gear Tsav
    • 1x Tsheb Chassis
    • 2x Tsheb Tyre
    • 1 x 360 ° Log
  2. 1 x Arduino Nano
  3. 1 x Mini Breadboard
  4. 1x Tsav Tsav L293D
  5. 3x Ultrasonic Sensor HC SR04
  6. 3x Sensor txhawb - 3D luam tawm (saib daim duab hauv qab no)
  7. 1 x 9 v pin
  8. 1x On-off hloov
  9. 5 x 100 uF capacitors
  10. 2 x 0.1 uF capacitors
  11. 1 x IR IR
  12. 1x Chaw Taws Teeb

Kauj Ruam 2: Txhawb 3D Luam Sensor

3D Luam Sensor Txhawb
3D Luam Sensor Txhawb
3D Luam Sensor Txhawb
3D Luam Sensor Txhawb

Cov kev txhawb nqa rau Ultrasonic Sensors tuaj yeem luam tawm ntawm lub tshuab luam ntawv 3D. Cov duab yog raws li hauv qab no:

Sab txhawb: luam ob qho ntawm no

Kev them nyiaj yug pem hauv ntej: luam tawm ib qho ntawm no

PS: lub qhov yuav tsum tau yoog raws koj lub chassis. Lub chassis yuav muaj qee qhov sib txawv me me hais txog nws lub qhov.

Kauj Ruam 3: Sib dhos Chassis

Sib dhos Chassis
Sib dhos Chassis
Sib dhos Chassis
Sib dhos Chassis
  • Sib dhos lub chassis raws li phau ntawv qhia.
  • Lub khob cij tuaj yeem kho tau tom qab ntawm lub chassis.
  • Nws yog ib qho tseem ceeb uas lub roj teeb tau muab tso rau sab xub ntiag ntawm lub chassis vim nws qhov hnyav.
  • Ntsia los yog lo lub sensor txhawb rau sab xub ntiag ntawm lub chassis
  • Lub sensor tuaj yeem tso nrog lub siab ntawm nws cov kev txhawb nqa. Nws tsis tsim nyog los lo lossis ntswj nws.

Thov xa mus rau daim duab kom nkag siab qhov chaw ua haujlwm zoo dua.

Kauj Ruam 4: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Hlau cov khoom siv raws li daim duab. Xa mus rau daim duab kom nkag siab qhov kev tso cov capacitors.

Kauj ruam 5: Code

Ntawm no koj yuav pom cov cai kuv siv rau kuv qhov project. Koj tuaj yeem hloov kho me me yog tias koj xav hloov nws tus cwj pwm.

Kauj ruam 6: Npaj !!! Pib Cov Cav

Tam sim no lub tsheb tau npaj txhij koj tuaj yeem pib ua si nrog nws.

Thaum lub tsheb tau muab tso rau hauv av, tig rau qhov hloov mus rau lub zog nws. Tom qab ntawd, siv PLAY khawm ntawm cov chaw taws teeb tswj kom pib lub cav. Thaum koj xav tau tua nws, nias lub khawm PREV ntawm lub chaw taws teeb tswj thiab tua lub tsheb ntawm lub tsheb. Thaum nws tseem nyob, nws tseem tsav tsheb thiab zam kev tiv thaiv, txawm li cas los xij, nws yog ib qho tseem ceeb los tiv thaiv nws kom tsis txhob mus rau qhov chaw uas muaj tus ntaiv lossis qhov.

Kauj Ruam 7: Ntau Cov Duab ntawm Qhov Kawg

Pom zoo: