Print Friendly

Components Required:

1. Raspberry Pi 3 model B – Buy

2. MicroSD card 8 or 16 GB (Class 4 and above) with Raspbian – Buy

3. Windows PC / Linux PC (Tested on Windows 10, Ubuntu 14.04 LTS)

4. Ethernet cable (Category 5 – also called Cat 5)

5. Micro USB cable – Buy

6. USB 2.0 Mini Microphone / Webcam with built-in microphone

7. External Speaker with 3.5mm audio socket / stereo headset jack

8. Internet connection (Ethernet or WiFi)

9. Push Button

10. LEDs (different colours) – 3

11. Breadboard

12. Jumper Wires

Way to go ->

1. Go to https://thingspeak.com/

2. Create a new channel.

3. Login to https://ifttt.com/recipes

4. Create the following recipes.

lightON

Channels: Amazon Alexa, Maker

phrase: light on

URL: https://api.thingspeak.com/update?api_key=your_write_API_key&field1=1

Method: GET

lightOFF

Channels: Amazon Alexa, Maker

phrase: light off

URL: https://api.thingspeak.com/update?api_key=your_write_API_key&field1=0

Method: GET

5. Write the following python script for LED control.

LEDControl.py

 6. Modify the main AlexaPi script like so.

main.py

 7. Run the python scripts on 2 different terminal sessions.

2 PuTTy windows for Windows PC.

2 Terminals for Linux PC

8. You’re done!

9. When you say “Alexa, trigger light on”, the LED will be switched on.

When you say “Alexa, trigger light off”, the LED will be switched off.

Hardware Connections ->

IFTTTPiEcho_schem

IFTTTPiEcho_bb