Go Down

Topic: receiving windows laptop battery level (Read 933 times) previous topic - next topic

harari

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.

PaulS

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

harari

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.

PaulS

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.

harari

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  ;)

thanks.

Go Up