• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Get free circuit help 24/7

  • +1000 Circuits
  • Hobby Circuits
  • Basic Circuits
  • Learn Arduino
  • Logic IC Pinouts
  • Disclaimer
You are here: Home / Arduino Engineering Projects / Arduino Mains Failure Battery Backup Circuit

Arduino Mains Failure Battery Backup Circuit

Last Updated on May 31, 2019 by Swagatam

The article explains a simple mains failure backup circuit for providing Arduino boards an uninterruptible supply during such situations. The idea was requested by Mr. Fredrik.

Technical Specifications

This blog gave me a lot of interesting information. Especially the power supply circuit with battery backup part.

The reason for this is that I am working on a Arduino based system for monitoring and controlling heating cables at my summer place.

This system will eventually be gsm controlled so I quickly can get an update on for example the temperature in the bathroom.

The part that I am stuck on is that I would like to have the Arduino to have a battery backup of some sort so it can still monitor the temperature around vulnerable waterpipes, and possible notify me if mains power goes out. I'm thinking of using a car battery so it can last for ages if power goes out.

What changes will I have to make to the "Power Supply Circuit with Emergency Backup" circuit to make it work with a 12V car battery and still have it trickle charge slowly?

Thank you in advance for any advice.

Sincerely
- Fredrik

Circuit Diagram

The Design

The simplest way to implement the proposed application is by using two diodes as shown in the above diagram.

The design shows two diodes with their cathodes connected together and anodes terminated to a 14 V source and anodes to the positive of a 12 V battery source respectively.

The common cathodes of the diodes are further connected to a IC 7805 IC whose output is finally applied to the Arduino board.

When mains is present the 14 V supply ensures s constant trickle charge supply to the attached battery via R1 and also feeds the Arduino borad through D1 and the 7805 IC.

In this situation D1 cathode experiences a much higher potential than the cathode of  D2 due a relatively lower battery potential at D2 cathode.

The above situation keeps D2 reverse biased allowing the battery charge to stay blocked and pass only the adapter voltage to the Arduino board.

But as soon as the mains supply fails, D1 instantly stops conducting and enables D2 to get forward biased so that now the battery instantly takes over and begins supplying the Arduino via the 7805 IC.

SHARING IS CARING!



Previous: Soil Moisture Sensor Meter Circuit with Automatic Water Sprayer
Next: 32V, 3 Amp LED Driver SMPS Circuit

About Swagatam

I am an electronic engineer (dipIETE ), hobbyist, inventor, schematic/PCB designer, manufacturer. I am also the founder of the website: https://www.homemade-circuits.com/, where I love sharing my innovative circuit ideas and tutorials.
If you have any circuit related query, you may interact through comments, I'll be most happy to help!

You'll also like:

  • 1.  How to Interface Accelerometer ADXL335 with Arduino
  • 2.  Arduino RGB Flowing Sequential Light Circuit
  • 3.  Types of Arduino Boards with Specifications
  • 4.  Password Security Lock Circuit Using 4×4 Keypad and Arduino
  • 5.  Color Detector Circuit with Arduino Code
  • 6.  Make this Buck Converter Using Arduino

Please Subscribe (Only if you are Genuinely Interested in our Newsletters)


 

Reader Interactions

Comments

  1. Search Related Posts for Commenting

  2. Kesava Raj says

    Another 1 doubt sir….

    This circuit i'm using for CD4017

    D2 output shall i connect resistor…..
    To limit the current…bcs i'm using 4v 1A ….sometimes in my area continuously power cut may be 7 hrs….
    So when i use resistor..The backup time will be high…

    How much current will required for cd4017

    • Swagatam says

      even without a resistor the IC will not consume more than 5mA….but you can use a resistor in the backup mode to reduce this 5mA to a lower value may be 2mA to just keep the IC "alive" during that period

  3. Kesava Raj says

    V/I

    Input 5v
    Current 800ma…

    5/800ma =6.25 ohms sir

    Wattage of resistor is 1.28 watts…

    Is it correct sir

  4. Kesava Raj says

    Thank u sir

  5. Kesava Raj says

    Hai sir…
    I'm using this circuit without 7805.
    Battery voltage is 4v 1A lead acid batteries….

    Backup power supply for IC…
    Kindly tell the resistor value for charging the battery….
    Daily night 10 hrs i will use this circuit in the between of 10hrs the power supply failure.in that it will work….
    So i need slow charging method…

    Main input dc voltage i'm using 7805 output voltage and 1ampere diode….
    …
    Resistor value and watts i need sir..

    • Swagatam says

      Hi kesava, you can use ohms law for this

      R = V/I…

      V is the input supply voltage, I is the charging voltage which is 100mA or 0.1Amp in your case

      wattage = I^2 x R




Primary Sidebar

Electronic Projects Categories

  • 3-Phase Power (15)
  • 324 IC Circuits (19)
  • 4017 IC Circuits (51)
  • 4060 IC Circuits (25)
  • 555 IC Circuits (94)
  • 741 IC Circuits (18)
  • Amplifiers (49)
  • Arduino Engineering Projects (82)
  • Audio Projects (85)
  • Battery Chargers (76)
  • Car and Motorcycle (88)
  • Datasheets (45)
  • Decorative Lighting (Diwali, Christmas) (32)
  • DIY LED Projects (82)
  • Electronic Components (97)
  • Electronic Devices and Circuit Theory (35)
  • Electronics Tutorial (99)
  • Fish Aquarium (5)
  • Free Energy (34)
  • Games (2)
  • GSM Projects (9)
  • Health Related (17)
  • Heater Controllers (24)
  • Home Electrical Circuits (98)
  • Incubator Related (6)
  • Industrial Electronics (27)
  • Infrared (IR) (39)
  • Inverter Circuits (94)
  • Laser Projects (10)
  • LM317/LM338 (21)
  • LM3915 IC (24)
  • Meters and Testers (55)
  • Mini Projects (153)
  • Motor Controller (65)
  • MPPT (7)
  • Oscillator Circuits (15)
  • PIR (Passive Infrared) (8)
  • Power Electronics (33)
  • Power Supply Circuits (65)
  • Radio Circuits (9)
  • Remote Control (46)
  • Security and Alarm (56)
  • Sensors and Detectors (116)
  • SG3525 IC (5)
  • Simple Circuits (72)
  • SMPS (29)
  • Solar Controllers (60)
  • Timer and Delay Relay (51)
  • TL494 IC (5)
  • Transformerless Power Supply (8)
  • Transmitter Circuits (39)
  • Ultrasonic Projects (12)
  • Water Level Controller (46)

Follow Homemade Circuits

Facebook
Twitter
YouTube
Instagram
My Facebook-Page
Quora

Feeds

Post RSS
Comment RSS

Circuit Calculators

  • AWG to Millimeter Converter
  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Small Signal Transistor(BJT) and Diode Quick Datasheet
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Privacy Policy
  • About Us
  • Contact
  • Disclaimer
  • Videos – Circuit Test Results

© 2021 · Swagatam Innovations

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok