People love listening to music while exercising. Music provides the motivation needed for individuals to keep exerting energy and get in shape. So, because people enjoy listening to music while exercising, what if an MP3 player only played an individual's music while they are active? Using music as an incentive to continue exercising would encourage individuals to work harder and remain motivated in order to listen to their music.

This workout shirt utilizes a LilyPad MP3 player and an accelerometer in order to detect whether or not the wearer is moving, and if so, it plays his or her music. The goal of the system is to promote an active lifestyle for wearers. Follow the instructions to create your own workout shirt MP3 player that is powered by exercise!

The price of our system ranges between $60 and $100 based on parts used, the cost of the shirt, etc. It is affordable, easy to understand and create, and will help promote healthiness and physical activity in society!

The Arduino IDE must be downloaded (free at http://arduino.cc/en/main/software) in order to run our code.

Our code can be downloaded here: https://iu.box.com/s/vc81v70ifv4ebw68d7qq

Check out the working system here:

Step 1: Acquire Parts

The following are required parts to create the system:

-Workout shirt
-LilyPad MP3 player (https://www.sparkfun.com/products/11013)
-LilyPad accelerometer (https://www.sparkfun.com/products/9267)
-RGB rotary encoder (https://www.sparkfun.com/products/10982)
-3.7V Lipo (lithium ion) battery (https://www.sparkfun.com/products/341)
-Micro SD card
-Headphones or speakers
-Conductive thread and a sewing needle (https://www.sparkfun.com/products/10867)
-Soldering iron
-Solder coil
-Alligator clips (for testing the circuitry before sewing)

The following are optional components that can be used to expand the system:

-Rainbow LEDs (for enhanced visualization)
-Vibration board (for adding a physical aspect of the system to the visual aspect of the system)
-Button (for manual calibration)
-On/off switch (for extra control of the system)
-Extra fabric and card stock (for integrating the system with the shirt using an easier, more durable setup)
<p>Do i have to use the RGB Encoder or can i just use the RG Encoder?</p>
<p>Hey!</p><p>So I was wondering... You don't have the void loop command in the code.</p><p>How is that even possible? Could you explain?</p><p>Thanks</p>
<p>Hi,</p><p>Actually, the void loop is in the code... albeit, a bit buried in there! If you have the code downloaded and opened in a text editor, the void loop begins on line 464. The void loop is the main loop (method) of the program, and it makes calls to the other various functions.</p><p>Hopefully this helps!</p>
<p>Right now I am testing the Lilypad mp3 with <br> headphones, but I wanted to change the volume of the L channel <br>independently than that of the R channel (for starters)&hellip; Trying simple <br>panning in here&hellip;</p><p>I was using the LilypadMP3 library, but when I write:</p><p>MP3player.setVolume(5,30);</p><p>For some reason volume is kept the same in both headphones, as if one number will override the other? You have any clue on why?</p><p>Should I use separated speakers (LEFT SPEAKER/RIGHT SPEAKER) directly from their terminals in this Lilypad board? <br>Or is it that I am just not seeing something really obvious within the code... I haven&acute;t really used the libraries you are using, as you can see... If you could tell me what to change in your code, since by a quick look I don&acute;t really know...</p><p>Thanks!</p>
<p>That is woderful. :)</p><p>I loved the idea.</p>
<p>check it out here 4 the thermal electric generators. why use batteries when u can use your body to power every thing. no lithuim gells to burn off yr arms with!!!!!!!!.</p><p><a href="http://www.customthermoelectric.com/powergen.html?gclid=COi_25bb-rsCFcQDOgod9zcAzQ" rel="nofollow">http://www.customthermoelectric.com/powergen.html?...</a></p>
<p>That looks awesome! </p>
<p>Awesome! It would also be really cool if you could make it wireless and use the energy generated by running or something to power the device! Anyways killer concept.</p>
<p>Thank you! While the system does work without having to be plugged into the computer, the next step would in fact be to eliminate the need for a battery and utilize the energy generated from exercising in order to power the system. Great suggestion!</p>
<p>Being one of those people who absolutely needs music to exercise, the concept of this system is definitely appealing. If you had more time, I think pursuing the idea of adapting the system to where a certain number of seconds = a certain amount of music would be highly motivational. Is there a way you could include a warm-up mix into this? Since I need music to get started, perhaps there could be another added functionality and LED sensor (say yellow for example that slowly blinks faster as the end of your warm-up time ends), and then the system switches to what it is now and plays the music to your pace. </p>
<p>That is definitely a great idea! We are working to improve our system and appreciate all feedback.</p><p><br>Our future goals include implementing different settings for the system that can be cycled through using a button. The settings would represent the different stages of exercise (warm-up, activity, cool down) and could also represent different atmospheres of exercise that would utilize different thresholds. For example, the threshold could be set higher for running, which already involves a lot of motion, in order to make the user run harder in order to play the music. On the other hand, for lifting weights, the threshold can be set lower in order to detect the smaller motions and play the music.<br><br>We are also looking to improving our visuals so that users can easily identify their progress. Using RGB LEDs, we could display different colors and different patterns to indicate distance traveled, progress made from previous exercise, etc.<br><br>Using an accumulator for the amount of music time &quot;earned&quot; is another great idea that can add further incentive to exercise. We will first have to determine an appropriate ratio of time exercised to music time earned, and hopefully continue developing our idea from there!</p>
<p>mehh... lol awesome Instructable guys! (and gal)</p>
<p>Feel free to comment! We'd love to hear your feedback and any suggestions on how we can improve our system.</p>

About This Instructable




More by bbrodsky:Musical Exercise: Workout Shirt MP3 Player Powered by Exercise 
Add instructable to: