This project shows how to control a home appliance with Arduino and bluetooth module HC05 sends command from mobile.
Then relay switches the AC load like bulb or fan
Arduino Bluetooth Appliance Controller Circuit is simple and safe when wired correctly, also it is good for beginners who want home automation.
Arduino Code:
#include <SoftwareSerial.h>
SoftwareSerial BT(10, 11);
int relay = 7;
void setup() {
pinMode(relay, OUTPUT);
digitalWrite(relay, LOW);
BT.begin(9600);
}
void loop() {
if (BT.available()) {
char c = BT.read();
if (c == '1') {
digitalWrite(relay, HIGH);
}
if (c == '0') {
digitalWrite(relay, LOW);
}
}
}Code Explanation:
- SoftwareSerial makes pin 10 and 11 act like RX and TX.
- Relay pin set as output.
- Bluetooth sends characters like 1 or 0.
- When Arduino gets 1 it turns ON relay.
- When Arduino gets 0 it turns OFF relay.
- Relay controls AC load.
Circuit Working:

Parts List:
| Components | Quantity |
|---|---|
| Arduino UNO | 1 |
| HC-05 Bluetooth Module | 1 |
| Relay Module 5V | 1 |
| Bulb 220V | 1 |
| Mobile Phone | 1 |
| 220V AC Supply | 1 |
| USB Cable | 1 |
HC05 sends signals to Arduino and then Arduino reads TX signal and decides ON or OFF; after that, relay module gets 5 volt from Arduino.
Then relay works like a switch and phase wire from AC goes into relay and relay breaks or connects phase wire.
Now bulb turns ON when relay closes and bulb turns OFF when relay opens.
How To build:
To build a Arduino Bluetooth Appliance Controller Circuit follow the below steps for connection:
- First, take all the parts as shown in circuit diagram.
- Next, HC05 VCC pin connect to Arduino 5V, HC05 GND connect to to Arduino GND, HC05 TX pin connect to Arduino pin 10 and HC05 RX pin connect to Arduino pin 11 through a level shifter or voltage divider.
- Now relay module VCC pin goes to Arduino 5V, relay GND pin go to Arduino GND and relay IN pin go to Arduino pin 7.
- Also, AC phase wire from mains goes to relay input terminal and relay output terminal goes to bulb phase.
- Finally, neutral from mains goes directly to bulb neutral.
Conclusion:
To conclude, this Arduino Bluetooth Appliance Controller Circuit is easy for beginners, as Arduino and Bluetooth give wireless control and relay lets us automate any AC appliance.
Also, this circuit is good base project for bigger smart home systems.
Leave a Reply