Pages: 1 [2]   Go Down
Author Topic: Control PC power with arduino  (Read 2560 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 10
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I relation to distinguishing between power sources I found interesting article here:

http://code.google.com/p/tinkerit/wiki/SecretVoltmeter

So as I can understand I can measure the voltage of the power source, assuming that USB power voltage is about 5V and I will use external power adapter producing 12V I should be able to use "SecretVoltmeter" approach to recognise which power source is currently connected ? Do you think that would work ?
You can't use SecretVoltmeter , it measure the voltage of the AVcc, which in both case all 5V.
Well, looks like this SecretVoltmeter is used in this project:
http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/
where you can test the voltage of the battery powering the arduino, from that article:
"
...
You could also use it to determine if you are connected to a power source or running from batteries.
...
"

so maybe there is some change still ?!

Yes, may be 5% to 10% of 5V.

So it looks like it's is not reliable method to test if arduino is powered from power adapter or from USB.
Thread bellow contains discussion which sums up the problem and advices to use "voltage divider" as the correct solution.

http://arduino.cc/forum/index.php/topic,107860.0.html
Logged

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

Hi, finally I accomplished my project ! smiley
Big thanks to the forum users for the help !
Here is the link:
https://code.google.com/p/mpd-lirc/wiki/PowerSwitch
Please send me any comments and suggestion how to improve my project ! smiley
Logged

Pages: 1 [2]   Go Up
Jump to: