Cov txheej txheem:

Obstacle Zam Txim Neeg Hlau (Arduino): 8 Kauj Ruam (nrog Duab)
Obstacle Zam Txim Neeg Hlau (Arduino): 8 Kauj Ruam (nrog Duab)

Video: Obstacle Zam Txim Neeg Hlau (Arduino): 8 Kauj Ruam (nrog Duab)

Video: Obstacle Zam Txim Neeg Hlau (Arduino): 8 Kauj Ruam (nrog Duab)
Video: КАКИМ БУДЕТ PORTAL 3 2024, Hlis ntuj nqeg
Anonim
Obstacle Zam Txim Neeg Hlau (Arduino)
Obstacle Zam Txim Neeg Hlau (Arduino)

Ntawm no kuv yuav qhia koj txog kev ua Obstacle Zam Txim Neeg Hlau raws Arduino. Kuv vam tias yuav ua cov kauj ruam qhia ib qib ntawm kev ua tus neeg hlau no hauv txoj kev yooj yim heev. Ib qho kev tiv thaiv kom tsis txhob muaj neeg hlau yog lub tshuab muaj peev xwm ua haujlwm tau zoo uas tuaj yeem muaj peev xwm zam tau txhua qhov teeb meem uas nws ntsib thaum nws txav mus. Yooj yim, thaum nws ntsib teeb meem thaum nws txav mus rau tom ntej, txiav tsis txav mus rau tom ntej thiab ua ib kauj ruam rov qab. Tom qab ntawd nws zoo li nws yog ob sab laug & sab xis thiab pib txav txoj hauv kev zoo tshaj plaws; uas txhais tau hais tias yog nyob rau sab laug yog tias muaj lwm qhov kev khuam siab nyob rau hauv txoj cai los yog nyob rau hauv txoj kev yog hais tias muaj lwm yam teeb meem nyob rau sab laug. Qhov teeb meem zam kev siv neeg hlau yog qhov muaj txiaj ntsig zoo thiab nws yog lub hauv paus ntawm ntau qhov haujlwm loj xws li tsheb tsis siv neeg, neeg hlau siv hauv Chaw Tsim Khoom, txawm tias hauv cov neeg hlau siv hauv kev tsim khoom lag luam.

Kauj Ruam 1: Yam Koj Xav Tau hauv Txoj Haujlwm no:

Yam Koj Xav Tau hauv Txoj Haujlwm no
Yam Koj Xav Tau hauv Txoj Haujlwm no
Yam Koj Xav Tau hauv Txoj Haujlwm no
Yam Koj Xav Tau hauv Txoj Haujlwm no
Yam Koj Xav Tau hauv Txoj Haujlwm no
Yam Koj Xav Tau hauv Txoj Haujlwm no
  1. Arduino UNO-https://www.ebay.com/p/Arduino-UNO-R3-Board-With-…
  2. Ntse neeg hlau tsheb chassis nrog 2 x khoom ua si lub log thiab 1 x Universal log (lossis pob casters)-https://www.ebay.com/itm/Motor-New-Smart-Robot-Ca…
  3. Ob lub DC motors-https://www.ebay.com/itm/Arduino-Smart-Car-Robot-…
  4. L298n tsav tsheb-https://www.ebay.com/itm/New-L298N-DC-Stepper-Moto…
  5. HC-SR04 Ultrasonic Sonar sensor-https://www.ebay.com/itm/Ultrasonic-HC-SR04-HC-SR0…
  6. TowerPro micro servo 9g-https://www.ebay.com/itm/6X-TowerPro-SG90-Mini-Gea…
  7. 7.4V 1300mah Lipo roj teeb-https://www.ebay.com/itm/VOK-Lipo-Battery-for-RC-H…
  8. Jumper xov hlau (txiv neej-rau-txiv neej, txiv neej-rau-poj niam)
  9. Mini khob cij

  10. Ultrasonic sonar sensor mounting bracket
  11. Screws thiab ceev
  12. Ntsia Hlau
  13. Soldering hlau
  14. Ob daim kab xev (xaiv tau)
  15. Kub kua nplaum phom (yeem)

Kauj Ruam 2: Sib dhos Chassis

Sib dhos Chassis
Sib dhos Chassis
Sib dhos Chassis
Sib dhos Chassis
Sib dhos Chassis
Sib dhos Chassis

Siv ob txoj hlua txuas rau txhua lub tshuab DC. Tom qab ntawd kho ob lub cav rau lub chassis siv cov ntsia hlau. Yog tias koj xav tau kev piav qhia ntxiv, thov saib qhov youtube video no https://www.google.lk/url?sa=t&rct=j&q=&esrc=s&sou… Thaum kawg txuas lub Universal log (lossis lub npas caster log)

Kauj Ruam 3: Mount Cheebtsam

Mount Cheebtsam
Mount Cheebtsam

Mount Arduino UNO, L298n lub cev muaj zog tsav tsheb thiab TowerPro servo motor ntawm lub chassis. Nco tseg: thaum teeb tsa lub rooj tsav xwm arduino, tawm qhov chaw txaus los ntsaws USB cable, txij li tom qab koj yuav tsum tau teeb tsa lub rooj tsav xwm arduino los ntawm kev txuas nws mus rau PC ntawm USB cable.

Kauj Ruam 4: Npaj Ultrasonic Sensor

Npaj Ultrasonic Sensor
Npaj Ultrasonic Sensor
Npaj Ultrasonic Sensor
Npaj Ultrasonic Sensor
Npaj Ultrasonic Sensor
Npaj Ultrasonic Sensor
Npaj Ultrasonic Sensor
Npaj Ultrasonic Sensor

Txuas plaub lub xov hlau txuas mus rau lub ntsuas hluav taws xob Ultrasonic thiab teeb nws rau ntawm qhov txuas txuas. Tom qab ntawd teeb tsa tus ncej ntawm TowerPro micro servo uas twb tau teeb tsa ntawm lub chassis.

Kauj Ruam 5: Cov Khoom Siv Hluav Taws Xob

Cov Khoom Hluav Taws Xob
Cov Khoom Hluav Taws Xob
Cov Khoom Hluav Taws Xob
Cov Khoom Hluav Taws Xob
Cov Khoom Hluav Taws Xob
Cov Khoom Hluav Taws Xob
Cov Khoom Hluav Taws Xob
Cov Khoom Hluav Taws Xob

L298n tsav tsheb:

+12V → Lipo roj teeb (+)

GND → Lipo roj teeb (-) tseem ceeb: txuas GND rau lipo roj teeb (-) thiab rau arduino board twg GND tus pin

+5V → arduino Vin

In1 → arduino tus pin 7

In2 -arduino tus pin 6

In3 → arduino tus pin 5

In4 → arduino digital pin 4

OUT1, Tsav 1

OUT2, Tsav 1

OUT3, Tsav 2

OUT4: Tsav 2

Cij zaub mov:

Txuas ob lub xov hlau txuas mus rau arduino board 5V thiab GND pins, tom qab ntawd txuas ob lub xov hlau mus rau lub khob cij. tam sim no koj tuaj yeem siv qhov no ua +5V cov khoom siv.

HC-SR04 Ultrasonic Sonar sensor:

VCC → breadboard +5V

Trig -arduino analog pin 1

Echo -arduino analog pin 2

GND → breadboard GND

TowerPro micro servo 9g:

txiv kab ntxwv hlau → arduino digital pin 10

liab hlau → breadboard +5V

hlau xim av → breadboard GND

Kauj Ruam 6: Programming Arduino UNO

  1. Rub tawm thiab Nruab Arduino Desktop IDE

    • windows -
    • Mac OS X -
    • Linux -
  2. Rub tawm thiab muab tso rau NewPing lub tsev qiv ntawv (Ultrasonic sensor ua haujlwm lub tsev qiv ntawv) cov ntaub ntawv rau Arduino cov tsev qiv ntawv nplaub tshev.

    • Rub tawm NewPing.rar hauv qab no
    • Extract nws mus rau txoj kev - C: / Arduino / cov tsev qiv ntawv
  3. Rub tawm thiab qhib qhov teeb meem_avoiding.ino
  4. Tshaj tawm cov cai rau arduino board ntawm USB cable

Kauj Ruam 7: Hwj chim Neeg Hlau

Hwj chim Neeg Hlau
Hwj chim Neeg Hlau

Txuas lub roj teeb Lipo rau L298n lub cev muaj zog tsav tsheb raws li hauv qab no:

Lipo roj teeb (+) → +12V

Lipo roj teeb (-) → GND

Kauj Ruam 8: Zoo heev !

Zoo kawg !!!
Zoo kawg !!!

Tam sim no koj tus neeg hlau tau npaj kom tsis txhob muaj teeb meem….

Kuv yuav zoo siab teb cov lus nug koj muaj

email rau kuv: [email protected]

tshawb kuv hauv facebook thiab txuas ntxiv rau ntau txoj haujlwm - Danusha nayantha

Ua Tsaug

Pom zoo: