This project was created as a requirement for MEGR 3171, a class necessary for attaining a mechanical engineering degree at The University of North Carolina at Charlotte.
COVID has made it challenging to maintain a healthy and active lifestyle for many individuals. Due to gyms closing or having limited capacity, more and more people are turning to workout lifestyles that can be supported within the comfort of their own homes. But many times even if one has the opportunity to workout, it is difficult to find the motivation to do so. This is why many have workout partners - or even trainers - who sweat alongside and help push people to achieve their goals. *say something about not recommended to get together*
To help individuals stay active and get the motivation they need, we created this device. By using an ultrasonic sensor and an RGB led, the Particle Argon is able to do several things. It counts the number of reps you complete of several different movements - push-ups, sit-ups, pull-ups, and squats. It also lets you know when you have successfully completed one of these reps through the use of a red and green light. Once you have reached your rep goal, your partner is notified by a blue light illuminating on their Argon! Both Argon's are equipped with the same code and function identically. The rep goal can be easily changed on either board to any number by editing the counter variable.
For simplicity, a push-up movement is demonstrated, as shown in the video below. However, several different movements can be tracked and data shared through the use of this device!
Pictured here are both of the workout devices. The layout of each device is the same. To orient the ultrasonic sensor in a way that would make it easiest to track pushups, the pins on the sensor were bent so that it would lie flat.
Pictured below is a schematic of the device. The VCC of the ultrasonic senor was connected to the VBUS port of the Argon so that it could receive the necessary voltage. The Trigger and Echo pins were connected to D5 and D4, respectively, for mere convenience. The pins for the red and green pins of the RGB LED were also connected to pins that were simply easy to access. The blue pin for the LED was connected to D7 because when an analog voltage of value "HIGH" is sent to that pin, the onboard blue LED turns on as well. This way, there will be two blue lights to signal that the partner has finished their reps. The ground of the ultrasonic sensor and LED were run to the ground pin of the Argon.
We used ThinkSpeak to graph our live data. The bar graph here shows the total reps completed with one minute rest intervals between each 10 completed reps.
To access the live data, the following link can be used:
Comments