Pages: [1]   Go Down
Author Topic: Arduino uno power select priority  (Read 705 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,

I have a project that i would like to run off of external power through the dc jack and also have a backup battery connected to the Vin in case of a power outage. Being the case that the Uno has automatic power select, do any of you know the priority order of the source inputs? i need to know this because if the Vin takes priority over the dc jack, then my backup battery would just be used until it ran out and would render itself useless.


Thanks,

ElectricBlood
Logged

Offline Offline
Faraday Member
**
Karma: 67
Posts: 2704
The last thing you did is where you should start looking.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If I understand you correctly, you can use this circuit. To achieve what you want.

As long as the PWRIN is 1 Volt more positive than +Battery, no power would be consumed from the battery until PWRIN disappears.


* Battery.jpg (32.21 KB, 536x286 - viewed 37 times.)
« Last Edit: March 08, 2013, 12:27:26 am by LarryD » Logged

The way you have it in your schematic isn't the same as how you have it wired up!

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

Ok I suppose I'll try my luck with that. Maybe switch over from a 9v to some AAAs. I know everybody says 9v aren't optimal for arduino projects but I had an extra clip and 9v layin around and figured I'd give it a whirl. I greatly appreciate your input Larry

-ElectricBlood
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey guys,

I have a project that i would like to run off of external power through the dc jack and also have a backup battery connected to the Vin in case of a power outage. Being the case that the Uno has automatic power select, do any of you know the priority order of the source inputs? i need to know this because if the Vin takes priority over the dc jack, then my backup battery would just be used until it ran out and would render itself useless.


Thanks,

ElectricBlood

The arduino auto-voltage selection circuit switches between USB power or External power and if both are available it uses the external power. The DC power from the DC connector is the same as the Vin pin so there is no switching between DC connector and Vin.

 So your idea of using a external battery wired to the Vin pin as a backup source for the normal power you will be providing to the DC connector will work. You should wire this battery voltage via a series diode to the Vin pin (cathode end wired to the Vin pin) and the battery voltage should be a little lower then the DC connector voltage in normal operation. The two diodes (one already wired on the board between the DC positive connector and the Vin pin, plus your new external series diode wired to the battery will act like a automatic voltage selector switch passing only the path that has the higher voltage, the other will just float until the other voltages goes away or is lower then the 'standby' battery voltage.
Both the external voltage and the battery voltage must be in the 7-12vdc range as recommended by the arduino specs.

That make sense?

Lefty
Logged

Pages: [1]   Go Up
Jump to: