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 -

2. Ultrasonic sensor -

3. Jumper wires -

4. Breadboard (optional). -

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)