professoren_webseiten:rebholz:course_a_power_electronics
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
professoren_webseiten:rebholz:course_a_power_electronics [2025/02/06 14:50] – [Measurement, Simulations and Calculations] hrebholz | professoren_webseiten:rebholz:course_a_power_electronics [2025/06/27 07:17] (aktuell) – [PWM-Signals] hrebholz | ||
---|---|---|---|
Zeile 4: | Zeile 4: | ||
One main goal of the lab course is to train the usage of measurement tools such as oscilloscopes, | One main goal of the lab course is to train the usage of measurement tools such as oscilloscopes, | ||
- | ====== Simulation ====== | + | ====== Simulation |
The problem often arises that electronic assemblies such as microcontrollers, | The problem often arises that electronic assemblies such as microcontrollers, | ||
Since linear regulators, which are nothing more than variable series resistors, generate excessive losses, buck converters are often used. With the use of modern semiconductors, | Since linear regulators, which are nothing more than variable series resistors, generate excessive losses, buck converters are often used. With the use of modern semiconductors, | ||
Zeile 20: | Zeile 20: | ||
It is just as important as the simulation itself to check whether the results are plausible. If, for example, currents > 100A or voltages in the MV range occur in the simulation, you should not trust the result under any circumstances. | It is just as important as the simulation itself to check whether the results are plausible. If, for example, currents > 100A or voltages in the MV range occur in the simulation, you should not trust the result under any circumstances. | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 1a)** | **Task 1a)** | ||
Create the circuit diagram of a buck converter consisting of a switching element, diode, coil, capacitor and load. Determine the load resistance so that the required power is set at the output. | Create the circuit diagram of a buck converter consisting of a switching element, diode, coil, capacitor and load. Determine the load resistance so that the required power is set at the output. | ||
Zeile 49: | Zeile 49: | ||
Diodes always incur power loss, primarily caused by the voltage drop across the device. Thus, the freewheeling diode is often replaced by a second power switch, leading to the commonly used half-bridge topology. This is a clever solution, especially when using MOSFETs as switches. MOSFETs always come with an intrinsic diode, known as the body diode. Therefore, even if the MOSFET is not activated, the body diode can serve as the freewheeling diode. The body diode, of course, exhibits the same poor power loss characteristics as the previously used diode. Therefore, we activate the MOSFET to allow the current to flow through the MOSFET instead of the diode.The rule to avoid short circuits is as follows: whenever the high-side MOSFET is turned off, the low-side MOSFET is turned on. However, this introduces another problem. Since the switching speed of the devices is not infinite, a certain amount of delay is required before turning on the low-side MOSFET after the high-side MOSFET is turned off, and vice versa. This delay is referred to as dead time. With ideal switches, we do not need any deadtime. However, you can equip the PWM generator with a deadtime function, as we will need it later | Diodes always incur power loss, primarily caused by the voltage drop across the device. Thus, the freewheeling diode is often replaced by a second power switch, leading to the commonly used half-bridge topology. This is a clever solution, especially when using MOSFETs as switches. MOSFETs always come with an intrinsic diode, known as the body diode. Therefore, even if the MOSFET is not activated, the body diode can serve as the freewheeling diode. The body diode, of course, exhibits the same poor power loss characteristics as the previously used diode. Therefore, we activate the MOSFET to allow the current to flow through the MOSFET instead of the diode.The rule to avoid short circuits is as follows: whenever the high-side MOSFET is turned off, the low-side MOSFET is turned on. However, this introduces another problem. Since the switching speed of the devices is not infinite, a certain amount of delay is required before turning on the low-side MOSFET after the high-side MOSFET is turned off, and vice versa. This delay is referred to as dead time. With ideal switches, we do not need any deadtime. However, you can equip the PWM generator with a deadtime function, as we will need it later | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 2a)** | **Task 2a)** | ||
Replace the diode in your simulation with an additional ideal switch and run the simulation again. Now, the calculated current values should match the simulated ones pretty well.\\ | Replace the diode in your simulation with an additional ideal switch and run the simulation again. Now, the calculated current values should match the simulated ones pretty well.\\ | ||
Zeile 70: | Zeile 70: | ||
Datasheet: {{ : | Datasheet: {{ : | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 3a)** | **Task 3a)** | ||
Replace the ideal switches with the MOSFET model. Be sure to set the correct gate-source voltages.\\ | Replace the ideal switches with the MOSFET model. Be sure to set the correct gate-source voltages.\\ | ||
Zeile 84: | Zeile 84: | ||
{{ : | {{ : | ||
Gate drivers are often equipped with additional features. Our driver can detect overcurrents and if necessary, will turn off all MOSFETs for safety. Since overcurrents in a simulation tool will not damage your PC or notebook, you can ignore this feature in the simulation. Pull up the RFE output and connect ITRIP to ground. \\ | Gate drivers are often equipped with additional features. Our driver can detect overcurrents and if necessary, will turn off all MOSFETs for safety. Since overcurrents in a simulation tool will not damage your PC or notebook, you can ignore this feature in the simulation. Pull up the RFE output and connect ITRIP to ground. \\ | ||
- | Datasheet: {{ : | + | Datasheet: {{ : |
+ | Download {{ : | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 4a)** | **Task 4a)** | ||
- | Add the driver circuit to your simulation and check the functionality. The general behavior should be the same as before! The simulation time now might significantly | + | Add the driver circuit to your simulation and check the functionality. The general behavior should be the same as before! The simulation time now might significantly |
**Task 4b)** | **Task 4b)** | ||
Now you can determine the switching time of the drive and the MOSFETs. Measure the required time to turn the MOSFETs on respectively off for every MOSFET.\\ | Now you can determine the switching time of the drive and the MOSFETs. Measure the required time to turn the MOSFETs on respectively off for every MOSFET.\\ | ||
Zeile 107: | Zeile 108: | ||
* All PCB traces that carry a high current must be included in the overall consideration. The following values can be assumed as a rule of thumb. Inductance 1µH/m for supply lines or 10nH/cm for conductor tracks.The resistance can be estimated as 0,5mOhm/cm for a 35µm track with 1cm width. | * All PCB traces that carry a high current must be included in the overall consideration. The following values can be assumed as a rule of thumb. Inductance 1µH/m for supply lines or 10nH/cm for conductor tracks.The resistance can be estimated as 0,5mOhm/cm for a 35µm track with 1cm width. | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 5a)** | **Task 5a)** | ||
Add parasitic elements to the inductor, capacitor and pcb traces. Estimate a trace length to connect the MOSFET leads of about 1cm.\\ | Add parasitic elements to the inductor, capacitor and pcb traces. Estimate a trace length to connect the MOSFET leads of about 1cm.\\ | ||
Zeile 117: | Zeile 118: | ||
It might now be clear that the final output voltage does not depend solely on the duty cycle. In a real system, many parameters influence its behavior. This is one of the reasons why we need a control loop, which we will implement later in the lab.\\ | It might now be clear that the final output voltage does not depend solely on the duty cycle. In a real system, many parameters influence its behavior. This is one of the reasons why we need a control loop, which we will implement later in the lab.\\ | ||
- | ===== Reactive Current | + | ==== Reactive Current ==== |
When we think of reactive currents or reactive power, we usually think of AC voltage systems but not of a step-down converter. But let's imagine the following scenario: The load resistor increases, or the load is lost— for example, because you turned it off or due to a broken connection. The DC-DC converter still attempts to regulate the output voltage to 5V with a constant duty cycle. In the half-bridge configuration, | When we think of reactive currents or reactive power, we usually think of AC voltage systems but not of a step-down converter. But let's imagine the following scenario: The load resistor increases, or the load is lost— for example, because you turned it off or due to a broken connection. The DC-DC converter still attempts to regulate the output voltage to 5V with a constant duty cycle. In the half-bridge configuration, | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 6a)** | **Task 6a)** | ||
Run the simulation with verly light load respectively a very high ohmic load resistor e.g. 100kOhms. Observe the capacitor current and the current through the MOSFETs. What is bad about this mode of operation? \\ | Run the simulation with verly light load respectively a very high ohmic load resistor e.g. 100kOhms. Observe the capacitor current and the current through the MOSFETs. What is bad about this mode of operation? \\ | ||
Zeile 140: | Zeile 141: | ||
The PCB was originally not only developed for the power electronics lecture but also to drive different motor applications. Therefore, the PCB contains more features than are necessary for your measurements. | The PCB was originally not only developed for the power electronics lecture but also to drive different motor applications. Therefore, the PCB contains more features than are necessary for your measurements. | ||
- | Download: {{ : | + | Schematic and PCB files see: [[professoren_webseiten: |
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 7** | **Task 7** | ||
Do you know the function of each component on the circuit board? If not, consider the function of the individual circuit parts together with the data sheet. \\ | Do you know the function of each component on the circuit board? If not, consider the function of the individual circuit parts together with the data sheet. \\ | ||
Zeile 163: | Zeile 164: | ||
* Capacitor: 860010581025 | * Capacitor: 860010581025 | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 8** | **Task 8** | ||
Complete the following tables using the data sheets. What do you notice in particular? \\ | Complete the following tables using the data sheets. What do you notice in particular? \\ | ||
Zeile 203: | Zeile 204: | ||
The power PCB is controlled with the help of a Simulink experiment. The microcontroller exchanges data cyclically with the PC via the serial interface.\\ | The power PCB is controlled with the help of a Simulink experiment. The microcontroller exchanges data cyclically with the PC via the serial interface.\\ | ||
+ | Dowload the lastes Simulink experiment to control the DIY Power PCB: {{ : | ||
+ | {{ : | ||
- | - Connection, | + | If you can not establish a connection to the board double check the COM port settings. |
+ | For safety reasons (PC protection) please always us an isolation device: [[https:// | ||
===== Before you start ===== | ===== Before you start ===== | ||
Zeile 212: | Zeile 216: | ||
For every electronic circuit, there are two main golden rules: | For every electronic circuit, there are two main golden rules: | ||
- | <WRAP center round important | + | <WRAP center round important |
* Voltage sources, especially capacitors, must not be short-circuited.\\ | * Voltage sources, especially capacitors, must not be short-circuited.\\ | ||
* Current flows must not be interrupted, | * Current flows must not be interrupted, | ||
Zeile 221: | Zeile 225: | ||
Safety warnings: | Safety warnings: | ||
- | <WRAP center round alert 60%> | + | <WRAP center round alert 80%> |
* The components and the load resistor can reach temperatures > 100°C, posing a risk of burns. | * The components and the load resistor can reach temperatures > 100°C, posing a risk of burns. | ||
* If the polarity of the electrolytic capacitors is incorrect, they can explode or outgas. If you are not sure, please ask! | * If the polarity of the electrolytic capacitors is incorrect, they can explode or outgas. If you are not sure, please ask! | ||
Zeile 230: | Zeile 234: | ||
<wrap hi> | <wrap hi> | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
* The power supply has to be switched off each time a change is made in the setup and during probe connections. | * The power supply has to be switched off each time a change is made in the setup and during probe connections. | ||
* Before you start a measurement, | * Before you start a measurement, | ||
Zeile 243: | Zeile 247: | ||
The most important task of the microcontroller is to generate the PWM signals. Thus, we first start and check the signals. | The most important task of the microcontroller is to generate the PWM signals. Thus, we first start and check the signals. | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 9a** | **Task 9a** | ||
- | Use two oscilloscope probes to visualize the output signals for the high-side and low-side MOSFET. \\ | + | Use two oscilloscope probes to visualize the output signals |
**Task 9b** | **Task 9b** | ||
Measure the minimum and maximum of the adjustable deadtime.\\ | Measure the minimum and maximum of the adjustable deadtime.\\ | ||
Zeile 269: | Zeile 273: | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 10a** | **Task 10a** | ||
Measure how long it takes for the driver to start doing anything when it receives a high signal and turns on the high-side MOSFET\\ | Measure how long it takes for the driver to start doing anything when it receives a high signal and turns on the high-side MOSFET\\ | ||
+ | Attention: To measure the gate source voltage of the high-side MOSFET at differential voltage probe is needed. Do you now why? \\ | ||
**Task 10b** | **Task 10b** | ||
How long does it take to bring the gate-source voltage to the desired value?\\ | How long does it take to bring the gate-source voltage to the desired value?\\ | ||
**Task 10c** | **Task 10c** | ||
- | Determine the same values for turning the MOSFET off and for the low-side MOSFET.\\ | + | Determine the same values for turning the MOSFET off and for the low-side MOSFET. |
**Task 10d** | **Task 10d** | ||
Now set the frequency to 30 kHz. Does this make sense? What is your conclusion for the minimal duty cycle? | Now set the frequency to 30 kHz. Does this make sense? What is your conclusion for the minimal duty cycle? | ||
Zeile 298: | Zeile 303: | ||
Duty: Ramp up to 50% \\ | Duty: Ramp up to 50% \\ | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 11a** | **Task 11a** | ||
Connect the load resistor to the PCB so that the half-bridge U is loaded. Measure the output current using a current clamp. Does the measured current waveform match your expectations? | Connect the load resistor to the PCB so that the half-bridge U is loaded. Measure the output current using a current clamp. Does the measured current waveform match your expectations? | ||
Zeile 320: | Zeile 325: | ||
Duty: Ramp up to 50% \\ | Duty: Ramp up to 50% \\ | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 12** | **Task 12** | ||
Set the starting conditions and observe the inductor current. | Set the starting conditions and observe the inductor current. | ||
Zeile 328: | Zeile 333: | ||
- | <WRAP center round todo 60%> | + | <WRAP center round todo 80%> |
**Task 13a** | **Task 13a** | ||
To get rid of the noise increase the frequency to 20kHz and observe the current again. \\ | To get rid of the noise increase the frequency to 20kHz and observe the current again. \\ | ||
Zeile 375: | Zeile 380: | ||
Please use the following parameters: \\ | Please use the following parameters: \\ | ||
Switching Frequency: 20kHz\\ | Switching Frequency: 20kHz\\ | ||
- | Inductor: | + | Inductor: |
Capacitor: 4700µF \\ | Capacitor: 4700µF \\ | ||
Load: 25W, 5V, 5A \\ | Load: 25W, 5V, 5A \\ | ||
Zeile 417: | Zeile 422: | ||
=== Continuous / Discontinuous and Critical Current Mode === | === Continuous / Discontinuous and Critical Current Mode === | ||
- | 1. Reduce | + | The transition from the point at which current |
- | 2. Reduce until discontinuous | + | |
+ | <WRAP center round todo 80%> | ||
+ | **Task 16a** | ||
+ | Calculate the critical load resistance at which critical conduction mode (CRM) occurs.\\ | ||
+ | **Task 16b** | ||
+ | Increase the load resistance until you can measure the CRM state. Check what happens if you increase the resistance further. | ||
+ | </ | ||
+ | |||
+ | Reactive currents are not always bad. They can be used to eliminate the reverse recovery of the body diode. If we exactly meet the CRM mode, there is even no switching loss because we turn on the low-side MOSFET at zero current. If it is possible to generate a small amount of negative current, we even have no switching losses at the high-side MOSFET, as it operates in zero-voltage switching. This type of power electronic circuit is called a resonant converter, and it is now commonly used in many applications. The theory behind resonant switching converters is part of the Master' | ||
+ | |||
+ | The reduction of the reverse recovery effect can be seen by measuring the current through the MOSFETs with a Rogowski coil. If you don't have one, it is also possible to look at the drain-source voltage of the low-side MOSFET. \\ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | <WRAP center round todo 80%> | ||
+ | **Task 17a** | ||
+ | Consider and discuss with your neighbor why in this state the high side mosfet can be switched on at a voltage of less than 1V. This state is then referred to as ZVS zero voltage switching. \\ | ||
+ | </ | ||
+ | |||
+ | ====== Simulation Full-Bridge-Converter ====== | ||
+ | |||
+ | A basic buck converter topology, consisting of a single MOSFET and a freewheeling diode, is inherently limited to supplying a unidirectional (positive) output current while maintaining a strictly positive output voltage. This configuration confines the system' | ||
+ | |||
+ | By extending the topology to a half-bridge configuration, | ||
+ | To achieve full four-quadrant operation—i.e., | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | A typical application is the control of a DC motor, where the direction of rotation, the speed, or the power flow can be adjusted. In the next experiment, we aim to control the speed and rotational direction of a DC motor using a full-bridge (H-bridge) converter. To achieve this, we apply pulse-width modulation (PWM) to the bridge legs and observe the resulting motor current under different switching schemes—specifically, | ||
+ | |||
+ | ==== Simulation ==== | ||
+ | To compare the functionality of both control methods, we set up a simulation in which both approaches can be analyzed in parallel. Since we have already examined the operation of a half-bridge in detail, we now focus solely on the control strategy. For simplicity and clarity, the MOSFETs are replaced by ideal switches, and the gate drivers are assumed to be ideal as well. This abstraction allows us to isolate the effects of the switching schemes themselves without being influenced by non-idealities such as switching losses, gate charge dynamics, or dead times. The simulation will thus provide a clear comparison of how the different PWM strategies impact the motor current, voltage waveforms, and overall system behavior. | ||
+ | In the simulation, the motor is modeled as a simple resistive-inductive load with a resistance of 1 Ω and an inductance of 100 µH. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | When using labels to assign node names in your schematic, all nodes with the same label are electrically connected. This simplifies schematic design but also requires careful attention. | ||
+ | Incorrect or careless use of labels can lead to unintended connections and, in the worst case, short circuits. Always double-check your labeling to ensure that only intended nodes share the same potential. | ||
+ | |||
+ | <WRAP center round todo 80%> | ||
+ | **Task 18a** | ||
+ | Expand the simulation to include the necessary control so that one part of the circuit operates with synchronous PWM on both sides, while another part operates with a T/2 offset. Verify the functionality at various load points. Does the result match your expectations? | ||
+ | **Task 18b** \\ | ||
+ | Observe the output currents and compare the currents for the different control schemes.\\ | ||
+ | There are a total of three significant reasons to choose T/2 offset clocking. What are they? \\ | ||
+ | Write a few centences about:\\ | ||
+ | 1. Current Ripple: \\ | ||
+ | 2. Zero voltage output: \\ | ||
+ | 3. Heat distribution: | ||
+ | |||
+ | </ | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | The output voltage becomes positive for PWM duty cycles greater than 0.5, and correspondingly negative for values below 0.5. In the case of simultaneous clocking on both sides, the following can be observed: at D = 0.5, the average output voltage is 0 V. As we know, in power electronics, | ||
+ | You have probably already discovered yourself that at D = 0.5, the output current becomes exactly zero, without any circulating reactive power if we use the PWMs with T/2 offset. | ||
+ | |||
+ | ==== Experiment ==== | ||
+ | |||
+ | Lets try the full bridge with our DIY board. As a first step, we will look at the signals without the motor connected. Once we are sure that everything is correctly wired, we can operate the motor.\\ | ||
+ | **Hardware requirements**\\ | ||
+ | Make sure, that the driver circuit of the second half bridge V is assembled correctly. Check the PWM signals with the oscilloscope.\\ | ||
+ | **Software requirements**\\ | ||
+ | In order for current to flow through the motor, it is essential to activate the diagonal MOSFET pairs of the full bridge simultaneously—i.e., | ||
+ | |||
+ | Duty_V = 1 − Duty_U | ||
+ | |||
+ | This inversion effectively ensures complementary switching of the corresponding low-side Mosfet, simplifying the implementation of the control scheme.\\ | ||
+ | Within Simulink just us a simple sum block: | ||
+ | {{ : | ||
+ | |||
+ | Additionally, | ||
+ | If we wish to revert this automatic phase shift, we can do so by using a slider or parameter in Simulink to apply an additional 180° phase shift, effectively canceling out the original offset and returning to in-phase (0°) operation. | ||
+ | |||
+ | |||
+ | {{ : | ||
+ | |||
+ | <WRAP center round todo 80%> | ||
+ | **Task 19a** | ||
+ | Setup Simulink for full bridge operation. Measure the PWM Signals for Q1 and Q4 and check if you can apply synchronous and phase shifted PWM signals. Please do this with no load connected and without power supply.\\ | ||
+ | **Task 19b**\\ | ||
+ | Set the duty cycle to D = 0.5. Connect the load (DC motor) and the power supply. Consider how you can verify that your full bridge is operating correctly. | ||
+ | </ | ||
+ | <color # | ||
professoren_webseiten/rebholz/course_a_power_electronics.1738853425.txt.gz · Zuletzt geändert: 2025/02/06 14:50 von hrebholz