• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Get free circuit help 24/7

Circuits for Beginners | Basic Circuits | LED Driver | Hobby Circuits | Transistor Circuits

New-Projects | Privacy Policy | About us | Contact | Disclaimer | Copyright | Videos

You are here: Home / Inverter Circuits / Arduino 3 Phase Inverter Circuit with Code

Arduino 3 Phase Inverter Circuit with Code

Last Updated on February 7, 2021 by Swagatam 135 Comments

ask questions through comments

An Arduino three phase inverter is a circuit which produces a 3 phase AC output through a programmed Arduino based oscillator.

In this post we learn how to make a simple microprocessor Arduino based 3 phase inverter circuit which could be upgraded as per user preference for operating a given 3 phase load.

We have already studied an effective yet simple 3 phase inverter circuit in one of our earlier posts which relied on opamps for generating the 3 phase square wave signals, while the 3 phase push pull signals for driving the mosfets was implemented using specialized 3 phase driver ICs.

In the present concept also we configure the main power stage using these specialized driver ICs, but the 3 phase signal generator is created using an Arduino.

This is because creating an Arduino based 3 phase driver can be extremely complex and is not recommended. Moreover, it is much easier to get off-the-shelf efficient digital ICs for the purpose at much cheaper rates.

Before building the complete inverter circuit, we first need to program the following Arduino code inside an Arduino UNO board, and then proceed with the rest of the details.

Arduino 3 Phase Signal Generator Code

void setup() {
// initialize digital pin 13,12&8 as an output.
pinMode(13, OUTPUT);
pinMode(12,OUTPUT);
pinMode(8,OUTPUT);
}
void loop() {
int var=0;
digitalWrite(13, HIGH);
digitalWrite(8,LOW);
digitalWrite(12,LOW);
delay(6.67);
digitalWrite(12,HIGH);
while(var==0){
delay(3.33);
digitalWrite(13,LOW);
delay(3.33);
digitalWrite(8,HIGH);
delay(3.34);
digitalWrite(12,LOW);
delay(3.33);
digitalWrite(13,HIGH);
delay(3.33);
digitalWrite(8,LOW);
delay(3.34);
digitalWrite(12,HIGH);
}
}

Original Source: http://forum.arduino.cc/index.php?topic=423907.0

The assumed waveform using the above code could be visualized in the following diagram:

3 phase square wave image

Once you have burned and confirmed the above code in your Arduino, it's time to move ahead and configure the remaining circuit stages.

For this you will need the following parts which hopefully you might have already procured:

Parts Needed

IC IR2112 - 3 nos (or any similar 3 phase driver IC)
BC547 transistors - 3 nos
capacitor 10uF/25V and 1uF/25V = 3 nos each
100uF/25V = 1no
1N4148 = 3nos (1N4148 is recommended over 1N4007)

Resistors, all 1/4 watt 5%
100 ohms = 6nos
1K = 6nos

Constructional Details

To begin with, we join the 3 ICs to form the intended 3 phase mosfet driver stage, as given below:

Arduino 3 phase driver

Once the driver board is assembled, the BC547 transistors are hooked up with the HIN and LIN inputs of the IC, and illustrated in the following figure:

arduino 3 phase inverter driver

Once the above designs are constructed, the intended result could be quickly verified by switching ON the system.

Remember, the Arduino needs sometime to boot, therefore it is recommended to switch ON the Arduino first and then switch ON the +12V supply to the driver circuit after a few seconds.

How to Calculate the Bootstrap Capacitors

As we can see in the above figures, a circuit requires a couple of external components near the mosfets in the form of diodes and capacitors. These parts play a crucial role in implementing precise switching of the high side mosfets, and the stages are called bootstrapping network.

Although already given in the diagram, the values of these capacitors could be specifically calculated using the following formula:

full bridge bootstrap capacitor formula

How to Calculate the Bootstrap Diodes

The above equations can be used for calculating the capacitor value for the bootstrap network, for the associated diode we have to consider the following criteria:

The diodes activate or are enabled in the forward bias mode when the high side mosfets are turned on and the potential around them is almost equal to the BUS voltage across the full bridge mosfet voltage lines, therefore the bootstrap diode must be rated enough to be able to block the full applied voltage as specified in the specific diagrams.

This looks fairly easy to understand, however for calculating the current rating, we may have to do some math by multiplying the gate charge magnitude with the switching frequency.

For example if the mosfet IRF450 is used with a switching frequency of 100kHz, the current rating for the diode would be around 12mA. Since this value looks quite minimal and most diodes would have a much higher current rating than this normally, specific attention may not be essential.

Having said that, the over temperature leakage characteristic of the diode can be a crucial to be considered, especially in situations where the bootstrap capacitor may be supposed to store its charge for reasonably sustained amount of time. In such circumstance the diode will need to be a ultra fast recovery type to minimize the magnitude of charge from being forced back from the bootstrap capacitor towards the supply rails of the IC.

Some Safety Tips

As we all know that mosfets in 3 phase inverter circuits can be quite vulnerable to damage due to many risky parameters involved with such concepts, especially when inductive loads are used. I have already discussed this elaborately in one of my earlier articles, and it is strictly advised to refer to this article and implement the mosfets as per the given guidelines.

Using IC IRS2330

The following diagrams are designed to work as a 3 phase PWM controlled inverter from an Arduino.

The first diagram is wired using six NOT gates from the IC 4049. This stage is used for bifurcating the Arduino PWM pulses into complementary high/low logic pairs so that the a bridge 3 phase inverter driver IC IC IRS2330 can be made compatible with the fed PWMs.

The second diagram from above forms the bridge driver stage for the proposed Arduino PWM, 3 phase inverter design, using the IC IRS2330 bridge driver chip.

The inputs of the IC indicated as HIN and LIN accept the dimensioned Arduino PWMs from the NOT gates and drives the output bridge network formed by 6 IGBTs which in turn drive the connected load across their three outputs.

The 1K preset is used for controlling the over current limit of the inverter by suitably adjusting it across the shut down pin of the I, the 1 ohm sensing resistor may be reduced appropriately if the current a relatively higher current is specified for the inverter.

Wrapping Up:

This concludes our discussion on how to build an Arduino based 3 phase inverter circuit. If you have any further doubts or questions on this subject please feel free to comment and get the replies quickly.

For the PCB Gerber Files and other related files you can refer to the following link:

https://drive.google.com/file/d/1oAVsjNTPz6bOFaPOwu3OZPBIfDx1S3e6/view?usp=sharing

The above details were contributed by "cybrax"

get free help for circuit diagrams

You'll also like:

  • 1.  Troubleshooting Inverter Output Voltage Drop Issue
  • 2.  Maintenance Tips for Lead Acid Battery
  • 3.  Compact 3-Phase IGBT Driver IC STGIPN3H60 – Datasheet, Pinout
  • 4.  Generator/UPS/Battery Relay Changeover Circuit
  • 5.  Battery Charging Fault Indicator Circuit
  • 6.  How to Make a Simple Solar Inverter 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!

Subscribe for the Latest Posts


 

Reader Interactions

Comments

    Have Questions? Please post your comments below for quick replies! Comments should be related to the above artcile Cancel reply

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

  1. Wolfgang Zindler says

    June 27, 2022 at 7:31 pm

    Hello Swagatam,
    very nice your article!
    Could I also use it to control a three-phase motor with sine PWM?

    Reply
    • Swagatam says

      June 28, 2022 at 9:14 am

      Thank you Wolfgang,
      Yes, 3 phase motor can be also controlled through a PWM across the low side MOSFETs

      Reply
  2. Amos Owaga says

    June 17, 2022 at 9:04 pm

    I want to make a linear speed control for Dc motor ,,but i have no idea on the components that i need for the project may i have your assistance

    Reply
    • Swagatam says

      June 18, 2022 at 10:55 am

      You can refer to the following post:
      3 Simple DC Motor Speed Controller Circuits Explained

      Reply
  3. Alfredo Rabago says

    April 20, 2022 at 6:29 am

    Hi Swagatam.
    Thanks a lot for share your knowledge with us.

    I have some questions, i hope you can help me to clary it.

    1) in your last picture, you draw a diode connected to IGBT gate, the cathode of this diode is connected to Arduino (according to your note on this picture), why Arduino is connected on this point? IGBT Gate is handle by IRS2130 and the incoming PWM from Arduino must be connected to Hi and Li, so I can’t understand why you put this diode and the label too “to Arduino”.
    2) IRS2330 needs just 3 pwn lines (one per phase), as each phase is connected to IC 4049 or to BC547 in order to generate the complement of each PWM line.
    It means, microcontroller must generate just ONE PWM line per phase, it is ok?
    3) we have 3 phases, but just thinking in one phase (in order to simplified the question and comments), if I need to generate un AC period with 500 PWM periods (250 for positive half period and 250 for negative half period), in ONE AC period, the Hi pin (IRS2330) will receive 500 PWM and 500 in Li too?
    i am trying to full understand that as IRS2330 needs PWM and the complement of it, both pins will have PWM (no zero) on each PWM period…..it means, there is NOT any period where Hi has activity and Li is just zero, is it ok?

    I was working on my microcontroller (STM32), generating 6 PWM lines : as example of one phase, the micro was generating for phase T1 ( as example:
    Phase T1 (Hi_1), “+” AC half period: 0,10,30,50,90,90,50,30,10,0,0, 0, 0, 0, 0, 0, 0, 0, 0. 0
    Phase T1 (Li_1) , “-” AC half period: 0, 0, 0, 0, 0, 0, 0, 0, 0,0,0,10,30,50,90,90,50,30,10,0
    _____ + AC Half period ____ _____- AC half period _____

    As you can see, I was not generating a complementary PWM, when Hi was active, Li was just zero….. and it is not ok,you use always Hi with PMW generated by microcontroler or Hardware and a complementary oh HI, Li.

    as you can see, I was going in wrong direction, that is the reason of my questions, I need to understand how PWM must arrived at IRS2330.
    I Hope can understand my questions.

    best regards and thanks for your help
    Alfredo (from Argentina)

    Reply
    • Swagatam says

      April 20, 2022 at 9:43 am

      Hi Alfredo,
      Thanks for your questions.
      In the last diagram, the 3 phase signals are connected to HIN, LIN pins of the IC. The gates of the IGBT through diodes are supposed to be connected to another Arduino PWM output either for RMS control, or for feeding SPWM to the low side IGBTs so that the output could be converted to sine wave.

      I am sorry I did not explain this in the last diagram.

      The HIN/LIN complementary pins must never be high or low together at any instant that is perhaps the only criterion for implementing the IC successfully.

      Reply
      • Alfredo Rabago says

        April 20, 2022 at 6:29 pm

        Hi Swagatam .
        thanks for your fast answer!!!!
        everything is clear now.

        Thanks alot for your help.

        best regards
        Alfredo

        Reply
        • Swagatam says

          April 21, 2022 at 9:23 am

          You are welcome Alfrdeo, Glad I could help!

          Reply
  4. MBITCHOU BONAS says

    March 26, 2022 at 4:58 am

    Good evening Dear, please I would like to know the name of the software that can be used to draw the three-phase networks (delta and star). I use Pspice, but it does not allow a component to be rotated by 60 or 30 degrees for example. thank you.

    Reply
    • Swagatam says

      March 26, 2022 at 10:17 am

      Sorry dear, I have no idea about it!

      Reply
  5. milan says

    March 11, 2022 at 9:45 pm

    hii
    dear sir can you provide me pcb for this

    Reply
    • Swagatam says

      March 12, 2022 at 9:52 am

      sorry, PCB design is not available for this project!

      Reply
  6. Jim Remington says

    December 28, 2021 at 5:57 am

    The delay() function takes an unsigned long argument, so lines like this one are not doing what you expect:

    delay(3.33);

    Reply
  7. yousef rezaei says

    June 13, 2021 at 2:33 pm

    Hi dear Sawgatam,
    I have a project that I have 3 phase 380v 50hz and need power output 4x (48v, 3 phase, 16A, 200 hz).
    As I know I need :
    1: AC-DC Full Bridge to convert 3 phase 380v 50hz to a DC (V=Vrms*1.414=537v)
    2: filtered DC output with 2 or more Capacitor
    2: DC-DC converter to convert 537v DC to 48v DC or more.
    3: Control the frequency with arduino or micro controller
    4: DC-AC pwm
    And I have 2 question:
    – Which capacitors in farad and volt is ideal to use for filter the peak voltage?
    – What is the best solution to convert DC-DC (I have 3kw 48v zener diode only)?
    Thank you sir

    Reply
    • Swagatam says

      June 13, 2021 at 5:08 pm

      Hi Yousef,

      A filter capacitor should be ideally calculated using formulas. I have explained the procedure comprehensively in the following article:
      Calculating Filter Capacitor for Smoothing Ripple

      However calculating will give a very large value, so practically speaking, the approximate value could be anywhere between 100uF/1kv, 500uF/1kv
      The best solution to convert DC to DC is through buck converter circuit

      Reply
  8. sedighhosein says

    March 22, 2021 at 4:20 am

    hi dear sir do not be tired of good and practical circuit i have built many of your circuits so far and most of them have been practical,Regarding this circuit i must say that is not very suitable for the Ac motors i have connected a inverter output to a Osiloscope Each cycle consists of needle pulses that simulate sinusoidal wave by increasing and decreasing pulses width in a cycle ،
    at low frequencies to control the speed the amp goes up too high even at normal frequencies because sudden changes in voltage cause inrush current,
    when i connected a transformer with almost high current to the city electricity sometime when the connectin was made at the maximum voltage the power was cut off thgrogh a fuse i had to use from one moc 3063 with zero cross detector feature

    Reply
    • Swagatam says

      March 22, 2021 at 12:32 pm

      Dear Sedigh, if you have tested the above circuit and it is working with some issues, so it is fine, since this circuit is meant to be only a basic concept, and not a refined good inverter concept.

      You will need to implement a feedback control system to ensure proper protection in this inverter.

      Reply
  9. Mr.abdulrahman says

    March 16, 2021 at 7:16 pm

    hello Mr.Sawgatam
    I’m designing a three phase inverter using ir2130 ic and how to connect the Arduino with the ic should i use 6 output form the Arduino or just three
    and i wanna know what should i edit in the code to have higher frequency or lower and based on what you calculate the delay time ?

    Reply
    • Swagatam says

      March 16, 2021 at 8:28 pm

      Hello Mr.abdulrahman, you will need 3 signals 120 degrees apart and feed them to the inputs of the NOT gate stage, and configure the NOT gate outputs with the IR2130 as indicated in the article.

      I cannot modify the code since it was not designed by me…

      Reply
  10. betel says

    February 3, 2021 at 4:00 am

    Hi sir , i have been building a project on vfd , on the inverter part , i have used your schematics and code as stated on proteus. I’ve got distorted signal (not square ) at the high side part and NO signal at low side part .
    Can you please help me how to correct the distorted part …. i’ve provided the circuit and output wave form … tank you!
    arduino waveform

    Reply
    • Swagatam says

      February 3, 2021 at 9:30 am

      Hi betel, the above code was taken from Arduino.cc forum and is not designed by me so I cant’t confirm its reliability. If you are building a single VFD, then you can try the following code which is a tested one:

      https://www.homemade-circuits.com/arduino-spwm-generator-circuit/

      Reply
  11. cybrax says

    January 21, 2021 at 1:34 am

    I made a printed circuit board for this circuit. The circuit is powered only by the DC power supply. The arduino is also supplied from this voltage, as the supply voltage for the arduino and the signals are galvanically isolated. No additional power supply (except DC) is required for anything. The Rar archive contains photos, gerber files, drill files and BOM sheet.
    Here is the link:

    Reply
    • Swagatam says

      January 21, 2021 at 9:16 pm

      Thank you very much, I’ll check it out soon, and let you know!

      Reply
      • cybrax says

        January 25, 2021 at 8:51 pm

        Hello, i don`t see links with gerbers files and schematics 🙂

        Reply
        • Swagatam says

          January 25, 2021 at 9:51 pm

          Hi, I have updated the link at the bottom of the post, thanks for the contribution

          Reply
    • Swagatam says

      January 22, 2021 at 9:44 am

      Hi, are you sure it is for the above 3 phase Arduino circuit? Can I post it in the above article., so that it is accessible to all?

      Reply
  12. Fayyad says

    October 29, 2020 at 6:42 pm

    Hello
    Can i doing that on protues?
    If ican doing that what the steps?

    Reply
  13. Ambrogio Rib says

    October 4, 2020 at 7:28 pm

    thanks for the reply,
    I have some background and experience on the electronics field : Once replicated one of your inverters,
    how to read the speed sensor and how to use it to maintain the required RPM under different load condition ?
    As I told I do have a 3 phases motor : 380 V max and 400 W : it is rated for 14000 RPM.
    Is it suitable to be used with your project please ?
    Thanks

    Reply
    • Swagatam says

      October 4, 2020 at 9:28 pm

      Yes you can try it with the above project!

      Reply
  14. IW2FVO says

    August 18, 2020 at 11:02 pm

    very interestin site: congratulations.
    I have a washing machine 3 phases motor that is 400 w and 330 V.
    I would lake to build up an inverter to control it, I plan to read the speed sensor to maintain the rpm stady with the load. Could you please suggest me what of your building blocks shoud I use ?
    Thanks a lot for your kind assistance.
    regards,
    iw2fvo

    Reply
    • Swagatam says

      August 19, 2020 at 8:31 pm

      Hi, you can try any 3 phase inverter explained in this website, however all these designs are extremely complex and not recommended for newcomers.

      Reply
  15. W.C.Jayashan says

    June 2, 2020 at 8:31 am

    Thanks for your quick response sir,
    in 3 phase osscilators it uses opamps and capacitors, but when using real world capacitors it is very hard to achieve the phase shift accurately … as I know even slightly difference of phase angle will cause unbalanced load…. this is not good for motors…
    Is there any way that I can generate accurate three phase signal or , phase shift spwm signal which I have generated by comparing triangular and sine waves…
    Thanks a lot sir

    Reply
    • Swagatam says

      June 2, 2020 at 7:26 pm

      The 3 phase code generation is given in the above article, but it cannot be changed through an external feed or pot regulation.

      Reply
  16. W.C.Jayashan says

    June 2, 2020 at 1:33 am

    Dear sir,
    how can I vary the frequency of three-phase square wave ..
    thanks a lot..

    Reply
    • Swagatam says

      June 2, 2020 at 7:55 am

      Hello W.C.Jayashan, The frequency is programmed in the Arduino code so it cannot be varied continuously. If you use a discretely built 3 phase oscillator circuit for feeding the H-bridge stage then it may be possible to vary the frequency with a pot.

      Reply
  17. Shuvam Das says

    March 7, 2020 at 11:14 am

    Hi Swagatam
    For this circuit I don’t need antransformer right??

    Reply
    • Swagatam says

      March 7, 2020 at 2:41 pm

      That’s right, if the input 310V DC is available.

      Reply
      • Shuvam Das says

        March 24, 2020 at 1:52 pm

        Hi Swagatam
        I have made the circuit and I have given 25v dc input
        And in 3 phase ac output I am getting 13v phase-neutral but when I am trying to measure phase-phase it shows zero

        Reply
        • Swagatam says

          March 25, 2020 at 9:27 am

          Hi Shuvam, you must have an oscilloscope to check whether the IC output is generating the required frequency or not, and whether it is really oscillating or not. We cannot troubleshoot this circuit through multimeter

          Reply
          • Shuvam Das says

            March 25, 2020 at 3:57 pm

            Hi Swagatam
            Actually I don’t have an oscilloscope
            Is there any other way of troubleshooting this
            And also is the DC voltage too low??

            Reply
            • Swagatam says

              March 26, 2020 at 9:26 am

              Hi Shuvam, without scope we can’t guess what is the situation of the oscillations, whether is it perfectly happening or not? So it can be very difficult to know the working status of the IC.

              Reply
          • Shuvam Das says

            March 30, 2020 at 9:46 am

            Hi Swagatam
            I can’t get it to work a I don’t have a oscilloscope now
            So is there any other suggestions from you
            It will great help thank you

            Reply
            • Swagatam says

              March 30, 2020 at 12:02 pm

              Hi Shuvam, you can try the following circuit instead which is much easier:
              https://www.homemade-circuits.com/wp-content/uploads/2013/10/3phase-driver.jpg

              build and test each stage separately first.

              You can do the same for your existing design…..separate the 3 stages and check them.
              check frequency at the Rt/Ct point, and across the load….check by connecting a small load like bulb.

              Reply
  18. Shuvam Das says

    February 21, 2020 at 11:32 pm

    Hi Swagatam
    The output will be square wave right??
    And if I rectify that using a 3 phase rectifier can I use that DC for Electronic circuits??

    Reply
    • Swagatam says

      February 22, 2020 at 9:11 am

      Hi Shuvam, can you please tell me what exactly are you trying to make? I am not getting why you want to convert AC to DC to AC and back to DC?

      Reply
      • Shuvam Das says

        February 22, 2020 at 10:39 pm

        Hi Swagatam
        Actually I am using 3 phase AC to get the DC and then that DC for application like adapters

        Reply
        • Swagatam says

          February 23, 2020 at 9:13 am

          Shuvam, In that case you can try the following concept:

          https://www.homemade-circuits.com/how-to-convert-3-phase-ac-to-single/

          Reply
          • Shuvam Das says

            February 23, 2020 at 11:44 pm

            Hi Swagatam
            For the 12v and 220v DC you have given a common ground point right???

            Reply
            • Swagatam says

              February 24, 2020 at 8:59 am

              Hi Shuvam, That’s correct, the ground line common for the entire system

              Reply
  19. Shuvam das says

    February 3, 2020 at 1:09 pm

    Hi
    At the last driver circuit the mosfet you used is IRF540 right???
    And can I give a supply of 12v instead of 220v there

    Reply
    • Swagatam says

      February 3, 2020 at 1:36 pm

      The last circuit uses IGBTs, not MOSFETs

      Reply
      • Shuvam das says

        February 4, 2020 at 11:51 am

        Hi Swagatam
        Yeah I meant which IGBT did you use??
        And instead of 220v if use like 12v the circuit will work right??

        Reply
        • Swagatam says

          February 4, 2020 at 12:43 pm

          Hi Shuvam, the design is taken from the datasheet of the IC. 12V can be used, but then the output will be 8.5V AC. To get 220V you must use 310V DC for the IGBTs.

          Reply
          • Shuvam das says

            February 4, 2020 at 2:02 pm

            Hi Swagatam
            So I calculated that if I want to get around 30V Ac I have to give 40V Dc approximately
            And I had another query that I can use this 3 phase AC as a input to a 3phase Rectifier right???

            Reply
            • Swagatam says

              February 4, 2020 at 4:20 pm

              Hi Shuvam, yes to get 30V AC you will need slightly higher than 40 V Dc. You can use a 6 diode rectifier for rectifying a 3 phase AC, which will convert the 30 V AC back to 40 V DC

              Reply
          • Shuvam das says

            February 4, 2020 at 4:39 pm

            Hi Swagatam
            I just wanted to ask that the 3 phase output of the inverter will be square wave or sinusoidal in nature???
            And if it is square then how can I filter it to get sine wave

            Reply
            • Swagatam says

              February 5, 2020 at 7:50 am

              Hi Shuvam, the output will be square wave, it can be converted into sinewave by chopping the gates of low side MOSFEts or IGBTs with SPWM….that’s a slightly complex process

              Reply
            • Shuvam das says

              February 5, 2020 at 3:58 pm

              Hi Swagatam
              Can I do the filtering of the square wave with some external circuit

              Reply
              • Swagatam says

                February 5, 2020 at 5:15 pm

                Hi Shuvam, you can add 5uF capacitor at the output side AC, it may help to improve the square to sine wave.

                Reply
      • Shuvam Das says

        February 19, 2020 at 5:30 pm

        Hi Swagatam
        Which IGBT should I use
        Can I use irf540???
        Thanks

        Reply
        • Swagatam says

          February 19, 2020 at 7:59 pm

          Hi Shuvam, You can use IRF540 instead of IGBTs

          Reply
          • Shuvam Das says

            February 21, 2020 at 6:02 pm

            Hi Swagatam
            Just confirming that this is a practically working circuit??
            Cause I am going to use it for my project
            I am making a PCB of it
            So I was just making sure
            Thanks

            Reply
            • Swagatam says

              February 21, 2020 at 8:40 pm

              Hi Shuvam, the circuits are taken from the datasheet of the IC so it cannot be wrong. Nevertheless it is a complex circuit and is recommended only for electronic experts. If you get stuck somewhere you should be able to troubleshot it quickly. If you are confident about this then you can proceed without any worries, otherwise not!

              Reply
  20. Sebastian Namukolo says

    December 20, 2019 at 7:58 pm

    Hi Swagatam
    good to find your site and a person like you. I am an electrical engineer from Zambia. I am interested in fabricating a 5KW single phase inverter.I understand all involved about inverters but have not fabricated any. I would like to buy ready made schematic and all the gerber files and step by step guidance. please quote me for this.

    regards
    Sebastian

    Reply
    • Swagatam says

      December 21, 2019 at 9:11 am

      Thank you Sebastian, I appreciate your interest, however I do not sell schematics or files, I only provide general help through my articles and comment queries.

      Reply
  21. mathieu says

    October 25, 2019 at 12:14 am

    Hello Swag!
    is there a IC instead of a microcontroller to make a 3 phase signal?
    thank you

    Reply
    • Swagatam says

      October 25, 2019 at 10:59 am

      Hello Mathieu, you can refer to this article:

      https://www.homemade-circuits.com/three-phase-inverter-circuit/

      Reply
  22. joao ferreira says

    October 17, 2019 at 4:36 pm

    you this text you say 1n4148 is recommended over 1n4007. 1n4148 is 100 V. 1n4007 is 1000 V. In the ir2112 Vs pin you will have 230 V which means 1n4148 will cabuuuuuuuummmm. Please explain…

    regards

    Reply
    • Swagatam says

      October 17, 2019 at 8:36 pm

      In that case the IC and the capacitor should also burn. The effective voltage across the diode will be equal to 220V + Vcc – 220V, so there’s no chance of anything blowing. It’s a complex process which cannot be explained briefly here.

      Reply
  23. Shubham samal says

    October 2, 2019 at 10:58 am

    Sir
    Can you send the full circuit diagram of 3phase Inverter circuit for 415 v
    ie, 1phase should have 230v 50hz
    My email address is shubhamsamal27@gmail.com

    Reply
    • Swagatam says

      October 2, 2019 at 5:40 pm

      It is already given in some articles under this category:

      https://www.homemade-circuits.com/category/3-phase-power/

      Reply
  24. joao says

    September 18, 2019 at 9:23 pm

    Lets simplify and forget the 3 phases and think about how to make an inverter from 230 V DC to 230 V AC (not a square wave but a sin wave output)
    In reality what I want is something like this:

    but WITHOUT the transformer since I already have 230 V DC…
    In this site they use a very nice 100 KHz arduino code with 200 points sampling on each 20ms (50 Hz) to build 2 really good complementary SPWM over pins 9 and 10 (not the nasty one I sent you in one of my first posts…) and they say the output in the secondary of the transformer is sin wave. What I don’t understand is why do I have to have the transformer to achieve this and in order to avoid it I have to put lots of extra hardware with more and more SPWM. Please take a look and give me feedback. Best regards.

    Reply
    • Swagatam says

      September 19, 2019 at 10:18 am

      I have already designed a better one here:

      https://www.homemade-circuits.com/arduino-pure-sine-wave-inverter-circuit/

      To avoid transformer you will need a H-bridge or full bridge topology for the push pull effect and for AC output, and for this you can try this topology:

      https://www.homemade-circuits.com/arduino-full-bridge-h-bridge-sinewave-inverter-circuit/

      For implementing this SPWM directly in 3 phase HIN and LIN of a full brdige IC you will need complementary 120 degrees phase shifting SPWM code or circuit. That looks so unnecessarily complex. That is why I designed the low side mosfet control method which is a great and an easy way to achieve pure sine in full bridge transformerless inverter

      Reply
      • Joao Ferreira says

        September 19, 2019 at 1:55 pm

        I know im being a pain to you… Thank you for supporting me. I really need 3 phase and a sin wave output and I dont want 3 transformers. However Im totally lost. The only think I decided was the 800V mosfet that i already buy. Also, since I feel confortable with arduino I want to avoid 555 timers etc and I want to generate spwm, ]pwm, whatever in it. Really (and thinking only 1 phase to simplify) i still dont understand why the rectangular wave works and the spwm does not. After all spwm is rectangular wave with a complex frequency… Please make a simplest as can be complete diagram of your sin wave 3 phase solution using only the arduino as timer because im totally lost at your site.

        Reply
        • Swagatam says

          September 19, 2019 at 4:37 pm

          No problem. I would first advise you to build a basic 3 phase inverter successfully using the recommended IC, and then you can feed the SPWM through an opamp based design at the low side MOSFeTs:

          The simplest SPWM circuit is given here:

          https://www.homemade-circuits.com/how-to-generate-sinewave-pwm/

          Reply
  25. joao says

    September 18, 2019 at 2:47 pm

    I decided to use 1 IRS2330 instead of 3 IR2112 because it’s easier to upgrade in the future to your diagram using the SPWM…
    However, you wrote:
    “The first diagram is wired using six NOT gates from the IC 4049. This stage is used for bifurcating the Arduino PWM pulses into complementary high/low logic pairs so that the a bridge 3 phase inverter driver IC IC IRS2330 can be made compatible with the fed PWMs.”
    Can you explain me better?
    In IRS2330, the HIN and LIN are both complementary so I don’t understand the bifurcating diagram where you get HIN through 2 NOT gates and LIN through 1 NOT gate. Is it really necessary to use NOT gates? I think the only thing that would happened if you directly feed the original rectangular wave of the arduino in HIN and LIN would be an out of phase output related to the arduino wave. But would that be a problem?

    Reply
    • Swagatam says

      September 18, 2019 at 5:26 pm

      The IC has 6 inputs ( 3 pairs of HIN/LIN), and the Arduino gives 3 outputs, therefore the Arduino 3 phase signal needs to be divided into six outputs for the 6 HIN LIN inputs of the 3 phase IC, using NOT gates. This can be also done through NPN transistors as shown in the second diagram.

      Reply
    • Joao Ferreira says

      September 18, 2019 at 5:49 pm

      In the second diagram the IC is not the same because the input is not complementary. Just to be sure, can you recheck the bifurcation diagram? It s not making sense to me…

      Reply
      • Swagatam says

        September 18, 2019 at 8:41 pm

        Both the ICs are one and the same with their characteristics, the IRS2330 has the 3 ICs embedded in one that’s the only difference…rest everything is exactly identical, the HIN/LIN are complementary for both the variants.

        Please let me know why it is not making sense…the NOT gates are inverters, they will invert the input signal at their output

        Reply
      • Joao Ferreira says

        September 18, 2019 at 8:52 pm

        Because in the datasheet one IC has overscore over HIN an LIN and the other doesnt

        Reply
        • Swagatam says

          September 18, 2019 at 9:05 pm

          Overbar means the specific pins become active when the input signal it LOW. HIN and LIN are always complementary or reciprocal to each other in full bridge ICs as far as I know.

          Reply
          • Joao Ferreira says

            September 18, 2019 at 9:27 pm

            Ok. Then one IC is active when hin is low because it has overbar and the other IC is active when hin is high because it does not have overbar. My point is that the input cannot be the same on both IC

            Reply
            • Swagatam says

              September 19, 2019 at 10:22 am

              HIN an LIN inputs should never have same polarity at any instant, that’s why we say complementary, meaning equal and uniform but opposing in nature…for example BC547/BC557 transistor, they are NPN/PNP complementary pair.

              That’s why I used NOT gates which will invert the corresponding signals, I have already explained this to you in the previous comment

              Reply
            • Joao Ferreira says

              September 19, 2019 at 1:35 pm

              Im not saying that hin and lin could have the same polarity. Im saying that hin_overbar from one IC may have different polarity from hin_WITHOUToverbar of the other IC. Otherwise I cannot undertand why the overbar is there for one IC and not for the other

              Reply
              • Swagatam says

                September 19, 2019 at 4:22 pm

                It means the internal circuit of IC responds only as soon as the pins go to a low state from a high state. No overbar may have the opposite rule, it will respond to positive logic.

                Reply
            • joao ferreira says

              September 19, 2019 at 4:46 pm

              So the logic depends on IC as I suspected from the beggining. I cannot use the same logic in IR2112 and in IRS2330…

              Reply
              • Swagatam says

                September 19, 2019 at 5:17 pm

                The logics are turning ON/OFF alternately continuously, so doesn’t actually matter how the IC responds, it’s only the sequence that needs to be correct,

                Reply
            • Joao Ferreira says

              September 19, 2019 at 6:23 pm

              Thats what i said at the beginning. But then the output wave can be out of phase with the input logic… i believe it does not matter…

              Reply
              • Swagatam says

                September 19, 2019 at 7:49 pm

                The pins are complementary and the duty cycle is 50% so being out of phase is not relevant. All such ICs work with the same principle with their input clock specs as far as I know.

                Reply
  26. joao ferreira says

    September 17, 2019 at 4:25 pm

    The resulting 3 phase 220V AC will be square wave? Instead of using a square PWM produced by arduino with the code you’ve posted, could you use a SPWM arduino code instead, (which already has a frequency adjustment with a potentiometer)?

    Can this change at the input give you a sin wave at the output with your setup?

    Reply
    • Swagatam says

      September 17, 2019 at 4:54 pm

      That is not SPWM, that is pure sine wave which cannot be used for 3 phase inverter. It will eventually result in square wave at the output and will produce unpredictable effects. You will have to use rectangular wave as described in the above article. External SPWM can be used at the low side mosfets for getting sinewave output

      Reply
      • joao ferreira says

        September 17, 2019 at 5:02 pm

        Thank you very much… Then I will stay with your square wave code, but I will improve it to be able to adjust frequency with the potentiometer

        “External SPWM can be used at the low side mosfets for getting sinewave output”
        Can you provide me a link for that?

        Reply
        • Swagatam says

          September 17, 2019 at 8:47 pm

          You are welcome! No problem!

          The 3rd diagram in the following article shows an example how the low side devices of a 3 phase inverter can be controlled using SPM

          https://www.homemade-circuits.com/3-phase-induction-motor-speed/

          Reply
          • joao ferreira says

            September 17, 2019 at 9:25 pm

            Thanks again,

            I’m going to buy STW30N80K5 instead of IRF450 MOSFET. Do you think its a good idea?

            Reply
            • Swagatam says

              September 18, 2019 at 11:05 am

              The STW is 800V, while IRF is 500V, it is recommended to choose a MOSFET that closely matches the working voltage specs of the system… if you circuit is rated at 310V then you must look for MOSFETs rated within 400V and 500V

              Reply
            • joao says

              September 18, 2019 at 2:12 pm

              Hi,
              I’m going to connect 18 solar panels with 35 V each in a serial setup, so I will have 630 V in the DC bus… In the near future, I also want to upgrade to a variable frequency device and I was thinking on using a full rectifier 3 phase bridge with 6 diodes which will give me also close to 600 V DC peak voltage in the DC bus with a small ripple which I think avoids a capacitor…
              So, 800 V MOSFET seems good to me…
              However I also intend to use this setup right now, to convert 2 phase in 3 phase, feeding L and N in the same 3 phase full rectifier bridge and in that case I will have less then 400 V DV peak in the DC bus and with a bigger ripple. Do you think the same 800 V MOSFET is totally unacceptable?
              Another related question… The bigger ripple in the DC bus demands a capacitor? In afirmative case, which one?
              All the best.
              Regards

              Reply
              • Swagatam says

                September 18, 2019 at 5:20 pm

                Hi, I think it’s fine to use the 800V mosfets, actually it’s the ID that must higher than the required output specs…

                For the capacitor you an try 100uF/400V…although higher values will give better results…

                Reply
          • joao ferreira says

            September 17, 2019 at 10:01 pm

            It seems too much complicated, but convinced me to use at least the IC IRS2330 approach instead of IR2112. Later maybe I can upgrade to this beauty…

            Reply
            • Swagatam says

              September 18, 2019 at 11:05 am

              OK, no problem…

              Reply
            • Ashley says

              September 15, 2020 at 7:18 am

              Swagatam your a Saint!!!!

              Reply
    • joao says

      October 5, 2019 at 4:45 pm

      Hi,
      Lets forget (for now) the 3 phase integration and lets say I’m able to build 3 independent real SPWM 1 phase VFD that are exactly 120 degrees de phased from each other, no matter the frequency I choose in real time with a potentiometer. I have done an Arduino Mega code that implements this and I want to share it. This always gives square waves (0 or 5 V) so I think the problem of unpredictable results at the output won’t be a question. How can I send you the code?

      Reply
      • Swagatam says

        October 5, 2019 at 5:02 pm

        Hi, there’s no chance of any unpredictable results in the above shown circuits.
        If your code is prefect you can send it to me through as a comment,I’ll post it in the above article with your credentials, and then delete the comment.

        Reply
      • Joao says

        October 5, 2019 at 5:17 pm

        I have sent the code by email to you. Please test it and send feedback (unfortunately it only works on arduino mega, because uno does not have enough timers and the coding for uno or nano would still be possible but the complexity would be too big…). The 3 trigger parts of the code are there just to trigger an osciloscope and check if all waves keep sync all over a long time… And they do…

        Reply
        • Swagatam says

          October 5, 2019 at 6:22 pm

          I thought you have tested it. Since I have a single channel oscilloscope it won’t be possible for me to test the 120 degree phase shift

          Reply
        • Joao says

          October 6, 2019 at 1:49 pm

          Did you receive the code? Try it with 1 channel.

          Reply
          • Swagatam says

            October 6, 2019 at 4:20 pm

            Sorry friend, just checking the PWM won’t make sense..it’s the 120 degree phase and the complementing PWMs that are crucial and needs to be verified using 3 channel scope. By the way I did not receive any email from you.

            Reply
            • Joao says

              October 6, 2019 at 4:39 pm

              My friend. But i have sent the code to the email where I receive the notifications… sending the code as a comment also does not make.sense. Regards and all the best.

              Reply
  27. JOAO says

    September 17, 2019 at 3:31 pm

    Hi,
    In your diagram you print irs2608d.
    However in the listed parts you say IR2112 and I think the pinout in the diagram is for IR2112, because irs2608d has only 8 pins… Please confirm that the irs2608d has nothing to do with this…
    Also, you say this:
    “if the mosfet IRF450 is used with a switching frequency of 100kHz”. How can you control this frequency?
    Regards.
    Joao

    Reply
    • Swagatam says

      September 17, 2019 at 4:22 pm

      Hi,

      yes you are right, It is IR2112 but you can use IRS2608 also with its own specified configuration. It is easier and will require only one bootstrap capacitor.
      The frequency is which is applied on the Hin Lin inputs of the ICs

      Reply
      • Joao says

        September 17, 2019 at 4:42 pm

        The IRS2608 uses “complement LIN” instead of LIN. I think I will stick with IR2112 instead…
        So, the switching frequency of IRF450 with your arduino code is 50 Hz (very far from 100KHz…)

        Reply
  28. jonny says

    September 7, 2019 at 5:47 pm

    hi, how mush the max ampere i can use in the load

    Reply
    • Swagatam says

      September 7, 2019 at 6:15 pm

      it will depend on the transformer wattage and the battery power specs, it can be any value as desired by you

      Reply
  29. waqas imdad says

    August 20, 2019 at 12:25 pm

    i am stuck in to design 3 – phase VFD can you give me any Solution. i try last one month.

    Reply
    • Swagatam says

      August 20, 2019 at 1:59 pm

      please explain your problem, if possible I’ll try to help!

      Reply
  30. Vinod says

    August 16, 2019 at 2:48 pm

    Hi,
    can u please tell me, you connected 1uf/25 b/w Vb &Vs of IR2608D ic and HO Mosfet emitter, when mosfet would be ON then +220VDc would appear here then this above said capacitor would burn due to low voltage rating and reverse polarity?

    Reply
    • Swagatam says

      August 17, 2019 at 10:14 am

      Hi, I don’t think so the capacitor has to be higher than the MOSFET drain potential. The charge at the MOSFET pushes the existing VDD charge inside the capacitor to a level such that the effective potential applied at the MOSFET gate is higher than the source potential by a magnitude of VDD

      Reply
  31. Morgan says

    August 10, 2019 at 10:56 am

    Hello

    Can i use this circuit for a 5kW and 50Hz output. Its application is converting DC from solar into three phase AC.

    Reply
    • Swagatam says

      August 10, 2019 at 12:13 pm

      Hello Morgan, yes you can use it for the mentioned application. But please note that the code was referred from a forum, and it’s not verified by me yet.

      Reply
  32. Sohail says

    July 7, 2019 at 2:04 pm

    Hi dear i want to make a 3 phase convetr for 20hp moter ,,,i have 30 soler panal 340w 30volt please help me

    Reply
    • Swagatam says

      July 7, 2019 at 5:17 pm

      Hi, you can implement the design explained in the above article, but you may have to use high power MOSFETs for this.

      Reply
  33. milon says

    July 4, 2019 at 2:21 pm

    hi dear,
    i want to use pwm signal from micro-controller unit.but i dont know how to control frequency. pls tell me if i use PWM controller as your previous circuit to the bridge mosfet on the low side.. is it possible for controlling?
    another problem is that ,i made a DC bus using 680uf 400v capacitor .But when i connect with mosfet terminal. it created sparks and mosfet has been damaged. Actually how many value of capacitor will be needed for pure DC filtering.?

    thanks

    Reply
    • Swagatam says

      July 4, 2019 at 5:05 pm

      Hello, where do you want you use PWM? Please provide link of the article, so that I can understand correctly.

      Reply
  34. Kingsley says

    July 4, 2019 at 5:30 am

    Hello Dear Swagatam!
    Please I want to try this 3 phase arduino inverter but i would like to incorporate a three (3) phase AC voltage meter to display the AC voltages on the 3-phase outputs. Please can you help me with the arduino code too?

    Reply
    • Swagatam says

      July 4, 2019 at 10:53 am

      Hello Kingsley, I am sorry, coding can be difficult for me because I haven’t mastered Arduino yet

      Reply
      • Kingsley says

        July 6, 2019 at 2:37 pm

        OK boss.
        Thank you.

        Reply
  35. Abhaya Jaiswal says

    June 11, 2019 at 8:38 am

    hello sir, i need code to vary frequency and voltage of three -phase Inverter to keep v/f ratio constant.
    can u help me?

    Reply
    • Swagatam says

      June 11, 2019 at 10:15 am

      Hi Abhaya, for a 3 phase it looks difficult, it may not be possible from me. Sorry about it!

      Reply
  36. Matthias Ameh says

    April 16, 2019 at 7:42 pm

    hi, please can i write this code to Atmega328p

    Reply
    • Swagatam says

      April 16, 2019 at 9:29 pm

      sorry, I am not sure about it!

      Reply
    • Kingsley says

      July 4, 2019 at 6:14 am

      Hello, If you compile and export the compiled hex file from your arduino IDE to your local system folder, the you can burn the hex file into Atmega328P microcontroller IC using Universal USB programmer. I have tried that with arduino sketches.

      another way to do that is to upload the sketch into Atmega328P using arduino UNO board after that, remove the IC from the arduino board and then build the circuit on your own PCB or veroboard using 14×14 (28pins) IC socket after which you can now socket your programmed Atmega328P IC into the IC socket.

      NB: IF YOU ARE USING A BRAND NEW ATMEGA328P APART FROM THE ONE THAT COMES WITH THE ARDUINO UNO BOARD, THEN YOU MUST SET THE FUSE BIT, LOCK BIT etc AND UPLOAD BOOTLOADER TO THE IC BEFORE IT CAN ACCEPT THE UPLOADING OF SKETCH THROUGH ARDUINO BOARD. OTHERWISE, GO FOR THE FIRST SUGGESTION!

      Thank You.

      Reply
  37. ahmed says

    April 5, 2019 at 12:54 pm

    hi sir can u plz explain if the VSS pin and COM.pin of ic ir2110 are connected to the ground of input dc voltage…I’m confused because my igbts r getting hot even on 12 CDC

    Reply
    • Swagatam says

      April 5, 2019 at 3:52 pm

      Hi Ahmed, yes all the common grounds must be joined together according to the datasheet, otherwise the devices will not conduct.

      You can disconnect the grounds and check whether your IGBTs work or not.

      Reply
  38. ahmed says

    April 5, 2019 at 12:50 pm

    sir can u tell that is the pin VSS and pin COM..from ic ir2110 are corrected direct to the input ground of igbt?…I’m confused because my igbts r getting hot even on 12vdc input…

    Reply
  39. Emmie says

    February 4, 2019 at 4:07 pm

    Good day sir.. Please sir I need your assistance I want to produce a pure sinewave solar inverter that can carry 5 air conditioner of 5horse power for up to 8 to 12 hrs…. Please Sir I need the diagram and the quantities of solar panels with the watts and the batteries with the current ratings….. Thanks sir and God bless you

    Reply
    • Swagatam says

      February 4, 2019 at 4:39 pm

      Thanks Emmie, Please see this article, you will get all the details regarding the required calculations:

      https://www.homemade-circuits.com/2013/05/how-to-calculate-and-match-solar-panel.html

      Let me know if you have further queries!

      Reply

Primary Sidebar



Categories

  • 3-Phase Power (15)
  • 324 IC Circuits (19)
  • 4017 IC Circuits (52)
  • 4060 IC Circuits (25)
  • 555 IC Circuits (98)
  • 741 IC Circuits (19)
  • Amplifiers (59)
  • Arduino Engineering Projects (83)
  • Audio Projects (94)
  • Battery Chargers (83)
  • Car and Motorcycle (94)
  • Datasheets (46)
  • Decorative Lighting (Diwali, Christmas) (32)
  • DIY LED Projects (89)
  • Electronic Components (97)
  • Electronic Devices and Circuit Theory (35)
  • Electronics Tutorial (109)
  • Fish Aquarium (5)
  • Free Energy (34)
  • Fun Projects (12)
  • GSM Projects (9)
  • Health Related (19)
  • Heater Controllers (28)
  • Home Electrical Circuits (100)
  • How to Articles (20)
  • Incubator Related (6)
  • Industrial Electronics (28)
  • Infrared (IR) (40)
  • Inverter Circuits (98)
  • Laser Projects (12)
  • LM317/LM338 (21)
  • LM3915 IC (25)
  • Meters and Testers (64)
  • Mini Projects (156)
  • Motor Controller (66)
  • MPPT (7)
  • Oscillator Circuits (24)
  • PIR (Passive Infrared) (8)
  • Power Electronics (33)
  • Power Supply Circuits (74)
  • Radio Circuits (9)
  • Remote Control (47)
  • Security and Alarm (61)
  • Sensors and Detectors (118)
  • SG3525 IC (5)
  • Simple Circuits (74)
  • SMPS (29)
  • Solar Controllers (60)
  • Timer and Delay Relay (53)
  • TL494 IC (5)
  • Transformerless Power Supply (8)
  • Transmitter Circuits (40)
  • Ultrasonic Projects (14)
  • Water Level Controller (45)


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


You can also Chat with me here:

Facebook
Twitter
YouTube
Instagram
My Facebook-Page
Quora



© 2022 · Swagatam Innovations

We use cookies on our website to give you the best experience.
Cookie settingsAccept All
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Please visit the Privacy Policy Page for more info.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT