Arduino distance meter with Ultrasonic Sensor (HC SR04) and Nokia 5110 LCD display


Measuring distance is so important in today’s world that things like driverless cars will be impossible without it, that description is probably enough to describe how important knowing the distance between two objects can be. For that reason, today we will be building a distance meter using the Arduino and the HC-SR04 ultrasonic sensor.

Arduino distance meter with Ultrasonic Sensor (HC SR04) and Nokia 5110 LCD display

The HC-SR04 ultrasonic sensor is a cheap ranging sensor capable of measuring a distance between 20 – 400cm without contact and at an accuracy of up to 3mm. The sensor is made up of a transmitter and receiver with operating frequency of around 40khz. It uses the echo principle for distance measurement by emitting an ultrasonic wave of 40khz. If there is an object in its path, the emitted wave is reflected and the reflected signal is received via the receiver. The time elapsed between the transmission of the signal and the reception of the echo is then used to determine the distance between the sensor and an object in its path.

The sensor has four pins, VCC, GND, Trig and Echo with trig and echo representing the transmitter and receiver pins respectively.

Some other features of the sensor includes;

  1. Power Supply:+5V DC
  2. Quiescent Current : <2mA
  3. Working Current: 15mA
  4. Effectual Angle: <15°
  5. Ranging Distance : 2cm – 400 cm/1″ – 13ft
  6. Resolution : 0.3 cm
  7. Measuring Angle: 30 degree
  8. Trigger Input Pulse width: 10uS
  9. Dimension: 45mm x 20mm x 15mm

The goal of this tutorial will be to measure distance using the ultrasonic sensor and display it on both the serial monitor and the Nokia 5110 LCD.

Required Components

The following components are needed for this project;

  1. Nokia 5110 LCD display
  2. Arduino Mega
  3. Powerbank
  4. Wires
  5. Small Breadboard

As usual, the exact components used for this tutorial can be bought by following the link attached to each of them.

Read more: Arduino distance meter with Ultrasonic Sensor (HC SR04) and Nokia 5110 LCD display

About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation, and engineering. I have a clear and simple writing style and am skilled in using infographics and diagrams. I am a great researcher and is able to present information in a well-organized and logical manner.

Scroll to Top