Cov txheej txheem:

Txheeb Xyuas Cov Teeb Meem thiab Ceeb Toom - Arduino UNO thiab Ultrasonic: 4 Cov Kauj Ruam (nrog Duab)
Txheeb Xyuas Cov Teeb Meem thiab Ceeb Toom - Arduino UNO thiab Ultrasonic: 4 Cov Kauj Ruam (nrog Duab)

Video: Txheeb Xyuas Cov Teeb Meem thiab Ceeb Toom - Arduino UNO thiab Ultrasonic: 4 Cov Kauj Ruam (nrog Duab)

Video: Txheeb Xyuas Cov Teeb Meem thiab Ceeb Toom - Arduino UNO thiab Ultrasonic: 4 Cov Kauj Ruam (nrog Duab)
Video: Computer Vision with Python! Resizing Images 2024, Hlis ntuj nqeg
Anonim
Tshawb Pom Cov Teeb Meem thiab Ceeb Toom - Arduino UNO thiab Ultrasonic
Tshawb Pom Cov Teeb Meem thiab Ceeb Toom - Arduino UNO thiab Ultrasonic

Nov yog kev qhia pab koj nkag siab txog ultrasonic thiab buzzer thiab nkag mus tob rau kev kawm Arduino, ua raws cov theem no thiab muab tswv yim rau kuv.

Kauj Ruam 1: Cov khoom siv hauv txoj haujlwm no

Cov khoom siv hauv txoj haujlwm no
Cov khoom siv hauv txoj haujlwm no
Cov khoom siv hauv txoj haujlwm no
Cov khoom siv hauv txoj haujlwm no
Cov khoom siv hauv txoj haujlwm no
Cov khoom siv hauv txoj haujlwm no

1. Pawg Thawj Coj Saib Xyuas

2. Ultrasonic sensor

3. +5V buzzer

4. Txiv neej rau txiv neej pins

5. Arduino uno board Cov cuab yeej thiab cov khoom siv tau qhia hauv daim duab

Kauj Ruam 2: Me ntsis Txog Ultrasonic HC-sr 04

Me ntsis Txog Ultrasonic HC-sr 04
Me ntsis Txog Ultrasonic HC-sr 04

Lub Ultrasonic Sensor xa tawm cov suab paj nruag ntau zaus thiab tom qab ntawd nws siv sijhawm ntev npaum li cas rau lub suab ntawm lub suab los cuam tshuam rov qab. Lub sensor muaj 2 qhov qhib rau ntawm nws xub ntiag. Ib qho qhib xa cov nthwv dej ultrasonic, (zoo li tus hais lus me me), lwm qhov tau txais lawv, (zoo li lub microphone me me).

Lub suab nrawm yog kwv yees li 341 meters (1100 ko taw) ib pliag hauv huab cua. Lub ntsuas hluav taws xob ultrasonic siv cov ntaub ntawv no nrog rau lub sijhawm sib txawv ntawm kev xa thiab tau txais lub suab mem tes los txiav txim siab qhov nrug mus rau ib qho khoom. Nws siv cov zauv zauv hauv qab no:

Nrug deb = Sijhawm x Ceev Ntawm Lub Suab faib los ntawm 2Time = lub sijhawm nruab nrab ntawm lub sijhawm nthwv dej ultrasonic tau kis thiab thaum nws tau txais Koj faib tus lej no 2 vim tias lub suab yoj yuav tsum tau mus rau lub hom phiaj thiab rov qab.

HC-SR04 SpecificationsWorking Voltage: DC 5VWorking Current: 15mAWorking Zaus: 40HzMax Range: 4mMin Range: 2cmMeasureuring Angle: 15 degreeTrigger Input Signal: 10µS TTL pulseEcho Output Signal TTL lever signal and the range in proportionDimension 45 * 20 * 15mm

Pom zoo: