How to measure Distance Using Ultrasonic Sensor & Arduino | English | IoT

Tech Trends Shameer
Tech Trends Shameer
3.8 هزار بار بازدید - 5 سال پیش - Required Components:===================1. Arduino Uno2. LCD
Required Components:
===================

1. Arduino Uno
2. LCD Display
3. Ultrasonic Sensor
4. Breadboard
5. Type A to B USB Cable
6. Male to Male Jumper Wires


Steps:
=====

1. Connect the LCD Display and Ultrasonic Sensor to the Breadboard.

2. Connect one end of male to male jumper wire to GND in Arduino and other end of this wire to VSS in LCD Display.

3. Connect the GND of Ultrasonic sensor, VO in LCD, K in LCD to a common GND in Breadboard.

4. Connect the +5V of Arduino, VDD of LCD, A in LCD, VCC in Ultrasonic to a common +5v in Breadboard.

5. Connect one end of jumper wire to Pin 13 in Arduino and other end to TRIG in Ultrasonic Sensor.

6. Connect one end of jumper wire to Pin 12 in Arduino and other end to ECHO in Ultrasonic Sensor.

7. Connect one end of jumper wire to Pin 11 in Arduino and other end to RS in LCD Display.

8. Connect one end of jumper wire to Pin 10 in Arduino and other end to RW in LCD Display.

9. Connect one end of jumper wire to Pin 9 in Arduino and other end to E in LCD Display.

10. Connect one end of jumper wire to Pin 5 in Arduino and other end to D7 in LCD Display.

11. Connect one end of jumper wire to Pin 4 in Arduino and other end to D6 in LCD Display.

12. Connect one end of jumper wire to Pin 3 in Arduino and other end to D5 in LCD Display.

13. Connect one end of jumper wire to Pin 2 in Arduino and other end to D4 in LCD Display.


Source Code:
===========
https://github.com/Tech-Trends-Shamee...

Reference Video of Arduino Setup:
===========================

https://www.seevid.ir/fa/w/N33w6...

Music: https://www.bensound.com/
5 سال پیش در تاریخ 1398/07/29 منتشر شده است.
3,845 بـار بازدید شده
... بیشتر