STPS3045DJF-TR

MP3 Trigger v2 User Guide
2012.02.01
© 2012 SparkFun Electronics, Inc. All Rights Reserved. Product features, specifications, system requirements and availability are subject to change without notice. MP3
Trigger (WIG-09356) is a trademark of SparkFun Electronics, Inc. All other trademarks contained herein are the property of their respective owners.
MP3TRIGGER_UG_090917
1
Overview
The MP3 Trigger v2 is a versatile, low-cost, low-power embedded audio unit that plays MP3 tracks directly from a
FAT32 or FAT16 formatted microSD flash card to a stereo 1/8” headphone output jack, supporting up to 192kbps
stereo playback. The board has 18 external input pins that when pulled to ground, trigger pre-selected MP3 tracks,
and a full-duplex serial control port that provides real-time volume control as well remote triggering for up to 255
tracks. There is also an on-board navigation switch for local access and playback of all MP3 tracks on the flash card.
Version 2.40 firmware (and above) supports the use of an initialization file on the microSD card that can be used to
change the serial baud rate, as well as to repurpose any of the 18 trigger inputs to alternate functions, such as
random and sequential triggers, navigation controls and even volume controls. In addition, a restart lockout option
can be used to prevent any trigger from starting a track if audio is already playing. Using these features, custom
applications can often be implemented without the use of a separate microcontroller.
The MP3 Trigger v2 has a resident, permanent boot-loader that enables firmware upgrades directly from a microSD
card without the need for a hardware programming device.
The basic layout of the MP3 Trigger v2 can be seen in Figure 1 below.
1) USB or external power switch
2) External power connector (5.5x2.1mm center positive)
3) UART and USB power interface for the FTDI Basic (DEV-09115)
4) Power selection jumper
5) Trigger pins
Figure 1
MP3 Trigger v2 User Guide
2012.02.01
© 2012 SparkFun Electronics, Inc. All Rights Reserved. Product features, specifications, system requirements and availability are subject to change without notice. MP3
Trigger (WIG-09356) is a trademark of SparkFun Electronics, Inc. All other trademarks contained herein are the property of their respective owners.
MP3TRIGGER_UG_090917
2
6) 1/8" stereo headphone jack
7) Navigation switch
8) microSD socket
Specifications
Input Voltage Range: 4.5V to 12.0V DC, or regulated 3.3V (jumper selectable)
Current Consumption: Approximately 45mA idle, 85mA playing
Media: SDSC and SDHC microSD cards
File system: FAT32 and FAT16
Audio output: Headphone stereo (1/8” stereo jack)
Trigger inputs: Logic level 3.3V – 5.0V, active low inputs, w/ internal pull-ups. (Connector provides individual
grounds, allowing switches or jumpers to be connected directly to each trigger input)
Serial: Full duplex, 8-bit, 38.4Kbaud (default, other baud rates supported via initialization file)
Basic Operation
Simply drag and drop the desired MP3 files into the root directory of a FAT32 or FAT16 formatted microSD flash card
using a PC.
The MP3 Trigger v2 does not support hot-swapping of the microSD Card. While this won’t damage anything, the
microSD media is only initialized during power up. So whenever the card is changed or updated, be sure to power
cycle the MP3 Trigger v2 after installing the card.
When power is applied to the MP3 Trigger v2, the on-board (green) status LED indicates the state of the installed
media as follows:
1 long blink - No formatted microSD media found.
Figure 2
MP3 Trigger v2 User Guide
2012.02.01
© 2012 SparkFun Electronics, Inc. All Rights Reserved. Product features, specifications, system requirements and availability are subject to change without notice. MP3
Trigger (WIG-09356) is a trademark of SparkFun Electronics, Inc. All other trademarks contained herein are the property of their respective owners.
MP3TRIGGER_UG_090917
3
1 long blink, followed by 1 short blink - microSD media found, no MP3 files located.
Constant short blinks - Hardware problem with MP3 Decoder.
3 short blinks - microSD media found, at least 1 MP3 file located.
As soon as the MP3 Trigger powers up with 3 short blinks, the on-board navigation switch can be used to play all of
the tracks on the card, regardless of the filenames.
Left - Plays the previous MP3 file in the directory
Right - Plays the next MP3 file in the directory
Center - Starts/Stops the current MP3 file
Using the Trigger Inputs
The MP3 Trigger v2 provides 18 input pins (TRIG01 – TRIG18) that can be used to trigger specific MP3 tracks on the
microSD card. MP3 tracks are associated with triggers by placing a 3-digit number (using leading 0s) at the beginning
of the filename; 001 for TRIG01, 002 for TRIG02 and so on. The rest of the filename can be anything. For example,
the following are both valid names for TRIG14:
“014TRACK.MP3”
“014 Breaking Glass.mp3”
The trigger inputs are active low and pulled high internally. Therefore, they can be activated either by digital outputs
from another microcontroller (such as an Arduino) or by a simple contact closure (switch) to ground. The inputs
support voltage levels of either 5V or 3.3V.
The trigger inputs are made available on the even-numbered pins of a dual row connector, and all the opposing (odd-
numbered) pins are ground, making it easy to wire individual switches or contact closures directly to the MP3 Trigger
v2 board.
Installing a 36-pin dual-row header allows shunt jumpers to be installed on the trigger inputs to automatically
sequence and loop tracks on power-up as follows.
When a triggered track reaches the end, the MP3 Trigger v2 looks to see if any trigger inputs are active, and will
automatically start another track if so. If only the same trigger is active, then that track will restart (loop). If other
triggers are active, the MP3 Trigger v2 will always start the next higher trigger track, wrapping back to 1 after 18.
This, combined with the fact that the MP3 Trigger v2 will automatically start the lowest numbered active trigger on
power up, means that by installing shunt jumpers on the trigger inputs, the MP3 Trigger v2 can be set to automatically
sequence and loop from 1 to 18 tracks on power up with no externally programming or control required. (Beginning
with firmware version 2.40, installing a shunt jumper on a single sequential trigger will do the same thing.)
Using the initialization file describe later in this document, triggers can be reprogrammed to start sequential or
random tracks. For example, if a trigger is reprogrammed to be a random trigger, and that one trigger is shunted
closed, then the MP3 Trigger v2 will power up and continuously play tracks in a (pseudo) random order.

STPS3045DJF-TR

Mfr. #:
Manufacturer:
STMicroelectronics
Description:
Schottky Diodes & Rectifiers 30 A Vrrm 45 V Vf 0.41 Tj 150c
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet