Nano upload successful but then nothing

V3.1.8 26.04.24

Ver:2
Vol:25 5 15 25 5 15
EQ:1
ST:0
IB:1
AL:0
AP:1111
PCR:0
MFRC522:146

If i try using the buttons nothing happens after a while the following appears

Volume: 15
enter Idle
Command: 6
enqueue mp3 262 0
play mp3 262
missing OnPlayFinished

I only have a sigle folder named „01“ with files „001.mp3“ and „002.mp3“
what does it try and play 262?

I can now push the up and own buttons and it displays

Command: 12
Command: 11

It randomly played a short audio file but then nothing else happens.

It tries to play 0262.mp3 from the folder mp3
The audio messages you need to operate the TonUINO are in the folders mp3 and advert.

If the startup hangs after

there is no connection to the DFPlayer. Plesse check the RX an TX connection.

1 „Gefällt mir“

Hallo @Boerge1
Sollte die Meldung nicht eher vom RFID-Reader herkommen?

Der Tonuino hängt nach der Meldung vom RFID-Reader. Danach wird versucht die Startlautstärke zu setzen und das dauert sehr lange wenn es nicht funktioniert.

Ah, Ja ok. Danke. :wink: :wink: :wink:

1 „Gefällt mir“

Figured it out, my ground wire was poorly connected. Now everything kind of works.

When I turn it on I have to wait for it to timeout, then it will accept the card and start playing.

Before the „enter Idle“ alert comes up in the serial monitor, none of the buttons work and it wont read the card. After everything works normally.

Why is this happening? Did I miss something in the constants file? Is this normal?

Could you send a log with timestamps please?

19:20:46.406 -> 
19:20:46.406 ->  _____         _____ _____ _____ _____
19:20:46.440 -> |_   _|___ ___|  |  |     |   | |     |
19:20:46.440 ->   | | | . |   |  |  |-   -| | | |  |  |
19:20:46.440 ->   |_| |___|_|_|_____|_____|_|___|_____|
19:20:46.440 -> TonUINO Version 3.1 - refactored by Boerge1
19:20:46.440 -> 
19:20:46.440 -> created by Thorsten Voß and licensed under GNU/GPL.
19:20:46.440 -> Information and contribution at https://tonuino.de.
19:20:46.440 -> 
19:20:46.440 -> V3.1.8 26.04.24
19:20:46.440 -> 
19:20:46.782 -> Ver:2
19:20:46.782 -> Vol:25 5 15 25 5 15
19:20:46.782 -> EQ:1
19:20:46.782 -> ST:0
19:20:46.782 -> IB:1
19:20:46.782 -> AL:0
19:20:46.782 -> AP:1111
19:20:46.782 -> PCR:0
19:20:48.798 -> MFRC522:146
19:28:25.944 -> Volume: 15
19:28:37.926 -> enter Idle
19:28:49.954 -> Volume: 25
19:28:50.003 -> Command: 6
19:28:50.003 -> enqueue mp3 262 0
19:28:50.003 -> play mp3 262
19:29:04.008 -> missing OnPlayFinished
19:29:17.007 -> Volume: 24
19:29:29.049 -> Volume: 25
19:29:42.523 -> Volume: 24
19:29:54.598 -> Volume: 25
19:30:07.488 -> Volume: 24
19:30:19.517 -> Volume: 25
19:30:19.554 -> Card Inserted
19:30:19.554 -> CardData: 31 73 3b 74 02 01 02 00 00
19:30:19.554 -> enter StartPlay
19:30:19.554 -> enqueue mp3 262 0
19:30:19.554 -> play mp3 262
19:30:19.647 -> Volume: 24
19:30:19.880 -> DfPlayer Error: 6
19:30:19.880 -> Volume: 25
19:30:21.658 -> missing OnPlayFinished
19:30:21.830 -> 32 tr in folder 1
19:30:21.830 -> enqueue 1-1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
19:30:21.830 -> play 1-1
19:30:21.923 -> Volume: 24
19:30:22.249 -> Volume: 25
19:30:22.390 -> Volume: 24
19:30:22.482 -> Volume: 25
19:30:22.514 -> Volume: 24
19:30:22.866 -> Volume: 25
19:30:22.906 -> enter Play
19:30:23.001 -> Volume: 24
19:30:23.094 -> Volume: 25
19:30:23.141 -> Volume: 24
19:30:23.174 -> Volume: 25
19:30:23.214 -> Volume: 24
19:30:23.298 -> Volume: 25
19:30:23.373 -> Volume: 24
19:30:23.455 -> Volume: 25
19:30:23.501 -> Volume: 24
19:30:23.548 -> Volume: 25
19:30:23.594 -> Volume: 24
19:30:23.629 -> Volume: 25
19:30:23.721 -> Volume: 24
19:30:23.766 -> Volume: 25
19:30:28.895 -> Card Removed
19:32:03.315 -> Command: 7
19:32:03.315 -> enter Pause
19:32:27.541 -> Volume: 24
19:32:39.647 -> Volume: 25
19:32:39.723 -> Command: 7
19:32:39.761 -> enter Play
19:32:52.914 -> play 1-2
19:33:18.056 -> Volume: 24
19:33:18.056 -> missing OnPlayFinished
19:33:18.099 -> play 1-3
19:33:18.146 -> Volume: 25
19:33:18.192 -> Volume: 24
19:33:18.280 -> Command: 7
19:33:18.318 -> enter Pause
19:33:18.356 -> Volume: 25
19:33:18.614 -> Command: 7
19:33:18.614 -> enter Play
19:33:30.712 -> Volume: 24
19:33:42.806 -> Volume: 25

I have a poti installed for the volume. Is there anyway to prevent it from jumping between volume:24 and 25? It seems to be preventing the nano from receiving commands from the buttons and card reader

Also how do switch between the last two columns in commands.hpp file below? I want a short press to change the song and a long press to do nothing since I have a poti for volume

three Button
============
                                                      vol/next-prev inverted
           admin-menu  idle        pause       play         play
--------------------------------------------------------------------------
pause      select                  play        pause        pause
pauseLong  end adm     shutdown    shutdown    track#       track#
up         next                                next         vol++
upLong     next 10     shortcut2   shortcut2   vol++ cont.  next
down       prev                                prev         vol--
downLong   prev 10     shortcut3   shortcut3   vol-- cont.  prev
updownLong             shortcut1   shortcut1

First of all, your DFPlayer is not properly connected to the NANO.

It takes 8 minutes to set the volume, so there is no connection. Please check the rx/tx pins.

Yes, of course. I have to change the software for this. I will do so.

Here this is not the case. There is enough time between the volume commands. The reason is the missing connection to the DFPlayer.

1 „Gefällt mir“

If you don’t want buttons to change the volume, you can use a 5-button version of the software with just 3 buttons.
To change whether a short press changes the volume or track using the 3-button version, you can use the „revert volume buttons“ option in the admin menu.

The DFPlayer connection is fine. After the original 8 min s everything worked properly. It played music and the DFPlayer works fine. Also it doesn’t have this problem when I plug it into 5V power, only when connected to the laptop.

I think I figured it out. I downloaded the English version of the audio files but it was missing the 0262.mp3 file (the beep) after adding that file in everything seems to work.

Thanks for everyone’s help! My son loves it so far!

@dilullogiovanni Could you please try the branch issue_207. Here I added a threshold preventing this switching the volume.
I also fixed a bug in the poti code that produced a compiler error. Did you also found and fixed this bug or how you compiled the code?

I did have to change some code to use spkvolume instead of volume.

I tried your new code and it works great. Thanks!

1 „Gefällt mir“