Cov txheej txheem:

Smartphone Tswj RC Tsheb Siv Arduino: 13 Cov Kauj Ruam (nrog Duab)
Smartphone Tswj RC Tsheb Siv Arduino: 13 Cov Kauj Ruam (nrog Duab)

Video: Smartphone Tswj RC Tsheb Siv Arduino: 13 Cov Kauj Ruam (nrog Duab)

Video: Smartphone Tswj RC Tsheb Siv Arduino: 13 Cov Kauj Ruam (nrog Duab)
Video: TOP NEWS PLUS LIVE SHOW * NYIAJ $600 SSI CA TUAJ SAI NO * XOV XWM TSHIAB 6/3/2021 2024, Kaum ib hlis
Anonim
Smartphone Tswj RC Tsheb Siv Arduino
Smartphone Tswj RC Tsheb Siv Arduino

Cov Lus Qhia no qhia yuav ua li cas thiaj ua tau Smartphone tswj Arduino Robot Car.

Hloov kho rau 25 Lub Kaum Hli 2016

Kauj ruam 1: Youtube Video Txuas

Image
Image

Kauj Ruam 2: Qhov Chaw thiab Cov Cuab Yeej Yuav Tsum Tau

Qauv / Chassis
Qauv / Chassis

1. 4WD Robot Chassis kit 2. Arduino Uno

3. LM298 H choj Module

4. Bluetooth Module HC-05

5. 12v Li-po Roj teeb

6. Txiv neej-Poj Niam Jumper Xov

7. Txiv neej-Txiv neej Jumper Wires

8. Cov Kab Xev lossis lwm daim kab xev 9. Smartphone

Kauj Ruam 3: Qauv / Chassis

Koj tuaj yeem yuav Npaj Ua 4WD Tsheb chassis lossis koj tuaj yeem ua nws los ntawm kev siv PVC / Txhua yam ntawm Hard Board.

Kauj Ruam 4: Tsav / Actuator

Tsav / Actuator
Tsav / Actuator

Hauv qhov haujlwm no kuv siv 6v DC lub cev muaj zog. Koj tuaj yeem siv txhua yam ntawm 6v DC lub cev muaj zog.

Kauj Ruam 5: Npaj Chaw Tsav Tsheb

Npaj cov Motors Terminal
Npaj cov Motors Terminal
Npaj cov Motors Terminal
Npaj cov Motors Terminal
Npaj cov Motors Terminal
Npaj cov Motors Terminal

Txiav 4 daim ntawm cov xov tooj liab thiab dub nrog ntev kwv yees li 5 txog 6 nti.

0.5 sqmm xov hlau tuaj yeem siv tau.

Tshem tawm cov rwb thaiv tsev los ntawm cov xov hlau ntawm txhua qhov kawg Siv cov xov hlau txuas mus rau lub davhlau ya nyob twg

Koj tuaj yeem tshawb xyuas lub cev muaj zog los ntawm kev txuas nws mus rau lub roj teeb yog tias nws tig mus rau pem hauv ntej (xaim liab nrog qhov zoo thiab xaim dub nrog lub davhlau ya nyob twg tsis zoo ntawm lub roj teeb) ces qhov kev sib txuas raug lawm.

Kauj Ruam 6: Txhim Kho Lub Cev Tsav Tsheb thiab teeb tsa lub ru tsev saum toj

Mount Lub Cev Tsav Tsheb thiab Txhim Kho Lub ru tsev saum toj
Mount Lub Cev Tsav Tsheb thiab Txhim Kho Lub ru tsev saum toj
Mount Lub Cev Tsav Tsheb thiab Txhim Kho Lub ru tsev saum toj
Mount Lub Cev Tsav Tsheb thiab Txhim Kho Lub ru tsev saum toj
Mount Lub Cev Tsav Tsheb thiab Txhim Kho Lub ru tsev saum toj
Mount Lub Cev Tsav Tsheb thiab Txhim Kho Lub ru tsev saum toj
Mount Lub Cev Tsav Tsheb thiab Txhim Kho Lub ru tsev saum toj
Mount Lub Cev Tsav Tsheb thiab Txhim Kho Lub ru tsev saum toj

Kauj Ruam 7: Tus Tswj

Maub los
Maub los

Arduino UNO yog lub hauv paus qhib microcontroller board raws li Microchip ATmega328P microcontroller thiab tsim los ntawm Arduino.cc. Lub rooj tsavxwm tau teeb tsa cov teeb tsa digital thiab analog input/output (I/O) pins uas tuaj yeem cuam tshuam rau ntau yam kev nthuav dav nthuav dav (ntaub thaiv npog) thiab lwm yam kev sib txuas. Lub Rooj Tswjhwm Saib muaj 14 Digital pins, 6 Analog pins, thiab programmable nrog Arduino IDE (Integrated Development Environment) ntawm hom B USB cable. Nws tuaj yeem siv tau los ntawm USB cable lossis los ntawm roj teeb sab nraud 9 volt, txawm hais tias nws lees txais qhov hluav taws xob nruab nrab ntawm 7 thiab 20 volts. Nws kuj zoo ib yam li Arduino Nano thiab Leonardo. Kev tsim kho cov khoom siv kho vajtse raug faib raws li Creative Commons Attribution Share-Alike 2.5 daim ntawv tso cai thiab muaj nyob ntawm Arduino lub vev xaib. Cov txheej txheem thiab tsim cov ntaub ntawv rau qee cov khoos phis tawj kuj tseem muaj. "Uno" txhais tau tias yog ib qho hauv Italis thiab tau raug xaiv los cim qhov kev tso tawm ntawm Arduino Software (IDE) 1.0. Uno board thiab version 1.0 ntawm Arduino Software (IDE) yog cov ntawv siv ntawm Arduino, tam sim no hloov pauv mus rau qhov tshaj tawm tshiab. Pawg Uno yog thawj zaug hauv kab ntawv USB Arduino cov laug cam, thiab tus qauv siv rau Arduino platform. ATmega328 ntawm Arduino Uno los npaj ua ntej nrog lub bootloader uas tso cai rub tawm cov cai tshiab rau nws yam tsis siv lub khoos phis tawj khoos phis tawj sab nraud. [3] Nws sib txuas lus siv tus txheej txheem qub STK500. Uno kuj txawv ntawm txhua lub rooj ua ntej hauv qhov uas nws tsis siv FTDI USB-rau-serial tsav tsheb nti. Hloov chaw, nws siv Atmega16U2 (Atmega8U2 txog rau version R2) programmed li USB-rau-serial converter.

Cov tswj hwm microcontrollers feem ntau yog siv lub suab lus ntawm cov yam ntxwv los ntawm cov lus programming C thiab C ++. Ntxiv nrog rau kev siv cov cuab yeej sib txuas ua ke ib txwm muaj, Arduino txoj haujlwm muab kev txhim kho ib puag ncig ib puag ncig (IDE) raws li Kev Ua Haujlwm cov lus.

Kauj Ruam 8: H Choj (LM 298 Module)

H Choj (LM 298 Module)
H Choj (LM 298 Module)
H Choj (LM 298 Module)
H Choj (LM 298 Module)
H Choj (LM 298 Module)
H Choj (LM 298 Module)

H-Choj yog dab tsi? Lub sij hawm H choj tau muab los ntawm qhov piv txwv zoo ib yam ntawm lub Circuit Court. Nws yog Circuit Court uas tuaj yeem tsav DC lub cav rau pem hauv ntej thiab rov qab. Ua haujlwm: Saib daim duab saum toj no kom nkag siab txog kev ua haujlwm ntawm H choj.

Nws suav nrog 4 lub tshuab hluav taws xob hloov pauv S1, S2, S3 thiab S4 (Transistors / MOSFETs / IGBTS). Thaum cov hloov pauv S1 thiab S4 raug kaw (thiab S2 thiab S3 tau qhib) qhov ntsuas hluav taws xob zoo yuav siv rau ntawm lub cav. yog siv thoob plaws lub cev muaj zog, yog li tig rov qab.

Nco tseg: Cov hloov pauv hauv tib sab caj npab (S1, S2 lossis S3, S4) yeej tsis raug kaw tib lub sijhawm, nws yuav ua rau luv luv Circuit Court. H cov choj muaj nyob ua cov kab hluav taws xob sib txuas, lossis koj tuaj yeem tsim koj tus kheej los ntawm kev siv 4transistors lossis MOSFETs. Hauv peb qhov xwm txheej peb siv LM298 H-choj IC uas tuaj yeem tso cai tswj kev nrawm thiab kev taw qhia ntawm lub cav.

Nqe lus piav qhia:

Tawm 1: DC tsav 1 "+" lossis stepper motor A+

Tawm 2: DC tsav 1 "-" lossis stepper motor A-

Tawm 3: DC tsav 2 "+" lossis stepper motor B+

Tawm 4: Tsav B coj tawm

12v Pin: 12V input tab sis koj tuaj yeem siv 7 txog 35V

GND: Hauv av

5v Pin: 5V tso tawm yog 12V jumper nyob rau hauv qhov chaw, zoo tagnrho rau txhawb koj li Arduino (thiab lwm yam)

EnA: Pab kom PWM teeb liab rau Tsav A (Thov saib "Arduino Sketch Considerations" ntu)

IN1: Pab kom Tsav Tsheb A.

IN2: Pab kom MotorA

IN3: Pab kom MotorB

IN4: Pab kom MotorB

EnB: Pab kom PWM teeb liab rau Tsav B

Kauj Ruam 9: Lub Hwj Huam Fais Fab

Hwj chim Source
Hwj chim Source

Cov roj teeb no tuaj yeem siv tau:

1. AA Alkaline Roj Teeb (Tsis Rov Siv Tau) 2. AA NiMh lossis NiCd Roj Teeb (Rechargeable)

3. Li Ion Roj Teeb

4. LiPo Roj Teeb

Kauj Ruam 10: Hluav Taws Xob Hluav Taws Xob

Txhawm rau thaiv koj xav tau qee cov xov hlau jumper. Txuas cov xov hlau liab ntawm ob lub cav (ntawm txhua sab) ua ke thiab cov xov hlau dub ua ke.

Yog li thaum kawg koj muaj ob lub davhlau ya nyob twg ntawm txhua sab. MOTORA yog tus saib xyuas ob lub tshuab sab xis, sib xws ob lub tshuab sab laug txuas nrog MOTORB Ua raws cov lus qhia hauv qab no txhawm rau txuas txhua yam.

Kev Sib Txuas Tsav Tsheb:

Tawm 1 -> Sab Liab Sab Tsav Liab Hlau (+)

Tawm2 -> Sab Liab Sab Tsav Dub Hlau (-)

Out3 -> Sab xis Lub Cev Tsav Hluav Taws Xob Liab (+)

Out4 -> Txoj Cai Sab Tsav Dub Hlau (-)

LM298 -> Arduino

IN1 -> D5

IN2-> D6

IN2 -> D9

IN2-> D10

Bluetooth Module -> Arduino

Rx-> Tx

Tx -> Rx

GND -> GND

Vcc -> 3.3V

Hwj chim:

12V -> Txuas Roj Teeb Liab Hlau

GND -> Txuas Roj Teeb Dub hlau thiab Arduino GND tus pin

5V -> Txuas rau Arduino 5V tus pin

Kauj Ruam 11: Tswj Logic

Tswj Logic
Tswj Logic

Kauj ruam 12: Software

Software
Software
Software
Software

Ib feem ntawm software yog yooj yim heev, nws tsis xav tau ib lub tsev qiv ntawv. Yog tias koj nkag siab cov lus logic hauv cov qib ua ntej koj tuaj yeem sau koj tus lej. Kuv tsis tau siv sijhawm ntau los sau cov cai, yog li tsuas yog siv tus lej sau los ntawm lwm tus. Txhawm rau tswj lub Robot Tsheb, Kuv tab tom siv kuv lub xov tooj smartphone. Qhov smartphone txuas nrog tus tswj hwm ntawm Bluetooth module (HC -06 / 05) Rub tawm App Tom qab teeb tsa lub app, koj yuav tsum txuas nws nrog Bluetooth module. Lub password rau ua khub yog "1234".

Rub tawm Link: https://play.google.com/store/apps/details? Id = brau …

Kauj Ruam 13: Arduino Code

Arduino Txoj Cai
Arduino Txoj Cai

==> Arduino chaws

Los yog

www.mediafire.com/folder/jbgp52d343bgj/Smartphone_Controlled_RC_Car_Using_Arduino_%7C%7C_By_Tafhim

Pom zoo: