Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes 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 circuit is designed to control a bulb using a relay, with the status displayed on an LCD. The Arduino UNO serves as the central controller, interfacing with the relay and 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
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 electrical parameters.
- 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 electrical bulb.
- Pins: GND, power
GND
- Description: Ground connection.
- Pins: GND
Wiring Details
Arduino UNO
5V connected to:
- 1-Channel Relay (power)
- 16x2 I2C LCD (VCC)
GND connected to:
- 1-Channel Relay (ground)
- 16x2 I2C LCD (GND)
SCL connected to:
- 16x2 I2C LCD (SCL)
SDA connected to:
- 16x2 I2C LCD (SDA)
D7 connected to:
- 1-Channel Relay (signal)
D6 connected to:
- Rocker Switch (1)
D2 connected to:
- Rocker Switch (1)
16x2 I2C LCD
GND connected to:
- Arduino UNO (GND)
VCC connected to:
- Arduino UNO (5V)
SDA connected to:
- Arduino UNO (SDA)
SCL connected to:
- Arduino UNO (SCL)
1-Channel Relay (5V 10A)
power connected to:
- Arduino UNO (5V)
ground connected to:
- Arduino UNO (GND)
signal connected to:
- Arduino UNO (D7)
NC connected to:
- Bulb (power)
C connected to:
- Analog Meter (Out -)
Analog Meter
Out - connected to:
- 1-Channel Relay (C)
in + connected to:
- AC Supply (+ve)
IN - connected to:
- AC Supply (-ve)
Out + connected to:
- Bulb (GND)
AC Supply
+ve connected to:
- Analog Meter (in +)
-ve connected to:
- Analog Meter (IN -)
Rocker Switch
1 connected to:
- Arduino UNO (D6)
- Arduino UNO (D2)
2 connected to:
- GND (GND)
Bulb
GND connected to:
- Analog Meter (Out +)
power connected to:
- 1-Channel Relay (NC)
GND
- GND connected to:
- Rocker Switch (2)
Documented Code
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 used to initialize any settings or configurations, and the loop function contains the main logic that runs repeatedly. In this circuit, additional code would be required to control the relay and update the LCD display based on the status of the bulb and switch.
