Arduino UNO-Based IR Sensor and Servo Motor System with I2C LCD Display
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, two IR sensors, a Micro servo 9G, and a 16x2 I2C LCD. The Arduino UNO serves as the central controller, interfacing with the IR sensors to detect objects, controlling the servo motor, and displaying information on the LCD.
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
IR Sensor 1
- Description: An infrared sensor used for object detection.
- Pins: out, gnd, vcc
IR Sensor 2
- Description: An infrared sensor used for object detection.
- Pins: out, gnd, vcc
Micro Servo 9G
- Description: A small servo motor used for precise control of angular position.
- Pins: GND, +5V, PWM
16x2 I2C LCD
- Description: A 16x2 character LCD with I2C interface for displaying information.
- Pins: GND, VCC, SDA, SCL
Wiring Details
Arduino UNO
- 5V: Connected to VCC of IR Sensor 1, IR Sensor 2, Micro Servo 9G, and 16x2 I2C LCD
- GND: Connected to GND of IR Sensor 1, IR Sensor 2, Micro Servo 9G, and 16x2 I2C LCD
- A4: Connected to SDA of 16x2 I2C LCD
- A5: Connected to SCL of 16x2 I2C LCD
- D4: Connected to out of IR Sensor 1
- D3: Connected to PWM of Micro Servo 9G
- D2: Connected to out of IR Sensor 2
IR Sensor 1
- vcc: Connected to 5V of Arduino UNO
- gnd: Connected to GND of Arduino UNO
- out: Connected to D4 of Arduino UNO
IR Sensor 2
- vcc: Connected to 5V of Arduino UNO
- gnd: Connected to GND of Arduino UNO
- out: Connected to D2 of Arduino UNO
Micro Servo 9G
- +5V: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- PWM: Connected to D3 of Arduino UNO
16x2 I2C LCD
- 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
Code Documentation
Arduino UNO Code
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This code is a basic template for the Arduino UNO. The setup() function is where you initialize your components and settings, and the loop() function is where you place the main logic that runs repeatedly.
Additional Documentation
The additional documentation file is empty and can be used to add further details or comments about the project.