RASPBERRY PI ALEXA HOME AUTOMATION

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.....

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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.

Be the First to Share

    Recommendations

    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest

    2 Discussions

    0
    None
    HimadriP3

    8 days ago

    Unable to connect to raspberry pi from Alexa.
    When i speak Alexa ktichen on, she says no such device found.

    Please explain why it is not connecting. I have searched many sites but none of the code actually worked.

    1 reply
    0
    None
    BhaskarP6HimadriP3

    Reply 7 days ago

    First , you need to enable the plug skill in your Alexa app , then ask "Alexa, discover near by devices", then it will reply back something like I've found new device then only you can control the devices with your Alexa,