Ultrasonic Rangefinder

Today, I’ll be showing you how a ultrasonic sensor can be used to determine the distance of an object from the sensor, which will be displayed on a LCD display. In this tutorial, I’ll be using a Parallax ultrasonic sensor & a parallax serial LCD Display.

Configuration of Serial LCD

In this tutorial, I’ll be using 9600 baud rate, hence you have to switch the Serial LCD mode to 9600 baud. This can be done by switching the 2 DIP switches (on the rear of the panel) as shown below:



How will it look like?


Parts Required

  • Ultrasonic Sensor x 1
  • LCD Display x 1
  • Arduino Uno x 1
  • Jumper wires x 1






[The code was adapted from the sample PING program found in the Arduino IDE. (Files > Examples > Sensors > Ping) ]



You may also like...