Arduino UNO-Based Smart Light Control with I2C LCD Display and Relay
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a 16x2 I2C LCD, a 1-Channel Relay, an Analog Meter, an AC Supply, a Rocker Switch, and a bulb. The Arduino UNO controls the relay and the LCD display, while the relay controls the power to the bulb. The Analog Meter measures the current from the AC supply, and the Rocker Switch is used to control the relay.
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
16x2 I2C LCD
- Description: A 16x2 character LCD display with I2C interface.
- Pins: GND, VCC, SDA, SCL
1-Channel Relay (5V 10A)
- Description: A relay module that can control high voltage devices.
- Pins: NC, signal, C, power, NO, ground
Analog Meter
- Description: An analog meter for measuring current or voltage.
- Pins: in +, IN -, Out +, Out -
AC Supply
- Description: An AC power supply.
- Pins: +ve, -ve
Rocker Switch
- Description: A simple on/off switch.
- Pins: 1, 2
Bulb
- Description: A standard light bulb.
- Pins: GND, power
GND
- Description: Ground connection.
- Pins: GND
Wiring Details
Arduino UNO
- 5V connected to VCC of 16x2 I2C LCD and power of 1-Channel Relay
- GND connected to ground of 1-Channel Relay and GND of 16x2 I2C LCD
- SCL connected to SCL of 16x2 I2C LCD
- SDA connected to SDA of 16x2 I2C LCD
- D7 connected to signal of 1-Channel Relay
- D6 connected to 1 of Rocker Switch
16x2 I2C LCD
- VCC connected to 5V of Arduino UNO
- GND connected to GND of Arduino UNO
- SCL connected to SCL of Arduino UNO
- SDA connected to SDA of Arduino UNO
1-Channel Relay (5V 10A)
- power connected to 5V of Arduino UNO
- ground connected to GND of Arduino UNO
- signal connected to D7 of Arduino UNO
- NC connected to power of bulb
- C connected to Out - of Analog Meter
Analog Meter
- in + connected to +ve of AC Supply
- IN - connected to -ve of AC Supply
- Out + connected to GND of bulb
- Out - connected to C of 1-Channel Relay
AC Supply
- +ve connected to in + of Analog Meter
- -ve connected to IN - of Analog Meter
Rocker Switch
- 1 connected to D6 of Arduino UNO
- 2 connected to GND
Bulb
- power connected to NC of 1-Channel Relay
- GND connected to Out + of Analog Meter
GND
- GND connected to 2 of Rocker Switch
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:
}
Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.