This project creates a device that measures distances using ultrasonic waves and displays the readings on an LCD screen.
The tool works by sending ultrasonic pulses from a sensor, measuring how long they take to bounce back, and calculating the distance based on the speed of sound. The calculated distance is then shown on a 16×2 Liquid Crystal Display (LCD) in centimetres, with special handling for out-of-range readings.
Assembly Instructions
- Connect the LCD to the Arduino:
- LCD RS pin to Arduino digital pin 7
- LCD E pin to Arduino digital pin 6
- LCD D4 pin to Arduino digital pin 5
- LCD D5 pin to Arduino digital pin 4
- LCD D6 pin to Arduino digital pin 3
- LCD D7 pin to Arduino digital pin 2
- Connect the ultrasonic sensor to the Arduino:
- Trigger pin to Arduino digital pin 12
- Echo pin to Arduino digital pin 11
- VCC to Arduino 5V
- GND to Arduino GND
- Power on the board and observe the LCD displaying “Distance Tool” on the first line and distance readings on the second line.
- Point the ultrasonic sensor towards objects to measure their distance from the sensor.