| View previous topic :: View next topic |
| Author |
Message |
paradoxperfect
Joined: 19 Dec 2006 Posts: 11
Digg It |
Posted: Mon Jan 01, 2007 5:22 pm Post subject: GlovePie Battery problems |
|
|
Hi Carl,
I just charged my batteries fully and used the following line to show my battery:
| Code: | | debug = Wiimote.Battery |
It now shows in the debug line: 113% charged... lol
Could this be a bug? Thanks! Can't wait for the next release![/code] |
|
| Back to top |
|
 |
TylerK

Joined: 18 Dec 2006 Posts: 384 Location: Springfield, IL
Digg It |
Posted: Mon Jan 01, 2007 9:40 pm Post subject: |
|
|
| I'm pretty sure the battery level isn't measured in percentage, but some unknown unit, with the max being around 120 I think. So if you're getting 113, then it's probably around 94% charged. |
|
| Back to top |
|
 |
paradoxperfect
Joined: 19 Dec 2006 Posts: 11
Digg It |
Posted: Mon Jan 01, 2007 10:31 pm Post subject: |
|
|
| TylerK wrote: | | I'm pretty sure the battery level isn't measured in percentage, but some unknown unit, with the max being around 120 I think. So if you're getting 113, then it's probably around 94% charged. |
really? do you have a source? If this is true, Carl could you please implement the battery level at a percentage  |
|
| Back to top |
|
 |
TylerK

Joined: 18 Dec 2006 Posts: 384 Location: Springfield, IL
Digg It |
Posted: Mon Jan 01, 2007 10:53 pm Post subject: |
|
|
Agh, I might be wrong. From the Wiimote wiki page: | Quote: | | The 0xC0 at the end is the battery level (in this case, for the brand new alkaline batteries that come with it). Other batteries tested have yielded battery levels as high as 0xC6 (198 decimal), suggesting that in theory a "fully charged" battery might register 0xC8 (200 decimal). | Maybe that's what I was thinking of. No clue where I got the 120 though. I seem to remember seeing battery levels over 100 most of the time when using GlovePIE (I include it in every script just in case). |
|
| Back to top |
|
 |
CarlKenner Site Admin
Joined: 29 Nov 2006 Posts: 614
Digg It |
Posted: Tue Jan 02, 2007 2:39 am Post subject: |
|
|
Battery level is not currently a percentage. Partly because rechargeable batteries will report different values from alkaline batteries. And partly because whatever level I set it to somebody would find a battery that would make it go to 119% or something like that. And partly because it is almost certainly not linear. 50% would probably mean half voltage, not half charged, which could be completely different.
The alkaline batteries that came with my wiimote (which I had not used until I tested their battery level, I initially used rechargeables) reported 192 (0xC0) immediately after I finished pairing the wiimote. So I sort of like that as a maximum battery level.
It is normal for your fully charged rechargeable batteries to report 119 instead of 192. That doesn't mean the alkaline battery will last longer, it just means the voltage curve that NiMH batteries produce is different. NiMH batteries normally only produce a fairly constant voltage of 1.2 volts, but alkalines start at a voltage of 1.5 volts and drop steadily. |
|
| Back to top |
|
 |
paradoxperfect
Joined: 19 Dec 2006 Posts: 11
Digg It |
Posted: Tue Jan 02, 2007 3:56 am Post subject: |
|
|
Ah, thanks for the info Carl I got a little excited "hey I have super batteries" lol. Thanks! |
|
| Back to top |
|
 |
spooL
Joined: 01 Jan 2007 Posts: 7 Location: ontario, Canada
Digg It |
Posted: Sat Jan 06, 2007 3:05 am Post subject: |
|
|
| my bet is it goes up to 128, thats a good binary number |
|
| Back to top |
|
 |
|