ihacklab
Published © LGPL

Smart Apps for Smart Home

With a smart phone, a tablet or a watch, this simple talking apps can remotely control any appliances in your house and even start your car.

AdvancedShowcase (no instructions)5,494
Smart Apps for Smart Home

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Jumper wires (generic)
Jumper wires (generic)
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Breadboard (generic)
Breadboard (generic)
×1
9V battery (generic)
9V battery (generic)
×1
5 mm LED: Red
5 mm LED: Red
×1

Story

Read more

Schematics

Block Diagram

Code

Bluetooth HC05 Test

Arduino
The code below is used to test your bluetooth connectivity.
#include <SoftwareSerial.h>
SoftwareSerial BTserial(2, 3);  
int ledPin = 12;
char data = 0;  

void setup()
{
     pinMode(ledPin, OUTPUT);
     BTserial.begin(9600);
     // Serial.begin(9600);
     // serial.println("Hello World");
}

void loop()
{
    if (BTserial.available())
    {
    data = BTserial.read();              
    if(data == '1')                             
      digitalWrite(ledPin, HIGH);      
    else if(data == '0')                      
      digitalWrite(ledPin, LOW);      
       }
}

Credits

ihacklab

ihacklab

12 projects • 22 followers

Comments