Cov txheej txheem:

Cawv Tshem Tawm Tsiaj: 6 Kauj Ruam
Cawv Tshem Tawm Tsiaj: 6 Kauj Ruam
Anonim
Alcohol Scavenging Pet Watch on
Alcohol Scavenging Pet Watch on
Cawv Tshem Tawm Tsiaj
Cawv Tshem Tawm Tsiaj
Cawv Tshem Tawm Tsiaj
Cawv Tshem Tawm Tsiaj
Cawv Tshem Tawm Tsiaj
Cawv Tshem Tawm Tsiaj

Alcohol Scavenging Pet yog arduino-based line-following robot tsim los ua si sib tham sib game nrog nws tus tswv. Tus neeg hlau txav raws txoj kab kab (kab xev dub) ntawm lub voj. Tus tswv kho tus tsiaj ib zaug ib zaug ntawm nws txoj kab kab. Thaum tus neeg hlau kuaj pom qhov txhaj tshuaj (teeb meem), nws nres ntawm nws xub ntiag thiab "hnov tsw" nws (txheeb xyuas qib cawv). Yog tias txhaj tshuaj muaj cawv, tus tsiaj tau txais kev zoo siab (ua suab paj nruag tshwj xeeb), thiab khaws cov tshuaj tua hauv nws lub zes (Lub Tsev Cawv Cawv Hauv Tsev). Yog tias qhov kev txhaj tshuaj tsis muaj cawv, nws tau poob siab (ua suab paj nruag tshwj xeeb), thiab "pov tseg" qhov kev txhaj tshuaj mus rau hauv lub thoob (Lub Tsev Dej Lub davhlau ya nyob twg). Tom qab ntawd nws tau rov qab mus rau nws txoj hauv kev kom tshem tawm ntau ntxiv!

Kauj Ruam 1: Sau Cov Khoom, Cov Khoom Siv thiab Cov Cuab Yeej

Sau Cov Khoom, Cov Khoom Siv thiab Cov Cuab Yeej
Sau Cov Khoom, Cov Khoom Siv thiab Cov Cuab Yeej
Sau Cov Khoom, Cov Khoom Siv thiab Cov Cuab Yeej
Sau Cov Khoom, Cov Khoom Siv thiab Cov Cuab Yeej

Cov Khoom thiab Cov Khoom:

Rau tus neeg hlau koj yuav xav tau:

  • 1x 2WD Smart Motor Robot Tsheb Chassis KIT
  • 2x Ntoo Boards 2mm - 25 x 50 cm
  • 2x Hlau Spacers 20mm
  • M2 x 6mm Screws
  • M2.5 x 6mm Bolts
  • M3 x 6 Bolts
  • Muab Ob Sab Ua Npuas Ncauj
  • 1 x Arduino Uno R3 ATmega 328P
  • 1x tsab ntawv pov thawj nrog Mini Breadboard rau Arduino Uno R3
  • 1x USB Cable Hom A/B.
  • 2x Kab Tom Qab TCRT5000 IR Sensors
  • 1x Ultrasonic Sensor HC-SR04
  • 1x MQ3 Cawv Ethanol Sensor
  • 1x LED xiav
  • 1 x Resistor 1kΩ
  • 1 x Piezo Passive Buzzer
  • 1x Haljia L9110S Dual-Channel H-Choj
  • 2x DC Motors (2WD Smart Motor Robot Tsheb Chassis KIT)
  • 1x Hloov (2WD Smart Motor Robot Tsheb Chassis KIT)
  • 1x 5000mAh Mini Power Bank nrog 2.4A Tso Tawm
  • Jumper Hlau

Rau kev teeb tsa koj yuav xav tau:

  • Qhib Board
  • Daim kab xev dub
  • Tsom iav
  • Cocktail Umbrellas
  • Dej Cawv thiab Tsis Haus Dej Cawv

Cov Cuab Yeej:

  • Me Ntsis Ntsia Hlau Ntsig Teeb
  • Pliers
  • Cutter
  • Kub Nplaum Phom
  • Qhov Chaw Nres Tsheb

Kauj ruam 2: Laser Txiav Chassis

Laser Txiav Chassis
Laser Txiav Chassis
Laser Txiav Chassis
Laser Txiav Chassis

Rub tawm Chassis.3dm cov ntaub ntawv thiab laser txiav cov ntu.

Kauj Ruam 3: Tsim Tus Neeg Hlau

Tsim Neeg Hlau
Tsim Neeg Hlau
Tsim Neeg Hlau
Tsim Neeg Hlau
Tsim Neeg Hlau
Tsim Neeg Hlau

Muab tso ua ke lub tshuab txiav laser, lub log thiab cov khoom siv hluav taws xob:

  1. Cov kab xaim dub thiab xim liab txuas rau cov pins ntawm DC Motors.
  2. Txhim kho DC Motors ntawm lub hauv paus chassis siv cov ntsia hlau thiab txiv ntoo, raws li qhia hauv daim duab.
  3. Thawb lub xov hlau jumper hla lub qhov hauv lub chassis, raws li qhia hauv daim duab.
  4. Txuas ob lub log pem hauv ntej thiab lub log tom qab.
  5. Mount Power Bank ntawm DC Motors.
  6. Mount Arduino UNO R3 nyob rau sab saud ntawm lub chassis.
  7. Muab daim Breadboard Expansion Board saum toj no.
  8. Ntxiv Dual-Channel H-Choj hauv qhov chaw xaiv thiab txuas DC Motors 'jumper xov hlau mus rau Tsav A thiab B pins. Sab laug DC Tsav txuas nrog Tsav A pins thiab sab xis rau lub Motor B pins, raws li qhia hauv daim duab qhia chaw.
  9. Ntxiv qhov Hloov chaw raws li qhia hauv daim duab. Txiav USB Cable - uas yuav txuas rau Power Bank nrog Arduino UNO R3 - hauv ob, thiab tshem tawm cov kab dub thiab liab ntawm ob sab.
  10. Muab cov xov hlau dub (hauv av) ua ke. Muab cov xov hlau liab txuas rau cov chaw hloov chaw. Rwb thaiv nrog kub kua nplaum.
  11. Mount lub Ultrasonic Sensor, IR Sensors thiab Alcohol Sensor ntawm qhov txiav qhov laser raws li pom hauv daim duab.
  12. Nrog ob lub hlau txuas txuas txhim kho IR Sensors 'ntu ntu rau lub chassis.
  13. Mount lub Ultrasonic Sensor ntawm lub chassis, raws li qhia hauv daim duab.
  14. Mount Alcohol Sensor ntawm lub chassis, raws li qhia hauv daim duab.
  15. Mount lub hau.

Kauj Ruam 4: Txuas Cov Khoom Siv Hauv Circuit (Daim Duab Duab)

Txuas Cov Khoom Siv Hauv Circuit (Daim Duab Duab)
Txuas Cov Khoom Siv Hauv Circuit (Daim Duab Duab)
Txuas Cov Khoom Siv Hauv Circuit (Daim Duab Duab)
Txuas Cov Khoom Siv Hauv Circuit (Daim Duab Duab)
Txuas Cov Khoom Siv Hauv Circuit (Daim Duab Duab)
Txuas Cov Khoom Siv Hauv Circuit (Daim Duab Duab)

1. Siv cov xov hlau jumper liab thiab cov xov hlau dub txuas ua lub zog thiab kab hauv av ntawm Breadboard Expansion Board. Txhua qhov av thiab lub hwj chim jumper xov hlau ntawm cov khoom siv hluav taws xob yuav txuas nrog kab no.

2. Txuas H-Bridges pins rau sab xis ntawm lub khob cij raws li qhia hauv daim duab qhia chaw.

3. Txuas lub Sensors pins mus rau tus pin ntawm lub khob cij raws li qhia hauv daim duab qhia chaw.

4. Ntxiv Buzzer thiab LED txuas nrog cov pins raws li qhia hauv daim duab qhia chaw.

Kauj ruam 5: Tsim Kev Teeb

Tsim Kev Teeb
Tsim Kev Teeb

Txoj kev taug yog tsim los ntawm kab xev dub nrog qhov dav 3, 5 cm. Cov davhlau ya nyob twg yog kab rov tav rau txoj kab thiab muaj qhov dav ntawm 13 cm thiab ntev li ntawm 40 cm. Txoj kev taug yuav tsum tsis muaj pob nyob rau saum npoo, uas tuaj yeem tiv thaiv lub khob los ntawm kev swb thaum nws raug thawb los ntawm tus neeg hlau.

Cov khob tsis muaj cawv lossis dej hauv lawv, tsuas yog lub kaus liab liab tau txau nrog cawv.

Tus neeg hlau yuav raug tso rau ntawm txoj kev kom muaj txoj kev dub ntawm ob qho tib si IR Sensors.

Kauj Ruam 6: Thauj Txoj Cai

Thauj cov Code
Thauj cov Code

Ntsiab lus:

Lub voj txav ntawm txoj kev yog txhais los ntawm cov haujlwm ua haujlwm. Lub luag haujlwm tseem ceeb yog: txav mus rau tom ntej (), txav rov qab (), tig sab laug (), tig rov qab () thiab nresMotor (). Kev sib hloov, ua tiav thaum tus neeg hlau mus txog lub davhlau ya nyob twg, tau hais tseg hauv kev ua haujlwm reverseDirection (). Lub luag haujlwm no tau tshwm sim thaum ob qho tib si IR lub ntsej muag nyob ntawm cov xim dub. Kev taw qhia ntawm tus neeg hlau mus rau lub davhlau ya nyob twg raug, tom qab kuaj pom tias lub khob yog cawv lossis dej, tau ua tiav hauv txoj haujlwm turnAroundObject ().

Hauv qhov khoob khoob (), dhau los ntawm kab lus Yog hais tias, cov txheej txheem yog qhia. Yog tias ob qho tib si IR sensors paub xim dawb, tus neeg hlau yuav mus tom ntej. Yog tias dub tau pom los ntawm ib qho ntawm IR lub cim, tus neeg hlau yuav rov ntsuas nws txoj kev txav mus raws txoj hauv kev.

Yog tias tus neeg hlau ntsib qhov teeb meem, hnov nrog Ultrasonic Sensor, tus neeg hlau yuav tsum nres thiab tshuaj xyuas nrog Alcohol Sensor MQ3, yog tias muaj cawv. Yog tias tus nqi rau cawv nce ntxiv, tom qab ntawd lub suab nrov yuav ua suab nkauj cawv thiab nws yuav tig lossis txav mus tom ntej kom lub khob raug thawb mus rau lub dav hlau cawv. Yog tias tus nqi tsis nce, tus buzzer yuav ua zaj nkauj dej thiab tib cov kauj ruam tau rov ua dua ntawm cov dav hlau dej.

Pom zoo: