Cov txheej txheem:

Pixy2Bot Object Follower (Servo Code): 4 Kauj Ruam
Pixy2Bot Object Follower (Servo Code): 4 Kauj Ruam

Video: Pixy2Bot Object Follower (Servo Code): 4 Kauj Ruam

Video: Pixy2Bot Object Follower (Servo Code): 4 Kauj Ruam
Video: Голубая стрела (1958) фильм 2024, Cuaj hlis
Anonim
Pixy2Bot Lub Hom Phiaj Follower (Servo Code)
Pixy2Bot Lub Hom Phiaj Follower (Servo Code)

Tsim cov khoom yooj yim tom qab neeg hlau (tsis muaj lub lauj kaub/qaij tshuab) nrog Arduino Uno + Motor Shield, ob qhov pheej yig txuas ntxiv servos thiab Pixy2.

Video:

Kauj Ruam 1: Daim Ntawv Khw Muag Khoom

1 Arduino Uno (thawj lossis pawg thawj coj saib tau)

1 Arduino Uno Motor Shield (thawj lossis sib xws)

2 Kev Ua Haujlwm Txuas Ntxiv (piv txwv li Feetech Micro Servo)

1pxyj 2

1 6V Roj teeb pob (piv txwv li 1000 mAh LiPo, 7.4V + LiPo saver)

1 On/Off hloov

2 Lego log (piv txwv li Steering Pulley 373602 3736)

2 Log (3/4 O-rings haum zoo rau lub log)

1 Pob Caster

Qee cov jumper xov hlau

Ib yam dab tsi uas koj tuaj yeem txhim kho txhua yam khoom siv (piv txwv li Lego + qee qhov kev cai luam tawm 3D ntu)

Kauj Ruam 2: Txuas Roj Teeb, Servos thiab Pixy2 rau Arduino Uno/Motor Shield Etc

Txuas roj teeb, Servos thiab Pixy2 rau Arduino Uno/Motor Shield Etc
Txuas roj teeb, Servos thiab Pixy2 rau Arduino Uno/Motor Shield Etc
Txuas roj teeb, Servos thiab Pixy2 rau Arduino Uno/Motor Shield Etc
Txuas roj teeb, Servos thiab Pixy2 rau Arduino Uno/Motor Shield Etc
Txuas Roj Teeb, Servos thiab Pixy2 rau Arduino Uno/Motor Shield Etc
Txuas Roj Teeb, Servos thiab Pixy2 rau Arduino Uno/Motor Shield Etc
Txuas roj teeb, Servos thiab Pixy2 rau Arduino Uno/Motor Shield Etc
Txuas roj teeb, Servos thiab Pixy2 rau Arduino Uno/Motor Shield Etc

1) Txuas Pixy2 rau Arduino Uno & mount Shield ntawm Arduino

2) Txuas cov log log rau servos (saib daim duab), teeb tsa ntu ntawm lub moj khaum

3) Txuas txoj cai servo rau Pin Out 5 thiab sab laug servo rau Pin Out 6 (saib daim duab)

Ua tib zoo saib: qee zaum cov pins servo thiab lub qhov (pins 5 thiab Out 6) nyob hauv qhov kev txiav txim sib txawv. Siv lub ntsuas ntsuas kom paub qhov kev txiav txim ntawm GND, 5V thiab teeb liab pins ntawm lub qhov (socket).

Koj yuav xav tau qee lub xov hlau txuas ntxiv yog tias qhov kev txiav txim tsis sib xws.

4) Txuas qee yam kev hloov/hloov thiab, yog tias siv LiPo battrey, LiPo txuag rau koj lub roj teeb

5) Txuas lub roj teeb rau lub cav thaiv

Kauj Ruam 3: Teeb Koj Li Pixy2 Nrog PixyMon

PixyMon

Kauj ruam 4: Tau txais Txoj Cai…

Kev lees paub!

dickel

www.robotshop.com/community/robots/show/ob…

Yog tias koj ntsib teeb meem thaum suav sau cov cai (thiab kuv ntshai koj yuav), ua tibzoo saib ntawm no:

forum.arduino.cc/index.php?topic=672547.ms…

Koj yuav tsum mus rau Pixy2 lub tsev qiv ntawv ntawv tais ceev tseg thiab tshaj tawm qee qhov kev hloov pauv hauv Pixy2CCC.h cov ntaub ntawv.

Koj tseem yuav tau hloov Serial1 rau Serial hauv Pixy2UART.h cov ntaub ntawv.

Txoj Cai:

Pom zoo: