Week 7 Recipe: Input Testing

Measuring speed one beat at a time

Serves: One electronics chef and a responsive accelerometer

Total Time: Several hours of coding and testing

Course 1: Preparing the Ingredients

For this week, I already had a fully milled and soldered PCB with an accelerometer (see Week 4 and Week 5). This provided a perfect base for testing input signals.

Course 2: Cooking the Code

I wrote code to read accelerometer values and register noticeable changes in BPM. The first two images show the code I wrote to handle the input and process the measurements.

Input code 1
1️⃣ Part of the input processing code
Input code 2
2️⃣ Additional code for reading and interpreting the accelerometer

Course 3: Tasting the Results

As seen in the output below, the accelerometer successfully registered changes in speed as intended. For how this input will be used in future weeks, see Week 8 and Final Project.

Input proof output
3️⃣ Output showing successful BPM registration from the accelerometer