Arduino home automation
Hey Guys, Welcome back to the Techatronics. In this project, we will make our home automation using Arduino and the Bluetooth app-based. there will be an app that will be connected to the Device which controls our home all appliance by the simple mobile app. just by enabling Bluetooth or our mobile phone. It is the simplest home automation with some limitations. we will discuss later the limitations. you will learn many things in this project. we will use my sensor and the electronic device. This is very interesting to control the home appliance on a mobile phone.
In-home automation there are many technologies like Arduino home automation, application-based home automation, web-page-based home automation, and much more. Bluetooth control home automation system needs an android or ios app which can enable Bluetooth of the mobile and can be connected to the device. there are some relays at the board that can easily connect to the home appliance. Bluetooth home automation is the easiest way to automate your home at a very low cost. because there is no need for the internet or wifi to make the connection between the mobile phone or the home appliances. you only need and Bluetooth and a processing device like Arduino and ras-pi.
Learn 10+ basic activity & sensor interfacing with our Arduino ebook. Well explained program. And brief circuit diagram WhatsApp and email support. which will help you to learn basic electronics, Arduino Coding, Sensor interfacing with Arduino, Arduino, and much more. buy Arduino Ebook to learn https://techatronic.com/arduino-ebook/
Materials Required:-
- Arduino Uno
- 16×2 LCD display
- LCD breakout board
- HC05 Bluetooth module
- 4 Channel relay
- jumper wires
Arduino home automation circuit diagram.
Arduino home automation code.
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
void setup()
{
Serial.begin(9600);
pinMode(A0,OUTPUT);
pinMode(A1,OUTPUT);
pinMode(A2,OUTPUT);
pinMode(A3,OUTPUT);
digitalWrite(A0,LOW);
digitalWrite(A1,LOW);
digitalWrite(A2,LOW);
digitalWrite(A3,LOW);
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print(” AnDrOiD BaSeD “);
lcd.setCursor(0, 1);
lcd.print(“HoMe AuToMaTiOn “);
delay(2000);
lcd.clear();
lcd.print(“L1 L2 L3 L4”);
}
void loop()
{
char sw;
sw=check();
if(sw==’b’)
{
digitalWrite(A0,HIGH);
lcd.setCursor(0, 1);
lcd.print(“ON “);
}
if(sw==’a’)
{
digitalWrite(A0,LOW);
lcd.setCursor(0, 1);
lcd.print(“OFF “);
}
if(sw==’d’)
{
digitalWrite(A1,HIGH);
lcd.setCursor(4, 1);
lcd.print(“ON “);
}
if(sw==’c’)
{
digitalWrite(A1,LOW);
lcd.setCursor(4, 1);
lcd.print(“OFF “);
}
if(sw==’f’)
{
digitalWrite(A2,HIGH);
lcd.setCursor(8, 1);
lcd.print(“ON “);
}
if(sw==’e’)
{
digitalWrite(A2,LOW);
lcd.setCursor(8, 1);
lcd.print(“OFF “);
}
if(sw==’h’)
{
digitalWrite(A3,HIGH);
lcd.setCursor(12, 1);
lcd.print(“ON “);
}
if(sw==’g’)
{
digitalWrite(A3,LOW);
lcd.setCursor(12, 1);
lcd.print(“OFF “);
}
}
int check()
{
if(Serial.available()>0)//Checking is Serial data available
{
int input = Serial.read(); //Storing value of read data into variable assigned
return input;
}
}
How to set up an Android app for home automation.
Install the android app on your smart phone:-
link:- download the app from here. This will redirect to playstore.
Result and observation:-
1.Turn ON the hardware, Title card will appear at the LCD
2) Show the status of the load at the LCD
3) Open your android app
4) Scan the paired device
5) Select the paired device
6) After successful connection, goto ON/OFF menu
7) The Relay will be turned OFF as per the android app
8) Touch the menu screen on the android app, you can feel the change on the LCD
9)At the same time, you can see the relay will be turned ON
10) Check all the load weather all the relay is triggered to turn ON/OFF
If you have any doubts, you can feel free to comment below. your comments are valuable for us to grow. Thank you.