MuPiBox Documentation MuPiBox NG

Setting up RFID cards and figures – step by step

RFID for beginners: choose a suitable USB reader and cards, connect it, assign an audio play, change cards and fix typical problems.

GPIO readers: Connect PN532 over SPI/UART or Connect RC522 over SPI. Both need 3.3 V GPIO signals; hardware acceptance is pending.

An RFID card always points to one album/audio play, playlist, podcast or radio station – never to a collection. This applies to mixed collections too. A card stays assigned to its individual item even after the item is grouped into a collection.

With RFID, a child starts an audio play by holding a card or a figure to a reader – without searching for a cover on the display. MuPiBox remembers which card starts which content. Nothing is written to the card itself.

For your first try you need: a supported USB reader, a matching card and an audio play that already plays on the box from the display. If you have not set up any media yet, start with Media & categories.

RFID settings with a connected reader, the last detected card and one saved assignment

Hardware → RFID with a demo reader. Reader name, card number and media are examples.

1. Basics: how does RFID work?

RFID stands for "Radio-Frequency Identification". An RFID card contains a tiny chip and an antenna but no battery. When you hold it to a reader, the reader's radio field briefly powers the chip, and the chip sends back its identifier. That is why it only works at a distance of a few centimetres.

The UID ("Unique Identifier") is this identifier, for example 0012345678 or 04A1B2C3. It is stored in the chip at the factory. MuPiBox only reads the UID and looks up in its own database which content belongs to it. Music and audio plays are never stored on the card; they stay on the box or with the provider.

RFID and NFC: NFC ("Near Field Communication") is a form of RFID at 13.56 MHz. Every NFC card is an RFID card, but not every RFID card is NFC.

Two frequencies – and why not every card fits

125 kHz (low frequency)13.56 MHz (high frequency, NFC)
Typical chipsEM4100, TK4100MIFARE Classic 1K/S50, NTAG213/215
Typical readerssimple USB readers such as NeuftechPN532 and other NFC readers
Often recognisable by"EM", "ID" or "125 kHz" in the name"IC", "MIFARE", "NFC" or "13.56 MHz"

A reader only understands cards of its frequency. A 125 kHz reader does not detect NFC stickers, and an NFC reader does not detect EM4100 cards. Buy reader and cards to match each other; the shopping list names proven combinations.

RFID in your own figures

RFID tags come as cards, key fobs, round coins and stickers. You can glue a sticker or coin into the base of a figure or put it inside a 3D-printed figure. Keep in mind:

  • The tag must match your reader's frequency.
  • Metal nearby (metal figures, magnets, metal cases) weakens the signal considerably.
  • When placed on the reader, the tag should lie as flat and as close to the reader's antenna as possible; test the position before gluing it in permanently.

2. Which readers does MuPiBox NG support?

MuPiBox supports both USB readers and readers wired directly to the Raspberry Pi GPIO header.

Reader typeConnectionStatus
USB RFID (HID / Neuftech)USB, usually 125 kHzTested with real hardware
PN532 USB (UART / 13.56 MHz)USB serial, 115200 baudImplemented; hardware test pending
PN532 GPIO UARTGPIO14/15, 3.3 V, 115200 baudImplemented; hardware test pending
PN532 GPIO SPISPI0 CE0/CE1, 3.3 VImplemented; hardware test pending
RC522 SPISPI0 CE0/CE1, 3.3 VImplemented; hardware test pending

See PN532 GPIO guide and RC522 SPI guide. PN532 I²C is not a selectable reader yet. USB barcode scanners acting as keyboards only work with codes compatible with the UID normalization (digits and A–F).

Only one reader is active at a time. Connecting a second reader replaces the first.

3. Your first audio play card in 10 steps

This quick guide needs no technical IDs. The sections after it explain each step in detail.

  1. Plug in the reader: plug the USB reader into a free USB port on the MuPiBox.
  2. Open the Admin interface: on the touch display, long-press the Wi-Fi icon and scan the QR code (First boot).
  3. Open the RFID page: Hardware → RFID.
  4. Tick Enable RFID. This switch is saved immediately.
  5. Leave Reader type at USB RFID (HID / Neuftech) and click Scan for readers.
  6. Select the reader in the list (usually marked with ★) and click Connect. Reader status now shows Connected.
  7. Test a card: hold a card to the reader. Its number appears under Last card – the reader works.
  8. Open the audio play: Content & Services → Content, expand the category and the audio play's entry in it.
  9. Assign the card: at the very bottom, expand Link folders to an RFID card, click Assign RFID card next to the audio play and hold the card to the reader as soon as "Hold the card to the reader now…" appears.
  10. Try it: the message "Assignment saved: …" appears. Take the card away and hold it to the reader again – the audio play starts.

4. Connecting the reader

  1. Connect the RFID reader to a free USB port on the Raspberry Pi. A USB hub is possible, but a direct connection is most reliable.
  2. Open the Admin interface and go to Hardware → RFID.
  3. Tick Enable RFID. This switch is saved immediately – without it, the assignment buttons do not appear next to your media.
  4. Select the reader type under Reader type. For almost all beginners this is USB RFID (HID / Neuftech).
  5. Click Scan for readers.
  6. Select the reader in the list below and click Connect.
  7. Reader status now shows Connected, and Reader shows the device name.

Which entry is my reader? The list shows all input devices of the Raspberry Pi, for example the touchscreen or the power button as well. Entries whose name sounds like an RFID reader ("RFID", "Reader", "125kHz", "NFC") are marked with ★ and listed first. If unsure: unplug the reader, click Scan for readers, plug the reader back in and scan again – the newly appeared entry is your reader.

Does it work? Hold a card to the reader. Its number appears under Last card. If nothing appears, the card does not match the reader or the wrong entry was connected.

The box remembers the reader. After a restart it reconnects it automatically, even if Linux changes the device number (/dev/input/eventN). If the reader has been removed or several devices match the stored identity, Last error shows the reason; then select and connect the reader once more.

Debounce time

Debounce time (ms) prevents a reader from reporting the same card several times within a short period. The default is 1500 ms (1.5 seconds). Keep this value at first. After changing it, click Save RFID settings.

5. Preparing the audio play

A card can only start content that is already set up as a media source in the Admin interface. Example: the card should start the audio play "Abenteuer im Wald" (Forest adventure).

  1. Copy the audio play into its own folder, for example music/Abenteuer im Wald/ (File sharing).
  2. Open Content & Services → Content (page Categories and media).
  3. Click + Add media source.
  4. Under Add to category, choose for example Audiobooks (or + New category).
  5. Choose the source Local media and, under Library / folder, the folder of the audio play.
  6. Click Create media source.
  7. Test playback once from the display. Only when the audio play works without RFID is it worth adding the card.

The "Add media source" dialog with category, Local media source and selected folder

For Spotify, web radio or ARD Sounds you need to set up the source first, for example Spotify.

6. Assigning a card

This is the recommended way: the box knows the target automatically, so you do not enter technical IDs.

  1. Stay in Content & Services → Content and expand the category and the audio play's media entry in it (click + or the name).
  2. At the very bottom of the entry you find Link folders to an RFID card. Expand it. It only appears when RFID is enabled.
  3. Next to the audio play there is Assign RFID card. Click it.
  4. "Hold the card to the reader now…" appears. Briefly hold the card to the reader now.
  5. The message "Assignment saved: …" appears, and next to the audio play you now see RFID: <card number> with Change and Remove.
  6. Take the card away and hold it to the reader again. The audio play starts.

Three states: 1 Assign RFID card, 2 Hold the card to the reader now, 3 saved assignment with card number

(1) Before assigning, (2) waiting for the card, (3) saved assignment.

You can stop the learning step with Cancel while the box waits for the card. If you do not hold a card to the reader within 60 seconds, learning ends on its own and your cards start their content again.

Where the button appears for other sources:

SourceWhere you assign the card
Local media and NAS foldersin the media entry under Link folders to an RFID card, one line per folder, album, playlist or episode
Spotify album or playlistin the Spotify entry right next to the album or playlist
Podcast (RSS feed)directly under the individual podcast feed entry; starts the latest playable episode
Web radioin the radio entry next to the station
ARD Soundsin the ARD entry under Link episodes to RFID cards, one line per episode

7. What happens when a card is placed?

SituationBehaviour
Known cardThe assigned content starts from the beginning, a folder with its first track. Current playback is replaced.
The same card again (after the debounce time)The content starts again from the beginning.
Card removedNothing – playback continues. Use the display, a button or the app to stop.
Unknown cardNothing. There is no sound and no message.
While the Admin interface is learning a cardThe card is only captured; nothing starts.
Source blocked by parental control or quiet time activeThe card starts nothing.
Streaming source without internetThe content cannot start. Local media also play offline.
Box in standby (power button)The card does not end standby; the display stays dark. Wake the box with the button first.

Resuming an audio play at the last position works from the display (see Using the display), not from the card.

8. Which content can be assigned?

ContentCan a card start it?
Local folder, album, playlist or episodeyes
NAS folder set up as a media sourceyes
Spotify album or playlistyes (Spotify must be connected)
Spotify artist, show/podcast or single trackno – not a unique playback target
Web radio stationyes (internet required)
Single ARD Sounds episodeyes
Podcast (single RSS feed)yes – starts the latest playable episode.
Whole ARD shownot through the interface; individual ARD episodes can still be assigned.
Mixed or regular collectionno – cards can only start individual items, not the parent collection.
Single Audible audiobookyes – Audible must be connected on the box; Assign RFID card is shown with the audiobook in Media & categories.
Audible collection or saga as a wholeno – each audiobook of the collection gets its own card.
Jellyfin, Music Assistant, resume list, kids appsno

A card can have exactly one target. Conversely, the interface offers only one card per item: as soon as an audio play has a card, you only see Change and Remove there. A second copy of a card for the same audio play cannot be assigned at the moment.

9. Changing, swapping or deleting cards

A card should start a different audio play:

  1. Remove the old assignment: in Hardware → RFID, click Remove next to the card in the list of assignments, or click Remove next to the card number at the previous audio play.
  2. At the new audio play, choose Assign RFID card and place the card.

Use a different card for an audio play: click Change next to the card number and hold the new card to the reader. The old card is free afterwards.

Deleting only removes the link – no music files, no Spotify album and nothing on the card. If an audio play is deleted or renamed, the card no longer finds its target; the list in Hardware → RFID then shows a technical identifier instead of the name. In that case assign the card again.

10. Parental control, security and backup

  • Parental control also applies to RFID: blocked sources and quiet times cannot be bypassed with a card.
  • RFID cards are not access keys. They only start media and do not open any admin functions.
  • The assignments belong to the MuPiBox database and are part of the backup. Create a backup after setting up all cards and keep it outside the box. After a restore the assignments are back; you do not have to teach the cards again.

11. Troubleshooting

ProblemWhat to check
"No matching reader found"Is the reader type correct? Is the reader firmly plugged in? Try another USB port and Scan for readers again.
Many entries, none with ★Unplug the reader, scan, plug it in, scan again – the new entry is the reader.
Status "Disconnected"Select the reader in the list and click Connect. Note any message under Last error.
Connected, but "Last card" stays emptyDoes the card's frequency match the reader (125 kHz or 13.56 MHz)? Hold the card flat and close to the antenna, remove metal, test another card.
Card detected, but nothing startsIs the card in the assignment list? Does the media item play without RFID from the display? Is the source blocked, offline or a quiet time active?
"This card is already assigned to another item."The card already starts other content. Remove it there first, then assign it again.
"No card detected. Learning stopped after 60 seconds."Click Assign RFID card or Change again and hold the card flat to the reader within one minute.
Card starts several timesCheck the debounce time and use the default of 1500 ms.
"Disconnected" after a restartCheck Last error, select the reader again and connect it.
Assignment buttons missing next to mediaSwitch on Enable RFID and reload the Content page. Not every source offers RFID (see section 8).

If this does not help, look at the logs and use the general troubleshooting. For a support request, note the reader model, card type, reader status, exact error message and MuPiBox version – but no passwords or credentials.

12. Short final test

Once everything is set up, these four points should be true:

  1. Reader status shows Connected.
  2. The card number appears under Last card when you place a card.
  3. A placed card starts the right audio play.
  4. After a restart the reader is connected again and the cards still work.

Next step: read how children use the box every day: Using the display. Then create a backup.

Playback position and replay

A finished track can be restarted from the beginning by scanning the same RFID card or barcode again, even when an old checkpoint points to the end of the track.

In Box & Playback → Player & Behavior → Save playback position, you can disable checkpoints (default: On). When Off, MuPiBox ignores previously saved positions, does not store new ones, and the resume list is empty. Old entries remain and reappear when the setting is enabled again; you do not need to delete database entries. Note: Streaming services such as Spotify or Audible may manage their own playback progress independently.

Scan twice: resume or restart

Enable “Second scan restarts from the beginning” under Hardware → RFID (off by default). This works for RFID cards and compatible USB barcode scanners configured as the reader.

  1. First scan: Resumes the assigned title/album from the last MuPiBox checkpoint, if one exists; otherwise starts from the beginning.
  2. Same code again within 10 seconds: Restarts the assigned item from the beginning, without deleting the database.
  3. Another code, more than 10 seconds later, or a third scan: Starts a new pair whose first scan resumes normally.

Remove the card between scans and allow roughly 2 seconds: rapid duplicate reader signals are ignored, and the configured reader debounce still applies. Live radio has no resume position. External providers may track progress independently. When Save playback position is off, the first scan also starts at the beginning.

Central RFID card manager

Content & Services → RFID Cards lists all media, transport controls and single-use rewards together, including assignments created from an album. Cards can be searched, filtered, edited, deleted and scanned. One UID has one active action.

Single-use reward: add a card and select 30 extra listening minutes (configurable 1–240). The parental control and finite daily listening limit must be active; quiet hours and blocked sources are never overridden. A successful scan commits an immutable SQLite redemption, and the same issuance cannot be redeemed again even after reboot or duplicate scans. Unused bonus minutes expire at midnight. Administrators can explicitly rearm a reward. Reward records survive a normal database restore, but cannot survive complete storage loss without backup.

Reader setup, connection and debounce remain under Settings → Hardware → RFID Reader. Simple card UIDs can be cloned, so these are convenience rewards, not cryptographically secure tokens.

© 2026 MuPiBox