DIY Smart Home Voice Control

Written by: admin@makezilla

FullSizeRender_4.jpgFullSizeRender_2.jpg

If you are not familiar with Amazon Echo — it is a novel personal assistant that responds to your voice commands and, therefore, performs simple tasks tasks for you. For example, it can control your smart lights or turn on and off anything plugged into your Internet-connected power outlets.

In this instructable we will learn how to build a similar system using Raspberry Pi with Prota OS. To get a sense of what you can control with your voice, watch a quick video demonstration above. As you can see it's not a full Amazon Echo replacement because it cannot respond to your questions, however it still does a pretty good job in helping you out with your smart items, especially when you don't have your smartphone or tablet by your side.

 

Step 1: Check if you have the following items.

Picture of Check if you have the following items.

This item list is not conclusive. In this instructable we will show how we use voice to control Philips Hue connected lightbulbs and an electric fan plugged into a DIY smart socket.

In theory you can set up personal voice commands to control other devices that are plugged into Raspberry Pi's GPIO pins or even control your web services if you connect them to Raspberry Pi via Prota Web-hook app.

To replicate what's been shown in the demo above, you will need:

  • To enable speech recognition:
    • Raspberry P
    • Webcam with a microphone)
    • SD card with Prota OS (download here)
    • Speech app for Prota (install via Prota App Repository)
    • WLAN dongle
  • To remotely control lights
    • Philips Hue
  • To remotely control an electric fan
    • DIY smart sockets (learn how to make here)
    • RF antenna module for Raspberry Pi
    • Bread board
    • ON OFF app (install via Prota App Repository)

Step 2: Set up smart RF sockets.

Picture of Set up smart RF sockets.

Please read a full instructable about how to make your own DIY smart electric sockets.

Short version:

 

  1. Install Prota OS on Raspberry Pi
  2. Connect RF module to Raspberry Pi using a bread board
  3. In your browser go to http://myprota.me
  4. Find and open App Repository
  5. Find and install ON OFF app (just click install)
  6. Go back to shell and open ON OFF app
  7. Click to add new RF socket
  8. Long press a physical button on your smart socket to activate the discovery mode
  9. Once the socket is discovered (LED stops flashing), click remember in the ON OFF app.

Step 3: Plug in your webcam and WLAN dongle.

Picture of Plug in your webcam and WLAN dongle.

Once you finish setting up smart sockets, plug in remaining parts: webcam and WLAN dongle (you'll need this for wireless Internet connection).

Step 4: Once everything is connected and Raspberry Pi is up and running, go to http://myprota.me.

Step 5: Go to App Repository and install Speech, Hue and ON OFF apps.

Step 6: Go back to shell and then go to Ambience app.

Picture of Go back to shell and then go to Ambience app.

This is where you'll set your keywords and voice control rules. Click on + icon to add a new rule.

Step 7: Let's set up a command for turning lights on and off.

Picture of Let's set up a command for turning lights on and off.

First select the Speech app as your sensor and Philips Hue app as your actuator.

 

 

 

 

Step 8: Choose that if specific phrase is recognized, Philips Hue should be turned on.

Picture of Choose that if specific phrase is recognized, Philips Hue should be turned on.

 

 

 

 

Step 9: Click on the green tick sign to confirm your sensor, then click funnel sign to set up your phrase.

Picture of Click on the green tick sign to confirm your sensor, then click funnel sign to set up your phrase.Screen Shot 2015-08-28 at 6.12.01 PM.png

 

 

 

 

Step 10: Enter what keyword should your phrase contain and click the tick sign again.

Picture of Enter what keyword should your phrase contain and click the tick sign again.

 

 

 

 

Step 11: Review your rule and click on the green tick sign again.

Picture of Review your rule and click on the green tick sign again.

 

 

 

Step 12: Name and save your rule.

Picture of Name and save your rule.

 

 

 

 

Step 13: Repeat the process to set up other keywords and rules. This one for example turns the electric fan off.

Picture of Repeat the process to set up other keywords and rules. This one for example turns the electric fan off.

That's it!

Hope it works well for you. Enjoy!

 

 

 

 

One thought on “DIY Smart Home Voice Control

  1. DIY Home automation is really catching up the momentum among the people. I worked with my DIY home automation of coffee maker machine through remotely operated. Now, I shall work to automate my lights,fans etc in my house with instructions,video tutorials provided,thanks

Leave a Reply