• 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 / Battery Charger Circuits / How to Switch Two Batteries Manually using Opto Coupler

How to Switch Two Batteries Manually using Opto Coupler

Last Updated on January 23, 2024 by Swagatam 27 Comments

The following article explaining a dual battery changeover relay circuit was requested by Mr.Raja so that it could become possible to switch between his old and new inverter batteries automatically, eliminating manual interventions. Let's read it in details.

Table of Contents
  • Technical Specifications
  • The Design

Technical Specifications

"I bought a new 12v 110 Ah lead acid battery for the dc home lighting system.

I had another  12v 110ah battery which is about 8year old. ( which is connected earlier in the same lighting system in my house itself) . But the old one has approximately 25ah capacity as i calculated.

But it is not sufficient to glow light for about 5 hours of night.(i.e. From 6pm to 11pm) So i want to use old and new Battery. But i can't join them in parallel, as old one may takes charge from new battery, which decrease the life of new one (as i think)

Therefore at present i am using a'Two-way' switch to switch on and off between old and new battery. Whenever lighting system controller shows red light, i.e. At about 11.5v, i manually operate the two way switch to switch on the new battery.

Now , please give me the circuit to switch on and off between two batteries in such a way that, initially lighting system operates with old bty and as the voltage of old bty decreases (below 11.5v) then only switch on to new one.. Thanking you" 

The Design

The designed idea of the proposed dual battery changeover circuit or rather old to new battery changeover circuit may be understood with the following points:

Referring to the circuit diagram we see a  IC 4017 which functions as a sequence toggler or switcher.

The IC will shift its output from pin#3 to pin#2 and then to pin#4 in response to every positive pulse at its input pin#14.

pin#4 of the IC has been connected to the reset pin#15 of the IC, means the moment the logic sequence reaches pin#4, the sequence gets reset back to pin#3 so that the cycle can repeat.

Here the input pulse is derived from the low battery warning indicator from the existing inverter system.

The LED light from the low battery warning has been integrated to an LDR using a light proof tubing.

Initially when the power is switched ON, the 1uF capacitor resets the IC so that the logic sequence initiates from pin#3.

The relay at this point remains connected with its N/C pole connecting the old battery positive with the inverter.

The inverter starts operating, draining the old battery

On reaching the low battery threshold, the inverter low battery LED illuminates which instantly lowers the enclosed LDR resistance supplying a positive pulse to the pin#14 of the IC.

The IC responds shifting the logic sequence from pin#3 to pin#2.

Since pin#2 of the IC is connected to the relay driver transistor, the relay immediately activates, switching the  new battery into action through its N/O contacts.

The new battery being fully charged toggles OFF the low battery indicator light, the IC goes into a standby position holding the situation intact.... until, the new battery also reaches a low-battery condition switching ON the LED and resetting the IC into its initial position.

The cycle then repeats producing the required automatic dual battery changeover actions.

batterychangeoverrelaycircuit

 

You'll also like:

  • 1.  3 Smart Li-Ion Battery Chargers using TP4056, IC LP2951, IC LM3622
  • 2.  Convert SMPS into a Solar Charger
  • 3.  Use this Battery for 50 Years without Charging
  • 4.  Dual Battery Charger Circuit with Isolator
  • 5.  Arduino based Battery Over Discharge Protection Circuit
  • 6.  How to Select the Right Charger for Li-Ion Battery

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « Making a Multi-function Water Level Controller Circuit
Next Post: Cell Phone Emergency Charger Pack using Ni-Cd Batteries »

Reader Interactions

Comments

  1. Majaha Masuku says

    January 27, 2025 at 2:11 pm

    Hi Mr Swagatam, I need a change over circuit diagram, I want to switch two batteries such that when battery one is below 11.5v, then battery two switches on automatically without interupting the system.I want it for my inverter project.Thank you in advance.

    Reply
    • Swagatam says

      January 28, 2025 at 8:15 am

      Hi Majaha,
      You can try the following design:
      " rel="ugc">comment image
      More details are provided in the following article:
      https://www.homemade-circuits.com/automatic-dual-battery-charger-with/

      Reply
  2. MORRIS says

    September 7, 2022 at 2:06 am

    Hello Swagatam, if I have one solar panel 12v 200w, 2 batteries 12v 100ah each and a 24v inverter. Now is there any way u can design a circuit such that while it’s charging then the battery combines in parallel and whn it reaches the full charging threshold it disconnects and form a series connection?????????????

    Reply
    • Swagatam says

      September 7, 2022 at 9:23 am

      Hi Morris,
      That looks difficult. To implement this we may have to configure a few relays so that they join the battery terminals in series and parallel alternately, which is not easy.
      Can’t figure it out right now.

      Reply
  3. Donald says

    September 23, 2021 at 7:31 pm

    Dear swagatam,
    I am Donald. I read the request letter by Mr. Raja and the suggestion you gave is great. Please Sir, I need a circuit that will automatically connect the older Battery to auto cutoff charger while the new one takes over.
    Thanking you Sir

    Reply
    • Swagatam says

      September 24, 2021 at 8:15 am

      Thank you Donald,

      you can probably try the last circuit from the following article:

      https://www.homemade-circuits.com/automatic-dual-battery-charger-with/

      Reply
  4. Emitech electronics says

    July 17, 2020 at 1:15 pm

    Hi, I want an automatic changeover switch, which swithes automatically to inverter when there is no national grid. A 220-230v input and 50/60 hertz frequency and about 30amps output.
    Thanks sir

    Reply
    • Swagatam says

      July 17, 2020 at 7:50 pm

      Please search “changeover” in the search box, you will able to find the exact circuit you are looking for.

      Reply
  5. kaveripakam pavan kumar says

    June 20, 2020 at 11:23 am

    i am doing a project to use wind turbines as chargers for electrical bikes/cars and also for homes with a two-way switch. Actually, my ideal project is using wind turbines to charge batteries while driving and the is full we can switch the battery with the two-way switch to use other battery who is already placed there and if we don’t need any charge to batteries wee can turn off wind turbines. Is it possible practically??? Can you help me in this..

    Reply
    • Swagatam says

      June 20, 2020 at 1:01 pm

      The concept cannot be feasible. If you use windmill on bike, it will create a lot of drag and consume extra battery power from the vehicle, more than the generated electricity from the windmill.

      Reply
  6. Solomon says

    April 11, 2020 at 6:26 am

    Hi… Thanks for the info…. I have two 12v batteries say A and B to power a led lamp.. How do I build a circuit to cut off and isolate battery A it is low and connect battery B while is automatically charging?

    Reply
    • Swagatam says

      April 11, 2020 at 9:19 am

      You can try the following concept:

      https://www.homemade-circuits.com/automatic-dual-battery-charger-with/

      Reply
  7. Shafial Rapley says

    November 27, 2019 at 9:25 pm

    I need a mofset that switches every 8 hours between 4 batteries

    Reply
  8. washington says

    January 10, 2018 at 7:39 am

    Dear Swagatam,
    I enjoy and follow your well explained circuits which opens my brainstorming data bits.
    I have 2x24v dc battery banks which I use to alternate my hybrid inverter supply when I experience prolonged power outages. I manually changeover when a low alarm sounds (24.5vdc) to either bank depending on the last bank discharged. This manual changeover affords me a bump-less power transfer thus you do not see any dips in power. The low battery gets charged immediately .I need help to design a circuit using dc/dc SSRs (SSR-40DD FOTEK) for the changeover switch achieving the same or better and avoiding damage to the SSRs. The max load will be less than 30amps.

    Best Regards
    Washington David Masunga
    Harare . Zimbabwe

    Reply
    • Swagatam says

      January 10, 2018 at 12:28 pm

      Thanks Washington, appreciate your thoughts,

      Here’s one SSR concept which perhaps you can try for your mentioned application

      https://www.homemade-circuits.com/12v-dc-solid-state-relay-ssr-100-amps/

      let me know if it seems suitable..

      Reply
      • washington says

        January 11, 2018 at 3:09 am

        Thanks Swag
        I greatly appreciate your quick response.I shall try the circuit during the week and send you feedback.
        Regards
        Washington

        Reply
        • Swagatam says

          January 11, 2018 at 10:35 am

          Thanks Washington, please keep up the good work…

          Reply
        • SUMAN Naidu says

          October 26, 2019 at 8:38 pm

          Hi swagatam,

          Pls help me need automatic change over switch cutoff after full charging for 60v 24ah dual lithium battery pls share circuit diagram.

          Reply
          • Swagatam says

            October 27, 2019 at 7:57 am

            Hi Suman,

            you can try the last circuit from the following article:

            https://www.homemade-circuits.com/automatic-dual-battery-charger-with/

            But the above is only the changeover section, for the charger you can refer to the following article:

            https://www.homemade-circuits.com/simplest-safest-li-ion-battery-charger/

            Reply
  9. Unknown says

    March 23, 2017 at 10:44 am

    Sir what is it's applications..

    Reply
  10. sadique temitayo says

    May 8, 2016 at 8:07 am

    Pls i tried this circuit out and notin happens my 4017 was jss static on output of pin3 pls i nid reply quick

    Reply
    • Swagatam says

      May 8, 2016 at 2:06 pm

      the LED needs to illuminate sharply or suddenly, if it illuminates slowly then the circuit might fail to respond

      Reply
  11. Sham says

    September 14, 2015 at 4:54 am

    Hi Swagatam,
    I tried the ckt with 7 amps relay. But as the load increased, inverter shutdown. Looks like 7 amps was not sufficient to power the inverter. It was before reading your reply.
    My UPS, iam using it as inverter since iam not charging battery through Mains, is 600VA capacity.
    1. So to power this system my relay should be 600/12 = 50 or 60 amps right?
    2. Or as you said i have a battery of 125 ah, is it 125 ah relay? if yes, Then i think it will be expensive switching..

    Reply
    • Swagatam says

      September 15, 2015 at 3:30 am

      Hi Sham,

      125 AH would be the maximum safe limit, which would ensure that even if the battery was discharged at the full AH rate, the relay would still hopefully not burn or fuse.

      However if you intend to use the battery at a normal 30 to 40amp rate in that case a 60 amp relay would be fine.

      Reply
  12. Sham says

    September 10, 2015 at 6:45 pm

    Hi Swagatam,
    Nice article. I am having the exact situation as explained above by Mr. Raja. I am trying this idea using MC. When voltage drops to 11.0v on load, i want to switch to new battery. my question is 1. What current rating of relay do i need to use? is it the sugar cube relay[ 7amp] or more?
    2. Do i need to connect the -ve of both relays together?
    3. Instead of relay can i use mosfet?( for efficiency and more battery time).
    4. if yes, which one? I am planning to connect the MC and switching ckt directly to battery terminal for powering the system, which may drain the battery eventually over a period of time.
    5. Like wise, i think i can use the same logic to charge the old battery first and next new one. So at what level should i stop charging the old battery before switching over to new one?
    6. Or how long should i wait (after reaching battery voltage 13.6v) before switching to next battery?
    Kindly help me in this. Awaiting your replay.

    Regards,
    Sham.

    Reply
    • Swagatam says

      September 11, 2015 at 8:12 am

      Thank you Sham,

      Are your questions with reference to the above circuit? because I cannot see two relays in the diagram.

      Relay contact rating (amps) will need to be selected as per the battery AH rating, it can be same as the AH value of the battery.

      The battery charging can be stopped and toggled once it reaches the 14.3v mark.

      Reply
    • Swagatam says

      September 11, 2015 at 8:13 am

      according to me the relay option is better and much safer than mosfets

      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 Circuit Ideas

Categories

  • Arduino Projects (87)
  • 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 (87)
  • 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 (37)
  • Water Controller (36)

Calculators

  • 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
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

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 |

Recent Comments

  • Swagatam on Real MPPT Solar Charger Circuit Using Arduino, LCD, and Manual/Auto Switch
  • Obaidullah Khan on Real MPPT Solar Charger Circuit Using Arduino, LCD, and Manual/Auto Switch
  • Swagatam on 2 Compact 12V 2 Amp SMPS Circuit for LED Driver
  • Alan Bishop on AC Motor Speed Controller Circuits using Back EMF
  • Swagatam on Real MPPT Solar Charger Circuit Using Arduino, LCD, and Manual/Auto Switch

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations