Cov txheej txheem:

Txheeb Cov Khoom Thaum Tsav Tsheb RC: 9 Kauj Ruam
Txheeb Cov Khoom Thaum Tsav Tsheb RC: 9 Kauj Ruam

Video: Txheeb Cov Khoom Thaum Tsav Tsheb RC: 9 Kauj Ruam

Video: Txheeb Cov Khoom Thaum Tsav Tsheb RC: 9 Kauj Ruam
Video: Cas Tsis Xaiv Koj - R-Lin Thoj New Song Original By Zaj Dub [Official MV] 2023 2024, Hlis ntuj nqeg
Anonim
Txheeb Cov Khoom Thaum Tsav Tsheb RC
Txheeb Cov Khoom Thaum Tsav Tsheb RC
Txheeb Cov Khoom Thaum Tsav Tsheb RC
Txheeb Cov Khoom Thaum Tsav Tsheb RC
Txheeb Cov Khoom Thaum Tsav Tsheb RC
Txheeb Cov Khoom Thaum Tsav Tsheb RC

Txoj haujlwm no yog hais txog kev siv Ultrasonic Sensors ntawm lub tsheb txhawm rau txheeb xyuas teeb meem

Kauj Ruam 1: Cov Khoom Uas Yuav Siv

Cov Khoom Uas Yuav Siv
Cov Khoom Uas Yuav Siv
Cov Khoom Uas Yuav Siv
Cov Khoom Uas Yuav Siv

Cov ntaub ntawv: Arduino Leonardo BoardBread BoardArduino xov hlau 1 Servo Motor2 Ultrasonic sensors1 CarTapeUSB rau lub zog qhov chaw Arduino USB Adapter Xaiv tau: 1 lossis ntau dua Green LED Lights1 lossis ntau dua Liab LED LightsClay (Cov av yog xaiv tau; koj tuaj yeem siv lwm yam los lo ua ke) Cardboard (Qhov no yog tsuas yog saib sab nrauv kom qhwv lub tsheb)

Kauj Ruam 2: Npaj Txhua Yam Khoom Uas Tau Teev Npe

Nco ntsoov tias qee yam ntawm cov ntaub ntawv no tuaj yeem ua nplaum lossis av nplaum yog xaiv tau vim tias koj tuaj yeem siv lwm cov ntaub ntawv los lo, xws li kub yaj nplaum kom lo nws ua ke. Qhov xim ntawm lub teeb LED tuaj yeem hloov pauv, tab sis nco ntsoov tias cov xim yuav tsum sib txawv los saib xyuas. Qhov txheej sab nrauv yog nyob ntawm yeem vim tias koj tuaj yeem siv lwm cov ntaub ntawv lossis saib zoo dua los qhwv nws.

Kauj Ruam 3: Muab tag nrho Cov Hluav Taws Xob txuas thiab muab tso rau qhov twg nws xav tias yuav yog

Muab tag nrho Cov Hluav Taws Xob txuas thiab muab tso rau qhov twg Nws xav tias yog
Muab tag nrho Cov Hluav Taws Xob txuas thiab muab tso rau qhov twg Nws xav tias yog
Muab tag nrho Cov Hluav Taws Xob txuas thiab muab tso rau qhov twg Nws xav tias yog
Muab tag nrho Cov Hluav Taws Xob txuas thiab muab tso rau qhov twg Nws xav tias yog

Trigpin ntawm 10, Echopin ntawm 11Trigpin2 ntawm 6, Echopin2 ntawm 7Green LED Teeb ntawm 9, Liab LED Teeb ntawm 8The Servo Pin ntawm 12https://www.circuito.io/static/reply/index.html? SolutionId = 5cf51e9b33f42000300e49e9 & solutionPath = circuito.ioQhov no yog qhov txuas rau yuav ua li cas Ultrasonic Sensors thiab LED Teeb tau txuas nrog. Tsuas yog mus rau qhov txuas, nyem "Hlau" ntawm sab laug thiab saib cov xov txuas thiab kab txuas.

Kauj Ruam 4: Muab Cov Khoom Siv Ua Ke

Muab Cov Khoom Siv Ua Ke
Muab Cov Khoom Siv Ua Ke

1. Ua kom ntseeg tau tias txhua lub xov hlau txuas nrog 2. Khaws lub Ultrasonic Sensor nrog lub cav ua ke, yog li Ultrasonic Sensor tuaj yeem txheeb xyuas cov khoom thaum lub cav tig mus. 3. Muab daim Arduino Leo Board tso rau saum lub khob cij board4. Muab Arduino tso rau ntawm Car5. Daim kab xev Ultrasonic Sensors mus rau lub tsheb pem hauv ntej thiab nraub qaum

Kauj Ruam 5: Ntxig rau Arduino Code

Ntxig rau Arduino CodeThis yog qhov txuas rau txoj haujlwm program ntawm Arduino Tsim: https://create.arduino.cc/editor/AnthonyWang/c44dba18-e18c-425b-bc73-f42ccf2b1906/preview *Nco ntsoov suav nrog Cov kauj ruam tom ntej yuav faib cov code mus rau ntu rau kev nkag siab zoo dua.

Kauj Ruam 6: Thawj Ntu

Thawj Ntu
Thawj Ntu

Ib feem ntawm txoj cai no tau piav qhia qhov chaw ntawm qhov Sensors, LED teeb, Cov Motors. Piv txwv li, trigPin ntawm thawj lub ntsuas yog nyob ntawm tus lej 10. Kab lus kawg yog qhov ntau lossis nrug uas yuav raug suav, uas yog ntiv tes.

Kauj Ruam 7: Teeb Tshooj

Teeb Teeb
Teeb Teeb

Ib feem no qhia txog kev pib ua haujlwm ntawm Servo Motor, Sensors thiab LED pins. Nws pib raws li Lub Teeb Ntsuab nyob rau thaum lub teeb liab tawm.

Kauj Ruam 8: Nov Yog LOOP Tshooj

Nov yog LOOP Tshooj
Nov yog LOOP Tshooj

Ib feem ntawm lub voj pib nrog Servo Motor tig 30 degrees, 90 degrees, 150 degrees, txhua txhua 10 vib nas this Tom qab ntawd, ob lub Ultrasonic Sensors tau qhib thiab suav qhov deb ntawm (sijhawm / 2) / 29.1Ntau, IF thiab ELSEIf cov cuab yeej ntsuas pom qhov khoom deb li 5 ntiv, nws yuav ci lub teeb liab Yog tias nws tsis pom ib yam dab tsi tsawg dua 5 ntiv, nws yuav ci lub teeb ntsuab

Kauj Ruam 9: Nov Yog Qhov Yees Duab ntawm Lub Tshuab Ua Haujlwm

Qhov link hauv youtube:

www.youtube.com/watch?v=hQih5elzgVs

Pom zoo: