• 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 | Hire Me | 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 May 17, 2026 by Swagatam 27 Comments

Table of Contents
  • Technical Specifications
    • The Design

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.

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.

 

You'll also like:

  • LM338 basic adjustable power supply circuit diagramDesigning a Customized Battery Charger Circuit
  • battery charger circuitBattery Charger Problems Troubleshooting Discussed
  • Simple 48V Automatic Battery Charger Circuit
  • 220V AC to 56V DC SMPS Circuit for 48V Battery Charging

Filed Under: Battery Charger Circuits Tagged With: Batteries, Coupler, Manually, Opto, Switch

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: « Making a Multi-function Water Level Controller Circuit
Next Post: Cell Phone Emergency Charger Pack using Ni-Cd Batteries »

Reader Interactions

Questions & Answers

Total Posts: 27
Newest Oldest
Sham
September 10, 2015 • 11 years ago #33884

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
SwagatamAdmin
September 11, 2015 • 11 years ago #33896

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
SwagatamAdmin
September 11, 2015 • 11 years ago #33897

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

Reply
Sham
September 14, 2015 • 11 years ago #33983

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
SwagatamAdmin
September 15, 2015 • 11 years ago #34002

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
sadique temitayo
May 8, 2016 • 10 years ago #40775

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

Reply
SwagatamAdmin
May 8, 2016 • 10 years ago #40781

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

Reply
Unknown
March 23, 2017 • 9 years ago #49243

Sir what is it's applications..

Reply
washington
January 10, 2018 • 9 years ago #57514

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
SwagatamAdmin
January 10, 2018 • 9 years ago #57524

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
January 11, 2018 • 9 years ago #57538

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

Reply
SwagatamAdmin
January 11, 2018 • 9 years ago #57544

Thanks Washington, please keep up the good work…

Reply
SUMAN Naidu
October 26, 2019 • 7 years ago #71423

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
SwagatamAdmin
October 27, 2019 • 7 years ago #71432

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
Shafial Rapley
November 27, 2019 • 7 years ago #72543

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

Reply
Solomon
April 11, 2020 • 6 years ago #77816

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
SwagatamAdmin
April 11, 2020 • 6 years ago #77817

You can try the following concept:

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

Reply
kaveripakam pavan kumar
June 20, 2020 • 6 years ago #79654

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
SwagatamAdmin
June 20, 2020 • 6 years ago #79661

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
Emitech electronics
July 17, 2020 • 6 years ago #80466

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
SwagatamAdmin
July 17, 2020 • 6 years ago #80476

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

Reply
Donald
September 23, 2021 • 5 years ago #98331

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
SwagatamAdmin
September 24, 2021 • 5 years ago #98375

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
MORRIS
September 7, 2022 • 4 years ago #132991

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
SwagatamAdmin
September 7, 2022 • 4 years ago #132998

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
Majaha Masuku
January 27, 2025 • 1 year ago #168175

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
SwagatamAdmin
January 28, 2025 • 1 year ago #168184

Hi Majaha,
You can try the following design:
Dual battery charger circuit using a single opamp
More details are provided in the following article:
https://www.homemade-circuits.com/automatic-dual-battery-charger-with/

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



My Youtube Channel

Circuit Simulator

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (134)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (88)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets and Earth (40)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (100)
  • Lamps and Lights (162)
  • Meters and Testers (72)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Security and Alarm (65)
  • Sensors and Detectors (107)
  • SMPS and Converters (45)
  • Solar Controller Circuits (61)
  • Temperature Controllers (43)
  • Timer and Delay Relay (50)
  • Voltage Control and Protection (44)
  • Water Controller (37)
  • Wireless Circuits (31)



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 |



Recent Comments

  • Swagatam on DPDT Relay Working, Pinouts, Testing Explained
  • Swagatam on How to Modify SMPS for Adjustable Current and Voltage Output
  • Swagatam on Pure Sine Wave Inverter Circuit Using IC 4047
  • Nare Mashiachidi on DPDT Relay Working, Pinouts, Testing Explained
  • Nare Mashiachidi on DPDT Relay Working, Pinouts, Testing Explained

Social Profiles

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

© 2026 · Swagatam Innovations