Alexa Gadgets demo on nRF5 Series

This blog is to describe how to set up the nRF52840 DK board communicating with an Echo device over Bluetooth Low Energy (BLE) / Bluetooth Smart.

What is the Alexa Gadgets?

Amazon provides Alexa Gadgets Toolkit which can build your own Alexa Gadget and then communicate/interacts with compatible Amazon Echo devices over Bluetooth.

You can build up your own Alexa Gadget and connect as below features.

Alexa Gadgets Overview

Details can be found at the Amazon online documentation.

Nordic nRF5 on the Alexa Gadgets

Nordic Semiconductor press release has announced that the latest version of its nRF Connect SDK (Software Development Kit) (version 1.4) includes example application software code for Alexa Gadgets. By using the code as the basis for software development, developers can accelerate time-to-market for Alexa Gadgets based on Nordic’s nRF52 Series or nRF5340 Bluetooth® 5.2/Bluetooth Low Energy (Bluetooth LE) Systems-on-Chip (SoCs).

nRF Connect SDK

nRF Connect SDK 1.4 version has started to support on the Alexa Gadgets. The example code be found at the nrf\samples\bluetooth\alexa_gadgets.

The Peripheral Alexa Gadgets sample demonstrates how a Bluetooth LE device can connect to an Amazon Echo device using the Alexa Gadgets Bluetooth Service and Profile.

Documentation for the Gadgets Service and Profile can be found at Alexa Gadgets Bluetooth LE.

Before a Gadget can be connected to an Amazon Echo device, you must register it with Amazon. See Alexa Gadgets Setup for information on how to do this.

Dependence Tool

You need to install the Nanopb on your platforms.

This sample depends on an external protobuf compiler tool – Nanopb.

 unzip -d nanopb

After unzip the package, you need to add the PATH inside the system environmental path.

You can use the command to refresh the environmental path.


How to compile the nRF52840 DK firmware on the Alexa Gadgets.

Gadget registration

When registering the Gadget, you will receive two identifier strings:

  1. Device Amazon ID
  2. Device secret

You must update the CONFIG_GADGETS_AMAZON_ID and CONFIG_GADGETS_DEVICE_SECRET configuration options in prj.conf with the values that you received during registration.

User interface

LED 1:

On when connected.

LED 2:

On when handshake with peer is completed.

LED 3:

On when wakeword directive (Alexa.Gadget.StateListener) is received.

LED 4:

Toggles when Color Cycler skill is used.

Button 4:

Erases bond information when button is held during power cycle or reset.


After programming the sample to your board, test it by performing the following steps:

  1. Optionally, set up log monitoring:
  1. Connect the board to the computer using a USB cable. The board is assigned a COM port (Windows) or ttyACM device (Linux), which is visible in the Device Manager. Connect to the kit with a terminal emulator (for example, PuTTY). See How to connect with PuTTY for the required settings.
  2. Reset the board.
  3. Follow these instructions to pair your Echo device with the sample: Alexa Gadgets Pairing.
  4. Observe that LED 1 turns on to indicate that a connection has been established.
  5. Observe that LED 2 turns on to indicate that the Alexa Gadgets handshake has completed.
  6. Speak the “Alexa” wake word to your Echo device and observe that LED 3 turns on.
  7. If you are monitoring the log output from the COM port, observe log activity during Alexa queries.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.