SparkFun LilyPad MP3 Pinout

A round sewable audio player. Five switch inputs trigger files from a microSD card and the onboard amplifier drives separate left and right speaker pairs.

Main pinout

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show advanced functions

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

18 visible
PinMCU pinTypesNotes
GPIOAnalogTrigger 1 on Arduino A0. The factory Trigger sketch plays the matching track when this tab is switched to GND.
GPIOI2CAnalogTrigger 2 on Arduino A4. The factory Trigger sketch plays the matching track when this tab is switched to GND.
GPIOI2CAnalogTrigger 3 on Arduino A5. The factory Trigger sketch plays the matching track when this tab is switched to GND.
GPIOUARTTrigger 4 on Arduino D1. The factory Trigger sketch plays the matching track when this tab is switched to GND.
GPIOUARTTrigger 5 on Arduino D0. The factory Trigger sketch plays the matching track when this tab is switched to GND.
AudioLeft speaker − output. Connect a 4–8 Ω speaker across the left pair.
AudioLeft speaker + output. Connect a 4–8 Ω speaker across the left pair.
AudioRight speaker − output. Connect a 4–8 Ω speaker across the right pair.
AudioRight speaker + output. Connect a 4–8 Ω speaker across the right pair.
PowerRegulated 3.3 V supply input or switched output when S1 is ON.
Power4.5–6 V input to the onboard LiPo charger. Shared with JP2.4.
GNDPower ground and return for the five trigger switches.
UARTSerial adapter DTR at the green (GRN) end of the angled header.
UARTBoard UART transmit to the serial adapter's RX input.
UARTBoard UART receive from the serial adapter's TX output.
Power5 V input from the FTDI adapter. Feeds the charger through the same net as the VIN tab.
GNDGrounded CTS position on the adapter header.
GNDFTDI ground at the black (BLK) end of the angled header.

Specifications

Controller
ATmega328P at 8 MHz with 3.3 V logic. AREF is tied to the 3.3 V rail.
Sew tabs
12 tabs: five active-low triggers, VIN, 3.3 V, GND and two speaker pairs.
Audio
VS1053B decoder and TPA2016D2 stereo class-D driver for two 4–8 Ω speakers. The switched 3.5 mm jack uses the decoder’s GBUF as its sleeve reference.
Storage
Onboard microSD socket shares SPI with the VS1053B. The Trigger sketch maps filename prefixes 1–5 to the five switch inputs.
Battery
Single-cell 3.7 V nominal LiPo on JP1, with JP3 as its solder-in alternative. The MCP73831 charges at up to 4.2 V with a nominal 500 mA setting.
External power
VIN and 5 V FTDI feed the charger. The switched 3.3 V tab accepts a regulated supply or provides the 3.3 V rail. Use a battery or supply rated for the speaker load.
Programming
The fitted six-pin JP2 accepts a 5 V FTDI adapter. The bare 2 × 3 JP4 provides 3.3 V AVR ISP. Its square pad is MISO, pin 1.
PCB diameter
68.58 mm in the EAGLE outline.

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
LilyPad MP3 v15aBoard schematicSparkFunPower, trigger multiplexing, FTDI orientation and audio routing.Datasheet
LilyPad MP3 v15aEAGLE PCB and schematicSparkFunFootprints, drill positions, net names and front/rear markings.Datasheet
LilyPad MP3Hookup guideSparkFunFactory Trigger sketch, 4–8 Ω loads and LiPo charging.Datasheet
ATmega328PMicrocontrollerMicrochipTQFP-32 pin and ADC functions.Datasheet
VS1053BAudio decoderVLSI SolutionAudio outputs, headphone reference and MIDI mode.Datasheet
TPA2016D2Class-D amplifierTexas InstrumentsStereo bridge-tied speaker outputs and I²C control.Datasheet
MCP73831LiPo chargerMicrochipCharge regulation and programming resistor.Datasheet

Board notes

Speaker pairs
Connect each speaker across its + and − pads. Both sides are driven. Inserting a plug interrupts the amp input unless SJ4 or SJ5 bypasses the relevant switch.
Shared pins
T2 and T3 share SDA and SCL with the amplifier. T4 and T5 are the board UART, which is also used to upload sketches through JP2.