Instructables
Picture of Motion Feedback MP3 Player
Slides_Page_02.jpg

Concept: Create a feedback loop between a motion sensor and MP3 player volume


I wanted to create a positive feedback system to encourage more activity during a workout. What I came up with is an MP3 player that is controlled by continuous activity. After working with it and discussing the project with friends, I believe this concept could be implemented many different ways and maybe even directly embedded in a media player. Someone even brought up that they change the volume on their iPod to hear the songs as they workout or run harder just to hear the song better.  Yeah Power Song!

My proof of concept uses a SparkFun MP3 Trigger, Parallax PIR Motion Sensor, and an ioBridge IO-204 Controller. When motion is detected by the PIR sensor, the IO-204 sends serial commands to the MP3 player to raise or lower the volume. An added benefit to using the IO-204 as the controller  is that  I have the ability to data log my activity when it's net-connected.


 
Remove these adsRemove these ads by Signing Up

Step 1: Gather Up Components

Picture of Gather Up Components
Slides_Page_07.jpg
Slides_Page_08.jpg
Slides_Page_09.jpg

Time to gather up your system components:

SparkFun MP3 Trigger
Parallax PIR Sensor
ioBridge IO-204 Controller
Project Enclosure
Speakers
Micro SD Card with Favorite Songs
Hookup Wire

Step 2: Modify Enclosure

Picture of Modify Enclosure
Project Case.jpg

After finishing up my cup of  General Foods French Vanilla Cafe, I noticed that the container would be a perfect project enclosure - kind of like a taller Altiods tin so many people use.

I drilled four holes in the bottom and placed screws to act as standoffs for the MP3 Trigger. I also drilled out a larger hole on the font side to support the motion sensor. On the back, I made holes for the speaker connection and hookup wires to the IO-204.
phillsmit36 months ago

I would like a mp3 shield, trigger or something similar.

I would like to send a 12v signal to the MP3 player. when the MP3 player receives the 12v power I would like it to automatically start playing an MP3 file. then when the 12v is removed the mp3 player stops playing. then when the 12v is supplied again it starts playing the same mp3 file.

I know i can do this quite simply with an arduino but can i do this without it?

polymythic (author)  phillsmit36 months ago

From the product description

"The board has 18 external trigger pins that will directly trigger pre-selected MP3 tracks, and a full-duplex serial control port that provides full transport control, remote triggering for up to 256 tracks". If possible, couldn't you just leave it powered? Then just take your 12v signal and regulate it to 5v:


  • Trigger inputs: 3.3-5V, active low inputs with internal pull-ups

...and attach it to the trigger pin corresponding to the track you want. Same effect, but the .mp3 trigger is powered all the time. Otherwise, (not sure this will work) would be for your 12v signal to feed into the input for the .mp3 to turn it on, and then in parallel regulate the same source to 5v as described above, and hook that onto the trigger pin. There may be latency as the board "boots" and then reads the pin, or it may not like having its input pin triggered as its booting. Perhaps doesn't trigger until an edge change has happened.

Excellent I was hoping it might work. I would leave it powered all the time and use a push button to trigger the mp3 file. would this idea work with any mp3 shield. or is the trigger different in someway? thank you for your help.

olegka4 years ago
очень полезная штуковина спасибо. за инструкцию
iobridge4 years ago
Great project! Good luck wit the contest. Last month we blogged about your project. www.iobridge.net/projects/2010/04/feedback-mp3-player-and-activity-logger/
inchman4 years ago
 This is cool, but how does it fit in with the Humana contest?  Am I missing something?
polymythic (author)  inchman4 years ago
The rules indicate that the contest asks people to "Enter an instructable that promotes health..."  This makes being active just a little easier by allowing you to feel the positive effects immediately of your activity.  If you are rewarded for an activity, you are more likely to do it.  :-)

odin84gk4 years ago
From what I understand, PIR sensors detect a change in heat. How does it detect motion if you are standing in one spot? Does this only work if you are within a few feet?
polymythic (author)  odin84gk4 years ago
From the Parallax site it looks for changes in infrared patterns in its 20 foot field.  So if you are standing still, the image is not changing much, hence no movement.  I don't know the details of the sensor, but perhaps it just sums up the total IR content in its "snapshot" and if there is a lot of change, it registers movement.  I doubt it takes IR values for a field and compares changes at each X and Y position.