ESP32-Based Ultrasonic Distance Sensor with I2C LCD Display and LED Indicators
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an ESP32 microcontroller, an ultrasonic sensor, a 16x2 I2C LCD, and three blue LEDs. The circuit is designed to interface these components for various functionalities, such as distance measurement and display.
Component List
ESP32 (30 pin)
- Description: A powerful microcontroller with Wi-Fi and Bluetooth capabilities.
- Pins: EN, VP, VN, D34, D35, D32, D33, D25, D26, D27, D14, D12, D13, GND, Vin, D23, D22, TX0, RX0, D21, D19, D18, D5, TX2, RX2, D4, D2, D15, 3V3
Ultrasonic Sensor
- Description: A sensor used for measuring distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
16x2 I2C LCD
- Description: A 16x2 character LCD with I2C interface for displaying information.
- Pins: GND, VCC, SDA, SCL
LED: Two Pin (blue)
- Description: A blue LED with two pins.
- Pins: cathode, anode
Wiring Details
ESP32 (30 pin)
- GND: Connected to GND of 16x2 I2C LCD, GND of Ultrasonic Sensor, and cathodes of all three LEDs.
- Vin: Connected to VCC of 16x2 I2C LCD and +VCC of Ultrasonic Sensor.
- D21: Connected to SDA of 16x2 I2C LCD.
- D22: Connected to SCL of 16x2 I2C LCD.
- D12: Connected to Trigger of Ultrasonic Sensor.
- D13: Connected to Echo of Ultrasonic Sensor.
- D23: Connected to anode of one blue LED.
- D19: Connected to anode of another blue LED.
- D18: Connected to anode of the third blue LED.
Ultrasonic Sensor
- +VCC: Connected to Vin of ESP32.
- Trigger: Connected to D12 of ESP32.
- Echo: Connected to D13 of ESP32.
- GND: Connected to GND of ESP32.
16x2 I2C LCD
- GND: Connected to GND of ESP32.
- VCC: Connected to Vin of ESP32.
- SDA: Connected to D21 of ESP32.
- SCL: Connected to D22 of ESP32.
LED: Two Pin (blue)
- Anode:
- One LED anode connected to D23 of ESP32.
- Another LED anode connected to D19 of ESP32.
- Third LED anode connected to D18 of ESP32.
- Cathode: All cathodes connected to GND of ESP32.
Code
No code is provided for this circuit.
This document provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and code documentation. The components are described with their respective pins and connections to ensure clarity and ease of understanding.