Cov txheej txheem:

Robotics Chaw Taws Teeb Tswj Pob Zeb Crawler Arduino: 4 Kauj Ruam
Robotics Chaw Taws Teeb Tswj Pob Zeb Crawler Arduino: 4 Kauj Ruam

Video: Robotics Chaw Taws Teeb Tswj Pob Zeb Crawler Arduino: 4 Kauj Ruam

Video: Robotics Chaw Taws Teeb Tswj Pob Zeb Crawler Arduino: 4 Kauj Ruam
Video: Musicians talk about Buckethead 2024, Kaum ib hlis
Anonim
Robotics Chaw Taws Teeb Tswj Pob Zeb Crawler Arduino
Robotics Chaw Taws Teeb Tswj Pob Zeb Crawler Arduino
Robotics Chaw Taws Teeb Tswj Pob Zeb Crawler Arduino
Robotics Chaw Taws Teeb Tswj Pob Zeb Crawler Arduino

Qhov no zoo li thiab yog barebones heev. Kuv xav qhia rau leej twg uas xav ua txoj haujlwm no xav txog qee txoj hauv kev npog cov khoom siv hluav taws xob los tiv thaiv dej thiab av.

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau

-Arduino MEGA

-Arduino UAS

-2x Joysticks

-2x 2.4GHz Transceivers

-Txhua tus chassis nrog tsawg kawg ob lub cav (rau lub kauj thiab lub zog)

-Qhov haujlwm no muaj peb lub cav (ib qho ntxiv rau lub log pem hauv ntej-tsav)

-Roj teeb pob rau lub cav

-2x Kev Tswj Lub Cev Muaj Zog (ob qhov xav tau rau ib nrab sijhawm tag nrho cov log-tsav nkaus xwb)

-2 x 9 volt roj teeb rau arduino's

-Arduino daim ntawv txuas ntxiv

-Power hloov rau lub cav (yeem)

Kauj Ruam 2: Sib dhos Tus Tswj

Sib dhos Tus Tswj
Sib dhos Tus Tswj
Sib dhos Tus Tswj
Sib dhos Tus Tswj
Sib dhos Tus Tswj
Sib dhos Tus Tswj

Rau tus tswj hwm koj yuav xav tau Arduino UNO nrog daim thaiv txuas ntxiv, ob lub joysticks, ib qho 2.4GHz transceiver, thiab ib lub roj teeb 9v.

Cov ntaub thaiv npog txuas ntxiv yog siv rau GND ntau dua thiab 5V tus pin, qhov no yuav ua rau txoj haujlwm yooj yim dua li koj tsis xav tau ua ib qho soldering rau tus tswj

Pib los ntawm xaim cov joysticks rau Arduino. Nco ntsoov tias ib tus joystick yog lub luag haujlwm rau X lub zog, thaum lwm tus yog lub luag haujlwm rau Y lub zog. Cov ntaub thaiv npog txuas ntxiv yuav tsum tau txhawm rau ua kom muaj zog ob lub joysticks thiab cov xa tawm.

Joystick 1 yuav txuas rau x-axis (lub qhov rooj), Koj tuaj yeem xaim SW (hloov joystick) yog tias koj xav kom muaj kev hloov pauv ntawm 4WD thiab 2WD (tab sis qhov ntawd tsis tau ua tiav hauv qhov no)

Joystick 2 yuav txuas rau y-axis (kauj)

Tom ntej no, koj yuav xav pib thaiv lub transceiver raws li hauv qab no

Transceiver pins ---- Arduino pins

GND 1 ---- NCO

VCC 2 ---- 3.3V

CE 3 ---- 7

CSN 4 ---- 8

TxK5 ---- 13

MOSI 6 ---- 11

MISO 7 ---- 12

IRQ 8 ---- tsis txuas nrog

Kauj Ruam 3: Sib Sau Lub Tsheb

Sib dhos Tsheb
Sib dhos Tsheb
Sib dhos Tsheb
Sib dhos Tsheb
Sib dhos Tsheb
Sib dhos Tsheb

Txog qhov no, koj yuav xav tau koj lub chassis nrog lub cav, Arduino MEGA, ob lub cav tswj lub cev, ib lub 2.4GHz transceiver, thiab ib lub roj teeb 9v.

Peb pib los ntawm xaim cov motors rau cov tswj lub cev. Nco ntsoov tias muaj peb lub cav koom nrog (txhua nrog ob lub xov hlau), yog li ib lub cav tswj lub cav yuav tsuas yog ib nrab xaim.

Tom ntej no, koj yuav xav xaim lub cav tswj lub cav mus rau MEGA. Nco ntsoov cov pins uas koj siv rau kev qhia lub cev raws li koj yuav xav tau cov nyob hauv txoj cai.

Tom qab ntawd koj tuaj yeem pib xaim tus xa xov mus rau MEGA. Cov koob yuav tsis zoo ib yam li ntawm UNO vim yog txoj kev MEGA tswj kev sib txuas lus.

Kev thaiv rau Pins 4 thiab 6 tau qhib lawm. Hauv lub codem lawv tau txuas rau lub log pem hauv ntej. Tab sis yog tias koj xaiv kom muaj nws RWD nkaus xwb, koj yuav tsis tas yuav xaim cov no.

Transceiver pins ---- Arduino pinsGND 1 ---- GND

VCC 2 ---- 3.3V

CE 3 ---- 7

CSN 4 ---- 8

SIB 5 ---- 52

MOSI 6 ---- 51

MISO 7 ---- 50

IRQ 8 ---- tsis txuas nrog

Kauj ruam 4: Txoj Cai

Car.ino tau tshaj tawm rau hauv MEGA

Controller.ino rau hauv UNO

Yog tias koj xav siv Serial monitor rau debugging lub hom phiaj, nco ntsoov teeb tsa baud tus nqi rau 115200.

Pom zoo: