Arduino UNO Based IR Sensor Array with I2C LCD Display and Indicator LEDs
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed around an Arduino UNO microcontroller and includes various peripherals such as two IR sensors, an LCD Display (16x4 with I2C interface), and two LEDs (one red and one yellow). The IR sensors are used to detect objects or motion, and their outputs are connected to the analog inputs of the Arduino. The LCD display is used for data visualization and is interfaced with the Arduino via the I2C protocol. The LEDs serve as indicators and are connected to digital outputs on the Arduino. The circuit is powered by the Arduino's 5V output, which also supplies power to the IR sensors and the LCD display.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- Provides digital and analog I/O pins
- Features I2C pins for communication with peripherals like the LCD display
IR Sensor
- Two instances of an IR sensor with digital output
- Used for object detection or motion sensing
- Each sensor has three pins: out, gnd, and vcc
LCD Display 16x4 I2C
- An alphanumeric liquid crystal display with 16 characters per line and 4 lines
- Uses I2C communication protocol
- Has four pins: SCL, SDA, VCC, and GND
LED: Two Pin (Red)
- A red LED with two pins: cathode and anode
- Acts as an indicator light
LED: Two Pin (Yellow)
- A yellow LED with two pins: cathode and anode
- Acts as an indicator light
Wiring Details
Arduino UNO
- 5V pin provides power to IR sensors and LCD Display
- GND pin is connected to the ground pins of all components
- A0 pin is connected to the output of one IR sensor
- A1 pin is connected to the output of the second IR sensor
- SCL pin is connected to the SCL pin of the LCD Display
- SDA pin is connected to the SDA pin of the LCD Display
- D13 pin is connected to the anode of the red LED
- D12 pin is connected to the anode of the yellow LED
IR Sensor
- VCC pin connected to 5V from Arduino UNO
- GND pin connected to ground
- OUT pin connected to an analog input on the Arduino UNO (A0 or A1)
LCD Display 16x4 I2C
- SCL pin connected to the SCL pin on the Arduino UNO
- SDA pin connected to the SDA pin on the Arduino UNO
- VCC pin connected to 5V from Arduino UNO
- GND pin connected to ground
LED: Two Pin (Red)
- Anode connected to D13 on Arduino UNO
- Cathode connected to ground
LED: Two Pin (Yellow)
- Anode connected to D12 on Arduino UNO
- Cathode connected to ground
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:
}
Note: The provided code is a template and does not include specific functionality. It should be populated with the setup and loop code to control the IR sensors, LCD display, and LEDs based on the requirements of the circuit's application.