Counting Punches with Circuit Playground Express #CircuitPlaygroundExpress @MSMakeCode

Counting Punches with Circuit Playground Express

User SciJoy has published this tutorial on Hackster.io on how to use the Adafruit Circuit Playground Express to count punches when exercising with gloves and a punching bag. The project is programmed in Microsoft MakeCode making the build very quick & easy.

The Circuit Playground Express (CPX) 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.

See the project on Hackster.io and a video of the build below. And if you are building great projects, let us know in the comments below!