Cov txheej txheem:

Ib Qhov Chaw Nres Tsheb Yooj Yim Yooj Yim Siv Ebot: 3 Kauj Ruam
Ib Qhov Chaw Nres Tsheb Yooj Yim Yooj Yim Siv Ebot: 3 Kauj Ruam

Video: Ib Qhov Chaw Nres Tsheb Yooj Yim Yooj Yim Siv Ebot: 3 Kauj Ruam

Video: Ib Qhov Chaw Nres Tsheb Yooj Yim Yooj Yim Siv Ebot: 3 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Ib Qhov Chaw Nres Tsheb Yooj Yim Yooj Yim Siv Ebot
Ib Qhov Chaw Nres Tsheb Yooj Yim Yooj Yim Siv Ebot

Kuv tau tsim qhov chaw nres tsheb yooj yim ua qauv siv Ebot. Hauv kab ke no, muaj Ultrasonic sensor txhawm rau txheeb xyuas lub tsheb/khoom. LCD module yuav qhia tus naj npawb ntawm Cov Tsheb Pom. Thaum tus lej tau mus txog qhov siab tshaj plaws, Nws yuav tso tawm cov lus "FULL". Kuv tau suav rau 5 raws li qhov siab tshaj plaws.

Kauj Ruam 1: Cov Ntaub Ntawv Xav Tau

Cov Ntaub Ntawv Xav Tau
Cov Ntaub Ntawv Xav Tau
Cov Ntaub Ntawv Xav Tau
Cov Ntaub Ntawv Xav Tau
Cov Ntaub Ntawv Xav Tau
Cov Ntaub Ntawv Xav Tau
Cov Ntaub Ntawv Xav Tau
Cov Ntaub Ntawv Xav Tau

1-Ebot Tswj

2-Ebot Servo lub cev muaj zog rau lub rooj vag mechanism.

3-Ebot Ultrasonic module rau kev kuaj pom.

4-Buzzer rau tsim suab nrov thaum qhib thiab kaw lub qhov rooj.

5. RGB LED rau ci hauv xim sib txawv.

6-EBot daim ntawv thov teeb tsa PC.

7- Ebot programming USB cable.

8-jumper xov hlau rau txuas cov qauv nkag thiab cov qauv tso tawm rau Ebot.

Kuv siv lub thawv ntawv los txhawm rau txhawm rau ntsuas lub cim thiab cim Eboard cov cim ntawm nws.

Kauj Ruam 2: Kev Sib Txuas thiab Programming

Kev Sib Txuas thiab Programming
Kev Sib Txuas thiab Programming
Kev Sib Txuas thiab Programming
Kev Sib Txuas thiab Programming
Kev Sib Txuas thiab Programming
Kev Sib Txuas thiab Programming

Kuv txuas cov tswv yim thiab cov txiaj ntsig mus rau lub rooj tswj hwm siv cov xov hluav taws xob. Cov tswv yim ultrasonic txuas nrog rau ntu ntu ntawm pawg thawj coj saib. Qhov kev tso tawm xws li lub suab nrov, servo lub cev muaj zog, RGB, thiab LCB txuas nrog rau ntawm qhov tso tawm sab. Sab hauv sab muaj A0 rau A7 pins thiab ntu tso tawm muaj 0 txog 7 tus pin.

S, V thiab G pins ntawm txhua tus qauv txuas nrog Tus Tswj Tus pin uas muaj xim zoo li:

Dawb rau S (teeb liab)

Liab rau V (5 V)

Dub rau G (Hauv av)

Tom qab ntawd kuv tau qhib Ebot Blockly daim ntawv thov hauv PC thiab programmed siv cov thaiv.

Cov cai sib thooj yog tsim nyob hauv nplooj ntawv chaws.

Kuv siv qhov kev xaiv debug ntawm lub lauj kaub sab laug txhawm rau txheeb xyuas qhov tseem ceeb ntawm lub ntsuas ultrasonic. Yog li ntawd kuv tuaj yeem muab cov kev txwv lossis ntau yam uas Ultrasonic tuaj yeem txheeb xyuas qhov khoom.

Lub cajmeem los ntawm kev siv cov block ua kom yooj yim los ua cov khoom.

Kauj ruam 3: Yees duab

Kuv hloov kho qhov tseem ceeb thiab thaiv kom tau txais kuv qhov txiaj ntsig kawg.

Thaum kawg, kuv ua nws

Pom zoo: