Cov txheej txheem:
- Kauj Ruam 1: Yam Yuav Tsum Tau
- Kauj Ruam 2: Txuas HC-SR04 rau Arduino raws li hauv qab no:
- Kauj Ruam 3: Txuas Bluetooth Module HC-06 rau Arduino Nano raws li hauv qab no:
- Kauj Ruam 4: Lub Tsev Qiv Ntawv
- Kauj ruam 5: Upload Code
- Kauj Ruam 6: Lub Serial Monitor App
- Kauj ruam 7: Ua tiav
Video: Wireless Distance Sensor DIY: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Lub peev xwm los ntsuas qhov nrug deb ntawm lub ntsuas hluav taws xob ultrasonic hauv tus nqi ntawm ob peb duas las yog qhov zoo heev, ua siab ncaj, thiab ntxiv qhov ua haujlwm tsis siv neeg yog txawm tias txaus siab, koj tuaj yeem siv nws ua lub chaw nres tsheb sensor hauv lub tsheb qub uas qhov deb yuav yuav tsum tso tawm ntawm koj lub xov tooj tsis yog siv sab nrauv.
Yog li cia peb pib nrog kev tsim! Nov yog cov vis dis aus qhia rau tib yam uas tseem suav nrog nws ua haujlwm hauv lub sijhawm tiag.
Kauj Ruam 1: Yam Yuav Tsum Tau
1.) HC-SR04 (Qhov no yog ultra-cheap Ultrasonic Distance Sensor)
2.) HC-06 (Bluetooth Module)
3.) Arduino (Kuv siv Nano)
4.) USB (Rau Arduino)
5.) Cov Hluav Taws Xob
Kauj Ruam 2: Txuas HC-SR04 rau Arduino raws li hauv qab no:
Tswv yim - 5V
Trig - Pin 13
ECO - Pin 12
Gnd - Yog
Kauj Ruam 3: Txuas Bluetooth Module HC-06 rau Arduino Nano raws li hauv qab no:
Tswv yim - 3.3V
Gnd - Yog
Txx - Rx
Rx - Txi
Kauj Ruam 4: Lub Tsev Qiv Ntawv
Txog lub tsev qiv ntawv, koj yuav tsum rub lub HC-SR04 Library rau qhov no, sab hauv Arduino IDE, mus rau Cov Cuab Yeej-> Tswj Cov Tsev Qiv Ntawv thiab tom qab ntawd tshawb nrhiav HC-SR04 thiab teeb tsa los ntawm Martin Sosic.
Kauj ruam 5: Upload Code
Txog qhov no kom ntseeg tau tias Tx thiab Rx pins ntawm Bluetooth Module thiab Arduino raug txiav tawm ua ntej rub tawm cov cai, tom qab ua tiav xa koj tuaj yeem txuas tau dua.
Txog tus lej, mus rau File-> Piv txwv-> Cuab Yeej-> HC-SR04-> Yooj Yim, Hloov nws mus rau Arduino. Yog tias koj qhib qhov ntsuas ntawm 9600 Baud tus nqi tom qab xa cov cai, koj yuav pom qhov kev ntsuas nrug los ntawm lub ntsuas hluav taws xob ultrasonic. Tam sim no nws yog lub sijhawm ntxiv Bluetooth module
Kauj Ruam 6: Lub Serial Monitor App
Nov yog daim ntawv thov siv dav hauv Android uas ua raws li kev saib xyuas ntawm Bluetooth, koj tuaj yeem pom cov apps zoo sib xws ntawm IOS.
Tsuas yog mus rau khawm txuas thiab nyem HC-06 kom tau txais kev sib txuas.
Kauj ruam 7: Ua tiav
Tom qab Pairing thiab txuas Bluetooth Module rau lub app, koj yuav yooj yim tuaj yeem nyeem cov ntaub ntawv uas ntsuas qhov nrug nruab nrab ntawm qhov khoom thiab ntsuas hauv hli, nws pom zoo tias koj tsis ntsuas qhov nrug tsawg dua 3 centimeters thiab ntau dua 3 meters.
Ua Tsaug Ntau Rau Kev Nyeem!
Hais txog, Tanishq
Pom zoo:
Tutorial: Yuav Siv Analog Ultrasonic Distance Sensor US-016 Nrog Arduino UNO: 3 Kauj Ruam
Tutorial: Yuav Siv Analog Ultrasonic Distance Sensor US-016 Nrog Arduino UNO: Nqe lus piav qhia: US-016 ultrasonic pib module tso cai 2 cm ~ 3 m tsis ntsuas qhov muaj peev xwm, muab hluav taws xob 5 V, ua haujlwm tam sim no 3.8mA, txhawb kev tso tawm analog voltage, ruaj khov thiab txhim khu kev qha Cov qauv no tuaj yeem sib txawv sib txawv nyob ntawm qhov appli
DIY Digital Distance Measurement With Ultrasonic Sensor Interface: 5 Kauj Ruam
DIY Digital Distance Measurement With Ultrasonic Sensor Interface: Lub hom phiaj ntawm Cov Lus Qhia no yog los tsim lub ntsuas digital nrug nrog kev pab los ntawm GreenPAK SLG46537. Lub kaw lus tau tsim los siv ASM thiab lwm yam khoom siv hauv GreenPAK los cuam tshuam nrog lub ntsuas hluav taws xob ultrasonic. Qhov system tau tsim los rau
TinkerCAD Ultrasonic Distance Sensor Circuit (Computer Eng Final): 4 Kauj Ruam
TinkerCAD Ultrasonic Distance Sensor Circuit (Computer Eng Final): Peb yuav tsim lwm qhov kev lom zem tinkerCAD Circuit kom ua thaum raug cais tawm! Niaj hnub no muaj qhov sib ntxiv ntawm cov khoom nthuav, koj puas tuaj yeem kwv yees? Zoo peb yuav siv lub Ultrasonic Distance Sensor! Ntxiv mus, peb tab tom mus rau code rau 3 LEDs
Arduino LED Ring Ultrasonic Distance Sensor: 8 Kauj Ruam
Arduino LED Ring Ultrasonic Distance Sensor: Hauv qhov kev qhia no peb yuav kawm paub siv LED lub nplhaib nrog thiab Ultrasonic module ntsuas qhov nrug deb.Muaj video ua qauv qhia
DIY Wireless Mic rau Wireless Guitar System: 4 Kauj Ruam
DIY Wireless Mic rau Wireless Guitar System: Kuv tau saib qee cov vis dis aus thiab qee pab pawg thiab yuav luag ntawm lawv siv lub kaw lus wireless ntawm guitar. Mus vwm, tsiv, taug kev thiab ua txhua yam lawv xav tau yam tsis muaj hlua li kuv npau suav tias muaj ib qho .. Tab sis .. rau kuv tam sim no nws kim heev yog li kuv tuaj txog qhov no