17. Soldering On

After my struggles with the Android app development, and the resulting changes that came about, I decided to finally shift my focus on the physical side an get my speakers up and running.

Ron handed me an old cheap headset that apparently Xing Yu had broken, and told me I could just wreck it for parts, so I did

Before the butchering
What's left after
This was functional, but the audio quality was pretty bad. Here's a comparison with the single speaker that I bought myself.
I intended on switching to the single speaker, by ripping apart an old pair of earphones of my own to use the 3.5mm audio jack, but when I stripped all the wires and tried to reconnect it with the speaker, somehow I couldn't get any sound to come out.
Surgery time
 So I ended up just franken-attaching the new speaker to the two crappy speakers.

You might have noticed in the previous video that I'm using a huge-ass Arduino board. What happened to the Nano? well the mp3 shield wouldn't fit, and when I tried to use the Uno, it couldn't work. The issue with the Arduino Uno and the shield was that somehow, when I added a slight modification to the original "if app button press, turn on LED" code and changed it to "if app button pressed, turn on LED and play track 1", it would only listen to the first command and somehow get stuck there, refusing to even turn off the LED when I pressed the Off button.
the dumdum Uno in question
 This  had me stumped for a few days, searching through the Cytron mp3 shield documentation to see if some pin interference was going on somehow, but I couldn't really find anything. However, when I decided to use the Arduino Mega (which has multiple RX TX pins) to see if I could debug it, it just decided to work. I'm guessing that the mp3 shield uses the RX TX pin in some way when trying to play the music, but with the Bluetooth module simultaneously trying to use the pins, the signals get mixed up and it can't function.
Arduino Mega, 
Mega + mp3 Shield
 Another frustrating limitation of the mp3 shield

I'm very limited in the selection of music, since most of my audio files have a higher bitrate than 260kbps. I ended up picking some tracks from the soundtrack of the French film Amelie for the final music stored in the mp3 shield.

Out of curiosity, I tried to use higher bitrate files to see how it would sound, and here are the results.
The first video is what it ended up sounding like...

...and the second video, of what it should have sounded like...

References:

Instructables.com. (2009). How to Wire a Speaker to 3.5mm Jack. [online] Available at: http://www.instructables.com/id/How-to-wire-a-speaker-to-35mm-jack/

Purohit, S. (2016). How to Make an Audio Player using an Arduino Uno | DIY Hacking. [online] DIY Hacking. Available at: https://diyhacking.com/arduino-audio-player/

Tutorial.cytron.io. (2015). Cytron MP3 shield with NEW library! – Tutorial by Cytron. [online] Available at: https://tutorial.cytron.io/2015/07/30/cytron-mp3-shield-with-new-library/

Comments

Popular posts from this blog

5. Arduino Explorations