Hi guys, I made a simple system for controlling the lighting of your house via voice recognition with an Arduino Uno and 1Sheeld.
Here, you will find the schematic on Fritzing.
Thanks to RWaldron for providing the relay part on Fritzing, you can find the part here.
Basically, the code is so simple, all we have to do is to check for any new voice command using this function “VoiceRecognition.isNewCommandReceived()” and if 1Sheeld received any new command it will compare this command to the “on” and “off” commands using the string compare function “strcmp”.
This is 1Sheeld's Arduino Voice Recognition shield Tutorial to make a voice controlled lights project.
So turn on light with just saying "on" and turn it off when saying "off"
//Call the custom settings to optimize the flash memory usage
//Calling for Arduino Voice Recognize Shield
//Including 1Sheeld library
//Set commands to be recognized by the Arduino Voice Recognition Shield
//Set the lamp to pin 13
//Initialize the communication between 1Sheeld's Arduino Voice Recognition Shield and Arduino
//Set the lamp to be an Output
//check if 1Sheeld's Arduino Voice Recognition Shield received a new command
//Compare the last command received by the Arduino Voice Recognition Shield with the command "on"
//Then turn the light on
//Compare the last command received by the Arduino Voice Recognition Shield with the command "off"
Arduino Security Camera Have you ever wanted to check your home in real time? Afraid that maybe someone has stormed in, don’t remember if you shut the door or not or maybe wanna check if your Hyper-energetic dog has broken any of your dishes AGAIN!! 🙂 Then this is the perfect place for you cause today …
Arduino makers …. you can connect your Arduino to MQTT brokers(servers) and launch your IoT with Arduino IoT Shield! It’s the 1Sheeld IoT shield that will do the job for you. It’s one of the most important but recent Arduino shields in 1Sheeld. Simply, it turns your Arduino into MQTT client where you can publish and …
Monitor my home environmental parameters remotely is one of the most desirable things I have ever wanted to make. It’s not about purchasing such a system that can get the job done for me. But, passion to create it myself. So, today, I am going to connect the popular DHT sensor to an online MQTT …
“Oh God! … It seems like I have forgotten the door lock open, again” … the normal saying whenever I am in hurry to go out! Have you encountered this problem before? It always confuses me since I may even think that I have left the door lock opened, and once I go back, …
Here I am with another IoT-based home automation project; Arduino IoT Fan Control. Every day, I get back from work tired and feeling hot. No air conditioner here and the fan takes much time to start cooling the room, sadly! So, I was thinking why not controlling the fan from outside my home with my …
Have you ever forgotten to turn your home lights off when you got outside? Sadly, it happens to me all the time. And this causes confusion once I get my bills! Furthermore, here is one secret about me; I am a lazy man. I always want to control my room lamp from my sweet bed. …