Go Down

Topic: Arduino uno power select priority (Read 775 times) previous topic - next topic

electricblood

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

LarryD

#1
Mar 08, 2013, 06:24 am Last Edit: Mar 08, 2013, 06:27 am by LarryD Reason: 1
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.
The way you have it in your schematic isn't the same as how you have it wired up!

electricblood

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

retrolefty


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

Go Up