Arduino Nano and HC-05 Bluetooth Controlled Relay System for Smart Home Automation
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino Nano microcontroller, a 4-channel relay module, an HC-05 Bluetooth module, and various other components such as AC bulbs, sockets, and a power supply. The circuit is designed to control different loads (like bulbs and sockets) through relays, which are operated by the Arduino Nano. The HC-05 Bluetooth module allows for wireless communication with the Arduino Nano.
Component List
Relay 4 Channel 5v
- Description: A relay module with 4 channels, each capable of switching high voltage loads.
- Pins: GND, IN1, IN2, IN3, IN4, VCC, COM1, COM2, COM3, COM4, NO1, NO2, NO3, NO4, NC1, NC2, NC3, NC4
Arduino Nano
- Description: A small, complete, and breadboard-friendly microcontroller board based on the ATmega328P.
- Pins: D1/TX, D0/RX, RESET, GND, D2, D3, D4, D5, D6, D7, D8, D9, D10, D11/MOSI, D12/MISO, VIN, 5V, A7, A6, A5, A4, A3, A2, A1, A0, AREF, 3V3, D13/SCK
HC-05 Bluetooth Module
- Description: A Bluetooth module for wireless communication.
- Pins: Key, VCC, GND, TXD, RXD, State
Power 220v
- Description: A 220V AC power supply.
- Pins: hot wire, neutral wire
Socket
- Description: A standard electrical socket.
- Pins: Green, Life, Neutral
AC Bulb
- Description: A standard AC bulb.
- Pins: P, N
BULB
- Description: A standard DC bulb.
- Pins: +, -
AC to DC Converter
- Description: A converter that converts 220V AC to 12V and 5V DC.
- Pins: 12v, -, 5v, live, neutral
Socket (another instance)
- Description: Another instance of a standard electrical socket.
- Pins: earth, life, neutral
Wiring Details
Relay 4 Channel 5v
GND is connected to:
- AC to DC Converter (-)
- Arduino Nano (GND)
- HC-05 Bluetooth Module (GND)
VCC is connected to:
- AC to DC Converter (5v)
- Arduino Nano (5V)
- HC-05 Bluetooth Module (VCC)
COM1, COM2, COM3, COM4 are connected to:
- Power 220v (hot wire)
- AC to DC Converter (live)
NO1 is connected to:
- AC Bulb (P)
NO2 is connected to:
- BULB (+)
NO3 is connected to:
- Socket (Life)
NO4 is connected to:
- Socket (life)
Arduino Nano
GND is connected to:
- Relay 4 Channel 5v (GND)
- AC to DC Converter (-)
- HC-05 Bluetooth Module (GND)
5V is connected to:
- Relay 4 Channel 5v (VCC)
- AC to DC Converter (5v)
- HC-05 Bluetooth Module (VCC)
D0/RX is connected to:
- HC-05 Bluetooth Module (TXD)
D1/TX is connected to:
- HC-05 Bluetooth Module (RXD)
HC-05 Bluetooth Module
GND is connected to:
- Relay 4 Channel 5v (GND)
- Arduino Nano (GND)
- AC to DC Converter (-)
VCC is connected to:
- Relay 4 Channel 5v (VCC)
- Arduino Nano (5V)
- AC to DC Converter (5v)
TXD is connected to:
- Arduino Nano (D0/RX)
RXD is connected to:
- Arduino Nano (D1/TX)
Power 220v
hot wire is connected to:
- Relay 4 Channel 5v (COM1, COM2, COM3, COM4)
- AC to DC Converter (live)
neutral wire is connected to:
- Socket (Neutral)
- AC Bulb (N)
- Socket (neutral)
- BULB (-)
- AC to DC Converter (neutral)
Socket
Life is connected to:
- Relay 4 Channel 5v (NO3)
Neutral is connected to:
- Power 220v (neutral wire)
AC Bulb
P is connected to:
- Relay 4 Channel 5v (NO1)
N is connected to:
- Power 220v (neutral wire)
BULB
+ is connected to:
- Relay 4 Channel 5v (NO2)
- is connected to:
- Power 220v (neutral wire)
AC to DC Converter
- is connected to:
- Relay 4 Channel 5v (GND)
- Arduino Nano (GND)
- HC-05 Bluetooth Module (GND)
5v is connected to:
- Relay 4 Channel 5v (VCC)
- Arduino Nano (5V)
- HC-05 Bluetooth Module (VCC)
live is connected to:
- Power 220v (hot wire)
- Relay 4 Channel 5v (COM1, COM2, COM3, COM4)
neutral is connected to:
- Power 220v (neutral wire)
- Socket (neutral)
- AC Bulb (N)
- BULB (-)
Socket (another instance)
life is connected to:
- Relay 4 Channel 5v (NO4)
neutral is connected to:
- Power 220v (neutral wire)
Documented Code
Arduino Nano Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional 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 microcontroller.