In this blog we are going to discuss DIY project which uses Arduino Uno and HC-05 Bluetooth module to for Home Automation. Since here we have used LED bulb for the reference of device but you can use any type of device to be controlled such as TV, Air Conditioner or any other device. You can also control many devices using this setup.
So let's get started the step to get your own Bluetooth controlled Home Automation setup.
So let's get started the step to get your own Bluetooth controlled Home Automation setup.
![]() |
Home Automation |
Components Required
- Arduino Uno
- Led Bulb (you can use any other device if you want)
- Jumper Wires (male to female)
- HC-05 Bluetooth Module
- Relay Module (I have used 8 channel 5 V relay module, but you can use 4 or 2 channel)
- 2 Pin plug
- Bulb holder
- Wires (as per your requirement)
Software Requirement
Since, we need to write code upload it to the Arduino board so we need Arduino IDE to do that, if you do not have Arduino IDE then download from here.
Steps for DIY Project
Step 1: Coding and uploading the code to the Arduino
Here is the code:
String voice;
void setup() {
pinMode(13, OUTPUT);
Serial.begin(9600);
}
void loop() {
while (Serial.available())
{
delay(10);
char c = Serial.read();
voice += c;
}
if (voice.length() > 0)
{
Serial.println(voice);
if(voice == "on")
{
digitalWrite(13, HIGH);
}
if(voice == "off")
{
digitalWrite(13, LOW);
}
voice="";
}
}
You can also download the file from here.
Step 2: Making Connections between Arduino UNO and HC-05 Bluetooth Module.
Since, there are 6 pins in HC-05 module but in this project we only will use 4 of them. Here are the connection:-
0 Comments