Object Detection With An Ultrasonic Sensor

Published by frenoy on

After getting an understanding of how IR sensors work, we now learn about ultrasonic sensors. These have a much higher detection range and can be used for various purposes – from simple object detection to mapping surroundings. This post gives you all the information you need to know in order to use them and we also test it out by writing a demo Arduino sketch.

Step 1: Watch the Video

Since this is mainly a tutorial video, I’d recommend that you watch the video above to get a better understanding of using the ultrasonic sensor.

Step 2: Wire The Sensor

Wiring

Step 3: Download The Sketch

You can download the demo sketch using the following link: https://github.com/bnbe-club/using-an-ultrasonic-sensor-diy-45