Obstacle Avoider based on HC-SR04 : Tutorial Leave a comment

The HC-SR04 sensor makes it possible to measure wirelessly the distance that separates it from a given obstacle. We will use this capability to build a bargraph that will alarm you if you approach a wall in order to avoid it.

For more about this sensor please check the show-case here .




VIDEO : Obstacle avoider tutorial

In order to realize this project you will need the following components :


Development Board



HC-SR04 Sensor


5mm colored LEDs


220 Ohm (or >) Resistors


Bread board


Jumper Wires

Resources :

Arduino sketch

HC-SR04 datasheet

Leave a Reply

Your email address will not be published. Required fields are marked *