Skip to content

Test Scripts

Elizabeth Adams edited this page Dec 12, 2018 · 3 revisions

To test our project we need to connect our Adafruit main board to your computer using a USB cable. Then go to Tools, Port, and select your Flora main board in the list.

First thing we will test is if the accelerometer is working properly. Go to File, Examples, Adafruit LSM303DLHC, accelsensor. This will open a script that tests if the sensor is connected and reads coordinate values. Upload to your board and open the Serial Monitor in the top right of the Arduino IDE. If you see values changing in the Serial Monitor, like in the photo, while moving the accelerometer then it is working!

acceltes

The second thing we will test is if the NeoPixels are working. Go to File, Examples, Adafruit NeoPixels, strandtest. Before we run this script, change the Pin to 9 and number of pixels to 6 (or whatever you are using for your project). Upload to your board and if the pixels all light up you’re ready for the final script!

<< Part 2. Code - Final Script >>