MP3 Player Hacking

Hi Guys, I’m new to all of this and manage to burnout 2 mini mp3 players already… Im trying to fake a press button and I managed to do it and it worked for some time with this code.

Pin no. 5 send signal to transistor that link the wires who conected to the press button of the MP3 player, it worked for sometime and then stop, the mp3 player is gone… :-X but it’s ok I got few more cheap ones… ;D

This is the part of the code I’m using, I’ll be happy for your advice, please help me to save the rest of my MP3 Players…

if (v<5000) { // check if the input is HIGH
digitalWrite(TransPin, HIGH); // sets the Transistor on
delay(20); // waits for a second
digitalWrite(TransPin, LOW); // sets the Transistor off
delay(2000); // waits for a second
digitalWrite(TransPin, HIGH); // sets the Transistor on
delay(50); // waits for a second
digitalWrite(TransPin, LOW); // sets the Transistor off
delay(10000);
digitalWrite(TransPin, HIGH); // sets the Transistor on
delay(3000); // waits for a second
digitalWrite(TransPin, LOW); // sets the Transistor off
delay(10000);

Its difficult to advise without knowing more about how you are connected to the player and what you want the button presses to do.

An opto-coupler is often used to simulate the pressing of a button on a remote device. They are driven just like an LED and have the benefit that no voltages flow between the device and Arduino. http://code.rancidbacon.com/LearningAboutOptoCouplers

Your delays do not match the comments. One second is delay(1000). It would help if you said what button press sequences you are trying to simulate

Hey, thanks for your help!!

The on/off/play button press sequences worked fine, I used a transistor BC548 13K614. maybe is not the one I suould use. The MP3 player is a small 1GB one work on 1.5 AAA.

Sorry, I have no technical backgrond but I'm learning.... ;-)

do you plug the output pin of the arduino directly to the base of the transistor or is there a resistor in serie? A picture of your setup could be helpfull also :-)

Yes I did use resistor. BTW, how do I post a picture, (all I got is this )

You need to use an external host like flickr. The pictures url goes between those img tags

Thanks, these are the photos I took:

Here you can see the connection to the on/off/play button of the MP# player:

.

And here the transistor I used to trigger the MP3 Player:

On the MP3 Player side. the two button lead, one should be a common (ground or supply) and the other the input pin to the MP3 controller. if the ground is the common, then a NPN transistor is ok if the supply is the commun then a PNP should be use, and this is why usually people install OPTO instead as mem says.

Thank you, any idea how can I check on the mp3 what is the common and what is the input pin?

You could use a voltmeter, and check on the both side of the button. lets call them A and B.
Common of the batterie (Black of voltmeter) to A side of the switch (Red of voltmeter) then press and release your button.
same with B.
the side that does not move is the common side.
then on that side check if the voltage is Always + or gnd.

Many thanks, I'll check it out! [smiley=happy.gif]