Measuring speed one beat at a time
Serves: One electronics chef and a responsive accelerometer
Total Time: Several hours of coding and testing
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.
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.
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.