Skip to main content

Sound Setup

Sound Files

Mouse Droid Sounds.zip

SparkFun MP3 Trigger

The SparkFun MP3 Trigger board needs three wires between the Shadow Master Control board and the Trigger board, Black (ground), Red (5v vin), and White (signal).mp3-5-FTDI.jpg

You'll also need to make sure the power selector switch at the bottom or the board is switched to "USB" and not "EXT.

13720-04_mp3_trigger_FTDI_power_switch.jpg

Setting up the sound files

This board uses your average Micro SD card, a large card is not necessary, 1gb to 8 gb is way more than enough for this.

The card should be formatted with FAT32, and the then put your MP3 files onto the SD Card.

The SF board is pretty easy to understand when it comes to how you tell the board what file to play, each file should be renamed to have a 3 digit prefix at the beginning.

Starting with "001" through "018" enables you to order your files and address them, these prefixes also correspond to the 18 trigger pins on the board. 

Example Filenames

  • 001FileName.mp3  - Without a space 
  • 002 FileName.mp3 - With a space

Both versions are valid and you can mix formatting.

You won't need to solder to the long row on the left since Shadow is using a Serial connection (via the White wire to RX) and the Shadow code sends the appropriate signal.

The Shadow MSE code already has buttons mapped to certain trigger numbers.

Update the Arduino Sketch

The sketch starts ready for the MDFly board so you'll need to comment out one block of code in the IDE and re-upload the sketch, otherwise you won't get sounds through the trigger board.

Find this block

#ifdef MDFly
#include <serMP3.h>
 serMP3 MP3(MP3TxPin, MP3RxPin);
#endif

And comment it out with double forward slashes.

// #ifdef MDFly
// #include <serMP3.h>
// serMP3 MP3(MP3TxPin, MP3RxPin);
// #endif

Then re-upload the sketch Screenshot 2023-12-23 at 1.43.59 PM.png.

Connect the Shadow and Trigger boards

PXL_20231230_200755650.jpg

Using a 3-wire setup (Black, Red, White) with Female-to-Female Dupont connectors connecting the pins as follows.

Shadow -> Trigger

  • GND -> GND (Black)
  • 5V    -> VCC (Red)
  • SIG   -> RCX (White)

Plug your speaker into the stereo port on the MP3 Trigger board and not the Shadow board.

Button Mapping

The default button mapping for the sound files for SHADOW are as below, remember, prefix your filename with the appropriate number.

  • D-pad Up - Sound 001
  • D-pad Right - Sound 002
  • D-pad Down - Sound 003
  • D-pad Left - Random Sound 001-015
  • Circle/L2 + D-pad Up - Sound 004
  • Cross/L2 + D-pad Right - Sound 005
  • Not Available/L2 + D-pad Down - Sound 006
  • Not Available/L2 + D-pad Left - Sound 015
  • L1 + D-pad Up - Volume Up
  • L1 + D-pad Right - Sound 019
  • L1 + D-pad Down - Volume Down
  • L1 + D-pad Left - Sound 018

Troubleshooting

No Sound
  1. Make sure you plug the speaker into the MP3 Trigger board and not the Shadow Master board
  2. Did you flip the power switch on the board from "EXT" to "USB"
  3. Did you comment out the MDFly code block shown above.
  4. Did you load the sound files to an SD Card
  5. Did you name the files with the appropriate prefixes
  6. Does your speaker have it's own volume control or Mute
  7. Is your PS3 move controller paired and connected with your Shadow systemsystem.

1000021657.jpg