Count punches or weight repetitions with Circuit Playground Express.

Story
Background

The Circuit Playground Express (CPE) has a built in accelerometer. I used it to count how many punches or curls with a weight. MakeCode triggers an event when the strength of the three axis accelerometer crosses a threshold.

For every punch, I wanted to a new neopixel to light up. When I reached the max number of reps in a set, I wanted a different light color to track how many sets I had completed. When I finished 10 sets, I wanted the to be an audible alert and the lights to reset.

Build

I just taped the CPE to the upper part of the glove and the battery to the bottom of the glove.”

Link

Related Content