Print Friendly, PDF & Email

Components Required:

1. Raspberry Pi 3 model B

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

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

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) – 2

11. Breadboard

12. Jumper Wires

Way to go ->

1. Login to your Pi headlessly using Ubuntu terminal or Putty in Windows and run the following command before you proceed.

2. Login to developer.amazon.com.

3. Click on Apps & Services tab -> Alexa -> Alexa Voice Service -> Get Started

a) Follow the screenshots and click on Next after filling the fields.

b) Finally click on Submit to create your device.

1_getStarted

2_registerDevice

3

4

5 

6

7

8

9

10

11

12

4. Clone this Github repository to your Pi.

git clone https://github.com/sammachin/AlexaPi.git

5. Navigate to the AlexaPi directory (folder), and do the following:

6. Fill in the following details in creds.py from the Security Profile you created in your Amazon developer acccount and save it:

7. Run the following commands:

startEngine

8. Open your web browser and go to: http://your_pi_ip:5000)

(eg:- http://192.168.1.19:5000)

 9. After loggin into your Amazon account, you will see a page that says

Success!, refresh token has been added to your creds file,you may now reboot the Pi. Reboot not necessary.

10. Go back to your terminal and press Cntrl + C. To check your whether the refresh token has been added run:

11. Edit the main.py like so:

main.py

 12. Finally run main.py to talk to Alexa!

13. To speak to Alexa, keep the push button pressed while speaking and leave it when you are done asking your question.

AlexaPiEcho

Hardware Connections ->

PiEcho_schem

PiEcho_bb