Back-Up Battery Detection

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Back-Up Battery Detection

Postby HooctAwnFonix » Tue Mar 13, 2012 10:45 pm

I'd like to give my Arduino a back-up battery. I've read about a slick way of doing this by hacking a USB-A cable and putting your back-up battery on it - by default, the Arduino is hooked up to rely on the external power supply if it's available and to pull from the USB if it is not, so if the external PS goes out, it will automatically fall back on the USB connection if it's available. Now that's exactly what I wanted but I'd also like to know IF that has occured.

Assuming there will be a noticeable change in supply voltage when that happens, is there an easy way I can get the Arduino to notice that it's switched over?
HooctAwnFonix
 
Posts: 77
Joined: Tue Sep 13, 2011 10:47 am
Location: Cambridge, MA

Re: Back-Up Battery Detection

Postby thefatmoop » Wed Mar 14, 2012 1:32 am

couldn't you just measure the external voltage through a voltage divider and put that into a digital input? If power goes out, the voltage will go low and you know it's running on battery power.


need more information if this isn't sufficient.

http://en.wikipedia.org/wiki/Voltage_di ... ve_divider
thefatmoop
 
Posts: 220
Joined: Tue Aug 19, 2008 3:36 pm

Re: Back-Up Battery Detection

Postby HooctAwnFonix » Wed Mar 14, 2012 8:46 am

I was stuck thinking about giving the Arduino V-out to a circuit and designing it such that it would switch over to some different measurable state when the voltage supply changed... This is much more straightforward!

It looks like it would be pretty easy to add a wire to that PS input terminal too - now if I get a 5V power supply I won't even need to bother about voltage dividing!
HooctAwnFonix
 
Posts: 77
Joined: Tue Sep 13, 2011 10:47 am
Location: Cambridge, MA


Return to Arduino

Who is online

Users browsing this forum: Google [Bot] and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [100]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]