We're going to be using the popular Arduino IDE to compile and load code. Start by following the PyBadge setup guide to

  1. Install the latest desktop Arduino IDE
  2. Install Adafruit SAMD board support package (If programming a SAMD board like the Edge/PyBadge)
  3. Install Adafruit nRF52 board support package (If programming an nRF52 board like the Circuit Playground Bluefruit)
  4. Install all the Arcada Libraries (yes there's a lot of them!)

TensorFlow Libraries

Now install the Arduino TensorFlow library 1.15.0-ALPHA with the library manager

Make sure you don't pick the pre-compiled release version

If you see 'precompiled' in the name, install the non-precompiled version from the dropdown

You must use 1.15-0-ALPHA (not-precompiled) - no other version will work!

 Next, install Adafruit TensorFlow Lite

And finally, for the speech demos, grab the Adafruit Zero PDM library

Select Board

Almost ready! Before we're ready to compile some examples!

Plug in the board into your computer with a known-good data/sync cable. Select the right board in the Tools download

For PyBadge/EdgeBadge

For some examples you will want to set Optimize to Fastest  and set CPU Speed to 180MHz (overclocking). This will give 6-10x speedup. For the first few examples, it isn't necessary. Make sure to select USB Stack: TinyUSB

For Circuit Playground Bluefruit

You can use the default settings:

This guide was first published on Dec 15, 2019. It was last updated on Dec 15, 2019.

This page (Setup For Compiling Examples) was last updated on Oct 22, 2021.

Text editor powered by tinymce.