Cov txheej txheem:

Arduino - Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau: 6 Cov Kauj Ruam (nrog Duab)
Arduino - Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau: 6 Cov Kauj Ruam (nrog Duab)

Video: Arduino - Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau: 6 Cov Kauj Ruam (nrog Duab)

Video: Arduino - Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau: 6 Cov Kauj Ruam (nrog Duab)
Video: Arduino | Maze Solving Robot (MicroMouse) \ Wall Following Robot 2024, Kaum ib hlis
Anonim
Arduino | Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau
Arduino | Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau
Arduino | Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau
Arduino | Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau
Arduino | Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau
Arduino | Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau
Arduino | Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau
Arduino | Cov Maze Solving Robot (MicroMouse) Phab Ntsa Tom Qab Neeg Hlau

Zoo siab txais tos Kuv yog Isaac thiab qhov no yog kuv thawj tus neeg hlau "Striker v1.0". Qhov Robot no tau tsim los daws qhov yooj yim Maze. tej zaum yuav xav tau kev hloov pauv hauv cov cai thiab tsim tab sis nws yog txhua yam yooj yim ua.

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov
Qhov
Qhov
Qhov
Qhov

Ua ntej tshaj plaws Koj yuav tsum paub dab tsi koj tab tom cuam tshuam nrog.

Neeg hlau = Hluav taws xob + Kho vajtse + Software1- Hluav taws xob: roj teeb muaj ntau yam tshwj xeeb uas koj yuav tsum tsuas yog paub tias Tam sim no thiab Voltage koj xav tau ntau npaum li cas.

2- Kho vajtse: "Lub Cev, Lub Cev, Lub Cev Tsav Tsheb, Lub Cev Tsav Tsheb, Lub Tshuab Hluav Taws Xob thiab Tus Tswj" koj tsuas yog yuav tsum tau txais qhov tseem ceeb uas ua txoj haujlwm, tsis tas yuav tau txais tus nqi kim zoo li tus tswj hwm rau txoj haujlwm yooj yim.

3- Software: Cov cai yog txhua yam hais txog kev xav. Thaum koj nkag siab tias tus tswj hwm ua haujlwm li cas nws yuav dhau los ua yooj yim rau koj xaiv cov haujlwm thiab ua kom txoj cai yooj yim dua. Cov cai hais lus yog txiav txim siab los ntawm tus tswj hwm.

Daim Ntawv Teev Npe:

  1. Arduino UAS
  2. 12v DC lub cev muaj zog (x2)
  3. Log (x2)
  4. Tsav Tsheb (L298N)
  5. Sensor nrug (Ultra Sonic)
  6. Hlau
  7. Roj teeb 12v (1000 mAh)

Cov Cuab Yeej Sau:

  1. Roj teeb Charger
  2. Acrylic ntawv
  3. Soldering Hlau
  4. Hlau txiav
  5. Nylon Zip qhwv

Rau kev lom zem ntxiv koj tuaj yeem siv LEDs los teeb nws tab sis nws tsis tseem ceeb heev.

Kauj Ruam 2: Tsim Lub Cev

Lub Cev Tsim
Lub Cev Tsim
Lub Cev Tsim
Lub Cev Tsim
Lub Cev Tsim
Lub Cev Tsim

Lub tswv yim tseem ceeb yog teeb tsa ntu ib sab saum toj ntawm lub cev thiab siv Nylon Zip Wrap ruaj khov Arduino thiab Cov xov hlau yuav ua kom ruaj khov ntxiv ua tsaug rau lawv lub teeb yuag.

Kuv siv CorelDRAW Txhawm rau tsim lub cev Thiab kuv tau ua qhov ntxiv thaum muaj kev hloov pauv yav tom ntej.

Kuv tau mus rau lub rooj cob qhia hauv ib cheeb tsam kom siv lub tshuab txiav laser tom qab ntawd kuv tau pib tsim nws txhua qhov ua ke. Ntawm Los, Kuv tau hloov qee qhov vim tias Cov Motors tau ntev dua qhov kuv xav tau. Kuv xav hais tias koj tus neeg hlau tsis tas yuav tsum ua kom zoo ib yam li kuv li.

Cov ntawv PDF thiab Cov Ntaub Ntawv CorelDRAW tau txuas nrog.

Yog tias koj tsis tuaj yeem laser txiav qhov tsim, tsis txhob txhawj xeeb. Tsuav koj muaj Arduino, tib lub ntsuas cua, thiab lub cev muaj zog ces koj yuav tsum tuaj yeem tau txais kuv cov cai los ua haujlwm ntawm koj tus neeg hlau nrog kev hloov pauv me me.

Kauj Ruam 3: Kev Siv (tsev)

Kev Siv (tsev)
Kev Siv (tsev)
Kev Siv (tsev)
Kev Siv (tsev)
Kev Siv (tsev)
Kev Siv (tsev)

Tus qauv tsim ua kom yooj yim kho cov sensors ntawm lub cev.

Kauj ruam 4: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Nov yog daim duab schematic ntawm tus neeg hlau. cov kev sib txuas no cuam tshuam nrog cov cai. Koj tuaj yeem hloov qhov kev sib txuas tab sis nco ntsoov hloov cov cai nrog nws

Kuv xav piav "Ultrasonic sensor"

Ib qho Ultrasonic sensor yog lub cuab yeej uas tuaj yeem ntsuas qhov deb mus rau ib qho khoom siv los ntawm kev siv lub suab nthwv dej. Nws ntsuas qhov deb los ntawm kev xa tawm lub suab nthwv dej ntawm qhov tshwj xeeb thiab mloog rau lub suab nthwv dej kom thim rov qab. Los ntawm kev kaw lub sijhawm dhau los ntawm lub suab yoj tau tsim thiab lub suab nthwv dej rov qab los. Qhov no zoo ib yam li kev ua haujlwm ntawm Sonar thiab Radar.

Kev sib txuas ntawm Ultrasonic Sensor mus rau Arduino:

  1. GND tus pin txuas nrog hauv av.
  2. VCC tus pin txuas nrog Qhov Zoo (5v).
  3. Echo tus pin txuas nrog Arduino. (xaiv ib tus pin thiab phim nws rau tus lej)
  4. TRIG tus pin txuas nrog rau Arduino. (xaiv ib tus pin thiab phim nws rau tus lej)

Koj yuav ua av ib txwm thiab txuas txhua GNDs rau nws (ntsuas, Arduino, Tsav tsheb) txhua thaj chaw yuav tsum txuas nrog.

Rau Vcc Pins kuj txuas 3 Sensors rau 5v Pin

(koj tuaj yeem txuas lawv mus rau Arduino lossis Tus Tsav Tsheb Kuv pom zoo Tsav Tsheb)

Nco tseg: Tsis txhob txuas lub Sensors rau qhov hluav taws xob siab dua 5v lossis nws yuav raug puas tsuaj.

Tsav Tsheb

L298N H-choj: nws yog IC uas tuaj yeem tso cai rau koj los tswj qhov nrawm thiab kev taw qhia ntawm ob lub DC motors, lossis tswj ib lub bipolar stepper motor tau yooj yim. L298N H-tus tsav tsheb tuaj yeem siv nrog lub cav uas muaj qhov nruab nrab ntawm 5 thiab 35V DC.

Kuj tseem muaj tus tswj hwm 5v tswj hwm, yog li yog tias koj cov khoom siv hluav taws xob nce mus txog 12v koj tseem tuaj yeem siv 5v los ntawm pawg thawj coj saib.

Xav txog daim duab - phim cov lej tawm tsam cov npe hauv qab daim duab:

  1. DC tsav 1 "+"
  2. DC tsav 1 "-"
  3. 12v jumper - tshem qhov no yog siv cov khoom siv hluav taws xob ntau dua 12v DC. Qhov no ua rau on-board 5v tus tswj hwm
  4. Txuas koj lub zog hluav taws xob ntawm qhov no, qhov siab tshaj ntawm 35v DC.
  5. GND
  6. 5v tso tawm yog tias 12v jumper nyob hauv qhov chaw
  7. DC lub cev muaj zog 1 pab kom jumper. Rem tshem lub jumper thiab Txuas rau PWM tso zis rau DC lub cev muaj zog tswj ceev.
  8. IN1 Kev Taw Qhia Kev Tswj
  9. IN2 Kev Taw Qhia Kev Tswj
  10. IN3 Kev Taw Qhia Kev Tswj
  11. IN4 Kev Tswj Kev Tswj
  12. DC lub cev muaj zog 2 pab kom jumper. Tshem lub jumper thiab Txuas rau PWM tso tawm rau DC lub cev muaj zog tswj ceev
  13. DC tsav 2 "+"
  14. DC tsav 2 "-"

Nco tseg: Tus Tsav Tsheb no tso cai 1A rau ib channel, tso dej ntau ntxiv tam sim no yuav ua rau IC puas tsuaj.

Roj teeb

Kuv siv 12v Roj teeb nrog 1000 mAh.

Cov lus Saum toj no qhia tias yuav ua li cas qhov hluav taws xob poob thaum lub roj teeb tawm. koj yuav tsum nco ntsoov nws thiab koj yuav tsum rov roj teeb tas li.

Lub sijhawm tso tawm yog qhov ntsuas Ah lossis mAh faib los ntawm qhov tam sim no.

Yog li rau lub roj teeb 1000mAh nrog lub nra uas rub 300mA koj muaj:

1000/300 = 3.3 teev

Yog tias koj tso dej ntau ntxiv tam sim no lub sijhawm yuav txo qis thiab lwm yam. Nco tseg: Nco ntsoov tias koj tsis pub dhau lub Roj Teeb Tawm Tam Sim No lossis nws yuav raug puas tsuaj.

Kuj rov ua ib qho Av thiab txuas txhua GNDs rau nws (sensors, Arduino, Driver) txhua thaj chaw yuav tsum txuas nrog.

Kauj ruam 5: Coding

Coding
Coding
Coding
Coding

Kuv tau ua cov haujlwm no thiab kuv muaj kev lom zem coding tus neeg hlau no.

Lub tswv yim tseem ceeb yog kom tsis txhob tsoo phab ntsa thiab kom tawm ntawm lub maze.we muaj 2 mazes yooj yim thiab kuv yuav tsum khaws qhov ntawd vim tias lawv txawv.

Kev tshawb nrhiav xiav siv phab ntsa raug raws cov txheej txheem.

Liab liab siv sab laug phab ntsa tom qab algorithm.

Daim duab saum toj no qhia kev tawm hauv ob lub mazes.

Txoj cai ntws:

  1. txhais cov pins
  2. txhais cov zis thiab cov tswv yim pins
  3. xyuas cov sensor nyeem ntawv
  4. siv cov cim nyeem ntawv txhawm rau txheeb xyuas phab ntsa
  5. kos thawj txoj kev (yog tias nws tau sab laug ces ua raws phab ntsa sab laug, yog tias nws yog txoj cai ua raws phab ntsa sab xis)
  6. Siv PID kom tsis txhob tsoo phab ntsa thiab tswj lub cav nrawm

Koj tuaj yeem siv tus lej no tab sis hloov tus pin thiab tus lej tas mus li kom tau txais txiaj ntsig zoo tshaj plaws.

Ua raws Qhov Txuas Txuas no rau cov cai.

create.arduino.cc/editor/is7aq_shs/391be92…

Ua raws Qhov Txuas Txuas no rau lub tsev qiv ntawv thiab Arduino Code File.

github.com/Is7aQ/Maze-Solving-Robot

Kauj Ruam 6: Muaj Kev Lom Zem

Nco ntsoov kom muaj kev lom zem: DThis yog txhua yam rau kev lom zem tsis txhob poob siab yog tias nws tsis ua haujlwm lossis yog tias muaj ib yam tsis raug. taug qab qhov yuam kev thiab tsis txhob tso tseg. Ua tsaug rau kev nyeem thiab kuv vam tias nws tau pab.

E-mail: [email protected]

Pom zoo: