Cov txheej txheem:

Hloov Kho RC Qho Khoom Ua Si Tsheb Nrog Ultrasonic Sensor (Arduino): 3 Kauj Ruam
Hloov Kho RC Qho Khoom Ua Si Tsheb Nrog Ultrasonic Sensor (Arduino): 3 Kauj Ruam

Video: Hloov Kho RC Qho Khoom Ua Si Tsheb Nrog Ultrasonic Sensor (Arduino): 3 Kauj Ruam

Video: Hloov Kho RC Qho Khoom Ua Si Tsheb Nrog Ultrasonic Sensor (Arduino): 3 Kauj Ruam
Video: Zoo Siab Nrog Koj - Paj Tsua Thoj [ Official MV ] Nkauj Tawm Tshiab 2022 2024, Hlis ntuj nqeg
Anonim
Image
Image
Qhov Chaw Txuas Hluav Taws Xob
Qhov Chaw Txuas Hluav Taws Xob

Nov yog RC khoom ua si tsheb uas hloov kho dua li Arduino RC tsheb zam cov khoom.

Peb tshem tawm thawj lub rooj tsavxwm ntawm lub tsheb RC thiab siv tsuas yog DC lub cav.

Lub tsheb RC khoom siv no suav nrog ob lub tshuab DC, ib qho nyob rau hauv pem hauv ntej ntawm lub tsheb ua lub kauj tsheb thiab lwm lub tshuab DC nyob tom qab raws li xa mus/rov qab.

Peb xav tau cov ntaub ntawv hauv qab no:

1- RC Toy Car (thawj lub rooj tsav tsheb sab hauv lub tsheb kom tshem tawm), yam tsis muaj chaw taws teeb tswj: 1 Daim

2- Arduino (UNO): 1 Daim

3- Ultrasonic Sensor: 1 Daim

4- Roj teeb (9V siab amper), peb siv lub roj teeb ntawm Drone: 1 Daim

5- DC Tsav Tsheb: 1 Daim

6- Cov xov hlau

7- Phom phom

Kauj Ruam 1: Cov Xaim

Cias txuas txhua feem raws li qhia hauv Schematic.

Txuas lub ultrasonic sensor rau Arduino:

Pin 2 mus rau tus lej pin ntawm ultrasonic sensor

Pin 3 rau Echo tus pin ntawm lub ntsuas ultrasonic

Txuas DC motors rau DC tsav tsav:

Pin A1 rau Tsav 1

Pin A2 rau Tsav 1

Pin B1 rau Tsav 2

Pin B2 rau Tsav 2

Txuas DC tsav tsheb mus rau Arduino:

Pin 11 to A1

Pin 10 to A2

Pin 6 to B1

Pin 5 to B2

Txuas lub roj teeb rau DC tsav tsheb. Tom qab ntawd txuas Vout ntawm DC tsav tsheb mus rau Vin ntawm Arduino. Txuas GND roj teeb rau Arduino GND.

Kauj ruam 2: ARDUINO Code

Rub tawm lub tsev qiv ntawv timer yooj yim los ntawm qhov txuas hauv qab no:

github.com/jfturcot/SimpleTimer

Tom qab ntawv rub kuv cov cai rau koj Arduino IDE.

Kauj Ruam 3: Nqi Khoom

Cov Rooj Sib Tham

Roj teeb 1700mAh

HC-SR04 Sensor 1HC-SR04 Ultrasonic Distance Sensorchip LM324

M1DC Tsav

M2DC Tsav

Arduino Uno (Tshooj 3)

S1H-Choj nrog L298

Pom zoo: