Cov txheej txheem:

Roll-E [Upcyled E-Waste Robot]: 4 Cov Kauj Ruam (nrog Duab)
Roll-E [Upcyled E-Waste Robot]: 4 Cov Kauj Ruam (nrog Duab)

Video: Roll-E [Upcyled E-Waste Robot]: 4 Cov Kauj Ruam (nrog Duab)

Video: Roll-E [Upcyled E-Waste Robot]: 4 Cov Kauj Ruam (nrog Duab)
Video: НЕФТЬ и ЭКОЛОГИЯ. Спасут ли нас электромобили? 2024, Hlis ntuj nqeg
Anonim
Roll-E [Upcyled E-Waste Robot]
Roll-E [Upcyled E-Waste Robot]

Nco ntsoov peb cov phooj ywg khaws khib nyiab WALL · E? Zoo tus txiv neej no nyob ntawm no yog nws tus kwv yau, thiab nws lub npe yog Roll-E. Nov yog qhov kuv tau qhia thawj zaug, yog li thov ua siab zoo thiab qhia rau kuv paub txhua qhov yuam kev uas kuv yuav ua.

Tsis muaj leej twg nyiam nyeem cov ntawv qhia ntev yam tsis muaj cov duab yog li kuv tau sim ntau li ntau tau los ntxiv ntau cov duab los ua kom lub tsev neeg no yooj yim dua. Kuv kuj tau ua cov lus qhia kom luv thiab ncaj mus rau qhov ua tau [tsuas yog plaub qib].

Cov ntawv qhia yuav yog plaub ntu;

  • Khoom siv
  • Los ua ke
  • Kev Sib Txuas Hluav Taws Xob
  • Code.

Cia peb dhia hauv ….

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv

Cov Khoom Qhia

  1. Arduino Uno (x1) - Qhov no yuav yog lub hlwb ntawm peb cov neeg hlau.
  2. Lub Cev Tsav Tsheb (x1) - Rau kev tsav peb lub cav uas muaj zog, koj tuaj yeem siv L293D nti los ua qhov qub, yog tias koj paub yuav ua li cas. Kuv xaiv lub cav thaiv vim tias nws yooj yim siv, ntxiv rau nws muab chav ntxiv rau ntau lub cav rau kev ua haujlwm zoo dua.
  3. Geared Motors (x2) - Yuav txav lub cav ib puag ncig. Kev txuas xov hlau - Koj yuav xav tau ob peb yam no.
  4. Neeg Hlau Log (x2) - Cov no yuav ua raws li peb lub log.
  5. Mini Breadboard (x1) - Rau kev tsim peb lub voj voog yooj yim yam tsis tas yuav siv cov laug.
  6. Txias saib cov ntawv luam tawm Circuit (pcb) los ntawm cov khoom siv hluav taws xob qub - Qhov no yuav yog chasis ntawm peb cov neeg hlau, nws tsis ua haujlwm rau lub hom phiaj ntse, nws tsuas yog saib txias thiab ua kom zoo dua qub cov khoom siv hluav taws xob.
  7. Cov pob los ntawm yob ntawm deodorant [nrog tus tuav lub pob] - Qhov no yuav yog peb cov version ntawm lub omniwheel:)
  8. HC -SR04 Ultrasonic sensor - Rau kev zam teeb meem.
  9. Hloov (x1) - Rau tig los yog tua neeg hlau.
  10. Kev sib txuas xov hlau - Rau kev tsim vaj tsev.
  11. Kub kua nplaum phom - Kuv xav tias koj paub tias qhov no yog siv rau dab tsi.

Kauj ruam 2: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke

Ua ntej coj koj lub pcb txias thiab cim qhov twg koj xav kom koj cov arduino dag ntawm nws, siv tus cim. Tshem tawm cov khoom uas twb muaj lawm los ua chaw rau koj tus arduino.

Muab koj Arduino tso rau hauv pcb, siv lub qhov ntsia hlau rau ntawm Arduino raws li phau ntawv qhia, kos cov ntsiab lus ntawm pcb yog li koj tuaj yeem laum qhov ntawm pcb yog koj tuaj yeem siv cov ntsia hlau zoo tsim nyog los txuas koj lub rooj tsav xwm arduino rau pcb. Siv cov ntsia hlau tso cai rau koj tshem tawm thiab rov txuas Arduino los ntawm pcb yooj yim dua. Yog tias koj tsis muaj lub laum koj tuaj yeem ua lub qhov siv tus ntsia hlau tsav, nias tus ntsia hlau tsav tawm tsam qhov cim tseg thiab maj mam siv lub siab thaum tig tus ntsia hlau tsav

Nco tseg: nco ntsoov muab cov khoom tiv thaiv nruab nrab ntawm arduino thiab pcb los tiv thaiv kev sib txuas uas twb muaj lawm ntawm pcb los ntawm kev luv luv txuas rau arduino

2: Siv koj rab phom kub kub, ua kua nplaum rau lub khob cij me me rau qhov koj xav tau ntawm lub pcb, nco ntsoov tias lub ntsuas hluav taws xob ultrasonic yuav nyob ntawm lub khob cij thiab tsis muaj dab tsi yuav tsum thaiv nws, kom nws pom cov teeb meem.

3: Warp txuas cov xov hlau nyob ib ncig ntawm lub tshuab hluav taws xob, sim koj qhov kev sib txuas kom ntseeg tau tias lub cav ua haujlwm tom qab ntawd txhawb nrog cov kua nplaum kub. Tom qab ua qhov no txuas cov log tsheb rau lub cav.

4: Tig lub pcb [nrog koj cov arduino thiab daim ntawv txuas nrog] hla thiab kub kua nplaum tag nrho lub log thiab lub cav rau sab nraub qaum. Xa mus rau cov duab kom muaj lub tswv yim ntawm yuav ua li cas.

Txog kev tsim kom nrawm dua koj tuaj yeem hnov qab cov ntsia hlau thiab tsuas yog siv rab phom kub los tuav txhua yam ua ke. Yog tias ua tiav cov kua nplaum tuaj yeem ua tus insulator rau arduino.

Kauj Ruam 3: Kev Sib Txuas Hluav Taws Xob

Kev Sib Txuas Hluav Taws Xob
Kev Sib Txuas Hluav Taws Xob
Kev Sib Txuas Hluav Taws Xob
Kev Sib Txuas Hluav Taws Xob
Kev Sib Txuas Hluav Taws Xob
Kev Sib Txuas Hluav Taws Xob
Kev Sib Txuas Hluav Taws Xob
Kev Sib Txuas Hluav Taws Xob

Koj tau ua tiav nrog kev tsim rau tam sim no. Txawm li cas los xij, peb yuav teeb tsa lub tshuab hluav taws xob shied ntawm arduino tom qab peb tau ua qee qhov kev thaiv thawj zaug.

Txog kev sib txuas hluav taws xob peb yuav tsum xaim HC-SR04 ultrasonic sensor, lub pob nrog rub tawm qhov tiv thaiv mus rau arduino. Tom qab ntawd peb yuav txuas peb lub cav mus rau M3 thiab M4 ntawm lub cav tiv thaiv lub cav thiab teeb lub cav tiv thaiv mus rau arduino, tsoo cov xov hlau los ntawm lub ntsuas hluav taws xob ultrasonic thiab khawm hauv arduino tus pin 13, 12 thiab 8 feem.

Cov kev sib txuas rau HC-S04 ultrasonic sensor, khawm thiab rub qis resistor tau qhia hauv cov duab 1 thiab 2. 10k-ohm resistor txuas tus pin rau hauv av, qhov no ua tiav kom tus pin yuav nyeem LOW hauv arduino thaum tsis muaj qhov hluav taws xob ntws los ntawm qhov hloov.

Lub cev tiv thaiv kab mob Kuv tab tom siv yog daim ntawv 1 ntawm Adafruit lub cev tiv thaiv kab mob, tsis hais txog ntawm lub cav thaiv koj siv los v1 lossis v2 lossis cov khoom sib txuas Kuv tsis xav tias kev sib txuas yuav txawv ntau qhov kuv tau ua. Txog rau lub cav txuas, tsuas yog txuas sab laug lub cev muaj zog txuas mus rau M4 lub dav hlau ntawm lub cav thaiv lub cev thiab lub cev muaj zog rau M3 lub dav hlau [nws tsis muaj teeb meem dab tsi uas koj txuas rau lawv, Kuv tsuas tau hais qhia vim yog kuv tus lej]. Xa mus rau daim duab 3 thiab 4.

Ps. Duab 4 (Schematic lub cev sib txuas) tsis yog kuv li, kuv tsis muaj sijhawm kos ib qho yog li kuv tau txais los ntawm

Tom qab ua koj qhov kev sib txuas, teeb tsa lub cav thaiv rau lub arduino.

Kauj ruam 4: Code

Code
Code

Ua ntej koj tuaj yeem khiav cov cai koj xav tau los nruab AFMotor.h lub tsev qiv ntawv. Ntawd yog lub tsev qiv ntawv rau lub cav thaiv. Txhawm rau ua qhov no ua raws qhov txuas hauv qab no nws muaj cov kauj ruam los ua qhov no thiab tseem muaj qhov txuas uas koj tuaj yeem rub cov ntaub ntawv hauv tsev qiv ntawv los ntawm.

AFMotor.h lub tsev qiv ntawv teeb tsa txuas-https://learn.adafruit.com/adafruit-motor-shield/…

Tom qab kev txhim kho kuv pom zoo kom koj txheeb xyuas dc lub cev muaj zog chav kawm ntawm lub tsev qiv ntawv siv kom paub siv nws li cas. Ua raws qhov txuas hauv qab no rau qhov siv.

AF_DCMotor Class reference link-https://learn.adafruit.com/afmotor-library-referen…

Kuv tau txuas cov ntaub ntawv kos duab arduino rau cov cai hauv qab no. Thaum khiav cov cai qhib cov ntawv saib xyuas kom taug qab yog tias cov cai tau ua haujlwm raws li nws yuav tsum tau ua

Qhov ntawd yog cov txiv neej koj tau ua tiav, thov qhia rau kuv paub yuav ua li cas kuv tuaj yeem ua kom cov lus qhia no zoo dua thiab muaj teeb meem koj tuaj yeem muaj hauv lub thawv lus. Ua tsaug

Pom zoo: