Cov txheej txheem:

Bluetooth Tswj Neeg Hlau Tsheb Siv Arduino: 8 Kauj Ruam (nrog Duab)
Bluetooth Tswj Neeg Hlau Tsheb Siv Arduino: 8 Kauj Ruam (nrog Duab)

Video: Bluetooth Tswj Neeg Hlau Tsheb Siv Arduino: 8 Kauj Ruam (nrog Duab)

Video: Bluetooth Tswj Neeg Hlau Tsheb Siv Arduino: 8 Kauj Ruam (nrog Duab)
Video: Nraug txuj kev hlub 2024, Kaum ib hlis
Anonim
Bluetooth Tswj Cov Neeg Hlau Tsheb Siv Arduino
Bluetooth Tswj Cov Neeg Hlau Tsheb Siv Arduino

Hauv cov lus qhia no, kuv yuav coj koj kev ua lub tsheb neeg hlau uas tswj hwm Bluetooth los ntawm koj lub xov tooj ntawm tes. Tsis tas li ntawd, lub tsheb neeg hlau muaj lub peev xwm tshwj xeeb ntawm kev zam teeb meem uas nws tau ntsib thaum txav lub tsheb mus tom ntej. Lub tsheb neeg hlau ua tiav raws li arduino thiab kuv vam tias yuav ua ib qib zuj zus qhia ntawm kev ua tus neeg hlau no hauv txoj kev yooj yim heev. Vam tias koj yuav txaus siab rau nws.

Kauj Ruam 1: Yam Koj Xav Tau Rau Tus Neeg Hlau no

Yam Koj Xav Tau Rau Tus Neeg Hlau no
Yam Koj Xav Tau Rau Tus Neeg Hlau no
Yam Koj Xav Tau Rau Tus Neeg Hlau no
Yam Koj Xav Tau Rau Tus Neeg Hlau no
Yam Koj Xav Tau Rau Tus Neeg Hlau no
Yam Koj Xav Tau Rau Tus Neeg Hlau no
  1. Arduino UNO-https://www.ebay.com/p/Arduino-UNO-R3-Board-With-…
  2. HC-06 Bluetooth Module-https://www.ebay.com/itm/2PCS-Wireless-Serial-4-Pi…
  3. L298n tsav tsheb-https://www.ebay.com/itm/New-L298N-DC-Stepper-Mot…
  4. HC-SR04 Ultrasonic Sonar Sensor-https://www.ebay.com/itm/Ultrasonic-HC-SR04-HC-SR…
  5. 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…
  6. Ob lub DC motors-https://www.ebay.com/itm/Arduino-Smart-Car-Robot-…
  7. 2 x 9V Roj teeb
  8. 1K thiab 2K Resistors
  9. Jumper xov hlau (txiv neej-rau-txiv neej, txiv neej-rau-poj niam)
  10. Mini khob cij
  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

Muab ob lub xov hlau txuas rau txhua lub cav 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&so… Thaum kawg muab Universal log (lossis lub log caster log) tso rau tom qab ntawm lub chassis.

Kauj Ruam 3: Mount Cheebtsam

Mount Cheebtsam
Mount Cheebtsam
Mount Cheebtsam
Mount Cheebtsam

Mount Arduino UNO, L298n lub cev muaj zog tsav tsheb thiab Breadboard ntawm lub chassis. Txuas HC-06 Bluetooth module ntawm lub khob cij. Mount HC-SR04 Ultrasonic sensor nyob rau pem hauv ntej 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: HC-06 Bluetooth Module Kev Sib Txuas

HC-06 Bluetooth Module Kev Sib Txuas
HC-06 Bluetooth Module Kev Sib Txuas

Tswv yim: Daim duab kab lus no tsuas yog qhia koj, yuav ua li cas tus pin ntawm HC-06 Bluetooth module yuav tsum txuas nrog rau pawg thawj coj saib. Qhov no tsis yog daim duab qhia chaw ntawm peb tus neeg hlau.

Ua kom cov resistor sib txuas kom raug !!!

Koj tuaj yeem siv 'ob series 1K' resistors hloov ntawm 2K resistor.

Hwj chim Bluetooth module siv arduino 5V tso zis.

Tseem ceeb: Koj yuav tsum tshem tawm ib qho kev sib txuas uas koj tau ua rau arduino tus pin 0 (RX) thiab tus lej digital 1 (TX) ua ntej rub tawm cov cai. Txwv tsis pub koj cov cai yuav tsis tso rau hauv pawg thawj coj. Tom qab xa cov cai, koj tuaj yeem ntsaws xov hlau rau ob tus pin

Kauj Ruam 5: Kev Sib Txuas Hlau

Kev Sib Txuas Hlau
Kev Sib Txuas Hlau
Kev Sib Txuas Hlau
Kev Sib Txuas Hlau
Kev Sib Txuas Hlau
Kev Sib Txuas Hlau

L298n tsav tsheb:

+12V → 9V roj teeb (+)

GND → 9V roj teeb (-) thiab rau arduino board twg GND tus pin

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

HC-SR04 Ultrasonic Sonar sensor: VCC → +5V

Trig -arduino analog pin 1

Echo -arduino analog pin 2

GND → breadboard GND

HC-06 Bluetooth module:

VCC → +5V

GND → breadboard GND

TXD → arduino digital pin 0 (RX)

RXD → arduino digital pin 1 (TX) [tom qab dhau mus dhau qhov txuas txuas txuas]

Kauj Ruam 6: Programming Arduino UNO

  1. Nruab NewPing Library. (Ultrasonic sensor muaj nuj nqi tsev qiv ntawv)

    • Rub tawm NewPing.rar cov ntaub ntawv
    • Unrar cov ntaub ntawv thiab luam NewPing cov ntaub ntawv
    • Muab cov ntawv tso rau hauv Arduino cov tsev qiv ntawv nplaub tshev uas koj tau teeb tsa Arduino software hauv koj lub PC (piv txwv li:- C: / Arduino / libraries)
  2. Rub tawm thiab qhib bluetooth_obstacle_avoiding.ino
  3. Tshem tawm cov kev sib txuas ua rau arduino tus lej digital 0 (RX) thiab tus lej digital 1 (TX)
  4. Upload tus bluetooth_obstacle_avoiding.ino code
  5. Ua qhov tsim nyog txuas mus rau arduino tus lej digital 0 (RX) thiab tus lej digital 1 (TX) dua

Kauj ruam 7: Android App

Android App Cov
Android App Cov
Android App Cov
Android App Cov
  1. Rub tawm mkrbot.apk ntawm koj lub xov tooj ntawm tes
  2. Nruab lub app. Yog tias koj lub xov tooj ntawm tes tiv thaiv kev teeb tsa lub app, Mus rau chaw teeb tsa → kev nyab xeeb → pab kom tsis paub qhov chaw
  3. Qhib lub app
  4. Thaum pib, lub app yuav qhia "Disconnected" thiab HC-06 Bluetooth module liab LED yuav ntsais muag
  5. Coj mus rhaub lub cim Bluetooth ᛒ ntawm lub app
  6. Xaiv qee yam uas muaj npe nrog HC-06
  7. Tam sim no daim ntawv thov yuav qhia txuas nrog thiab LED hauv HC-06 Bluetooth module yuav teeb pom kev tas mus li yam tsis ntsais muag

Kauj Ruam 8: Zoo heev !

Zoo kawg !!!
Zoo kawg !!!
Zoo kawg !!!
Zoo kawg !!!

Tam sim no koj tuaj yeem tswj hwm tus neeg hlau los ntawm koj lub xov tooj ntawm tes hla Bluetooth thiab nws yuav cia li zam txhua qhov teeb meem ua ntej tsoo !!!

Kuv yuav zoo siab teb cov lus nug koj muaj

email rau kuv: [email protected]

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

Ua Tsaug

Pom zoo: