Author Topic: reading the battery voltage  (Read 3629 times)

0 Members and 1 Guest are viewing this topic.

Offline nspiredev500

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
reading the battery voltage
« on: February 22, 2020, 03:54:45 pm »
I want to show the battery charge to the user while my program is running, so I have to read it myself.
To test it I made a small program that reads the voltages and shows them, but it only works in firebird, not on my CX CAS HW-AA.
In firebird it shows:
VBATT: 6.0
VSYS: 6.0
B12: 3.0

on my calculator:
VBATT: 0.0
VSYS: 4.0
B12: 0.0

Is my program or my calculator broken?
Or is only VSYS used in real calculators?

Thanks in advance if anyone knows more, I haven't found anything about this.

Here is the hackspire entry for the ADC:
https://hackspire.org/index.php?title=Memory-mapped_I/O_ports_on_CX#C4000000_-_Analog-to-Digital_Converter_.28ADC.29

EDIT:
At 50% my calculator now shows 3V for VSYS, so it really seems only VSYS is used.
Would still be nice if someone could confirm this.
« Last Edit: February 23, 2020, 07:42:46 am by nspiredev500 »

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: reading the battery voltage
« Reply #1 on: February 23, 2020, 07:46:53 am »
I wish I could help, I just don't know much about the Nspire .___.