Arduino UNO Ultrasonic Distance Measurement with LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, an Ultrasonic Sensor, an LCD Display, and an LCM1602 IIC module. The Arduino UNO serves as the central controller, interfacing with the Ultrasonic Sensor to measure distance and displaying the results on the LCD Display through the LCM1602 IIC module.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
LCD Display (16 pin)
- Description: A 16-pin LCD display used to show alphanumeric characters.
- Pins: VSS, VDD, VO, RS, R_W, E, DB0, DB1, DB2, DB3, DB4, DB5, DB6, DB7, A, K
LCM1602 IIC
- Description: An I2C interface module for the LCD display.
- Pins: GND, VCC, SDA, SCL, D6, D7, A, K, VSS, VDD, V0, RS, D2, D3, D4, D5, RW, E, D0, D1, LED_A, LED_B
Wiring Details
Arduino UNO
- 5V connected to VCC of LCM1602 IIC and +VCC of Ultrasonic Sensor
- GND connected to GND of LCM1602 IIC and GND of Ultrasonic Sensor
- A4 connected to SDA of LCM1602 IIC
- A5 connected to SCL of LCM1602 IIC
- D10 connected to Echo of Ultrasonic Sensor
- D9 connected to Trigger of Ultrasonic Sensor
Ultrasonic Sensor
- +VCC connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO
- Echo connected to D10 of Arduino UNO
- Trigger connected to D9 of Arduino UNO
LCD Display (16 pin)
- VSS connected to VSS of LCM1602 IIC
- VDD connected to VDD of LCM1602 IIC
- VO connected to V0 of LCM1602 IIC
- RS connected to RS of LCM1602 IIC
- R_W connected to RW of LCM1602 IIC
- E connected to E of LCM1602 IIC
- DB0 connected to D0 of LCM1602 IIC
- DB1 connected to D1 of LCM1602 IIC
- DB2 connected to D2 of LCM1602 IIC
- DB3 connected to D3 of LCM1602 IIC
- DB4 connected to D4 of LCM1602 IIC
- DB5 connected to D5 of LCM1602 IIC
- DB6 connected to D6 of LCM1602 IIC
- DB7 connected to D7 of LCM1602 IIC
- A connected to A of LCM1602 IIC
- K connected to K of LCM1602 IIC
LCM1602 IIC
- VCC connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO
- SDA connected to A4 of Arduino UNO
- SCL connected to A5 of Arduino UNO
- VSS connected to VSS of LCD Display
- VDD connected to VDD of LCD Display
- V0 connected to VO of LCD Display
- RS connected to RS of LCD Display
- RW connected to R_W of LCD Display
- E connected to E of LCD Display
- D0 connected to DB0 of LCD Display
- D1 connected to DB1 of LCD Display
- D2 connected to DB2 of LCD Display
- D3 connected to DB3 of LCD Display
- D4 connected to DB4 of LCD Display
- D5 connected to DB5 of LCD Display
- D6 connected to DB6 of LCD Display
- D7 connected to DB7 of LCD Display
- A connected to A of LCD Display
- K connected to K of LCD Display
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Documentation (documentation.txt)