Epsilon: Popup when low battery

Created on 29 Jan 2019  路  4Comments  路  Source: numworks/epsilon

When we switch on the calculator and it have low battery, a message should tell the user that it should charge it. I have multiple student who forgot to charge their calculator and they found their calculator dead during an evaluation. Worse, the calculator show nothing when they try to charge it and they think it's broken (i assume the calculator need a minimum charge to work even when pluged in).

Most helpful comment

If the battery is dead then the microcontroller will be left unpowered. Plugging in the calculator in this state will trigger ST's recovery mode as a side-effect, which unfortunately leaves the screen pitch black. Along with the pop-up message, adjusting the PCB in a future revision so that ST's recovery is only triggered when both the reset button is hit and the calculator is plugged in as well as resetting out of ST's recovery when the calculator is plugged out would also be a nice touch.

All 4 comments

If the battery is dead then the microcontroller will be left unpowered. Plugging in the calculator in this state will trigger ST's recovery mode as a side-effect, which unfortunately leaves the screen pitch black. Along with the pop-up message, adjusting the PCB in a future revision so that ST's recovery is only triggered when both the reset button is hit and the calculator is plugged in as well as resetting out of ST's recovery when the calculator is plugged out would also be a nice touch.

so if my understanding's correct, when the battery is completely empty, we cannot turn the calculator back on? It's out of order?

si je comprends bien, si la batterie est compl茅tement vide , on ne peut plus rallumer la calculatrice ? elle est donc hs ?

Nope, when the battery is empty, the microcontroller goes into recovery (just like when reset is pressed and the calculator is plugged, to flash the os). So the OS doesn't boot and we don't have any indication wether the calcualtor is plugged or not, that's counter-intuitive

Non, la batterie a plat, le microcontr么leur se met en mode recovery (comme quand reset est press茅 quand la calculatrice est branch茅e, pour flash l'os) Donc l'os ne boot pas et on 脿 pa d'indication si oui ou non la calculatrice charge, c'est contre-intuitif.

Hi everyone! Thanks for chiming in 馃槃 I took the liberty of translating some comments into english (I left the original version below). Anyway, here's our take on this issue:

  1. There is already a low-battery popup. See https://github.com/numworks/epsilon/blob/master/apps/empty_battery_window.cpp for the relevant code.
  2. To go into recovery mode, you need to have fully depleted the battery. The should happen very rarely because the leakage current is very low, so one would need to use the calculator up to the popup, not charge it, and let it sit for a rather long while.
  3. Exiting from said mode is not very complicated and is the first item on our FAQ
  4. That being said, it's true that it's not very obvious so we'll update the PCB to change this behavior. (e.g. rescue mode is triggered upon reset if, and only if, a given key is pressed).

Anyway, I'm closing this issue because, well, there's already a popup :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ptitjoz picture ptitjoz  路  5Comments

tjhorner picture tjhorner  路  5Comments

titimoby picture titimoby  路  5Comments

TheElectronWill picture TheElectronWill  路  3Comments

theTisch21 picture theTisch21  路  3Comments