Voice Control Home Automation System Using Arduino and HC-05

We are showing voice control home automation system to control appliances with own voice command an Android app IoTBoys.

  • 4,811 views
  • 2 comments
  • 17 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
×1
HC-05 Bluetooth Module
×1
11026 02
Jumper wires (generic)
×1
Two AC Bulbs(Red,Yellow)
×1
Relay (generic)
Using 4 Channel Relay
×1

Apps and online services

About this project

We are showing voice control home automation system to control appliances with own voice command. To accomplish this project using an Android app IoTBoys that is available on google play store. Controlling two AC bulbs (Red, Yellow) using 4 channel relay board.

Code

Souce CodeC/C++
Source Code
String voice;
int RED = 2;
int YELLOW = 3;
void RedOn(){
digitalWrite (RED, LOW);
}
void RedOff(){
digitalWrite (RED, HIGH);
}
void YellowOn(){
digitalWrite (YELLOW, LOW);
}
void YellowOff(){
digitalWrite (YELLOW, HIGH);
}
void allon() {
digitalWrite (RED, LOW);
digitalWrite (YELLOW, LOW);
}
void alloff() {
digitalWrite (RED, HIGH);
digitalWrite (YELLOW, HIGH);
}
void setup() {
Serial.begin(9600);
pinMode(RED, OUTPUT);
pinMode(YELLOW, OUTPUT);
digitalWrite (RED, HIGH);
digitalWrite (YELLOW, HIGH);
}
void loop() {
while(Serial.available()) {
delay(10);
char c=Serial.read();
if(c=='#')
{
break; 
}
voice += c;
}
if (voice.length() > 0) {
Serial.println(voice);
if (voice == "on" || voice== "all on")
{
allon() ;
}
else if (voice == "off" || voice=="all off")
{
alloff() ;
}
else if(voice =="red" || voice =="red on"){
RedOn();
}
else if(voice =="red off"){
RedOff();
}
else if(voice =="yellow" || voice =="yellow on"){
YellowOn();
}
else if(voice =="yellow off"){
YellowOff();
}
voice="";
}
}

Schematics

Circuit Design
Circuit Design for all components
Home automation system www iotboys com  1024x844 trhyujqbbl

Comments

Similar projects you might like

High Precision Scale with Arduino

Project showcase by mPelectronic

  • 3,785 views
  • 11 comments
  • 19 respects

WIZnet S2E Deadbolts

Project tutorial by S2E Lock

  • 1,219 views
  • 2 comments
  • 7 respects

Super-Go: An Industrial IoT bot

Project tutorial by KS

  • 702 views
  • 2 comments
  • 5 respects

Kravox! Wireless, Motion and Touch-Sensing Instrument

Project tutorial by Tim Krahmer

  • 85 views
  • 0 comments
  • 3 respects

GPS Tracking System for Vehicles

Project showcase by Sustainable Living Lab

  • 4,277 views
  • 1 comment
  • 22 respects

Automatic Watering System

Project tutorial by Manson Hau

  • 5,728 views
  • 11 comments
  • 29 respects
Add projectSign up / Login