Arduino UNO Controlled Smart Lighting System with HC-05 Bluetooth Module
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question is designed to control multiple AC bulbs using an Arduino UNO as the central processing unit, interfaced with an HC-05 Bluetooth module for wireless communication and a 4-channel 5V relay module to switch the AC bulbs on and off. The power supply for the circuit is a 220V AC source, which is also the operating voltage for the AC bulbs.
Component List
Arduino UNO
- Microcontroller board based on the ATmega328P
- It has 14 digital input/output pins, 6 analog inputs, a 16 MHz quartz crystal, a USB connection, a power jack, an ICSP header, and a reset button.
HC-05 Bluetooth Module
- Wireless communication module that can operate in either master or slave mode
- It has 6 pins: EN (Enable), VCC, GND, TXD (Transmit), RXD (Receive), and STATE.
AC Bulb
- Standard AC-powered light bulb
- It has 2 pins: P (Phase) and N (Neutral).
Relay 4 Channel 5V
- A 4-channel relay module with 5V operating voltage
- It has multiple pins for ground (GND), input signals (IN1-IN4), VCC, common (COM1-COM4), normally open (NO1-NO4), and normally closed (NC1-NC4) contacts.
Power 220V
- AC power supply
- It has 2 pins: hot wire and neutral wire.
Wiring Details
Arduino UNO
- 5V to HC-05 VCC and Relay VCC
- GND to HC-05 GND and Relay GND
- Digital Pin D9 to Relay IN1
- Digital Pin D8 to Relay IN2
- Digital Pin D5 to Relay IN3
- Digital Pin D4 to Relay IN4
- Digital Pin D1 (TX) to HC-05 RXD
- Digital Pin D0 (RX) to HC-05 TXD
HC-05 Bluetooth Module
- VCC to Arduino 5V
- GND to Arduino GND
- TXD to Arduino D0 (RX)
- RXD to Arduino D1 (TX)
AC Bulbs
- N (Neutral) of each bulb to Relay COM1, COM2, COM3, and COM4 respectively
- P (Phase) of all bulbs connected together and to Power 220V hot wire
Relay 4 Channel 5V
- VCC to Arduino 5V
- GND to Arduino GND
- IN1 to Arduino D9
- IN2 to Arduino D8
- IN3 to Arduino D5
- IN4 to Arduino D4
- NO1, NO2, NO3, NO4 to Power 220V neutral wire
- COM1, COM2, COM3, COM4 to AC Bulbs N (Neutral)
Power 220V
- Hot wire to P (Phase) of all AC Bulbs
- Neutral wire to Relay NO1, NO2, NO3, and NO4
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 contain any functional code to control the relay module or communicate with the HC-05 Bluetooth module. The user is expected to write the necessary code to implement the desired functionality.