The Music Maker shield has a bunch of pins required for use. We pre-wire all of them for you but there's still some flexibility in case you want to rewire.
There are three 'totally fixed' pins, the hardware SPI pins:
- SPI SCK - connected to Digital #13 (but can be connected to the ISP header with a jumper) - used by both the SD card and VS1053
- SPI MISO - connected to Digital #12 (but can be connected to the ISP header with a jumper) - used by both the SD card and VS1053
- SPI MOSI - connected to Digital #11 (but can be connected to the ISP header with a jumper) - used by both the SD card and VS1053
- As of Aug 23, 2023 - We've updated the music maker to use the 2x3 SPI header instead of pins 11/12/13
There are a couple other pins that are required for talking to the VS1053 to play MP3s and such
- MCS - this is the VS1053 chip select pin, connected to Digital #7
- DCS - this is the VS1053 data select pin, connected to Digital #6
- CCS - this is the SD Card chip select pin, connected to Digital #4
- DREQ - this is the VS1053 data request interrupt pin - connected to digital #3
There are also a few other pins that are not connected to any Arduino pin but are broken out:
- RST - this is the VS1053 reset pin, we connected it to the Arduino reset pin so you don't need to use this unless you really want to.
- SPK Off - this disables the amplifier - if you have the amplifier version and want to 'mute' instantly
- TX - this is serial data transmit from the VS1053 - its not used for any of our demos
- RX - this is serial data into the VS1053 - its used for MIDI synth playing
- CD - this is the card detect pin, it is tied to ground when a card is inserted. Use a pullup on a digital pin to detect when a SD card is inserted. We don't use it.
As of Aug 23, 2023 - We've updated the music maker to use the 2x3 SPI header instead of pins 11/12/13
The VS1053 codec chip has 7 'General Purpose Input/Output' pins that you can use to detect button presses and/or light up a small LED. GPIO1 is also used to put it into MIDI mode. By default all these pins are pulled low to ground with 100K resistors. They are 3V logic level so if you want to attach a button, you can connect the two wires between the GPIO pin on the left and the 3V breakout on the right. If you don't want to use these pins just leave them be, they are not required for use!
You can also plug in headphones, although it is not a very strong headphone driver, so may not sound loud if its lower than 32Ω impedance
For the amplifier, we're using the TS2012 class D chipset, the same used in this amplifier board
Speaker connects
On the left are two sets of breakouts for Right and Left. Connect these directly to your 4 or 8Ω speakers. Ideally they are 4Ω 3W speakers or 8Ω 1W speakers. You will get louder audio with 4Ω speakers since the amplifier voltage is maxed out at 5V from the Arduino. If you have both speakers attached and you're playing loud audio, you may need to power the Arduino from DC power jack instead of USB since USB can only provide 5W (5V @ 1A) max and two 3W speakers = 6W!
+dB jumpers
The default amplification for the speakers is +6dB. This gives nice unclipped audio from the VS1053 even at highest volume. If by chance you can't amplify the audio (its not normalized right) or there's some other reason to need a higher amplification, you can short the +6dB or +12dB jumpers to increase the gain. Don't do this unless you're really sure! You can end up with really heavy clipping which sounds bad!Text editor powered by tinymce.