How to use two Ultrasonic sensors with Arduino

DIY GUY Chris
DIY GUY Chris
61.9 هزار بار بازدید - 7 سال پیش - $2 for 2-Layer PCBs &
$2 for 2-Layer PCBs & $5 for 4-Layer PCBs:  https://jlcpcb.com/PCH
Start Altium designer FREE TRIAL : https://www.altium.com/yt/diyguychris
In this tutorial I explained how does the Ultrasonic sensor operates to understand the utility of each pin in order to use this sensor correctly.
I used two Ultrasonic sensors HC-SR04 connected to my Arduino Mega2560 and I measured the distance between each sensor and the object around it then I displayed the measered distance through the Serial monitor

★☆★ ORDER LINKS FOR THE COMPONENTS: ★☆★

(*) Arduino Mega2560: http://amzn.to/2vPFMjS
(*) Two Ultrasonic sensors HC-SR04: http://amzn.to/2ihtYlC
(*) Bread board: http://amzn.to/2vOV7ko
(*) Jumper wires: http://amzn.to/2fVofB0
(*) Two LEDs and 330 Ohm Resistors: http://amzn.to/2otShiz


★☆★ DOWNLOAD THE CODE: ★☆★

http://ouo.io/n8ojw4

★☆★ DOWNLOAD THE CIRCUIT: ★☆★

http://ouo.io/o86LD

★☆★ SUPPORT US WITH A SIMPLE TIP ★☆★
TiP here : https://en.tipeee.com/mega-das


★☆★ FOLLOW ME BELOW: ★☆★

Instructables: http://www.instructables.com/member/M...
Hackaday : https://hackaday.io/MegaDAS
Facebook : https://www.facebook.com/MEG.DAS1/?fr...
Twitter : Twitter: MEGADAS1
Hackster : https://www.hackster.io/mega-das


Keywords:
Ultrasonic sensor HC-sr04
Arduino Mega2560
Distance measurement
7 سال پیش در تاریخ 1396/01/14 منتشر شده است.
61,924 بـار بازدید شده
... بیشتر