• 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 / Grid and 3-Phase / Solid-State Inverter/Mains AC Changeover Circuits Using Triacs

Solid-State Inverter/Mains AC Changeover Circuits Using Triacs

Last Updated on January 8, 2024 by Swagatam 24 Comments

In this post I have explained 2 simple concepts for making solid-state triac based Inverter/mains AC changeover circuit, the idea was requested by Music girl.

Table of Contents
  • Technical Specifications
  •  The Design #1
  • Design #2: Automatic Triac Changeover Circuit for Inverter/Mains
  • Assessing the Circuit
  • Isolating the Neutral
  • Modified Triac Changeover Design
  • Corrections

Technical Specifications

I would like to replace the SPDT relay with 2 scr's. Would you consider a circuit to replace those changeover relays?
I believe a relay would need to handle 60 amps to be effective for the inverter side... and a smaller SCR for the Charger side.

Many thanks for the great work you do

warning message: electricity is dangerous, proceed with caution
Triac based Inverter/Mains AC Changeover Circuit

 The Design #1

The functioning of the above shown triac based solid state inverter mains changeover circuit may be understood with the help of the following points:

Assuming mains grid AC to be present:

1) The battery charger section is in the active state and charging the battery.

2) The DC from the charger supply keeps T2 and the triac TR2 switched ON.

3) TR2 allows the load to get the mains supply voltage from the mains AC source.

4) T2 keeps triac TR1 and T1 switched OFF, disabling the battery supply to the inverter and cutting-off the mains entry from the inverter to the load respectively.

5)  In an event when mains AC fails, T2 and TR2 switch OFF giving rise to the following conditions.

6) T1 connects the negative of the battery with the inverter circuit, quickly switching it ON.

7) TR1 makes sure that AC generated by the inverter is instantly allowed to pass to the appliances ensuring an uninterrupted changeover from the AC mains to the inverter mains through the relevant switching of the triacs.

Design #2: Automatic Triac Changeover Circuit for Inverter/Mains

The second circuit below discusses a simple automatic triac changeover circuit from mains to inverter and vice versa for ensuring a well isolated inverter mains transfer for the load. This is to eliminate the possibility of the grid energy meter recording the inverter supply consumption in the utility bill. The idea was requested by Mr. Puneet

Circuit Objectives and Requirements

  1. Its great pleasure to get guided by you. Thank you so much.
  2. I was looking out for SPDT/DPDT SSR required to work 24*7 with minimal power/heat.
  3. My residence is basically divided into two sections which are powered by two different 230v AC phases. Lets name them P1 and P2.
  4. Now, the problem starts when a power inverter comes into picture. The inverter is powered by P1 but powers some electricals in other section which is basically powered by P2.
    With new energy meters, which basically calculate the consumption based on difference between incoming phase and outgoing neutral currents, do calculate the load on both energy meters.
  5. I thought of putting a SSR based phase selector (not mechanical one due to wear and tear on 230v AC load).
  6. The SPDT NC would would connect invertor, whereas NO would connect load to P2. P2 would power the trigger i.e. operate the relay.
  7. So when P2 is available, it would ON the relay and NO would connect powering load with P2, whereas in absence of P2 would switch off relay connecting invertor line to section load.
  8. I am finding it difficult to find some SPDT/DPDT SSR which fulfill my requirement or if any are very costly, so if you can help me with any such circuit.

Assessing the Circuit

Thanks Puneet, basically you want a solid-state SPDT changeover relay which will switch the load from mains to inverter during mains failure and vice-versa when mains returns....this will also prohibit the energy meter from registering the inverter current in its calculation while inverter is running.

I hope I have understood it rightly??

This would also require isolating the neutral so that the energy meter is completely disconnected from the load and the neutral line during mains absence.

Isolating the Neutral

That's perfectly right!

I would beg to differ on the last point - isolation of neutral on mains absence. The reason being the live wire from invertor is directly connecting in section2 and not from energy meter. Since mains is off, i believe the energy meter circuit may not be powered to sense the consumption on neutral side.

I may be wrong in my assumption. So if you feel neutral also needs isolation, please design the circuit accordingly. That was some confusion i had, thus i always mentioned SPDT/DPDT in my request.

Let me know if any more information required.

Thank you 🙂
Puneet

Solution:

I think DPDT could be slightly more complex with a triac based relay, so it's better to stick with an SPDT variant.

I think you could give the last SPDT circuit in the above article a try, with some modifications.

SPDT2Btriac

Here you can join the lower leads of the triac together and connect with the load (the other end of the load connected with the neutral), while the upper leads could be separated and joined with the respective phases (mains, and inverter)

for supplying the circuit under both the situations we could use two 0.33uF separately, one connected with the mains, and the other with the inverter phase.

Just for my clear understanding, I am confused with the last statement about 0.33uf capacitors, where exactly should I put them across?

Few queries:

1. do I need to add heat sinks to the triacs? 2. I believe the trigger is 5v dc sourced from mains. Should I go for transformer supply to drop 230v ac to 5/6v ac and rectify? If you have any specific design for that please guide me. 3. If not dc in above, do I need to take special care for zero crossing for the optocoupler.

I had redrawn the circuit diagram as per your instructions, but could not upload it here.

Hi Puneet, you can send the diagram to my email

the trigger can be 5V or 12V that is not critical.

In the last diagram, the 0.33uF can be see connected with the mains, you can connect a second 0.33uF from the zener side and connect its other end with the inverter mains...this would enable the transistor circuit to operate in both the situations, during absence and presence of mains.

Zero crossing triggering is not required according to me.

Modified Triac Changeover Design

Hello Swagatam,

Please find attached the modified circuit diagram. I hope i have modified it as per your instructions. Let me know your valuable feedback.

I would also request you to suggest the best possible option to get the 5v DC signal at trigger end. should i look out for transformer-less supply or transformer one.

With respect to the 0.33uF capacitors, i doubt if i have made the right connection or should this be coming from the lower ends of the triacs, as here the two phase inputs would collide.

SPDT2Btriac 1

Corrections

Hello Puneet,

the 0.33uF connections are OK, the current on the other side of 0.33uF will be quite low and won't harm each other.

the lower side of the triacs are supposed to be connected only with the load not with the circuit negative, the negative of the circuit should be connected directly with the neutral. rest all looks OK.

Thank you so much for your quick reply.

I hope this one is correct. My bad luck i did not see the phases being shorted to ground/neutral at lower triac ends 🙁

Would this circuit be capable for handling around 500 watts of load?

SPDT2Btriac 2

Hello Puneet,

Now it looks OK, and hopefully should function as per the expectations.

The trigger to the opto could be extracted from either of the mains supply, that is either from the inverter mains or the grid mains, depending on which one is selected for the activating the triac changeover circuit.

The input of the opto could be connected with these supplies through a 68K 5 watt resistor.

You'll also like:

  • 1.  How to Make a 3 Phase VFD Circuit
  • 2.  How to Convert 3 phase AC to Single phase AC
  • 3.  Remote Controlled ATS Circuit – Wireless Grid/Generator Changeover
  • 4.  Arduino 3 Phase Inverter Circuit with Code
  • 5.  2 Simple Automatic Transfer Switch (ATS) Circuits
  • 6.  Emergency Generator Circuit Power Distribution

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: « 60W, 120W, 170W, 300W Power Amplifier Circuit
Next Post: Over Voltage Protection for Automotive Load Dump »

Reader Interactions

Comments

  1. Rashid abdallah says

    November 13, 2024 at 10:36 am

    hello swagatam I remember one or two years ago ago you shared a diagram with me and you said it was better than a ups , actually it was all about automatic turn on/off for the inverter and I think it was using relay, for example if you are watching TV and power goes off it will automatically turn on the inverter, when power comes back it will automatically turn off the inverter

    Reply
    • Swagatam says

      November 13, 2024 at 12:00 pm

      Hi Rashid, Yes I remember, it was the following design which I had referred to you:
      https://www.homemade-circuits.com/how-to-convert-inverter-to-ups/
      However, there will be a slight delay of a few milliseconds between the changeover from inverter to Mains, and vice versa.

      Reply
  2. ismaila umar sanda says

    November 25, 2023 at 2:45 am

    Thanks for this great job, but is only one circuit i.e first circuit diagram

    Reply
    • Swagatam says

      November 25, 2023 at 6:34 am

      Thank you Ismaila.

      Reply
  3. Bill says

    August 18, 2023 at 12:43 am

    Thanks for the circuit, but …

    The traic doesn’t turn off until the AC voltage it gets goes to zero.

    For the case where the AC comes back on, the worst case is the generator could be at +120v while the line is at -120! So very high current flow buring out the traics and maybe the generator.

    So the line connected to the generator voltage needs to cross to zero (but not turn it on for the other half for the sine wave) before turning on the line traic.

    Reply
  4. Suresh Kumar says

    January 18, 2022 at 4:06 pm

    Hi Swagatam,

    Hope you are doing fine. This article is quite informative. Has anyone tried this circuit? I want to switch a load of around 3KW from one source to other. I understand that BT136 may not be able to handle that. BTA41 would be a better choice. Having said that, do we need to have any other protection to switch that high load? What about snubber circuit? In fact, I created similar circuit (I had two optoisolators to drive BTA41 separately). It worked fine (I observed some flickering on the load side though) but BTA41 blew off after around 10 days. One reason could be thermal mismanagement. I used very small heatsink with no air cooling. I would like to discuss this in detail if you are available.

    Best,
    Suresh

    Reply
    • Swagatam says

      January 18, 2022 at 4:46 pm

      Hi Suresh, I am not sure whether it was confirmed perfectly by anybody or not, but according to me the concept looks flawless, especially the second last one.

      If the load is inductive then definitely a snubber network will be required. You can probably design it by referring it to the following link:

      https://www.st.com/resource/en/application_note/cd00004096-rc-snubber-circuit-design-for-triacs-stmicroelectronics.pdf

      I also found that 20 Amp snubberless triacs are available that have in built snubbers.

      If you have any further questions we can discuss it here.

      Reply
      • Suresh Kumar says

        January 19, 2022 at 12:47 am

        Thanks Swagatam for prompt reply. Yes, conceptually it should work. My circuit also worked fine for few days but seems there was some issue with thermal management or spike management. Also, I think it is last circuit in above article which is worth trying. The second last has issue with connection of load.

        Best,
        Suresh

        Reply
        • Swagatam says

          January 19, 2022 at 10:05 am

          You are right Suresh, the last circuit actually looks more appropriate and worth trying. Also, a large heatsink is a must for any triac if it is switching heavy loads

          Reply
          • Peter says

            March 29, 2022 at 6:13 pm

            Hello Swagtam.

            Great finding you after I lost your follow_up.
            I’m concerned over the above Auto changeover cct.
            I do inverter and mostly, customers require them automated.
            I’ve been doing a relay set up but in most of my projects, delay of changing Over is the problem.
            For my usual set up, I use two relays.
            1, for switching between line AC and inverter. And the second, usually small, for switching off the inverter oscillator.

            My question is how can I solve the delay in relay transfer.

            Then I would be glad if the above Relay_less changeover would be fully composed of all parts. I mean you show all its set up accessories.

            Thank you for your continued support sir.

            Reply
            • Swagatam says

              March 29, 2022 at 8:02 pm

              Thank you Peter,

              Relays normally have fixed operating specifications depending on their coil resistance and spring tension. Although the activation time can be made faster by using slightly higher operating voltage than the specified value, the release time cannot be made faster.

              According to me, relays with low coil resistance require higher current to operate, and therefore these may have faster activation time, and identically they may have faster release time also due to a stronger spring tension. You can use one of these relays having 3 sets of contacts, two for the AC mains changeover and one for the oscillator cut off.

              Reply
  5. Moses says

    December 30, 2021 at 12:20 am

    PLEASE SIR! I NEED AUTOMATIC PHASE SELECTOR CIRCUIT DIAGRAM WITH MICROCONTROLLER AND HOW TO SET IT UP

    Reply
  6. Mohan Singh BK says

    February 24, 2021 at 3:53 pm

    Hello Swagatam sir,
    I am from Nepal I am following you & your wesite from last so many years.I am very impressed by your helping nature & your creative work.
    could you pls. help me for a small circuit ?

    I want to switch off SMPS power supply until the solar battery runs out or when the sun is shining during the day. I was using a relay but it is interrupting to start wifi by .2 sec

    So now I want to use Triac switch (Normally closed) type with using a optocoupler.
    could you pls. guide me how to make Triac Normally closed? (NC)

    Reply
    • Swagatam says

      February 24, 2021 at 8:53 pm

      Thank you Mohan or being a part of this website for so many years, I appreciate it very much!

      I think the following circuit might help you to achieve the required implementation. You can customize it further to suit your specific needs!

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

      Reply
  7. BASHIR ABDULKADIR UMAR says

    May 2, 2020 at 6:56 pm

    Ok but what of the P1 and P2 stand for?
    And what is the remain 2 pin of outcoupler 1+ and 2 ?

    Reply
  8. BASHIR ABDULKADIR UMAR says

    May 2, 2020 at 12:20 pm

    GOOD MORNING SIR,
    PLEASE SIR WHICH ONE IS THE BEST AMONG THOSE CIRCUITS BECAUSE I WANT TO MAKE IT TODAY FOR MY INVERTER

    Reply
    • Swagatam says

      May 2, 2020 at 5:42 pm

      Bashir, you can try the last circuit

      Reply
  9. afam nzoiwu says

    January 5, 2016 at 4:19 am

    should i make all resistors 1watt or 1/2watt?

    Reply
    • Swagatam says

      January 5, 2016 at 10:52 am

      all are 1/4 watt

      Reply
  10. afam nzoiwu says

    January 4, 2016 at 6:29 pm

    hello swagatam, what are the watts of those resistors? about the triac' pins, pin1 is A1-down vertical one. pin2 is A2-upper vertical one. pin3 is G-bended one. am i right? i used BTA41 but one to inverter phase and BC547 got damaged. should i use BT136?

    Reply
    • Swagatam says

      January 5, 2016 at 2:28 am

      hello afam, with printed side of the triac facing you, the right most lead corresponds to the bent lead, the center lead corresponds to the appliance lead, and the left most lead goes to the mains. The BTA41 is more powerful than BT136 so if it blew then BT136 will also get burnt

      make sure you do it by understanding the everything correctly and convincingly.

      Reply
  11. afam nzoiwu says

    December 30, 2015 at 8:26 am

    honestly i love the way u explain things that is why i come here to seek solution. i will try this circuit later bcos i love it.

    Reply
    • Swagatam says

      December 30, 2015 at 11:29 am

      thank you Afam, I appreciate your thoughts,

      for adjusting the frequency you will probably require a VFD circuit as given below:

      https://www.homemade-circuits.com/2013/09/single-phase-variable-frequency-drive.html

      however this circuit could be quite complex and will require an advanced knowledge regarding the subject.

      Reply
  12. afam nzoiwu says

    December 30, 2015 at 6:56 am

    please i wish to make a request. my genset output is 220v 35Hz. is there any circuit that will correct the output to 220v 50Hz. thanks

    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 Adjustable 0-100V 50 Amp SMPS Circuit
  • ibrahim on Adjustable 0-100V 50 Amp SMPS Circuit
  • Swagatam on Contact
  • KRAB Babu on Contact
  • Swagatam on How Shunt Regulator TL431 Works, Datasheet, Application

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