Step 4: Upload Code to Your Host Microcontroller


The Alexa Connect Kit (ACK) Device SDK provides the source code that you use to build your host microcontroller application.

To run the ACK Device SDK sample applications on your Arduino, you must compile the code, and then upload it to your deice with the Arduino IDE. After you have successfully uploaded the code to your Arduino board, you can control your development device with the Alexa app or an Alexa-enabled device, such as an Amazon Echo Dot.

In this step, you upload the AlexaConnectKit_HelloWorld sample application to your host microcontroller.

Prerequisites

Your development board and your Arduino Zero might not be physically connected. If they're already connected, physically disconnect the two boards. After you disconnect the boards, plug a Micro-USB cable into the development kit debug port, and connect the other end to your computer. To find the debug port, see Development Kit Components.

Your development board and your Arduino Zero might not be physically connected. If they're not connected, physically connect the two boards. After the boards are connected, plug a Micro-USB cable into the Arduino Zero Programming Port. For details, see Physically Connect the Boards.

Upload code to your host microcontroller

To run the ACK Device SDK sample applications on your Arduino, you must compile the code, and then upload it to your deice with the Arduino IDE. After you have successfully uploaded the code to your Arduino board, you can control your development device with the Alexa app or an Alexa-enabled device, such as an Amazon Echo Dot.

Upload code

The following steps show you how to verify and compile the code, and then upload it to an Arduino Zero.

To upload the ACK Device SDK sample application code to your Arduino Zero

  1. Connect the Arduino Zero board to your computer through the programming port. For more details about how to connect your board, see Physically Connect the Board.
  2. Open the Arduino Zero IDE.
  3. Select your Arduino board programming port. In the Arduino IDE file menu, select Tools, then Board, then Arduino/Genuino Zero (Programming Port).
  4. Select the AlexaConnectKit_HelloWorld example. In the Arduino IDE file menu, select File, then Examples, then AlexaConnectKit_HelloWorld.
  5. Verify the code with the Arduino IDE. In the Arduino IDE file menu, select Sketch and then select Verify/Compile.
  6. Upload the code to the Arduino Zero. In the Arduino IDE file menu, select Sketch and then select Upload.

    If you see a Done Uploading message, this means that you have successfully uploaded the example to your Arduino. If you run into issues, see Troubleshoot the Development Kit.


Was this page helpful?

Last updated: Dec 05, 2023