Robotcraft and retrofit
Главная | Switching Power Supply | Регистрация | Вход
Суббота
28.12.2024
18:24
Приветствую Вас Гость | RSS
     
 
  http://microcontrollerslab.com/modified-sine-wave-inverter-using-pic-microcontroller/
   
 

Modified sine wave inverter using pic microcontroller

August 10, 2014 Inverters 8 Comments

 

Modified sine wave inverter is designed to using pic microcontroller and push pull topology. MOSFET used as a switches in Push pull operated through control circuit in such a way that iron core transformer produced step up battery voltage having modified sine wave form. PIC16F87A microcontroller is used to generated control signal to derive. Control circuit is also discussed at the end of this article. MOSFET driver IR2210 is used as a MOSFET driver to drive both low side mosfet. If you don’t have idea about MOSFET driver IR2110, I recommend you to go through following article to know how to use MOSFET driver IR2110 as a low side MOSFET driver.

How to use Mosfet driver IR2110

IRF3205 MOSFET is used a switch of in push pull topology. Block diagram of Modified sine wave inverter is shown in figure :

block diagram of modified sine wave inverter

block diagram of modified sine wave inverter

Page Contents [hide]

Control Circuit :

Control circuit is used to generate signals for MOSFET driver which turn on and turn off MOSFET of push pull high voltage transformer is such a way that Modified sine wave is produced at the output of high voltage step up transformer. PIC16F877A microcontroller is used to generate control signal. AND gate or NOT gate is used to generate two signals for low side MOSFETS in such a way that only one MOSFET on at a time. Remember if both MOSFETs turn on at the same time, short circuit will occur and it will damage your inverter with in few seconds if you have not used protection circuit. Output of control signals and circuit diagram is shown below :

control circuit for modified sine wave inverter

control circuit for modified sine wave inverter

output of control circuit for modified sine wave inverter

output of control circuit for modified sine wave inverter

Push pull circuit and transformer selection:

Push pull topology and iron core transformer is used to in this project to generate modified sine wave. Circuit diagram of push pull transformer is shown below. MOSFET driver IR2210 is used as low side MOSFET drivers to drive to low side MOSFETs. Because to operate MOSFETS fully we need to give gate signal of 10 volt and voltage level of control signals from control circuit is about 5 about which is not enough to drive MOSFETS fully. That’s why MOSFET driver is used to driver low side MOSFETS. Remember I have used only one MSFET with legs of push pull transformer. You should connect MOSFETS in parallel according to power rating of your inverter and also use proper heat sinks for MOSFET.

NOTE: Use separate heat sinks for MOSFETS connect to upper and lower leg of push pull transformer.Otherwise drains of both sides will become short and short circuit will occur. I did this mistake when I started working on power electronics projects and  got serious shok

 

 

Parallel combination of diode and resistor is used to discharge gate capacitance fast to turn off  Mosfet before turning on mosfet connected to other leg of push pull transformer. 12 volt battery is used as a DC source to which we want to convert into modified sine wave AC voltage.you can also use 24 volt battery bank , but then you have to select push pull transformer which step up voltage from 24/1.414 into 220 volt AC.  Circuit diagram of is shown below :

pusl pull transformer circuit diagram

push pull transformer circuit diagram

Complete circuit diagram and output wave form :

Complete circuit diagram and output wave form of modified sine wave is shown in figure below :

complete circuit diagram of modified sine wave inverter

complete circuit diagram of modified sine wave inverter

Output wave from of  modified sine wave inverter :

output of modified sine wave inverter

output of modified sine wave inverter

 LIST OF COMPONENTS :

Components list :
Resistors,"R1",10R,
Resistors,"R3",10R,
Resistors,"R2",1k,
Resistors,"R4",1k,
Resistors,"R5",300,
Resistors,"R10",10k,
Capacitors,"C1",1000uF,
Capacitors,"C2",100nF,
Capacitors,"C3",100nF,
Integrated Circuits,"U1",IR2112,
Integrated Circuits,"U2",IR2112,
Integrated Circuits,"U3",PIC16F877A,
Integrated Circuits,"U4",AND gate,
Integrated Circuits,"U5",AND gate,
Integrated Circuits,"U6",40106,
Transistors,"Q1",IRF3205,
Transistors,"Q2",IRF3205,
Diodes,"D1",1N4148,
Diodes,"D2",1N4148,
crystal 12Mhz
Iron core transformer 12-220 volt

CODING :

Code is written in Mikro C and 12Mhz crystal is used. I have also explained the code with comments, but if you still have any issue, you can ask me by commenting on this post. Share this article with your friends.

//************************bilalmalikuet@gmail.com***********
unsigned cnt;

void interrupt() {

cnt++;
if (cnt==3)
PORTC.f2 = 1; // Toggle PORTB LEDs
else if (cnt==17)
PORTC.f2 = 0; // Toggle PORTB LEDs
else if (cnt==20)
{
cnt=0;
PORTB.f1 = ~PORTB.f1; // Toggle PORTB LEDs
}
TMR1IF_bit = 0; // clear TMR0IF
TMR1H = 0xf6; // Initialize Timer1 register
TMR1L = 0x65;
}
void main() {

TRISB =0; // PORTB is output
TRISC=0;
PORTC=0;

PORTB = 0x00; // Initialize PORTB
T1CON= 0b00000001; // Timer1 settings
TMR1IF_bit = 0; // clear TMR1IF
TMR1H = 0xf6; // Initialize Timer1 register
TMR1L = 0x65;
TMR1IE_bit = 1; // enable Timer1 interrupT
INTCON = 0xc0; // Enable TMRO interrupt
cnt=0;
do {

PORTC.F0=1;
delay_ms(1000);
PORTC.F0=0;
delay_ms(1000);
} while(1);
}

If you feel you have gained useful knowledge through this article  , share it with your friends on social media. Because I believe the more knowledge you share, the more you will get. :)

 
 

Sunday, January 20, 2013

Using the high-low side driver IR2110 - explanation and plenty of example circuits

 
 
In many situations, we need to use MOSFETs configured as high-side switches. Many a times we need to use MOSFETs configured as high-side and low-side switches. Such as in bridge circuits. In half-bridge circuits, we have 1 high-side MOSFET and 1 low-side MOSFET. In full-bridge circuits we have 2 high-side MOSFETs and 2 low-side MOSFETs. In such situations, there is a need to use high-side drive circuitry alongside low-side drive circuitry. The most common way of driving MOSFETs in such cases is to use high-low side MOSFET drivers. Undoubtedly, the most popular such driver chip is the IR2110. And in this article/tutorial, I will talk about the IR2110.
 
You can download the IR2110 datasheet from the IR website. Here's the download link:
 
First let’s take a look at the block diagram and the pin assignments and pin definitions (also called lead assignments and lead definitions):
 
 
Fig. 1 - IR2110 block diagram (click on image to enlarge)

 
 
 
 
 Fig. 2 - IR2110 Pin/Lead Assignments (click on image to enlarge)
 
 
Fig. 3 - IR2110 Pin/Lead Definitions (click on image to enlarge)

 
 
 
Notice that the IR2110 comes in two packages – 14 pin through-hole PDIP package and the 16-pin surface mount SOIC package.

Now let's talk about the different pins.
 
 
VCC is the low-side supply and should be between 10V and 20V. VDD is the logic supply to the IR2110. It can be between +3V to +20V (with reference to VSS). The actual voltage you choose to use depends on the voltage level of your input signals. Here’s the chart:
 
 
Fig. 4 - IR2110 Logic "1" Input Threshold vs VDD (click on image to enlarge)
 
 
 
It is common practice to use VDD = +5V. When VDD = +5V, the logic 1 input threshold is slightly higher than 3V. Thus when VDD = +5V, the IR2110 can be used to drive loads when input “1” is higher than 3 point something volts. This means that it can be used for almost all circuits, since most circuits tend to have around 5V outputs. When you’re using microcontrollers the output voltage will be higher than 4V (when the microcontroller has VDD = +5V, which is quite common). When you’re using SG3525 or TL494 or other PWM controller, you are probably going to have them powered off greater than 10V, meaning the outputs will be higher than 8V when high. So, the IR2110 can be easily used.
 
You may lower the VDD down to about 4V if you’re using a microcontroller or any chip that gives output of 3.3V (eg dsPIC33). While designing circuits with the IR2110, I had noticed that sometimes the circuit didn’t work properly when IR2110 VDD was selected as less than +4V. So, I do not recommend using VDD less than +4V.
 
In most of my circuits, I do not have signal levels which have voltages less than 4V as high and so I use VDD = +5V.
 
If for some reason, you have signals levels with logic “1” having lower than 3V, you will need a level converter / translator that will boost the voltage to acceptable limits. In such situations, I recommend boosting up to 4V or 5V and using IR2110 VDD = +5V.
 
 
Now let’s talk about VSS and COM. VSS is the logic supply ground. COM is “low side return” – basically, low side drive ground connection. It seems that they are independent and you might think you could perhaps isolate the drive outputs and drive signals. However, you’d be wrong. While they are not internally connected, IR2110 is a non-isolated driver, meaning that VSS and COM should both be connected to ground.
 
HIN and LIN are the logic inputs. A high signal to HIN means that you want to drive the high-side MOSFET, meaning a high output is provided on HO. A low signal to HIN means that you want to turn off the high-side MOSFET, meaning a low output is provided on HO. The output to HO – high or low – is not with respect to ground, but with respect to VS. We will soon see how a bootstrap circuitry (diode + capacitor) – utilizing VCC, VB and VS – is used to provide the floating supply to drive the MOSFET. VS is the high side floating supply return. When high, the level on HO is equal to the level on VB, with respect to VS. When low, the level on HO is equal to VS, with respect to VS, effectively zero.
 
A high signal to LIN means that you want to drive the low-side MOSFET, meaning a high output is provided on LO. A low signal to LIN means that you want to turn off the low-side MOSFET, meaning a low output is provided on LO. The output on LO is with respect to ground. When high, the level on LO is equal to the level of VCC, with respect to VSS, effectively ground. When low, the level on LO is equal to the level on VSS, with respect to VSS, effectively zero.
 
SD is used as shutdown control. When this pin is low, IR2110 is enabled – shutdown function is disabled. When this pin is high, the outputs are turned off, disabling the IR2110 drive.
Now let’s take a look at the common IR2110 configuration for driving MOSFETs in both high and low side configurations – a half bridge stage.
 
 Fig. 5 - Basic IR2110 circuit for driving half-bridge (click on image to enlarge)
 
 
 
D1, C1 and C2 along with the IR2110 form the bootstrap circuitry. When LIN = 1 and Q2 is on, C1 and C2 get charged to the level on VB, which is one diode drop below +VCC. When LIN = 0 and HIN = 1, this charge on the C1 and C2 is used to add the extra voltage – VB in this case – above the source level of Q1 to drive the Q1 in high-side configuration. A large enough capacitance must be chosen for C1 so that it can supply the charge required to keep Q1 on for all the time. C1 must also not be too large that charging is too slow and the voltage level does not rise sufficiently to keep the MOSFET on. The higher the on time, the higher the required capacitance. Thus, the lower the frequency, the higher the required capacitance for C1. The higher the duty cycle, the higher the required capacitance for C1. Yes, there are formulae available for calculating the capacitance. However, there are many parameters involved, some of which we may not know – for example, the capacitor leakage current. So, I just estimate the required capacitance. For low frequencies such as 50Hz, I use between 47µF and 68µF capacitance. For high frequencies like 30kHz to 50kHz, I use between 4.7µF and 22µF. Since we’re using an electrolytic capacitor, a ceramic capacitor should be used in parallel with this capacitor. The ceramic capacitor is not required if the bootstrap capacitor is tantalum.
 
D2 and D3 discharge the gate capacitances of the MOSFET quickly, bypassing the gate resistors, reducing the turn off time. R1 and R2 are the gate current-limiting resistors.
 
+MOSV can be up to a maximum of 500V.
 
+VCC should be from a clean supply. You should use filter capacitors and decoupling capacitors from +VCC to ground for filtering.
 
Now let’s look at a few example application circuits of the IR2110.
 
 Fig. 6 - IR2110 circuit for high-voltage half-bridge drive (click on image to enlarge)
 
 
 
 Fig. 7 - IR2110 circuit for high-voltage full-bridge drive with independent switch control (click on image to enlarge)
 

 
 
In Fig. 7 we see the IR2110 being used to drive a full bridge. The functionality is simple and you should understand it by now. A common thing that is often done is that, HIN1 is tied/shorted to LIN2 and HIN2 is tied/shorted to LIN1, enabling the control of all 4 MOSFETs from 2 signal inputs, instead of 4 as shown below in Fig. 8.
 
 
 Fig. 8 - IR2110 circuit for high-voltage full-bridge drive with tied switch control - control with 2 input signals (click on image to enlarge)


 
 Fig. 9 - Using the IR2110 as a single high-voltage high-side driver (click on image to enlarge)

 
 
 
In Fig. 9 we see the IR2110 being used as a single high-side driver. The circuit is simple enough and follows the same functionality described above. One thing to remember is that, since there is no low-side switch, there must a load connected from OUT to ground. Otherwise the bootstrap capacitors can not charge.
 
 
 Fig. 10 - Using the IR2110 as a single low-side driver (click on image to enlarge)


 
 
 
 Fig. 11 - Using the IR2110 as a dual low-side driver (click on image to enlarge)
 

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
If you've had failures with IR2110 and had driver after driver, MOSFET after MOSFET get damaged, burn and fail, I'm pretty sure that it's due to you not using gate-to-source resistors, assuming of course that you designed the IR2110 driver stage properly. NEVER OMIT THE GATE-TO-SOURCE RESISTORS. If you're curious, you can read about my experience with them here (I have also explained the reason that the resistors prevent damage):
 
 
For further reading, you should go through this:
 
I have seen in many forums that people struggle with designing circuits with IR2110. I too had a lot of difficulty before I could confidently and consistently build successful driver circuits with IR2110. I have tried to explain the application and use of IR2110 thoroughly through explanation and plenty of examples and hope that it helps you in your endeavors with IR2110.
 
 

 

Copyright MyCorp © 2024
Бесплатный конструктор сайтов - uCoz