I’m making my first Tonuino powering it with an Intenso S10000 and using this version of software.
Powerbank is connected to the Tonuino circuit via pins.
Connecting the powerbank, Arduino swith on and I can using Tonuino admin menu.
In Tonuino code, I’ve enabled the „LOWVOLTAGE“ option, in order to shutdown automatically the system after a period of inactivity, and power it again via a simple switch.
The strange thing is that, if I’m using the admin menu, Tonuino stay switched on, but if I doesn’t interact with it, it switched off automatically after about 1 minute.
I’ve tried to disable the auto shutdown via admin menu and nothing changes, so it seems that the powerbank has an internal function that switch off Tonuino if the voltage is low.
Is this the correct behavior? If yes, what’t the software auto shutdown functionality purpose?
Supposing that this is the correct behavior, if a child switch on the system, play the first card, and after that wait more than 1 minute before play the second one, Tonuino will switch off?
My behavior seems different than the one on this video, where Tonuino switchoff after 5 minutes (probably via admin config setting).
This is only supported if you have a special pcb (cubiekid). For a normal Classic TonUINO you either don’t enable LOWVOLTAGE and POLOLUSWITCH at all. This gives you the behavior as in the video you mention. Or in case you have a Pololu Power Switch you enable the later (reverses the logic on pin 7).
Be aware you are not using the same software as in the video. But as said if you don’t enable either switch above you’ll have the same behavior.
It seems the power bank shuts itself off because the TonUINO does not draw enough power. Which is what you want but only when the shutdown timer expired.
Expected behavior: Set the shutdown timer in the parents menu. once you don’t interact with it and it does not currently play something it starts counting (you need to exit parents menu obviously). Once expired it shuts everything off, brings the power usage below the threshold of the power bank and the power bank shuts off. So far so good.
Issue: Your issue is, the TonUINO does not draw enough power all the time, hence the powerbank shuts off. So you need to increase the power draw. For example with an LED. There is plenty information on the Forum about that. With the firmware you use you can actually draw some info from the LED, read the instructions at the beginning of the sketch on how to connect it etc.
Also I suggest you go step by step. Make the TonUINO work with a power supply. Configure everything etc. Make yourself familiar with the software the concept etc. THEN start exploring more advanced features like LEDs, auto shutdown, pololu switch etc.
I’ve tried to connect everything, but my powerbank automatically shutdown after 1 minute of inactivity.
My other problem is that RFID reader doesn’t work properly: a fixed red led is switched on, but putting an empty card on it have no effect. Because I’m building 2 TonUINOs (and I have double components), I tried to use a second RFID reader, tried to change the 8 jumper cables, tried to use my second „AZDelivery TonUINO Set“, tried to use my second soldered PCB circuit but nothing changes.
This is my logs:
by Thorsten Voß
and many others
Nov 26 2021
Firmware Version: 0x0 = (unknown)
WARNING: Communication failure, is the MFRC522 properly connected?
Yes this is correct for that firmware. You can use any free pin by the way. So you don’t need to switch the LED pin. The issue is most likely that your nano does not output correct 3.3V. You’ll find similar issues on the forums.
Thank you molino: I saw that topic and I was planning to remove that resistor to solve the issue related to auto shutdown after a period of inactivity. Do you think that this could solve also the SD card reading problem?
An alternative would be to configure a wakeup by interrupt on the play button in the CheckStandbyTimer function just before deep sleep execution.
At the moment all interrupts are disabled before deep sleep. So there is no come back.
You may keep an Interrupt enabled on the play button and then call the setup() after sleep(). So tonuino will make a complete restart after wakeup.