Step 4: Upload Code to the Arduino Zero
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_SmartLight
sample application to your host microcontroller.
Upload code
The following steps show you how to verify and compile the code, and then upload it to the Arduino Zero.
To upload the ACK Device SDK sample application code to your Arduino Zero
- 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 Boards.
- Open the Arduino Zero IDE.
- Select your Arduino board programming port. In the Arduino IDE file menu, select Tools, then Board, then Arduino/Genuino Zero (Programming Port).
- Select the AlexaConnectKit_SmartLight example. In the Arduino IDE file menu, select File, then Examples, then AlexaConnectKit_SmartLight.
- Verify the code with the Arduino IDE. In the Arduino IDE file menu, select Sketch and then select Verify/Compile.
- 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.
Last updated: Nov 27, 2023