Converting Nintendo 3DS Battery Voltage for Developers

  • Thread starter Thread starter Joel16
  • Start date Start date
  • Tags Tags
    Battery Voltage
AI Thread Summary
A developer is seeking assistance in converting the Nintendo 3DS battery voltage readings, which are provided in an unknown format. The maximum voltage reading when the charger is connected is 0xD1 (209), and it decreases to 0xCE (206) when unplugged. At 5% battery, the reading is 0xAF (175), which increases to 0xB9 (185) when the charger is reconnected. There is speculation that the conversion might involve a formula of 5.0 * (batteryVolt / 256.0), but uncertainty remains regarding how the voltage is scaled before being read by the analog-to-digital converter. Additional resources on lithium-ion battery charging and measurement techniques were shared for further exploration.
Joel16
Hello I need a bit of some help here. I have a Nintendo 3DS and I'm trying to get my program to display its battery voltage. The thing is the voltage function that Nintendo uses returns values in an unknown format, and I don't have access to a multi-meter to get the correct readings right now, so I'm wondering if there's just some math required to convert these units to standard units. (V / mV)

The current information I have is this:


When the charger is plugged into a fully charged 3DS unit, this value will be maximum 0xD1 (209)

Unplugging the charger will make the value go down to 0xCE (206)

The voltage at 5% battery percentage just after the LEDs start flashing is 0xAF (175)

Plugging in the charger at this point will make the voltage go up to 0xB9 (185)Additional information:
The adapter has a voltage of 5.0V
The battery (LiON) has a voltage of 3.7V

Edit:
From what me and a few other developers have gathered is that this magic number may be 5.0. That is, 5.0 * (batteryVolt / 256.0), but we aren't too sure about this.
 
Last edited by a moderator:
Engineering news on Phys.org
It has more to do with the a/d convertor and how the voltage is scaled ahead of it. While it is entirely possible that 255 (not 256) is the max it will read, how was what is being measured scaled down ahead of the a/d? I could measure 10000 volts with the appropriate voltage divider ahead of the a/d with poorer resolution of course than feeding the a/d directly with a 0-5 volt signal. Or, they may have scaled down lower than this for some unknown reason.
 
  • Like
Likes Joel16
Hey guys. I have a question related to electricity and alternating current. Say an alien fictional society developed electricity, and settled on a standard like 73V AC current at 46 Hz. How would appliances be designed, and what impact would the lower frequency and voltage have on transformers, wiring, TVs, computers, LEDs, motors, and heating, assuming the laws of physics and technology are the same as on Earth?
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
I used to be an HVAC technician. One time I had a service call in which there was no power to the thermostat. The thermostat did not have power because the fuse in the air handler was blown. The fuse in the air handler was blown because there was a low voltage short. The rubber coating on one of the thermostat wires was chewed off by a rodent. The exposed metal in the thermostat wire was touching the metal cabinet of the air handler. This was a low voltage short. This low voltage...
Back
Top