Ultrasonic Sensor as a Counter with Arduino

Ultrasonic Sensor as a counter with Arduino

Hi in this tutorial we will see how to use ultrasonic sensor as a counter and output will be shown on LCD display. It will count number of times object passes in front of sensor.

Circuit Diagram

Provide separate ground for ultrasonic sensor. And connect VCC pin near to 5V pin. Otherwise it will not work and sensor will give constantly increment values even you are not doing anything with the sensor.