WiiLi Wiki frontpage Include your post in the News Get links Hoteles Quito
WiiLi.org Forum Index WiiLi.org
a new revolution
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GlovePie Battery problems
Goto page 1, 2  Next
 
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie
View previous topic :: View next topic  
Author Message
paradoxperfect



Joined: 19 Dec 2006
Posts: 11

Digg It
PostPosted: 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
View user's profile Send private message
TylerK



Joined: 18 Dec 2006
Posts: 384
Location: Springfield, IL

Digg It
PostPosted: 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
View user's profile Send private message
paradoxperfect



Joined: 19 Dec 2006
Posts: 11

Digg It
PostPosted: 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 Smile
Back to top
View user's profile Send private message
TylerK



Joined: 18 Dec 2006
Posts: 384
Location: Springfield, IL

Digg It
PostPosted: 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
View user's profile Send private message
CarlKenner
Site Admin


Joined: 29 Nov 2006
Posts: 614

Digg It
PostPosted: 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
View user's profile Send private message Send e-mail
paradoxperfect



Joined: 19 Dec 2006
Posts: 11

Digg It
PostPosted: Tue Jan 02, 2007 3:56 am    Post subject:

Ah, thanks for the info Carl Smile I got a little excited "hey I have super batteries" lol. Thanks!
Back to top
View user's profile Send private message
spooL



Joined: 01 Jan 2007
Posts: 7
Location: ontario, Canada

Digg It
PostPosted: 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
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    WiiLi.org Forum Index -> GlovePie All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group