loading

Hello everyone , recently i made my room lights controlled via voice command. Its really simple to build and it can be used for other applications not just room lights, it basically control things to switch on and off. Its more like a voice automated switch for "anything" , and the possibilities are endless . Lets now begin.... :D

Step 1: Materials You Will Need

these are some stuff i used in making it :

  • Arduino (i used UNO)
  • Relay module (you may use the one with multiple channels but that would need additional codes)
  • 3x male to male jumper wires
  • 3x male to female jumper wires
  • some standard cables
I dont think i should list the tools because you obviously know what will you use.......

Step 2: The Hardware Setup

  • The first step is to connect the Arduino to the relay terminal, just do it as shown above.
  • Then, connect the Relay Gates (NO,COM,NC) to the application you want.To do this just cut one of the wires from the cable of the appliance then connect the chopped wires through the relay gates.
    • if you want the aplliance to turn on when you activate the relay, connect the cables to the NC and COM gate.
    • if you want the aplliance to turn on when you activate the relay, connect the cables to the NO and COM gate.

Step 3: The Arduino Code and CMD Code

open up your Arduino IDE and copy paste the code below, if you dont have or dont know whats an IDE you can download and learn more information about it from here Download Arduino IDE for Mac/Windows

Arduino code :

//*the code starts here*

int incomingByte = 0; // for incoming serial data

void setup() {

Serial.begin(9600); // opens serial port, sets data rate to 9600 bps

pinMode(12, OUTPUT);

}

void loop() {

// send data only when you receive data:

if (Serial.available() > 0) {

// read the incoming byte:

incomingByte = Serial.read();

// say what you got:

Serial.print("I received: ");

Serial.println(incomingByte, DEC);

}

if (incomingByte == 100)

digitalWrite(12, HIGH);

else if (incomingByte == 97)

digitalWrite(12, LOW);

}

//*the code ends here*

Here is the cmd code

open notepad and type this codes:

echo a> com3 

save it as "lightson.cmd" in a folder

and,

echo d> com3

save it as lightsoff.cmd

note that the "com3" might be different for you to check whats yours, open device manager>ports>Arduino


Step 4: Setting Up the Voice Recognition

Now you will need a speech to text engine , i suggest you download the same one as what i used

Download speech recognition :

click here to download speech recognition

After you downloaded the app, set it according to the picture i've shown above , instructions below:

  1. click the " + " button on the bottom right of the app
  2. go to the "shell commands" tab
  3. in the command box, type what you will say that will let the speech recognition do a task
  4. in the response box, type what you want to get in response for what you said
  5. in the location box type the location of the cmd file/ click browse to browse the CMD file you made in the previous step (lightson.cmd and lightsoff.cmd)
  6. then close the customize window and say "update command" then you can try the commands you inserted

Step 5: Finishing ....

Now your speech recognition outlet is ready and you can test the commands....

thank you for following up, this is my first instructable so dont mind my mistakes .

visit my website

also kindly vote me for "hack your day" contest and "rasbery pi" contest, its free :D

<p>How would it hear the voice?</p>
<p>I just made this project, worked great! I would like to suggest for others who wish to make this that they use an ESP module or other wireless alternative to running cables across a room. I would like to try this out as a standalone program maybe with Raspberry Pi.</p>
<p>Every link goes to Adfly accounts which is real deal breaker. Secondly, i would never download from those links sorry to say i would not even vote for the same.<br><br>Jarvis direct link to mediafire<br><a href="http://www.mediafire.com/download/txkiq9aqo39ugo9/JARVIS.rar" rel="nofollow">http://www.mediafire.com/download/txkiq9aqo39ugo9/...</a><br><br>I do not know the content since its already reported by a user of malware.</p>
<p>Thank you @samalert for your comment , i believe it would be really helpful for alot of people ,but clicking the link i inserted would really support me for my next projects, its up to you all though.. :D</p>
<p>thank you @<a href="https://www.instructables.com/member/Doubting_Thomas" rel="nofollow">Doubting_Thomas</a> for your comment, i have fixed some errors in the link that redirects you somewhere else, it works for me now but if you still have some problems you may check you browser/PC for some miscellaneous files that may cause the error :)</p>
<p>Though I'd like to say &quot;Thanks&quot;... sadly, I'm compelled to state that this is the 1st Instructable that I have followed-through, wherin the Links provided (both for downloading the speech-recognition and for visiting your website) lead to a MalWare_Download...(?!?) </p><p>I hope somebody can fix that. &quot;<em>Cheers</em>&quot;.</p>
Hi , this is my first Arduino project I hope the instructions are helpful , thank you

About This Instructable

759views

18favorites

More by Thadeo Arlo:Arduino Voice activated lights / outlet V1.0 
Add instructable to: