Google+

Sunday, 22 December 2013

Smart Home Automation with Voice Command (tutorial)


Activate your electronic equipment using voice command.
Use the “Smart Home with Voice command” app to control your electronic equipment via Android phone.
- Build your own circuit  and learn how to use Arduino and Bluetooth module.
 Tutorial below.
1















Smart Home with Voice Command (tutorial)
This is a step-by-step tutorial on building the circuit for Smart Home automation with voice command feature.
Requirements:
1st step
Connect all the components to your breadboard.
led_BTTT













Figure  1 (Make sure all connections are correct)
2nd step
uno










     Figure 2 (Arduino Uno)
  • Connect the Black wire to Gnd of the Arduino Uno (as shown in Figure 2)
  • Connect the Red wire to Pin 12 of Arduino Uno (as shown in Figure 2)
3rd step
  • Download the latest IDE at Arduino website.
  • Copy & paste the code below to your Arduino IDE.
  • Then, upload the code.
IDE











Figure 3 (Arduino IDE)
// code starts here
const int smartLed = 12;
byte smartHome;
void setup()
{
// Serial communication:
Serial.begin(115200);
// smartLed as an output:
pinMode(smartLed, OUTPUT);
}
void loop() {
switch (smartHome) {
case 1:
digitalWrite(smartLed, HIGH);
break;
case 2:
digitalWrite(smartLed, LOW);
break;
case 3:
digitalWrite(smartLed, HIGH);
delay(100);
digitalWrite(smartLed, LOW);
delay(100);
}
}
void serialEvent(){
smartHome = Serial.read();
}
// code ends here
4th step
1

























Figure 4 (Smart Home with Voice command app)
  • Download & install mobile apps at Google Play Store
  • Turn on your Bluetooth from your Android device.
  • Press “Scan” and look for Bluetooth device (e.g. Firefly E5D6)
  • Bluetooth name can be found at the top right side of BlueSmirf / BlueMate.
  • Look for 4 characters (e.g. E5D6)
  • Open your Smart Home with Voice Command app.
  • Press “Not connected” and look for your Bluetooth device (e.g. Firefly E5D6)
  • You should be able to see “Connected”.
  • Start testing by pressing the circle ON/OFF button.
  • Test the voice command by pressing the waveform then say “ON” to turn ON.
  • Test the voice command by pressing the waveform then say “OFF” to turn OFF.

Additional information:
LED is a device that emits light when electricity passes or voltage is applied.
It consists of 2 terminals where long leg is positive (+) & short leg is negative (-)
leds









Resistor is a device use to limit the flow of current.
resistors








Bluetooth Module
Solder all wires one by one except CTS & RTS they must be solder together as shown in below figure.
bt









 Figure 5 (Arduino Uno & BT module)
  • Connect the following wires from Bluetooth module to Arduino Uno.
VCC = 3.3V
Gnd = Gnd
RX =TX
TX = RX



No comments:

Post a Comment