RASPBERRY PI ALEXA HOME AUTOMATION

About: Technical Trainer @Technical Hub

This Instructable covers the concepts of Amazon alexa eho dot, Raspberry pi Gpio controlling by using alexa.

The main problem while handling alexa is everytime you need to add some skills in your aws account which requires lot of time, to establish communication between alexa and external devices, but this instructable will eliminate this headache and i just want to make it as simple as i can.....

Step 1: Things You Need:

1.Raspberry Pi

2.Amazon Alexa

3. Relay Board / Led.

Step 2:

setting up Raspberry Pi:

1. Install pip

Command: sudo apt-get install python-pip

2.update and Upgrage

sudo apt-get install update && sudo apt-get upgrade

Step 3: RUN YOUR CODE

Credits to this man::

All credit goes to https://github.com/toddmedema/echo/

Download the zip file

https://drive.google.com/open?id=1suIa9OhyHsxW35EB...

extract the zip file to raspberry pi desktop

then type these commands:

in the terminal

1.pi@Raspberrypi : $ cd /Desktop/

2.pi@Raspberrypi : $ cd /Desktop/ $: cd /ALEXA HOME

3.pi@Raspberrypi : $ cd /Desktop/alexa home $ cd /IOT-Pi3-Alexa-Automation-master

4. sudo python RPi_name_port_gpio.py

Thast it....

Now ask alexa to " find connected devices",

then it will ask you to wait for 20 secs

then say something like

alexa, kitchen on

alexa, kitchen off


Step 4: Different Codes for Different Applications

if you extract the zip file you will get the 2 codes:

https://drive.google.com/open?id=1lGHFDJxbU5y6h7Zk...

1. RPi_name_port_gpio.py

2.RPi_name_port_gpio_8_Relays.py

1. connect two leds / relays (phycial pin 7, 11 (not gpio pin numbers7,11))

RPi_name_port_gpio.py---> run this code if you want to control two devices only

commands:

alexa, lihgt on

alexa, lihgt off

alexa, fan on

alexa, fan off


2.connect eight leds / relays

RPi_name_port_gpio_8_Relays.py (phycial pin 7, 11,13,5,15,8,12,10 (not gpio pin numbers))

for commands see the program.

Share

    Recommendations

    • Toys Contest

      Toys Contest
    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • First Time Author

      First Time Author

    Discussions