• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Arduino Projects / Arduino Mains Failure Battery Backup Circuit

Circuit Simulator: Assemble and Simulate

Arduino Mains Failure Battery Backup Circuit

Last Updated on December 5, 2024 by Swagatam 6 Comments

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

Table of Contents
  • Technical Specifications
  • Circuit Diagram
  • The Design

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

warning message: electricity is dangerous, proceed with caution
Arduino Mains Failure Battery Backup 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.

You'll also like:

  • 1.  How to Make LED Air Pollution Meter Circuit with Arduino
  • 2.  Wireless Office Call Bell Circuit
  • 3.  Arduino PWM Signal Generator Circuit
  • 4.  2.4 GHz 10 Channel Remote Control Switch Circuit
  • 5.  Interfacing SD Card Module for Data Logging
  • 6.  Digital Weighing Scale Using Load Cell and Arduino

Filed Under: Arduino Projects Tagged With: Arduino, Backup, Battery, Failure, Mains

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!

Previous Post: « Customizing Car Side Marker Lights to Flashing Side Markers
Next Post: 32V, 3 Amp LED Driver SMPS Circuit »

Reader Interactions

Comments

  1. Kesava Raj says

    December 29, 2016 at 7:55 am

    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

    Reply
    • Swagatam says

      December 29, 2016 at 4:36 pm

      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

      Reply
  2. Kesava Raj says

    December 29, 2016 at 1:47 am

    V/I

    Input 5v
    Current 800ma…

    5/800ma =6.25 ohms sir

    Wattage of resistor is 1.28 watts…

    Is it correct sir

    Reply
  3. Kesava Raj says

    December 29, 2016 at 1:41 am

    Thank u sir

    Reply
  4. Kesava Raj says

    December 28, 2016 at 12:17 pm

    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..

    Reply
    • Swagatam says

      December 28, 2016 at 3:09 pm

      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

      Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar




Subscribe to New Posts

Categories

  • Arduino Projects (89)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (104)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (88)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (101)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (39)
  • Water Controller (36)




Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap




People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin



  • Recent Comments

    • Swagatam on How to Make HHO Fuel Cell Circuit in Automobiles for better Fuel Efficiency
    • Swagatam on How to Repair Mosquito Swatter Bats
    • Pradosh on How to Repair Mosquito Swatter Bats
    • eq on How to Make HHO Fuel Cell Circuit in Automobiles for better Fuel Efficiency
    • Swagatam on 100A AC Load Monitoring Circuit using Arduino, Watt Limit, LCD, Alarm, Auto Shutdown

    © 2025 · Swagatam Innovations