Arduino UNO-Based IR Sensor System with LCD Display and Buzzer
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with multiple IR sensors, a buzzer, an LED, a 16x2 I2C LCD, a 12V battery, and a rocker switch. The Arduino UNO is the central controller, receiving inputs from the IR sensors and controlling the output devices such as the buzzer, LED, and LCD display.
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
- Description: Infrared sensor for detecting objects.
- Pins: out, gnd, vcc
Buzzer
- Description: An electronic device that emits sound.
- Pins: PIN, GND
LED: Two Pin (red)
- Description: A red light-emitting diode.
- Pins: cathode, anode
Battery 12V
- Description: A 12V power source.
- Pins: +, -
Rocker Switch
- Description: A switch that controls the flow of electricity.
- Pins: output, input
16x2 I2C LCD
- Description: A 16x2 character LCD with I2C interface.
- Pins: GND, VCC, SDA, SCL
Wiring Details
Arduino UNO
5V connected to:
- IR Sensor (vcc)
- IR Sensor (vcc)
- IR Sensor (vcc)
- IR Sensor (vcc)
- 16x2 I2C LCD (VCC)
GND connected to:
- LED: Two Pin (red) (cathode)
- 16x2 I2C LCD (GND)
- Rocker Switch (input)
- IR Sensor (gnd)
- IR Sensor (gnd)
- IR Sensor (gnd)
- IR Sensor (gnd)
- Buzzer (GND)
Vin connected to:
- Battery 12V (+)
A4 connected to:
- 16x2 I2C LCD (SDA)
A5 connected to:
- 16x2 I2C LCD (SCL)
D13 connected to:
- LED: Two Pin (red) (anode)
D6 connected to:
- Buzzer (PIN)
D5 connected to:
- IR Sensor (out)
D4 connected to:
- IR Sensor (out)
D3 connected to:
- IR Sensor (out)
D2 connected to:
- IR Sensor (out)
IR Sensor
vcc connected to:
- Arduino UNO (5V)
gnd connected to:
- Arduino UNO (GND)
out connected to:
- Arduino UNO (D5)
- Arduino UNO (D4)
- Arduino UNO (D3)
- Arduino UNO (D2)
Buzzer
PIN connected to:
- Arduino UNO (D6)
GND connected to:
- Arduino UNO (GND)
LED: Two Pin (red)
cathode connected to:
- Arduino UNO (GND)
anode connected to:
- Arduino UNO (D13)
Battery 12V
+ connected to:
- Arduino UNO (Vin)
- connected to:
- Rocker Switch (output)
Rocker Switch
input connected to:
- Arduino UNO (GND)
output connected to:
- Battery 12V (-)
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)
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 the main logic of your program runs repeatedly.
Additional Documentation
The additional documentation file is empty and can be used to add further details or explanations about the circuit and its operation.