Okay, so this is really weird, I could not find anything on the subject. I tried to fix it whole day, but it really gave me headache
So the problem is basically this:
When I get close to the cables, it plays great. When I remove my hand, it stops Also it stops when I connect my other hand to ground.
In general, it stops processing everything at all, not just the sound. It looks like the interrupts are stopped or something like this.
I’m using info based on this http://arduino-cool.blogspot.com.es/2012/10/arduino-mp3-player-i.html but I have adapted it for Arduino Mega 2560, as I’m using this in my project.
I’m attaching the schematic I’ve come up to, sorry for the bad quality, but in general, it’s the same as the project, I’m only using MC14050BP instead of voltage dividers, to bring levels to 3.3v. That’s the only difference.
These are my connected pins:
#define MP3_XCS 35
#define MP3_XDCS 39
#define MP3_DREQ 37
#define MP3_RESET 33
#define SD_SEL 31
#define SPI_MOSI 50
#define SPI_MISO 51
#define SPI_CLK 52
I’m using the same library AGMp3 as in the thread. I’ve tried other libraries, but the result was the same, so it’s not something in software. I tried modifying the SPI speed values inside the project a lot of times, without success.
I really have no idea what’s going on Please, help me.