Connecting Ultrasonic Sensor With Arduino

by Rachna Aggarwal in Circuits > Arduino

370 Views, 0 Favorites, 0 Comments

Connecting Ultrasonic Sensor With Arduino

20200922_144847.jpg

Ultrasonic sensor have a range of 2 cm to 400 cm or 1” to 13 feet. Ultrasonic sensor send back the distance from the object placed in-front of it but cannot detect the type of the object.

Components Required

1. Arduino UNO board - https://amzn.to/32jAMUA

2. Ultrasonic sensor - https://amzn.to/2Hq9bJy

3. Jumper wires - https://amzn.to/3iqdBxM

4. Breadboard (optional). - https://amzn.to/3kdp4Rt

Circuit Schematic for Arduino and Ultrasonic Sensor

ard +UV.PNG
arduino.jpg
ultrasonic terminals.jpg

Arduino --> Ultrasonic Sensor

Pin 4 --> Trigger pin

Pin 3 --> Echo pin

VCC --> 5V

GND --> GND pin

Arduino Code

ard+uv code.PNG

Downloads

Serial Monitor (Output)

ard+UV serial code.PNG