Cov txheej txheem:

Autonomous thiab Remote Control Robot: 11 Kauj Ruam
Autonomous thiab Remote Control Robot: 11 Kauj Ruam

Video: Autonomous thiab Remote Control Robot: 11 Kauj Ruam

Video: Autonomous thiab Remote Control Robot: 11 Kauj Ruam
Video: Google Colab - Searching for News with Python! 2024, Kaum ib hlis
Anonim
Autonomous thiab Remote Control Robot
Autonomous thiab Remote Control Robot

Qhov kev tsim neeg hlau no yog txhais tau tias pheej yig thiab nrawm. Nov yog yam koj yuav xav tau pib: Kho vajtse

  • 1 Raspberry Pi
  • 1 Dual H-Choj Tsav Tsav Tsheb
  • 1 Pob Converter
  • 2 3V-6V DC Motors
  • HC-SR04 Ultrasonic Sensor

Lwm yam

  • Lub thawv los ua lub chassis

    Kuv lub thawv yog 7.5 "x 4" x 2"

  • Rab yaj phom kub
  • Ib rab riam los yog txiab txiab
  • Ib qho hlau txuas

Kauj Ruam 1: Tau Txais Ib Lub Thawv

Tau Txais Ib Lub Thawv
Tau Txais Ib Lub Thawv

Sim nrhiav lub npov uas haum rau txhua yam ntawm koj lub cuab yeej yam tsis tau tawm hauv chav ntau. Ib lub thawv uas ntsuas 7.5 "x 4" x 2 "haum rau txhua yam ntawm kuv cov khoom txig.

Kauj Ruam 2: Txiav Qhov Rau Cov Tsav Tsheb

Txiav Qhov Rau Cov Tsav Tsheb
Txiav Qhov Rau Cov Tsav Tsheb

Txiav tawm qhov ntawm ob sab ntawm lub cev kom nws tuaj yeem tsim kev sib txuas ntawm lub log thiab lub cev muaj zog.

Kauj Ruam 3: Tus Thawj Coj Ua Rau Hauv Lub Cev Sib Txuas

Solder Leads Onto Motor Connections
Solder Leads Onto Motor Connections

Feem ntau DC lub cav yuav tuaj nrog lub voj me me uas koj yuav xav tau txuas. Siv cov xaim txuas mus rau lub loops yog txoj hauv kev zoo tshaj kom ntseeg tau tias muaj kev sib txuas zoo.

Cov ua yuav txuas nrog cov txiaj ntsig ntawm H-Choj tsav tsheb.

Kauj Ruam 4: Cov Kua Hluav Taws Xob Sab Hauv Lub Thawv

Cov Kua Hluav Taws Xob Sab Hauv Lub Thawv
Cov Kua Hluav Taws Xob Sab Hauv Lub Thawv

Siv cov kua nplaum kub, tso koj lub cav rau hauv lub thawv kom lawv ruaj ntseg tiv thaiv cov ces kaum. Thov siv cov kua nplaum ntau thiab nco ntsoov tuav hauv qhov chaw kom txog thaum cov kua nplaum tau khov.

Kauj Ruam 5: Txuas H-Choj mus rau Tsav Tsheb

Txuas H-Choj mus rau Tsav Tsheb
Txuas H-Choj mus rau Tsav Tsheb

Txuas cov hlau lead uas tab tom tawm ntawm lub cav mus rau cov txiaj ntsig ntawm H-Choj. Saib (https://www.bananarobotics.com/shop/How-to-use-the-L298N-Dual-H-Bridge-Motor-Driver) kom paub ntau ntxiv txog L298N H-Bridge.

Kauj Ruam 6: Tus Thawj Coj Ua Rau Hauv Buck Converter

Solder Leads Onto Buck Converter
Solder Leads Onto Buck Converter

Txhawm rau ua kom H-Choj Kuv yuav siv 2 1s lipo roj teeb. Thaum them tag nrho cov roj teeb no tso tawm ntau dua 8V thaum sib txuas ua ke. Kuv tsis xav tau kuv lub cav ua haujlwm nrawm heev yog li kuv siv lub pob hloov pauv kom coj qhov hluav taws xob mus rau 5V. Tsis muaj teeb meem dab tsi koj tab tom siv los txhawb H-Choj koj yuav tsum tau ua haujlwm ib puag ncig los ntawm H-Choj rau koj li Raspberry Pi.

Yog tias koj tab tom siv lub zog siv hluav taws xob uas nyob hauv thaj tsam ntawm 4V - 7V ces koj yuav tsis tas yuav siv lub pob hloov pauv. Hauv qhov no, cov coj los ntawm lub hwj chim tuaj yeem txuas ncaj qha rau H-Choj. Txawm li cas los xij, koj tseem yuav tsum tau xaim xov ntxiv los ntawm hauv av ntawm H-Choj mus rau tus pin hauv av ntawm Raspberry Pi.

Kauj Ruam 7: Nruab Buck Converter

Nruab Buck Converter
Nruab Buck Converter

Nrhiav ib qho chaw los lo koj cov nyiaj hloov pauv rau hauv. Xyuas kom koj nkag tau mus rau cov ntsia hlau me uas nyob rau saum lub rooj tsavxwm. Peb yuav siv cov ntsia hlau no los kho qhov hluav taws xob tso tawm.

Kauj Ruam 8: Nruab LIPO Roj Teeb

Nruab LIPO Roj Teeb
Nruab LIPO Roj Teeb

CEEB TOOM! Kev siv roj teeb lipo tsis zoo tuaj yeem ua rau lub cev puas tsuaj lossis puas tsuaj rau vaj tse. Xyuas kom koj nkag siab zoo hauv qab thiab tawm ntawm cov roj teeb lipo ua ntej siv lawv hauv ib qhov haujlwm. Txhawm rau ruaj ntseg kuv cov roj teeb lipo nyob hauv qhov chaw Kuv siv lub velcro zoo li cov khoom siv sab hauv ntawm lub hau. Qhov no ua kom ntseeg tau tias lawv tsis tuaj yeem rub tau yooj yim lossis xuas nrig los ntawm tus pin.

Kauj Ruam 9: Nruab HC-SR04 Ultrasonic Sensor

Nruab HC-SR04 Ultrasonic Sensor
Nruab HC-SR04 Ultrasonic Sensor

Nrhiav ib qho chaw los txiav tawm qhov rau lub ntsuas ultrasonic. Xwb, lub sensor tuaj yeem ntsia tau rau saum lub npov. Yog tias tsim cov neeg hlau tsis siv neeg tsis yog koj lub hom phiaj ces koj tuaj yeem tshem tawm lub ntsuas ultrasonic vim nws yuav tsis tsim nyog los tswj cov neeg hlau nyob deb.

Kauj Ruam 10: Txuas kab

Thaiv
Thaiv

Yog tias koj xav kom tuaj yeem luam theej duab ntawm github thiab siv nws yam tsis muaj teeb meem ces koj yuav tsum xaim koj lub neeg hlau raws nraim li kuv yuav piav qhia.

Dual H-Choj

IN1 - GPIO 2

IN2 - GPIO 3

IN3 - GPIO 4

IN4 - GPIO 17

Ultrasonic Sensor

VCC - 5V GPIO

TSI - GPIO 27

ECHO - GPIO 22

Echo tus pin tso tawm 5 volts, GPIO tus pin ntawm tus pi tsuas yog ntsuas rau 3.3 volts. Muab GPIO 5 qhov hluav taws xob tuaj yeem ua rau muaj kev puas tsuaj rau pi. Txhawm rau zam qhov no peb yuav tso qhov hluav taws xob faib hluav taws xob sib faib nruab nrab ntawm ECHO thiab GPIO 22. Txhawm rau kawm paub yuav ua li cas txhawm rau faib qhov hluav taws xob, saib ntawm no.

Kauj ruam 11: Software

Ua ntej tshaj, koj yuav tsum tau teeb tsa raspbian rau koj li Raspberry Pi. Yog xav paub ntxiv txog kev txhim kho raspbian rau koj Pi, txheeb xyuas phau ntawv teeb tsa no.

Thaum raspbian tau khau raj koj yuav xav ssh rau hauv raspberry pi. Nov yog cov lus qhia zoo yuav ua li cas thiaj muaj kev nyab xeeb.

Thaum koj tau ssh'd rau hauv pi, nruab git thiab 'clone' cov ntaub ntawv los ntawm qhov txuas no:

github.com/Psuedohim/ARCRobot/tree/master/ARCRobot-1

Qhov no tuaj yeem ua tiav ntawm:

git clone

Thaum kawg los ua haujlwm, nkag mus rau hauv ARCRobot-1 cov npe thiab khiav sej 3 go_auto.py.

Pom zoo: