gototopgototop

www.kukata86.com

 Bulgarian English
             

Last comments:

  • Не мога да се ориентирам, дали това е отговор на моето запитване от преди малко и дали мога да отгов... more...
    06.04.17 20:22
  • Hallo, I want to buy RFID Emulator. Price? Thank you more...
    29.03.17 21:57
  • hello sir good evening sir actully i have purchased your application and i have programmed the ardui... more...
    25.01.17 20:32
Schematic and Photos of Smart Voice Controller

( 5 Votes )

Smart Voice Controller is a device that is extremely practical, interesting and easy to make. Through it you can control up to 8 devices in your home, by voice commands from your smartphone. You only need your phone to work with Android, has Bluetooth and internet.

The device consists of:

Software for Smartphones with ANDROID:

The software converts your voice commands and sends them to the controller. For this conversion need to have Internet connectivity on your phone. Commands wich will controll each individual relay output (or multiple outputs), must be predefined and stored in the controller below. ie each relay should know what command will change it's state.

Example:

relay 1 (ON) - Voice COMMAND: light on

relay 1 (OFF) - Voice COMMAND: light off

relay 2 (ON) - Voice COMMAND: fan on

relay 2 (OFF) - Voice COMMAND: fan off

........................

Command for relay response is pre-set in the Arduino controller software which we describe below in the article.

To download the software for Android, visit section Software for Android in the same article.

 

Controller (with 8 relay outputs):

To make the controller there is no need to have skills in making circuit boards. The controller is constructed of 3 modules which are sold at electronics stores. You only need to connect them as described. Even if they are not available in local stores in your town, all devices can be ordered online.

Arduino UNO - Look at Ebay.com

JY-MCU Bluetooth module- this is serial bluetooth module but placed on board to work with 5 volts. Can be used only HC-05 or HC-06 if you do not find JY-MCU but remember to lower the voltage to 3.3 volts. JY-MCU can buy from DX.com

8 Channel 12V or 5V module for Arduino- it is recomпended to use a 12 volt model of the shield, although the 5 volt are most used. If triggered 8 realys with 5 volts supply taken from Arduino voltage regulator has risk to preheat the regultor. For this reason we use 12 volt version and take the power directly before build-in voltage regulator in Arduino. You can find shield in Ebay.com 

12V power supply - can be purchased from any eletronics store.

 

Controller software (for Arduino):

The code of SVC_Arduino.ino is attached below. This code must be loaded into the Arduino to be able to respond to your voice commands. With red colored lines is marked the code where you can change it to use your custom voice commands. You can also add process like allon() in the code, to trigger only a couple of relays simultaneously with one command, instead of all (as is done with the voice command all on/off below in the code). The schematic can be set to react in different languages. Once you upload the code to the Arduino, the schematic does not require computer to work.

//-------------------DO NOT EDIT AFTER THIS LINE------------------------//
String voice;
int
rel1 = 2,
rel2 = 3,
rel3 = 4,
rel4 = 5,
rel5 = 6,
rel6 = 7,
rel7 = 8,
rel8 = 9;

void allon(){
digitalWrite(rel1, LOW);
digitalWrite(rel2, LOW);
digitalWrite(rel3, LOW);
digitalWrite(rel4, LOW);
digitalWrite(rel5, LOW);
digitalWrite(rel6, LOW);
digitalWrite(rel7, LOW);
digitalWrite(rel8, LOW);
}
void alloff(){
digitalWrite(rel1, HIGH);
digitalWrite(rel2, HIGH);
digitalWrite(rel3, HIGH);
digitalWrite(rel4, HIGH);
digitalWrite(rel5, HIGH);
digitalWrite(rel6, HIGH);
digitalWrite(rel7, HIGH);
digitalWrite(rel8, HIGH);
}

void setup() {
Serial.begin(9600);
pinMode(rel1, OUTPUT);
pinMode(rel2, OUTPUT);
pinMode(rel3, OUTPUT);
pinMode(rel4, OUTPUT);
pinMode(rel5, OUTPUT);
pinMode(rel6, OUTPUT);
pinMode(rel7, OUTPUT);
pinMode(rel8, OUTPUT);

 

//----------------------Set Relays state the begin-------------------//
digitalWrite(rel1, HIGH);
digitalWrite(rel2, HIGH);
digitalWrite(rel3, HIGH);
digitalWrite(rel4, HIGH);
digitalWrite(rel5, HIGH);
digitalWrite(rel6, HIGH);
digitalWrite(rel7, HIGH);
digitalWrite(rel8, HIGH);

 

}

void loop() {
while (Serial.available()){
delay(10);
char c = Serial.read();
if (c == '#') {break;}
voice += c;
}
if (voice.length() > 0) {
Serial.println(voice);
//-------------------DO NOT EDIT BEFORE THIS LINE------------------------//
//
//
//
//
//----------****************START USER DEFINED CODE**********************-------------//
//--------------------------Control all relays state----------------------------------//
//--Here is place where can edit words that must be told to change the state of all relays at the same time.Please edit words "*all on" and "*all off" with words that you prefer to control all outputs. ex. "*panic on" and "*panic off". Please keep structure of the algorithm, " and * are important, dont delete them when edit words.--//
if(voice == "*включи всичко") {allon();} //Turn Off All Relays outputs
else if(voice == "*изключи всичко"){alloff();} //Turn On All Relays outputs
//--------------------------Control seperate relay state------------------------------//
//--------------------------It can work in many languages-----------------------------//
//---------------------------Example Bulgarian and English---------------------------//
else if(voice == "*включи телевизора") {digitalWrite(rel1, LOW);} //Turn On 1 Relay output
else if(voice == "*включи вентилатора") {digitalWrite(rel2, LOW);} //Turn On 2 Relay output
else if(voice == "*включи компютъра") {digitalWrite(rel3, LOW);} //Turn On 3 Relay output
else if(voice == "*power down TV") {digitalWrite(rel4, LOW);} //Turn On 4 Relay output
else if(voice == "*bathroom lights on") {digitalWrite(rel5, LOW);} //Turn On 5 Relay output
else if(voice == "*vacuum cleaner on") {digitalWrite(rel6, LOW);} //Turn On 6 Relay output
else if(voice == "*maze on") {digitalWrite(rel7, LOW);} //Turn On 7 Relay output
else if(voice == "*example on") {digitalWrite(rel8, LOW);} //Turn On 8 Relay output
//
else if(voice == "*изключи телевизора") {digitalWrite(rel1, HIGH);} //Turn Off 1 Relay output
else if(voice == "*изключи вентилатора") {digitalWrite(rel2, HIGH);} //Turn Off 2 Relay output
else if(voice == "*изключи компютъра") {digitalWrite(rel3, HIGH);} //Turn Off 3 Relay output
else if(voice == "*power on TV") {digitalWrite(rel4, HIGH);} //Turn Off 4 Relay output
else if(voice == "*bathroom lights off") {digitalWrite(rel5, HIGH);} //Turn Off 5 Relay output
else if(voice == "*vacuum cleaner off") {digitalWrite(rel6, HIGH);} //Turn Off 6 Relay output
else if(voice == "*maze off") {digitalWrite(rel7, HIGH);} //Turn Off 7 Relay output
else if(voice == "*example off") {digitalWrite(rel8, HIGH);} //Turn Off 8 Relay output
//--------------*****************END USER DEFINED CODE*******************-------------//
//
//
//
//
//
//-------------------DO NOT EDIT AFTER THIS LINE------------------------//
voice="";}}
//-------------------DO NOT EDIT BEFORE THIS LINE-----------------------//

 
 
When programming the Arduino. disconnect TX and RX pin from the Bluetooth module because it can cause a conflict in communication and may not be able to upload the software.
 
 
Download:
 
Source code - Archive contains only the source code for Arduino.
Arduino and source code - Archive contains Arduino software including source code of the controller.
 
The password for all archives article: www.kukata86.com
 

Additional information about the Bluetooth module:

Bluetooth module operates normally with its default settings. Default password for bluetooth module is 1234.If you decide to have more control in the options of the module i suggest you read the following article. In in you will find information: How to change the name of the bluetooth, password entry or speed of data transfer. Good luck with your experiments. 

Modify-The-HC-05-Bluetooth-Module.pdf

HC-05_AT_Commands.pdf

Arduino_HC-05_AT_Commands.rar

Pictures:

 

Comments 

 
0 #1 kunal 2017-01-25 20:32
hello sir good evening

sir actully i have purchased your application

and i have programmed the arduino

sir the problem is wen iam saying the command the relays are not working even after connecting bluetooth

and sir next thing is

while switching on the project board itz not showing orange light (L) so sir can iknow whats the problem

i will be waiting for your reply

thanks in advance :-)
Quote
 

Add comment

 

7-seg. coundown count.

Gallery (OTHER)

Info Bulletin:

Paypal Donation:

Donation development projects.

Amount: