Skip to content

3. How to use

TheSlowGrowth edited this page Apr 10, 2021 · 6 revisions

Wunderkiste is a music player for children. Its controls are extremly simple so that it can be used by children as young as 3 years. This manual contains all information needed to use it.

Controls

H Headphone jack. Mutes internal speakers when headphones are plugged in.
S Status LED. Indicates what Wunderkiste is doing.
V Volume control.
P "Prev" button. Jumps to the previous track.
A RFID - active "card area". Place cards / tags here.
N "Next" button. Jumps to the next track.

SD SD card slot.
R "Reset" button. Push with a pointy object to reset
the Wunderkiste in case it hangs due to a software error.
C Charging port. Connect to a USB phone charger to charge the internal battery.
L Battery indicator LEDs. Show the battery level. (Optional)
B "Battery" button. Activates the battery indicator LEDs. (Optional)

Basic operation

  1. Each piece of music is represented by a plastic RFID card. Alternatively, tags, figurines, etc. can be used instead.
  2. Wake up your Wunderkiste by pressing (and holding) one of the buttons P or N until the status LED S lights up in green.
  3. Place a card on the card area A. Wunderkiste will start playing the corresponding music from its SD card and the status LED S will turn yellow.
  4. While the music is playing, press the N and P buttons to jump to the next / previous track.
  5. To stop playback, simply remove the card from the card area A. The status LED S returns to green.
  6. After a while of inactivity, Wunderkiste goes back to sleep. The status LED S turns off.
  7. If there is an error, the status LED will start flashing in a pattern of red/green/yellow to show you what's wrong.

Manage the music library

Each card plays MP3 files from a single folder on the SD card in alphabetical order. To determine which folder to play when a specific card is placed on the card area A, Wunderkiste maintains a library that links folder names to the RFID cards. This library is stored in the library.txt file that Wunderkiste will automatically create on the SD card. Usually you don't have to edit this file, Wunderkiste will take care of it.

Prepare an SD card

Wunderkiste needs the SD card to be formatted as FAT32. Thankfully, new cards usually come formatted as FAT32 and you can just use them as-is.

If you get the red long red long red long error code when you wake up your Wunderkiste then you'll have to manually format the card before it can be used like this:

  1. Format the card on a computer. On Windows, right click the card in Windows Explorer and select Format. On macOS, you can use the Disk Utility app to format the card. Make sure to select FAT32 as the file system. Usually this fixes any issues, but there are special cases where this doesn't work due to weird partitions on the card.
  2. A safer way could be this: Insert the card into a digital camera and format the card via the camera menu. Most cameras use the FAT32 file system as well. The camera will most likely add some folders, like DCIM or MISC. Make sure to delete all of them so that the card is entirely empty before you use it with Wunderkiste.

If Wunderkiste still can't read the card, try using another one.

Prepare cards / tags for use with Wunderkiste

rfid cards, tags and stickers

Wunderkiste uses RFID to detect objects that are placed on the active area A. There are various types of plastic cards, tags or stickers that work with Wunderkiste. They are usually quite cheap at online retailers. Here's what you need to know, when selecting cards / tags:

  1. Search for "Mifare Classic 1K". This is an RFID protocol that Wunderkiste can read. You'll find various types of cards, tags and stickers, just like the ones in the pictures above.
  2. The RFID chip in Wunderkiste is called MFRC 522 or RC 522 and it is used in many DIY projects. Usually, cards / tags are specifically sold as "MFRC 522 compatible".
  3. To make the cards / tags easily recognizable for children you can modify them with photos, attach them to figurines or embed them in cuddly toys. Just make sure that the RFID chip inside the card / tag remains close to the surface of Wunderkiste so that the RFID communication is not negatively affected. My preferred choice are white RFID cards to which I glue a photo of the story / music associated with that card. For this, I print a photo on a photo printer and simply glue it to the card. The resulting cards are easy to handle, robust and can simply be put in a small box. They tend to get lost though, so using bigger objects can be beneficial, too.
  4. Before you invest time and effort into customizing the RFID cards / tags, I suggest you pair them with music so that you can easily check if they work.

Add music and pair it to a card

  1. Add new music by copying folders of *.mp3 files to the SD card. Each folder will later be linked to its own unique card. Place each folder directly in the root directory of the SD card, don't use subfolders. You can add multiple folders at once.
  2. Place the SD card into the card slot on your Wunderkiste.
  3. Wake up your Wunderkiste by pressing (and holding) one of the buttons P or N until the status LED S lights up. Wunderkiste now detects that there are new folders for which it doesn't know a corresponding card yet.
  4. The status LED S starts blinking green short green short yellow very long and music from one of the new folders starts playing. Wunderkiste now waits for you to tell it which card should be linked to this folder.
  5. Place an unused card (= not linked to any other folder) on the card area A. Wunderkiste will link this card to the folder and the status LED S starts rapidly flashing in green green short green short green short to indicate that the folder was successfully linked to this card.
  6. Remove the card from the card area A. If there are more unlinked folders, Wunderkiste starts playing the next folder (go back to 4.)
  7. Once all folders are linked to their own unique cards, the status LED S lights up in green and Wunderkiste is ready to be used.

Remove music

  1. Locate the folder on the SD card that contains the music you want to remove and delete the entire folder.
  2. Open the library.txt file on the SD card with a text editor.
  3. You'll see many lines like this <Some characters>:<A folder name>. Locate the line for the folder which you just deleted and erase it. Then save the file. Now the card that was used for this folder is free to be used for new folder.

Change/reset the card for a folder

If you would like to use a different card for a folder of music (= unlink the current card and link a new one), you'll have to remove the corresponding entry from the Wunderkiste library.

  1. Open the library.txt file on the SD card with a text editor.
  2. You'll see many lines like this <Some characters>:<A folder name>. Locate the line for the folder for which you'd like to change the card and erase it. Then save the file.
  3. Place the SD card into the card slot on your Wunderkiste.
  4. Wake up your Wunderkiste by pressing (and holding) one of the buttons P or N until the status LED S lights up. Wunderkiste now detects that there is a folder for which it doesn't have a linked card yet. Follow the pairing process described above.

Status LED codes

The status LED can be lit continuously or blink in a pattern to display what Wunderkiste is currently doing.

LED pattern Description
off Wunderkiste is sleeping. Wake it up by pressing (and holding) one of the buttons P or N until the status LED S lights up. If that doesn't work, the battery may be empty. Connect Wunderkiste to a charger and try again.
green short (continuous) Wunderkiste is awake and ready to play music for you. Place a card on the card area A.
yellow short (continuous) Wunderkiste is playing music.
red long red long red long ---- Wunderkiste can not read the SD card. Make sure that it is formatted to a FAT32 file system.
green short green short yellow very long Pairing: Wunderkiste plays a folder of music that is not yet linked to a card. Place an unused card on the card area to link it to this folder
green short green short green short Pairing: Wunderkiste has successfully linked the card to the folder that is currently playing. Please remove the card to finish the pairing process.
red short red short red short Pairing: There was an error while trying to link the card to the folder that is currently playing. Please remove the card and try again with another card. Possible reason: The card was already in use for another folder.
red short red short - red short red short - red short red short ---- An internal error occured. Ooops. That should not happen. Please help fix this issue by providing a bug report on the issues page!

Update the firmware

The firmware can be updated easily like this:

  1. Download the *.hex firmware image file from the latest release
  2. Remove the SD card from the card slot.
  3. Open the Wunderkiste case by removing the 6 screws from the bottom panel. Tilt the panel slightly along the back edge so that the USB connector and battery status LEDs can retract from their cutouts in the top piece of the case.
  4. Now that the case is open, connect a USB cable to the firmware update port on the STM32F4 Discovery board, as shown in the image:

firmware update port

  1. Connect the other end of the cable to a computer / phone / tablet where you'll see a "USB thumb drive" appear (In case it doesn't appear, check the version number as shown in the image above: It should read "MB997D". If the last letter is an A, B or C, your board is too old to support drag & drop flashing and you'll have to use another method of flashing the firmware, see the info box below.)
  2. Copy the firmware *.hex file to the drive. You should see an LED on the board flash red/green during the file transfer.
  3. After the transfer is complete, eject the drive (!) then disconnect the USB cable. The firmware update is now complete.
How to update from older board versions!
  • If your board version is "MB997A" or "MB997B" or "MB997C", you can't simply program a new firmware by dragging and dropping a file. These boards have an older version of the programmer that doesn't support this feature.
  • The firmware download will be done with openocd, a commandline utility for debugging and flashing.
  • Open the case of your Wunderkiste as described above and connect the USB cable to the firmware update port.
  • On windows:
    1. Download openocd from the xpack project github release. It probably doesn't contain an installer. Simply extract the folder contents somewhere on your harddrive, then add the path to openocd.exe (in the bin subdirectory) to your system PATH environment variable.
    2. Download and install the ST-LINK/V2-1 USB driver from the ST website
    3. Download the *.hex firmware image file from the latest release
    4. Open a command prompt Start > Run > "cmd"
    5. In the terminal window, navigate to the folder where you downloaded the *.hex firmware image using the chdir command: chdir path\to\your\download\folder
    6. Copy this line into the terminal window: openocd.exe -f interface/stlink-v2-1.cfg -f target/stm32f4x.cfg -c init -c "reset init" -c "flash write_image erase Wunderkiste.hex" -c "verify_image Wunderkiste.hex" -c "reset run" -c shutdown
    7. You should see a bunch of messages that ultimately say verified XXX bytes in 0.XXXs (XX.XX KiB/s) and shutdown command invoked
    8. The firmware download is complete.
  • On linux / macOS:
    1. Download openocd from your package manager. (If that's not available, you may also use the xpack project github release. It probably doesn't contain an installer. Simply extract the folder contents somewhere on your harddrive.
    2. Open a terminal window. Add the path to the openocd executable file (in the bin subdirectory) to your search path with this command export PATH="/path/to/openocd/binary:$PATH".
    3. Download the *.hex firmware image file from the latest release
    4. In the terminal window, navigate to the folder where you downloaded the *.hex firmware image using the cd command: cd path/to/your/download/folder
    5. Copy this line into the terminal window: openocd -f interface/stlink-v2-1.cfg -f target/stm32f4x.cfg -c init -c "reset init" -c "flash write_image erase Wunderkiste.hex" -c "verify_image Wunderkiste.hex" -c "reset run" -c shutdown
    6. You should see a bunch of messages that ultimately say verified XXX bytes in 0.XXXs (XX.XX KiB/s) and shutdown command invoked
    7. The firmware download is complete.

Troubleshooting tips

My music sounds weird (pitched up/down, too fast/slow)

Please make sure that the *.mp3 files are at a sample rate of 44.1kHz (standard CD sample rate). If not, you can use an audio editor like Audacity to convert the files to 44.1kHz.

Wunderkiste just hangs and doesn't react

You probably hit a bug in the firmware. Oops. Sorry! Use a pointy object (e.g. paper clip) to press the reset button R on the back of your Wunderkiste. This should switch it off so that you can wake it up again. Please help fix the issue by providing a bug report on the issues page!