ESP32-Based Detection System with IR Sensors and Servo Actuators
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed to interface an ESP32 microcontroller with multiple peripherals including IR sensors, servo motors, and an I2C LCD screen. The ESP32 reads inputs from the IR sensors and controls the servo motors accordingly. It also communicates with the LCD screen over the I2C protocol to display information.
Component List
ESP32 (30 pin)
- Description: A microcontroller with Wi-Fi and Bluetooth capabilities, featuring a wide range of GPIO pins.
- Purpose: Acts as the central processing unit of the circuit, reading sensor inputs, controlling servos, and managing the LCD display.
I2C LCD 16x2 Screen
- Description: A 16x2 character LCD display that uses the I2C communication protocol.
- Purpose: Displays information and statuses related to the circuit's operation.
Servo
- Description: An actuator that can be precisely controlled to set the angle of its output shaft.
- Purpose: Performs physical actions in response to commands from the ESP32.
IR Sensor
- Description: A sensor that detects infrared light, often used to measure distance or detect motion.
- Purpose: Provides input to the ESP32 for processing and decision-making.
Wiring Details
ESP32 (30 pin)
- D34: Connected to IR sensor (output)
- D32: Connected to IR sensor (output)
- D33: Connected to IR sensor (output)
- D27: Connected to IR sensor (output)
- D14: Connected to Servo (pulse)
- D15: Connected to Servo (pulse)
- D22: Connected to I2C LCD Screen (SDA)
- D21: Connected to I2C LCD Screen (SCL)
- GND: Common ground with all components
- Vin: Power supply input (not detailed in the net list)
I2C LCD 16x2 Screen
- SCL: Connected to ESP32 (D21)
- SDA: Connected to ESP32 (D22)
- VCC (5V): Power supply input
- GND: Connected to common ground
Servo
- Pulse: Connected to ESP32 (D14 or D15)
- VCC: Power supply input
- GND: Connected to common ground
IR Sensor
- Out: Connected to ESP32 (D34, D32, D33, or D27)
- VCC: Power supply input
- GND: Connected to common ground
Documented Code
No code has been provided for the microcontrollers in the circuit. The expected code should handle the initialization of the I2C interface for communication with the LCD screen, read inputs from the IR sensors, and send appropriate commands to the servo motors based on the sensor inputs. Additionally, the code should include routines for updating the display on the LCD screen with relevant information such as sensor readings or system status.