Hi, I got most of the hardware from AZ-delivery and I’m feeling a bit lost. I’m new here and I managed to put one song connected to a RFID card. I then messed up and that’s gone. I don’t know how I did it, but when I try again nothing works. It just says “Oh a new card” and nothing more. I try with pressing the buttons but nothing happens. Any suggestion would be very welcomed.
With no further information about what you and your device are doing while trying to connect music to the rfid-cards, it will be hard to help you!
Please connect your device with your computer and open the serial Terminal on this page https://www.tonuino.de/TNG/console.html
Copy the terminals output during the process of connecting music to your cards and post it here.
Thank you for your help! I have managed to setup up one card (not sure how though…)
But what happens is the following, I place a card and it only says “Oh a new card”. Then in the terminal output it appears the below. When then inserting and removing cards it only appears Card Ins Card Rem Card Ins Card Rem
TonUINO Version 3.x - refactored by Boerge1
created by Thorsten Voß and licensed under GNU/GPL.
Information and contribution at https://tonuino.de.
C 5
Ver:2
Vol:25 5 15 25 5 15
EQ:1
ST:0
IB:1
AL:0
AP:1111
PCR:0
MFRC522:146
Volume: 15
track_count: 145
enter Idle
btn/cmd: start/start
enqueue mp3 262 0
isPlaying: 1
play mp3 262
Track end: 85
Card Ins
CardData: 00 00 00 00 00 00 00 00 00
enqueue mp3 300 0
enter AdmNCard
play mp3 300
Track end: 80
Card Rem
Ok! First of all, the good news is, i can not see any errors. So your assembling seems to be alright in the first sight. But, what i also can not see, are any button pressings?! Did you press any buttons?
Just in case you missed it, the rfid-card must stay on the device all the through the process of connecting music to it! In the end you should hear „OK. I have configured the card.“
During the process the TonUINO tells you, what to do.
So, could it be you were to impatient during the process and removed the card to early?
Thank you! So now I have tried to play with times but the result was unfortunately the same. I have waited 1-5 minutes after turning on and then 1-5 minutes with the card next to the reader (in the same way as it worked before).
I am using the English voice files. Below it’s the card that works. You can see that the buttons seem to be working too. At the end I insert a new card and the same happens. It says “Oh a new card”, and it freezes. The buttons don’t work anymore. It detects when new cards are in our out but nothing happens. Neither new cards, nor it plays the card that is supposed to work. The only way to make it work again is to turn on and off…. Any ideas of what I could try next and/or what could the issue be?
TonUINO Version 3.x - refactored by Boerge1
created by Thorsten Voß and licensed under GNU/GPL.
Information and contribution at https://tonuino.de.
C 5
Ver:2
Vol:25 5 15 25 5 15
EQ:1
ST:0
IB:1
AL:0
AP:1111
PCR:0
MFRC522:146
Volume: 15
track_count: 145
enter Idle
btn/cmd: start/start
enqueue mp3 262 0
isPlaying: 1
play mp3 262
Track end: 85
Card Ins
CardData: 13 37 b3 47 02 01 01 00 00
enter StartPlay
enqueue mp3 262 0
play mp3 262
Card Rem
Track end: 85
10 tr in folder 1
enqueue 1-1
play 1-1
enter Play
btn/cmd: pause/pause
enter Pause
btn/cmd: pause/pause
enter Play
btn/cmd: four/volume_up
Volume: 16
btn/cmd: four/volume_up
Volume: 17
btn/cmd: five/volume_down
Volume: 16
btn/cmd: pause/pause
enter Pause
Card Ins
CardData: 00 00 00 00 00 00 00 00 00
enqueue mp3 300 0
enter AdmNCard
play mp3 300
Track end: 80
Card Rem
Card Ins
Ok, so we have to find the reason why the player is freezing.
Often the data-structure on the sd-card causes malfunction. How did you flll your sd-card? The folders mp3 and advert should be copied first and after that your music-folders should be put on the card. In the folders advert and mp3 all files should be named only as numbers with four digits eg. 0001.mp3, 0310.mp3.
Maybe the mp3-player-module needs some special settings. Can you put a photo of the down-side of the player, so we can recognize the variant.
Unfortunately the following didn’t work either… I’m using an apple to format as MS-DOS (FAT32). I also deleted possible hidden files. I have pasted first the mp3+advert and then mp3s in the right format (001.mp3 etc) under folder 01. I also tried with the german files but the result is the same… Below is a picture of the hardware. I did the classic upload here: TonUINO - Die DIY Musikbox (nicht nur) für Kinder
Thank you This is how my constants look like in those rows… when instaling through the arduino IDE I didn’t see any errors. I am using this #define TonUINO_Classic
Your line is a place where the define is used. But not the place where it’s configured. Yours says ‚defined‘ not ‚define‘. Maybe searching within the file is any help
You could try to format your SD-card with the SD Memory Card Formatter from the SD Association. There is a Mac version.
And you use a card with max. 32GB of space, right?
Another „funny thing“ i realized after playing around with a player using that chip myself, in your logs there i can find the point isPlaying: 1 when a sound is played. But i never find an isPlaying: 0 when sound is finished, which in my case can be found in the logs.
Maybe @Boerge1 has a hint, why this is not sent in your case?!
That’s the problem that the TonUINO freezes after “oh, new card”. The player has a pin that gives the status “playing” or “not playing”. And this information is essential. What about the LED on the player. It is going off after finishing a track?
Having read the last post from @Boerge1, i took a closer look to the photo @usertonuino uploaded an realized there seems to be no connection between busy-pin of the mp3-player and the arduino!
You need to connect the two pins, i marked below
Thank you so much for your help! Let’s start with the good news Pressing the 3 buttons together works and I can now configure RFID cards! That’s amazing.
But it kind of still bothers me knowing that there is something wrong @Boerge1 the LED on the player turns off once the song ends. @kobayashi_maru unfortunately that connection didn’t work. Maybe I misunderstood the picture. Right now that green cable it’s the same that you can see below. Did you mean to connect from D3 from the nano to the BUSY of the mp3 mini? (see pictures below)
I really appreciate your help! Thank you!
YES! That was it. thank you so much @kobayashi_maru@Boerge1 and @Gute_Laune ! It was missing the connection between the D4 and the BUSY-Pin! It all works now. you are amazing! Thank you so much.
I have 2 follow up questions, if I may. Below are the connections and the LED arcade buttons I have. Until now I have only been touching A0,A1,A2 to GND to simulate pressing the buttons. It’s time to connect them.
How should I connect them? And to light up only when pressing on it? Any suggestion or anywhere I could read so that I can try it?
And for the power. I’m fine having a power bank (unless you advise against it?). But how do I set it up to turn it off when not needed (and show a light when on)? Again, if easier, I would be very happy if you could guide me to a place where I could read and try it myself.