Gopal Amlekar
Published © CC BY

How to Automate Your Home With Your Voice

Here is a demo of voice-controlled home automation using Amazon Alexa and PubNub data stream network.

IntermediateFull instructions provided10 hours11,969
How to Automate Your Home With Your Voice

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
Have a full setup with Keyboard, Mouse and HDMI monitor.
×1
BeagleBone Black
BeagleBoard.org BeagleBone Black
×1
LED (generic)
LED (generic)
×3
Resistor 470 Ohm
×3
Servos (Tower Pro MG996R)
Typical servo motor
×1
Speaker: 0.25W, 8 ohms
Speaker: 0.25W, 8 ohms
Any speaker to connect to Raspberry Pi's audio output. (Alternative to HDMI sound)
×1
USB microphone
Microphone of a headset on Raspberry Pi's 3.5mm audio jack will *not* work. So a separate USB microphone is must.
×1

Software apps and online services

Alexa Skills Kit
Amazon Alexa Alexa Skills Kit
PubNub Publish/Subscribe API
PubNub Publish/Subscribe API
Heroku
Cloud service provider for web app/service and lot more

Story

Read more

Schematics

BeagleBone Black wiring

Schematic for connecting demo LEDs and a servo motor to BeagleBone Black

Code

Skill adapter code running as web service

This repository contains code to run as a Heroku web app running skill adapter code for the Alexa skill.

PubNub listener and GPIO controller

This Node.js code runs on BeagleBone Black to control its GPIO (on/off and PWM) based on messages received on PubNub channel.

Credits

Gopal Amlekar

Gopal Amlekar

1 project • 6 followers
Electronics engineer with over 20 years experience in embedded systems product development, firmware, software, electronics.. Love to hack..

Comments