Arduino-Powered IR Sensor and LCD Display with DC Motor Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes a 9V Battery, a DC Motor, a 16x2 I2C LCD, an Arduino UNO, and an IR sensor. The circuit is designed to power a DC motor and display information on an LCD screen, with an IR sensor providing input to the Arduino UNO.
Component List
9V Battery
- Description: A standard 9V battery used to power the DC motor.
- Pins: -, +
DC Motor
- Description: A DC motor that is powered by the 9V battery.
- Pins: pin 1, pin 2
16x2 I2C LCD
- Description: A 16x2 character LCD with I2C interface for displaying information.
- Pins: GND, VCC, SDA, SCL
Arduino UNO
- Description: A microcontroller board based on the ATmega328P, used to control the LCD and read input from the IR sensor.
- 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
- Description: An infrared sensor used to detect objects and provide input to the Arduino UNO.
- Pins: out, gnd, vcc
Wiring Details
9V Battery
- - connected to DC Motor pin 2
- + connected to DC Motor pin 1
DC Motor
- pin 2 connected to 9V Battery -
- pin 1 connected to 9V Battery +
16x2 I2C LCD
- GND connected to Arduino UNO GND
- VCC connected to Arduino UNO 5V
- SDA connected to Arduino UNO A4
- SCL connected to Arduino UNO A5
Arduino UNO
- GND connected to 16x2 I2C LCD GND and IR Sensor gnd
- 5V connected to 16x2 I2C LCD VCC
- A4 connected to 16x2 I2C LCD SDA
- A5 connected to 16x2 I2C LCD SCL
- 3.3V connected to IR Sensor vcc
- D2 connected to IR Sensor out
IR Sensor
- vcc connected to Arduino UNO 3.3V
- gnd connected to Arduino UNO GND
- out connected to Arduino UNO D2
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)
This document provides a comprehensive overview of the circuit, including a summary, component list, wiring details, and documented code.