Circuit Documentation
Summary of the Circuit
This circuit is designed around an Arduino UNO microcontroller, which serves as the central processing unit. The circuit includes two IR sensors for detecting objects or movements, a servo motor for actuation, and an LCD I2C display for user interface and data display. The Arduino UNO is responsible for controlling the servo based on inputs from the IR sensors and displaying relevant information on the LCD screen.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13.
- Purpose: Acts as the central processing unit for the circuit, reading sensor inputs, controlling the servo, and communicating with the LCD display.
Servo
- Description: An actuator capable of precise angular positioning.
- Pins: gnd, vcc, pulse.
- Purpose: Provides physical movement or actuation in response to signals from the Arduino UNO.
IR Sensor
- Description: A sensor that detects infrared light reflecting off objects.
- Pins: out, gnd, vcc.
- Purpose: Detects the presence or distance of objects and sends this information to the Arduino UNO.
LCD I2C Display
- Description: A liquid crystal display that uses the I2C protocol for communication.
- Pins: GND, VCC, SDA, SCL.
- Purpose: Displays information and readings from the Arduino UNO, such as sensor data or system status.
Wiring Details
Arduino UNO
- 5V: Connected to the VCC pins of both IR sensors, the Servo, and the LCD I2C Display.
- GND: Connected to the GND pins of both IR sensors, the Servo, and the LCD I2C Display.
- A4 (SDA): Connected to the SDA pin of the LCD I2C Display.
- A5 (SCL): Connected to the SCL pin of the LCD I2C Display.
- D2: Connected to the OUT pin of one IR sensor.
- D3: Connected to the OUT pin of the other IR sensor.
- D4: Connected to the PULSE pin of the Servo.
Servo
- gnd: Connected to the GND pin of the Arduino UNO.
- vcc: Connected to the 5V pin of the Arduino UNO.
- pulse: Connected to the D4 pin of the Arduino UNO.
IR Sensor
- out: One sensor's OUT pin is connected to the D2 pin, and the other sensor's OUT pin is connected to the D3 pin of the Arduino UNO.
- gnd: Connected to the GND pin of the Arduino UNO.
- vcc: Connected to the 5V pin of the Arduino UNO.
LCD I2C Display
- GND: Connected to the GND pin of the Arduino UNO.
- VCC: Connected to the 5V pin of the Arduino UNO.
- SDA: Connected to the A4 pin of the Arduino UNO.
- SCL: Connected to the A5 pin of the Arduino UNO.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
}
void loop() {
}
Note: The provided code is a template and does not contain any functional code. It needs to be populated with the logic for reading the IR sensors, controlling the servo, and updating the LCD display.