help with IR2110 chips

bertus

Moderator
Nov 8, 2019
3,836
Joined
Nov 8, 2019
Messages
3,836
Hello,

Do you want to create a sine wave?
Then have a look at SPWM (sine wave pulse width modulation).
You can use the signals on pin 8 and 9 to drive your H-bridge.

Bertus
 

bertus

Moderator
Nov 8, 2019
3,836
Joined
Nov 8, 2019
Messages
3,836
Hello,

Yes, as said pin 8 and 9 are the outputs (control signals for the H-bridge) of the arduino.

Bertus
 

bertus

Moderator
Nov 8, 2019
3,836
Joined
Nov 8, 2019
Messages
3,836
Hello,

The program will give pulses in positive and negative direction with buildin delays.

Bertus
 

Delta Prime

Jul 29, 2020
2,987
Joined
Jul 29, 2020
Messages
2,987
do you still need dead time bertus?
Dead times are necessary to mitigate any risk of current shoot through between the switching power FETs. Integrated FET drivers often have a feedback based self timed FET switching sequence to ensure the smallest possible dead times while avoiding any shoot through current.
Which brings up another question?
What is shoot through current?
that no two IGBT in your inverter or for that matter your H-bridge in the same limb (power buss),turns ON at the same time. An ideal power electronic switch during ON state behaves like a conductor and thus if two switches in the same limb turn ON simultaneously, they will cause the DC bus to short-circuit, This is called a shoot-through fault. because I am an Electronic Technician I have troubleshooted various advanced microcontroller used for gate-driving, there are various causes which may lead to shoot-through fault to appear thus rupturing the costly switches. Few reasons are Electromagnetic Interference due to HF (high-frequency) operation, faulty snubber circuit design etc.
Class dismissed...
There will be a quiz tomorrow be ready for it... :)
 

Maglatron

Jul 12, 2023
2,025
Joined
Jul 12, 2023
Messages
2,025
I'll try both the square wave and the sinosoidal wave see which is better its just a matter of reuploading code but I do want at least 2 micro-seconds dead time though, I was under the impression that square wave would be more efficient becuase the practically keeping it's "on" for a longer period where a sinosoidal cuts the corners to make them smooth!
 
Last edited:

Maglatron

Jul 12, 2023
2,025
Joined
Jul 12, 2023
Messages
2,025
so another question is this 50 or 60Hz
C:
/*
This code was based on Swagatam SPWM code with changes made to remove errors. Use this code as you would use any other Swagatam’s works.
Atton Risk 2017
*/
const int sPWMArray[] = {500,500,750,500,1250,500,2000,500,1250,500,750,500,500}; // This is the array with the SPWM values change them at will
const int sPWMArrayValues = 13; // You need this since C doesn’t give you the length of an Array
// The pins
const int sPWMpin1 = 10;
const int sPWMpin2 = 9;
// The pin switches
bool sPWMpin1Status = true;
bool sPWMpin2Status = true;
void setup()
{
pinMode(sPWMpin1, OUTPUT);
pinMode(sPWMpin2, OUTPUT);
}
void loop()
{
// Loop for pin 1
for(int i(0); i != sPWMArrayValues; i++)
{
if(sPWMpin1Status)
{
digitalWrite(sPWMpin1, HIGH);
delayMicroseconds(sPWMArray[i]);
sPWMpin1Status = false;
}
else
{
digitalWrite(sPWMpin1, LOW);
delayMicroseconds(sPWMArray[i]);
sPWMpin1Status = true;
}
}
// Loop for pin 2
for(int i(0); i != sPWMArrayValues; i++)
{
if(sPWMpin2Status)
{
digitalWrite(sPWMpin2, HIGH);
delayMicroseconds(sPWMArray[i]);
sPWMpin2Status = false;
}
else
{
digitalWrite(sPWMpin2, LOW);
delayMicroseconds(sPWMArray[i]);
sPWMpin2Status = true;
}
}
}
 

bertus

Moderator
Nov 8, 2019
3,836
Joined
Nov 8, 2019
Messages
3,836
Hello,

Counting the delays in the seqence, i woud say it is for 50 hz

Bertus
 

Maglatron

Jul 12, 2023
2,025
Joined
Jul 12, 2023
Messages
2,025
Hello,
Counting the delays in the seqence, i woud say it is for 50 hz
Bertus

and you say it has built in dead time because I really don't want to be builing the circuit again! :)
 

Maglatron

Jul 12, 2023
2,025
Joined
Jul 12, 2023
Messages
2,025
Dead times are necessary to mitigate any risk of current shoot through between the switching power FETs. Integrated FET drivers often have a feedback based self timed FET switching sequence to ensure the smallest possible dead times while avoiding any shoot through current.
Which brings up another question?
What is shoot through current?
that no two IGBT in your inverter or for that matter your H-bridge in the same limb (power buss),turns ON at the same time. An ideal power electronic switch during ON state behaves like a conductor and thus if two switches in the same limb turn ON simultaneously, they will cause the DC bus to short-circuit, This is called a shoot-through fault. because I am an Electronic Technician I have troubleshooted various advanced microcontroller used for gate-driving, there are various causes which may lead to shoot-through fault to appear thus rupturing the costly switches. Few reasons are Electromagnetic Interference due to HF (high-frequency) operation, faulty snubber circuit design etc.
Class dismissed...
There will be a quiz tomorrow be ready for it... :)
what kind of quiz!?
 

bertus

Moderator
Nov 8, 2019
3,836
Joined
Nov 8, 2019
Messages
3,836
Hello,

There are delays of 500 us between the pulses.

Bertus
 

Delta Prime

Jul 29, 2020
2,987
Joined
Jul 29, 2020
Messages
2,987
that no two IGBT in your inverter or for that matter your H-bridge in the same limb (power buss),turns ON at the same time
Apologies mosfets not igbt.
No quiz. I was Just kidding.
You doing a great job you're almost there.
 

Maglatron

Jul 12, 2023
2,025
Joined
Jul 12, 2023
Messages
2,025
I have a feeling that when I connect the transformer the potential difference that build up in the caps will collapse and come to a resting voltage but I have a plan
measure the output of the transformer divide it by the transformer ratio
get that digit and divide 240 by that number that will give me a new ratio
buy the corrosponding transformer with that ratio and just hope that there is enough current for my needs!
 
Top