Amazon Alexa for M5Core2
Amazon Alexa for M5Core21. Introduction
1. IntroductionAmazon Alexa on M5Core2 and M5Core2 for AWS
You can use M5Core2Alexa like using a real Amazon Echo (sometimes, not always). You can ask M5Alexa questions like "Alexa, what time is sunrise?" or ask her into Japanese 「アレクサ、今何時ですか?」, or maybe you can control your lights and fans (I don't have any Alexa-supported IoT devices).
2. Development Setup
2. Development SetupThis sections talks about setting up your development host, fetching the git repositories, and instructions for build and flash.
2.1 Host Setup
2.1 Host SetupYou should install drivers and support packages for your development host. Windows, Linux and Mac OS-X, are supported development hosts. Please see Get Started for the host setup instructions.
2.2 Getting the Repositories
2.2 Getting the Repositoriesgit clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf; git checkout release/v4.2; git submodule init; git submodule update --init --recursive;
./install.sh
cd ..
git clone https://github.com/IcingTomato/AlexaM5Core2.git
git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf; git checkout release/v4.2; git submodule init; git submodule update --init --recursive;
./install.sh
cd ..
git clone https://github.com/IcingTomato/AlexaM5Core2.git
2.3 Building the Firmware
2.3 Building the Firmwarecd AlexaM5Core2/examples/amazon_alexa/
export ESPPORT=/dev/ttyUSB0 (or /dev/ttycu.SLAB_USBtoUART macOS or COMxx on MinGW)
export IDF_PATH=/path/to/esp-idf
. $IDF_PATH/export.sh
cd AlexaM5Core2/examples/amazon_alexa/
export ESPPORT=/dev/ttyUSB0 (or /dev/ttycu.SLAB_USBtoUART macOS or COMxx on MinGW)
export IDF_PATH=/path/to/esp-idf
. $IDF_PATH/export.sh
Set audio_board path for M5Core2 and AWS_EDUKIT_PATH:
export AUDIO_BOARD_PATH=/path/to/AlexaM5Core2/components/audio_hal/audio_board/audio_board_m5_core2_aws
export AWS_EDUKIT_PATH=/path/to/AlexaM5Core2/components/core2forAWS
export AUDIO_BOARD_PATH=/path/to/AlexaM5Core2/components/audio_hal/audio_board/audio_board_m5_core2_aws
export AWS_EDUKIT_PATH=/path/to/AlexaM5Core2/components/core2forAWS
Menuconfig is avaliable, also you can change some components:
idf.py menuconfig
idf.py menuconfig
3. Configuration Steps
3. Configuration StepsHere are the steps to configure the M5Core2:
On first boot-up, the M5Core2 is in configuration mode. This is indicated by Orange LED pattern. Please ensure that the LED pattern is seen as described above, before you proceed.
- On first boot-up, the M5Core2 is in configuration mode. This is indicated by Orange LED pattern. Please ensure that the LED pattern is seen as described above, before you proceed.
Launch the phone app.
- Launch the phone app.
Select the option Add New Device.
- Select the option Add New Device.
A list of devices that are in configuration mode is displayed. Note that the devices are discoverable over BLE (Bluetooth Low Energy). Please ensure that the phone app has the appropriate permissions to access Bluetooth (on Android the Location permission is also required for enabling Bluetooth).
- A list of devices that are in configuration mode is displayed. Note that the devices are discoverable over BLE (Bluetooth Low Energy). Please ensure that the phone app has the appropriate permissions to access Bluetooth (on Android the Location permission is also required for enabling Bluetooth).
Now you can sign-in to your Amazon Alexa account. If you have Amazon Shopping app installed on the same phone, app will automatically sign-in with the account the shopping app is signed in to. Otherwise it will open a login page on the phone's default browser. (It is recommended to install the Amazon Shopping app on your phone to avoid any other browser related errors.)
- Now you can sign-in to your Amazon Alexa account. If you have Amazon Shopping app installed on the same phone, app will automatically sign-in with the account the shopping app is signed in to. Otherwise it will open a login page on the phone's default browser. (It is recommended to install the Amazon Shopping app on your phone to avoid any other browser related errors.)
You can now select the Wi-Fi network that the M5Core2 should connect with, and enter the credentials for this Wi-Fi network.
- You can now select the Wi-Fi network that the M5Core2 should connect with, and enter the credentials for this Wi-Fi network.
On successful Wi-Fi connection, you will see a list of few of the voice queries that you can try with the M5Core2.
- On successful Wi-Fi connection, you will see a list of few of the voice queries that you can try with the M5Core2.
You are now fully setup. You can now say "Alexa" followed by the query you wish to ask.
- You are now fully setup. You can now say "Alexa" followed by the query you wish to ask.
4. Troubleshooting
4. Troubleshooting4.1 Music and radio playback (Audible or Podcast) are not supported on this device.
4.1 Music and radio playback (Audible or Podcast) are not supported on this device.According to Espressif Official, music and radio playback (Audible or Podcast) services are not supported on Non-Amazon-Official products. Unfortunately, Amazon music functionality needs whitelisted product. Only the commercial products are whitelisted by Amazon. Let us know if you are going to commercialise it.
4.2 Alarm Dismiss doesn't take effect.
4.2 Alarm Dismiss doesn't take effect.When the alarm on, you cannot say "Alexa, stop alarm" to dismiss the alarm. I dno't know why... So, if you want to stop the alarm, you can touch the middle "button" on M5Core2. The middle "button" can also wake up Alexa.
Comments