Arduino Bluetooth HC-05 Home Automation – Internet of Things

Arduino Bluetooth HC 05 Innovative Fusion

 

 

This App is for Beginners who are new to IoT (Internet of Things).
The Application helps you control Lights over Touch Screen, WLAN/Wifi/LAN, 5G/4G/3G/2G Network.

Application is loaded with features, it is advanced one, loaded with features. Users can connect to arduino using bluetooth HC05. Users can then control lights from anywhere in the world using a free online account. Users can add N number of lights and dimmer using our app.
The features above can be achieved using Raspberry Pi but with lot of coding. This App provides you all for free.
We need to mention about registration is must on Android Application.

When You buy a New Bluetooth HC05 from the market.
the serial baud rate of hc05 is set to 9600, if it is NOT set to 9600
you have to do following process:-

http://emart.innovative-fusion.com/hc-05-bluetooth-arduino/

 

The link for online access of lights is:-

http://innovative-fusion.com/home_automation/login.html

username: Email ID
password: first_name

 

Just click here for

DOWNLOAD APP

Steps to follow in Android Application:
1. Connect to a Bluetooth. (Bluetooth should always be ON).
2. Create a New Room.
3. Create a new output button, mention the pins on Arduino.
4. User needs to register on application for online access.
5. start using your Arduino Bluetooth IoT.

 

In Our Paid Application we have following features

Features of the Application:
Switch ON/OFF
Dimmer
SMS ON/OFF or Dimmer
Web Server
Scheduler time.
Sound ON/OFF
Database viewing.

Arduino Code for Features integrated (Comes with Paid App)
Dimmer
Keypad Integration

You also buy the code for Android Application and Arduino from Link (which will be provided soon)

Arduino code

#include <SoftwareSerial.h>
SoftwareSerial BTSerial(10,11); // RX | TX Cross pin for arduino, arduino 10 -> bluetooth tx,arduino 11 -> bluetooth rx
String str;
int j=0;
int h=0;int result[20];
char TestArray1[100];
void setup()
{ Serial.begin(9600);BTSerial.begin(38400); // HC-05 default speed in AT command more
BTSerial.write(“h”);
}void loop()
{
if(BTSerial.available())
{ // For bluetooth Communication
char Btkey;
str=””;
Btkey=BTSerial.read(); // Read Bluetooth in character variable
Serial.println(Btkey);
if(Btkey)
{
TestArray1[j]=Btkey; // Take array for storing character
j++;
if(Btkey==’#’) // packet ends with ‘#’
{ TestArray1[j]=’\0′;
j=0;
str=TestArray1; // copy array in string
memset(TestArray1, 0, sizeof(TestArray1)); // reset memory of array , for garbage
int p=str.length(); // take string length
h=0;
for (int i = 0; str[i] != ‘\0’; i++) { // for multiple packets find a’s location
if (str[i] == ‘a’)
{
result[h]= i+1;
//Serial.println(result[h]);
h++;
}
}// Serial.println(str);
int sizeofh=h-1; // take count of a’s location in packets
char sub[20]; for (int m = 0;m<sizeofh; m++) {
int c=0;
int position1=result[m]; // take a’s first position
int length=result[m+1]; // take a’s next position while (position1 < length) { // collect data between a’s position which is our packet
sub[c] = str[position1];
c++;
position1++;
}
Serial.println(c);
sub[c]=’\0′; // do last array value null
Serial.println(sub); char buffer_op[2]; // Take character Array
buffer_op[0]=sub[1];
buffer_op[1]=sub[2];
buffer_op[2] = ‘\0’;
//Serial.println(buffer_op); int op_pin_result=atoi(buffer_op); // Convert character to int,(pinmode needs int value)
String op_pin_result1=buffer_op; pinMode(op_pin_result,OUTPUT);
Serial.println(op_pin_result); if(sub[3]==’1′) //For pin High
{
digitalWrite(op_pin_result,HIGH);
Serial.write(“High”); //response bluetooth
BTSerial.write(“1”);
BTSerial.print(op_pin_result1);
BTSerial.write(“1”);
BTSerial.write(“;”);
}
else if(sub[3]==’0′) //For pin LOW
{
digitalWrite(op_pin_result,LOW);
Serial.write(“LOW”);
BTSerial.write(“1”); //response bluetooth
BTSerial.print(op_pin_result1);
BTSerial.write(“0”);
BTSerial.write(“;”);
}
}
}
} str=””;
Btkey=’\0′;
} }

 

The Arduino code is compatible for
Arduino Uno
Arduino Mega
Arduino Pro Mini
Arduino Nano
& other suitable family members.

 

Buy the arduino advance code just Click here

Arduino Code dimmer Keypad IoT

One Reply to “Arduino Bluetooth HC-05 Home Automation – Internet of Things”

ashwin

October 27, 2017 at 9:44 am

i tried implemented it works for me

Reply

Post Your Comment Here

Your email address will not be published. Required fields are marked *