This project was written for use with Circuit Playground Classic boards. The code does not support Circuit Playground Express at this time.
This project's code has been confirmed working with Arduino IDE version 1.8.5. Some users have reported issues compiling with later versions.

Setup

If this is the first time you're programming a Circuit Playground board, you'll need to set up the Arduino IDE with support for it.  Follow the instructions found here, and come back once you have everything working.

Code

The code we'll be using is based on the example sketch written for the Pulse Sensor Amped.  Code has been added to control the Circuit Playground's built-in Neopixel LEDs and record changes in interbeat interval values (IBI), and calculate a relaxation rating based on how often the IBI plots change direction.

Download the code from the project's GitHib repository here:

Unzip the downloaded archive and rename the folder named "Meditation_Trainer-master" to "Meditation_Trainer".  

Inside that folder, you'll find a file named "Meditation_Trainer.ino" - open it in the Arduino IDE and upload it to your Circuit Playground board.

This guide was first published on Sep 20, 2016. It was last updated on Sep 20, 2016.

This page (Software) was last updated on Aug 12, 2016.

Text editor powered by tinymce.