Pages: [1]   Go Down
Author Topic: receiving windows laptop battery level  (Read 835 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi all,

I'm wondering if there's any way to send battery info (more specifically, battery level) from a windows laptop to an arduino. maybe via serial port (actually, any way of getting this info will be great)

I'm not talking about checking the battery voltage directly, like in simple battery indicators, I want to get real DATA from the computer.

Is there a way to access this information? maybe with some third-party software?

thanks in advance.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You could do like I did. Type "Windows battery status" into google.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hehe.. please, don't insult me.  smiley-roll
I tried looking for answers and hints on the web for a few days now, this is my last resort.

if you tried this and have real answers please share.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The point is that Windows has APIs for measuring the battery voltage. Windows has APIs to write to and read from the serial port.

Write an application that uses those APIs to measure the battery voltage and send the value to the serial port.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa359260%28v=vs.85%29.aspx

If you have a problem with the API, let us know. If you have a problem with writing to the serial port, let us know. Not that there is anything Arduino-related in your post. It is strictly a Windows issues and PEBKAC issue.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok, I got the general idea.

i'll keep reading and try to make this work.

there's no arduino related problem yet because I haven't started working on this yet, I'm still in the planning phase. moreover, I don't want you to feed me the code.

if I have any more problems and questions, you''l know  smiley-wink

thanks.
Logged

Pages: [1]   Go Up
Jump to: