how can i have backup source for my arduino ?

Thread Starter

aboabd

Joined Jan 27, 2018
2
Hi ,

I have an arduino project,i want to make a backup system in case the main source goes down :)

how can i do that ?

thank you :)
 

Thread Starter

aboabd

Joined Jan 27, 2018
2
I'm sorry :(

my post was not clear to describe what i need o_O o_O

i meant backup system using battery to keep arduino working when the main power source goes down :(


thank you :)
 

Reloadron

Joined Jan 15, 2015
7,893
You can buy a turn key solution battery backup circuit board which are very popular with various alarm companies like Alarm-Saf. Commercial units can get pricey. A simple Google of " battery backup circuit " will bring up a few dozen roll your own circuits easily built with a few parts such as inexpensive diodes, here is a single example. Many of the Google examples just use a wall wort and battery. The Arduino uses a standard Size K Coaxial DC power plug. The plugs can be purchased just about anywhere.

Ron
 

Reloadron

Joined Jan 15, 2015
7,893
So you need to keep your computer ON all the time?
Mine and my wife's run 24/7 with each backing up to the other as well as an offsite server. Each computer is on a UPS and when we have a power failure the UPS units only need to support the computers, modems and a few other things for 7 - 10 seconds until the emergency generator is online. Been using Cobian Backup Software for years and it works fine for what we need.

Ron
 

Reloadron

Joined Jan 15, 2015
7,893
I looked at that particular drawing and unless I am missing something I would not use it as drawn. They use a 14 volt wall wort to bring in about 14 VDC. The diode scheme is fine and theory of operation is fine but they incorporate a 5 Volt regulator like the LM 7805. While as drawn the circuit will output a constant 5.0 Volts the problem becomes with the Arduino board external power jack. The board is designed for external DC power with a range of 7 to 12 VDC, not an external 5 VDC. According to the Arduino documentation, the Uno uses a 5-volt linear voltage regulator in a TO223 SMD package. The regulator is easy to see right beside the external power connector. The on board regulator is supposed to be a LDO (Low Drop Out) type but the minimum external voltage should be 7 VDC allowing for the regulator drop out overhead. All of this can be bypassed by connecting 5 VDC to the 5.0 Volt Pin but this is not recommended. "The board can be supplied with power either from the DC power jack (7 - 12V), the USB connector (5V), or the VIN pin of the board (7-12V). Supplying voltage via the5V or 3.3V pins bypasses the regulator, and can damage your board. We don't advise it".

I have noticed running my Arduino Uno board on an external 12 VDC through the external power connector the LD50 regulator does get a little warm to the touch. Not at all hot, just a little warm. Anyway, I would not apply 5 VDC regulated to the external power connector as the on board regulator likely won't work. I did try it with 5 Volts on my board and the board appears to work but I can't say if all boards will work and work correctly? Beats me.

Ron
 

atferrari

Joined Jan 6, 2004
5,017
Yes, I do. The only time they're off, is when I'm on vacation, or when the power is out, due to a storm or heavy snow.
Mine and my wife's run 24/7 with each backing up to the other as well as an offsite server. Each computer is on a UPS and when we have a power failure the UPS units only need to support the computers, modems and a few other things for 7 - 10 seconds until the emergency generator is online. Been using Cobian Backup Software for years and it works fine for what we need.

Ron
So do you have any special setting to stop the HDDs after some time? Or you keep them running all the time?

From my last two (now defunct) PCs, one was able to stay hibernating (or in suspension?) as much as I wanted and I could set the HDDs to stop after some 15 (10?) minutes inactive. The other, I had to turn it off because nothing could make those HDDs to stop.

Win XP then. Now it is Win 10 in a brand new machine.
 

spinnaker

Joined Oct 29, 2009
7,830
I looked at that particular drawing and unless I am missing something I would not use it as drawn. They use a 14 volt wall wort to bring in about 14 VDC. The diode scheme is fine and theory of operation is fine but they incorporate a 5 Volt regulator like the LM 7805. While as drawn the circuit will output a constant 5.0 Volts the problem becomes with the Arduino board external power jack. The board is designed for external DC power with a range of 7 to 12 VDC, not an external 5 VDC. According to the Arduino documentation, the Uno uses a 5-volt linear voltage regulator in a TO223 SMD package. The regulator is easy to see right beside the external power connector. The on board regulator is supposed to be a LDO (Low Drop Out) type but the minimum external voltage should be 7 VDC allowing for the regulator drop out overhead. All of this can be bypassed by connecting 5 VDC to the 5.0 Volt Pin but this is not recommended. "The board can be supplied with power either from the DC power jack (7 - 12V), the USB connector (5V), or the VIN pin of the board (7-12V). Supplying voltage via the5V or 3.3V pins bypasses the regulator, and can damage your board. We don't advise it".

I have noticed running my Arduino Uno board on an external 12 VDC through the external power connector the LD50 regulator does get a little warm to the touch. Not at all hot, just a little warm. Anyway, I would not apply 5 VDC regulated to the external power connector as the on board regulator likely won't work. I did try it with 5 Volts on my board and the board appears to work but I can't say if all boards will work and work correctly? Beats me.

Ron

The point is there are lots of solutions out there and obviously the TS did not search.
 

nerdegutta

Joined Dec 15, 2009
2,689
So do you have any special setting to stop the HDDs after some time? Or you keep them running all the time?
No, I don't.
All the settings are standard. I find it very convenient to just sit down, move the mouse and BAM everything is running. Although I could turn off one, the one with the SDD drive. Boot time on that machine is awesome. :)
 

atferrari

Joined Jan 6, 2004
5,017
No, I don't.
All the settings are standard. I find it very convenient to just sit down, move the mouse and BAM everything is running. Although I could turn off one, the one with the SDD drive. Boot time on that machine is awesome. :)
This PC has the OS in a SDD. It takes some 10 to 12 seconds to be up and running ready to open my email software. I really like it.

Maybe few seconds more to resume where it was left sleeping / hibernating because I need to click in "start session".
 

Reloadron

Joined Jan 15, 2015
7,893
The point is there are lots of solutions out there and obviously the TS did not search.
Sure they searched and all; roads lead to here. :) Seriously when I Google all of the popular hits were not forums so I haven't a clue why things like this tend to end up here. Well I do have a clue but we won't go there. :)

Ron
 

Reloadron

Joined Jan 15, 2015
7,893
So do you have any special setting to stop the HDDs after some time? Or you keep them running all the time?
Nope, the monitors just go to a screensaver routine. Interesting also is personally never had a HDD failure after years of running. The main failures have been graphics cards and the last was my fault as when the fan quit I never caught it and it quit because I was lax in my cleaning routines. Two dogs make for plenty of hair.

Ron
 

kubeek

Joined Sep 20, 2005
5,796
As far as I know hdds are happier running 24/7 than being turned off an on many times a day. The head parking and moving back to the platters is where most wear happens, and the thermal cycling doesn't help either.
 

Toughtool

Joined Aug 11, 2008
63
I think this may work on the Arduino, it works on my Raspberry Pi. The DC to DC buck converters come pre-assembled except for male headers, and only cost me $2.00 each off Amazon. The Idea is to power the Arduino with the converter from a 12 volt source like a 120 Volt AC to DC adapter to the +5 volt I/O pin. This lowers the heat generated from the 7-12 volt onboard Arduno regulator when +12 volts is connected to VIN. Adjusting the output to +5 Volts plus the forward voltage drop of the Diode (+5.35 +/-) so that +5 volts will be at the Arduino's +5 volt I/O pin. An LED power good indicator is used to pick off 3.35 volts and present to an GPIO input pin to sense the loss of AC power if needed. The battery is connected to a second DC to DC converter to power the Arduino with the diodes as steering diodes to isolate the two power circuits. The nice thing about these DC to Dc buck converters is that any voltage between 7.2 volts and 30 volts on its input will provide the adjusted +5.35 voltage (minus the 0.35 volt forward voltage drop of the diode) on it's output. Therefore it seems to me that a battery pack can be made from say D cells, at 6.3 volts or more, and a trickle charger can be added, without worrying about damage to the Arduino from over voltage. The Arduino will only see the adjusted output of the converter. I have used both the Mega and Uno, powered via the 5 volt I/O pin continuously except for power losses, for more than three years as a master clock for IBM impulse secondaries. I have not seen where Arduino says not to power from the 5 volt pin. Please be sure to adjust both DC to DC converters before connecting to the Arduino!
 
Last edited:
Top