Greetings,
we are developing a project where several players (LARP) have a RFID personal Card.
They put their Card on a RFID reader to listen a personal MP· file.
Components
Arduino UNO
NBCVFUINJ amplifier decode board module MP3 U card (amplificador módulo de placa descodificador tarjeta U disco MP3).

twin relay
USB with 12 MP3 file recorded messages
RFID reader
We have found the next issues:
-the board starts playing all 12 MP3files
Board has no own library
prev/next button also control volume.
Thanks
[color=#222222]// tarjeta RDIFF[/color]
#include <SPI.h>
#include <MFRC522.h>
#define SS_PIN 10
#define RST_PIN 9
MFRC522 mfrc522(SS_PIN, RST_PIN); //Creamos la instancia mfrc522
int siguientePin = 3; //pin definition "next"
int pausePin = 4; //pin definition "play/pause"
void setup() {
Serial.begin(9600);
SPI.begin();
mfrc522.PCD_Init();
Serial.println("put ur ID Card on the sensor");
Serial.println();
pinMode (siguientePin, OUTPUT);
pinMode (pausePin, OUTPUT);
}
void LeerPista(int a){
for(int i=0;i<12;i++){
Serial.print("a ");
digitalWrite(siguientePin,LOW);
if(i==a){
digitalWrite(pausePin,HIGH);
delay(10000);
digitalWrite(pausePin,LOW);
a=0;
}else{
digitalWrite(siguientePin,HIGH);
delay(100);
}
}
}
void loop() {
// Serial.begin(9600); // tiempo de proceso
// activate RFID reader
if (!mfrc522.PICC_IsNewCardPresent()){
return;
}
//read the ID card
if (!mfrc522.PICC_ReadCardSerial()){
return;
}
//Now we record the content of the ID on "codigo"
String codigo ="";
byte letter;
for (byte i=0; i<mfrc522.uid.size; i++){
// Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ");
// Serial.print(mfrc522.uid.uidByte[i], HEX);
codigo.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "));
codigo.concat(String(mfrc522.uid.uidByte[i], HEX));
}
//if the content is true should ID which MP3 file have to use audio_XXXX
codigo.toUpperCase();
if (codigo.substring(1) == "F6 D9 11 9E"){
// Listen audio 1
LeerPista(1);
}
if (codigo.substring(1) == "80 49 DD 87"){
LeerPista(2);
}
if (codigo.substring(1) == "94 F0 30 5B"){
LeerPista(3);
}
if (codigo.substring(1) == "90 00 DC 87"){
LeerPista(4);
}
if (codigo.substring(1) == "60 9A 7A 51"){
LeerPista(5);
}
if (codigo.substring(1) == "90 C0 BF 4F"){
LeerPista(6);}
if (codigo.substring(1) == "56 0A 27 9E"){
LeerPista(7);
}
if(codigo.substring(1) == "93 C2 AC AC"){
LeerPista(8);}
...
}
//if the ID Card is not one of those 12, do nothing
]
