Cov txheej txheem:

Yuav Ua Li Cas Tswj Neeg Hlau Caj Npab Nrog 6 Channel Servo Player Tsis Coding: 5 Kauj Ruam
Yuav Ua Li Cas Tswj Neeg Hlau Caj Npab Nrog 6 Channel Servo Player Tsis Coding: 5 Kauj Ruam

Video: Yuav Ua Li Cas Tswj Neeg Hlau Caj Npab Nrog 6 Channel Servo Player Tsis Coding: 5 Kauj Ruam

Video: Yuav Ua Li Cas Tswj Neeg Hlau Caj Npab Nrog 6 Channel Servo Player Tsis Coding: 5 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Tswj Cov Neeg Hlau Caj Npab Nrog 6 Channel Servo Player Tsis Coding
Yuav Ua Li Cas Tswj Cov Neeg Hlau Caj Npab Nrog 6 Channel Servo Player Tsis Coding

Qhov kev qhia no qhia txog Yuav Ua Li Cas Tswj Tus Neeg Hlau Caj Npab nrog 6 Channel Servo Player yam tsis muaj Coding.

Kauj ruam 1: Taw qhia

6 Channel Servo Player

Hauv qhov kev qhia no, 6 Channel Servo Player tau siv los tswj cov neeg hlau caj npab los ntawm kev kaw lub servos kev txav chaw thiab ua si nws rov qab raws nraim yam tsis tau sau qhov chaws rau nws. Muaj 4 qhov sib txawv ntawm servos animation tuaj yeem kaw hauv ntau qhov sib txawv. Kho cov ntsiab lus ntawm tus tswj hwm no, koj tuaj yeem xa mus rau ntawm no.

Tsis tas li, qhov kev qhia no qhia txog yuav ua li cas txuas IR sensor rau servo player txhawm rau txhawm rau txheeb xyuas lub hom phiaj thiab servo player yuav teb rau nws.

Kauj Ruam 2: Kev Npaj Khoom

Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom
Kev Npaj Khoom

Rau qhov kev qhia no, peb xav tau cov khoom no:

1. 6 Channel Servo Player

2. IR Sensor

3. Adapter 5V

4. Servo Robot Arm (luam tawm los ntawm 3D tshuab luam ntawv)

Kauj Ruam 3: Teeb tsa 6 Channel Servo Player

1. Ntxig daim npav SD rau hauv daim npav SD Card ntawm Servo Player. Thiab lub hwj chim rau nws los ntawm DC adapter.

2. Hloov mus rau Sau hom.

3. Hloov mus rau hom qeeb.

4. Toggle Pib 1 kom kaw.

5. Toggle dua kom ncua kaw. (RUN LED yuav ntsais muag ob zaug)

6. Hloov cov pob qhov rooj kom txav cov servos mus rau txoj haujlwm xav tau.

7. Toggle kom rov kaw dua.

8. Hauv hom qeeb, cov servos yuav rov ua dua los ntawm qhov pib mus rau lub ntsiab lus kawg ua ntej kaw tom ntej.

9. Tom qab cov ntaub ntawv ua tiav, toggle Nres khawm thiab hloov rov mus rau Hom Ua Si.

10. Toggle Pib 1, cov servos yuav khiav raws li kaw servos 'animation.

Hauv Cov Ntawv Sau, muaj 2 hom tuaj yeem xaiv uas yog INTERRUPT lossis

NON-INTERRUPT hom. Hauv qhov kev qhia no, hom tsis cuam tshuam yog qhov nyiam dua. Txhawm rau xaiv hom,

Hauv Cov Ntawv Sau, nias ntev STP/* M* khawm rau 3 vib nas this los xaiv NON-INTERRUPT hom uas tau khiav LED ntsais ob zaug

Kauj Ruam 4: Kev Kho Vajtse

1. Txuas IR Sensor mus rau 6 Channel Servo Player.

2. Kev sib txuas ntawm IR Sensor

GND> GND

Tawm> STP

VCC> 5V

Thaum IR Sensor pom cov khoom, cov neeg hlau caj npab yuav khaws cov khoom thiab muab tso rau qhov chaw kaw cia ua ntej.

Kauj ruam 5: Yees duab

Cov vis dis aus no qhia yuav ua li cas tswj cov neeg hlau caj npab nrog 6 channel servo player yam tsis muaj coding.

Pom zoo: