Step 3: Setup the SparkFun MP3 Trigger

Program 9600 Baud Firmware

I wanted the MP3 Trigger to support 9600 baud for more controller flexiblity, so a friend reprogrammed the MP3 Trigger with new firmware. He found the firmware and instructions on the creator's website. To re-burn the firmware you will need a Cypress MiniProg.

Load Songs onto Micro SD Card

Copy songs over to a microSD card. The card must be formatted using FAT16. The songs support a constant bit-rate sampling up to 192kpbs.

Make Connections

The MP3 has three pins that are required to be connected to the IO-204 - GND, USBVCC, and RX. There is also a switch that should have "USB" selected. This will allow the MP3 trigger board to powered by the USBVCC pin. Connect the corresponding pins to the IO-204.

Control Playback and Volume

The serial protocol is simple. Send the serial string "O" to start / stop the MP3 player. Send "v%01" to set the volume to the maximum. To lower the volume send serial strings of "v%XX" where XX is a number between 01 and 40 - "01" is the loudest and "40" is really low.

<p>I would like a mp3 shield, trigger or something similar.</p><p>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.</p><p>I know i can do this quite simply with an arduino but can i do this without it?</p>
<p>From the product description</p><p>&quot;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&quot;. If possible, couldn't you just leave it powered? Then just take your 12v signal and regulate it to 5v:</p><ul> <br><li>Trigger inputs: 3.3-5V, active low inputs with internal pull-ups</ul><p>...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 &quot;boots&quot; 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. </p>
<p>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.</p>
очень полезная штуковина спасибо. за инструкцию
Great project! Good luck wit&nbsp;the&nbsp;contest. Last month we blogged about your project.&nbsp;<a href="http://www.iobridge.net/projects/2010/04/feedback-mp3-player-and-activity-logger/" rel="nofollow">www.iobridge.net/projects/2010/04/feedback-mp3-player-and-activity-logger/</a>
&nbsp;This is cool, but how does it fit in with the Humana contest? &nbsp;Am I missing something?
The rules indicate that the contest asks people to &quot;Enter an instructable that promotes health...&quot; &nbsp;This makes being active just a little easier by allowing you to feel the positive effects immediately of your activity. &nbsp;If you are rewarded for an activity, you are more likely to do it. &nbsp;:-)<br /> <br />
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?<br />
From the Parallax site it looks for changes in infrared patterns in its 20 foot field.&nbsp; So if you are standing still, the image is not changing much, hence no movement.&nbsp; I don't know the details of the sensor, but perhaps it just sums up the total IR&nbsp;content in its &quot;snapshot&quot; and if there is a lot of change, it registers movement.&nbsp; I doubt it takes IR values for a field and compares changes at each X and Y position.<br /> <br />

About This Instructable


41 favorites


Bio: By sharing ideas there can be a crossroads of polymaths and myths. The origins of facts (found through science) meeting the origins of our beliefs ... More »
More by polymythic: Haptic Feedback device for the Visually Impaired [Project HALO] Motion Feedback MP3 Player Serv O'Beer with iPhone for the Perfect Pour
Add instructable to: