Introduction: Connecting Ultrasonic Sensor With Arduino

About: pursuing Bachelors in Electronics and Communication at Chandigarh University

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

Step 1: Circuit Schematic for Arduino and Ultrasonic Sensor

Arduino --> Ultrasonic Sensor

Pin 4 --> Trigger pin

Pin 3 --> Echo pin

VCC --> 5V

GND --> GND pin

Step 2: Arduino Code

Step 3: Serial Monitor (Output)