Benutzer-Werkzeuge

Webseiten-Werkzeuge


professoren_webseiten:rebholz:course_a_power_electronics

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
professoren_webseiten:rebholz:course_a_power_electronics [2025/05/22 11:27] – [Adding Gate Driver] hrebholzprofessoren_webseiten:rebholz:course_a_power_electronics [2026/11/24 14:01] (aktuell) – [Estimat Parasitics] hrebholz
Zeile 103: Zeile 103:
 ==== Estimat Parasitics ==== ==== Estimat Parasitics ====
  
-Now we have a pretty good simulation of the buck converter to calculate the operation point and get a feeling for the losses. Simulation however ist getting slower and slower. To get even closer to the real behavior of ourbuck converter we have to consider the parasitic elements of the components. \\+Now we have a pretty good simulation of the buck converter to calculate the operation point and get a feeling for the losses. Simulation however ist getting slower and slower. To get even closer to the real behavior of our buck converter we have to consider the parasitic elements of the components. \\
   * For the inductor we can add the series resistance given within the Datasheet: {{ :professoren_webseiten:rebholz:74437429203101_100u.pdf |}}   * For the inductor we can add the series resistance given within the Datasheet: {{ :professoren_webseiten:rebholz:74437429203101_100u.pdf |}}
   * The frequency behavior of the capcaitor can be calculated from the measured Z(f) plot {{ :professoren_webseiten:rebholz:z_f_330uf.png?linkonly |}}. Many manufacturers, such as Würth, offer the data for download on their homepage. [[https://redexpert.we-online.com/we-redexpert/en/#/home|Würth]]   * The frequency behavior of the capcaitor can be calculated from the measured Z(f) plot {{ :professoren_webseiten:rebholz:z_f_330uf.png?linkonly |}}. Many manufacturers, such as Würth, offer the data for download on their homepage. [[https://redexpert.we-online.com/we-redexpert/en/#/home|Würth]]
Zeile 204: 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: {{ :professoren_webseiten:rebholz:vorlage_course_a_basis_v01_2021b.zip |Simulink Version 2021b}}+Dowload the lastes Simulink experiment to control the DIY Power PCB:  
 + 
 +  * Software SW02 {{ :professoren_webseiten:rebholz:vorlage_course_a_basis_v01_2021b.zip |}} 
 +  * Software SW03 (robust communication) {{ :professoren_webseiten:rebholz:vorlage_course_a_basis_v02_ab_sw03_2021b.zip |}} 
 +  * Software SW04 (Inverter added){{ :professoren_webseiten:rebholz:vorlage_course_a_basis_v03_ab_sw04_2021b.zip |}}
  
 {{ :professoren_webseiten:rebholz:control_pannel_simulink.png?direct&1000 |}} {{ :professoren_webseiten:rebholz:control_pannel_simulink.png?direct&1000 |}}
  
 If you can not establish a connection to the board double check the COM port settings. 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://wiki.ei.htwg-konstanz.de/professoren_webseiten/rebholz/diypowerpcb#isolation|Link]]+<color #ed1c24>For safety reasons (PC protection) please always us an **isolation device** </color>: [[https://wiki.ei.htwg-konstanz.de/professoren_webseiten/rebholz/diypowerpcb#isolation|Link]]
  
 ===== Before you start ===== ===== Before you start =====
Zeile 249: Zeile 253:
 <WRAP center round todo 80%> <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 of the µC for the high-side and low-side MOSFET. \\
 **Task 9b** **Task 9b**
 Measure the minimum and maximum of the adjustable deadtime.\\ Measure the minimum and maximum of the adjustable deadtime.\\
Zeile 276: Zeile 280:
 **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. Do you also need a diffential probe? \\
 **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 379: Zeile 384:
 Please use the following parameters: \\ Please use the following parameters: \\
 Switching Frequency: 20kHz\\ Switching Frequency: 20kHz\\
-Inductor: 100µF \\+Inductor: 100µH \\
 Capacitor: 4700µF \\ Capacitor: 4700µF \\
 Load: 25W, 5V, 5A \\ Load: 25W, 5V, 5A \\
Zeile 510: Zeile 515:
  
  
-<color #ffc90e>**Congratulations. Now you are ready and prepared for the exam!**</color> 
  
  
 +====== Inverter ======
  
 +From software version 3.0 on, the DIY Power PCB can operate as a **single phase inverter**. The load is connected between **bridge leg U** and **bridge leg V**, bridge leg W stays switched off. \\
 +Together, legs U and V form the full bridge you already know from the section [[#simulation_full-bridge-converter|Simulation Full-Bridge-Converter]].
 +
 +==== How the Inverter Works ====
 +
 +In the half bridge and full bridge experiments, Simulink sends the duty cycle directly to the ESP32. For an inverter this is far too slow: Simulink transmits a new set of values only every 10 to 20 ms. \\
 +For a 50 Hz sine wave this would result in just one or two points per period. Therefore the **ESP32 generates the sine wave itself**. Simulink only sends the operating mode, the output frequency and the amplitude.
 +
 +At every PWM period the microcontroller calculates new duty cycles:
 +
 +  * ''Duty_U = 0.5 + 0.5 · m · sin(2π · f_out · t)''
 +  * ''Duty_V = 1 − Duty_U''
 +
 +The modulation index ''m'' corresponds to the amplitude set in Simulink (100 % → m = 1). Averaged over one switching period, bridge leg U provides ''Duty_U · U_DC'' and bridge leg V provides ''Duty_V · U_DC''. \\
 +The load therefore sees the voltage
 +
 +  * ''u_UV = m · U_DC · sin(2π · f_out · t)''
 +
 +plus a ripple at the switching frequency, which is smoothed by the inductance of the load.
 +
 +**Did you know?** The ESP32 does not call ''sin()'' 20000 times per second. It uses a table with 1024 sine values and a 32 bit **phase accumulator**. \\
 +At every PWM period a constant increment is added to the accumulator, and its upper 10 bits select the table entry. The increment is proportional to f_out, so the output frequency can be changed without a phase jump. \\
 +This method is called //Direct Digital Synthesis// (DDS).
 +
 +==== Synchronous and T/2 Offset PWM ====
 +
 +As with the full bridge, the inverter can be operated with two modulation methods. Both use ''Duty_V = 1 − Duty_U'', the only difference is the position of the PWM carrier of leg V.
 +
 +^ Mode ^ Method ^ Switching pattern ^ Output voltage u_UV ^ Ripple frequency at the load ^
 +| 2 | Synchronous PWM | high side MOSFET U and low side MOSFET V switch simultaneously | two levels: +U_DC, −U_DC | f_sw |
 +| 3 | T/2 offset PWM | low side MOSFET V gets the signal of high side MOSFET U, shifted by half a switching period | three levels: +U_DC, 0, −U_DC | 2 · f_sw |
 +
 +With T/2 offset PWM the load sees smaller voltage steps at twice the frequency. Same inductor, same switching frequency, but much less current ripple.
 +
 +**Did you know?** The maximum peak to peak current ripple in the load inductance L is
 +
 +  * synchronous PWM: ''Δi_max = U_DC / (2 · L · f_sw)''
 +  * T/2 offset PWM: ''Δi_max = U_DC / (8 · L · f_sw)''
 +
 +So T/2 offset PWM reduces the ripple to one quarter.
 +
 +==== Operating the Inverter from Simulink ====
 +
 +{{:professoren_webseiten:rebholz:invertermodus.png?800|}}
 +
 +The relevant inputs of the //Receiver/Transmitter Module// are:
 +
 +  * **Mode** (constant): ''2'' synchronous PWM, ''3'' T/2 offset PWM, ''0'' back to manual half bridge mode, ''1'' BLDC automatic.
 +  * **Inverter Output Frequency [Hz]**: 0 to 1000 Hz, resolution 0.1 Hz.
 +  * **Inverter Output Amplitude [%]**: modulation index 0 to 100 %, resolution 0.1 %.
 +  * **Frequenz**: switching frequency f_sw in kHz.
 +  * **Deadtime**: as before.
 +
 +In inverter mode the duty cycles, the sliders Phase V and Phase W and the switch pattern are **ignored**.
 +
 +The microcontroller enforces the following limits:
 +
 +  * ''f_out ≤ f_sw / 20'' (at least 20 PWM pulses per sine period) and ''f_out ≤ 1000 Hz''.
 +  * The duty cycle is limited to 2 % ... 98 %, so that the bootstrap capacitors of the gate drivers are recharged and no pulse is shorter than the dead time. Above an amplitude of about 96 % the sine peaks are slightly flattened.
 +  * Switching frequency 1.3 kHz ... 60 kHz.
 +  * Every change of the mode passes through "all MOSFETs off". The inverter always starts at the zero crossing of the sine wave.
 +  * ''f_out = 0'' sets both legs to 50 %, the load sees 0 V and no DC voltage.
 +  * If Simulink does not send valid data for 500 ms, all MOSFETs are switched off.
 +
 +The display of the board shows the mode, output frequency, amplitude and switching frequency.
 +
 +==== Safety Warnings ====
 +
 +  * The power supply has to be switched off each time a change is made in the setup.
 +  * Increase the amplitude from zero to the final value.
 +  * The board is rated for **max. 10 A** and a DC voltage of **20 V ... 36 V**. Check that the peak load current **including the ripple** stays below 10 A. With small inductances and low switching frequencies the ripple alone can exceed this limit.
 +  * Current flows must not be interrupted, especially if they are routed through inductors.
 +  * **Never use electrolytic capacitors as filter capacitors at the inverter output!** The output voltage is AC, so an electrolytic capacitor would be operated with reverse polarity and can explode or outgas.
 +  * Measure u_UV only with a differential probe. Neither leg U nor leg V is at ground potential.
 +  * Hot surface! Resistors and inductors can reach temperatures > 100°C.
 +
 +==== Task: Design Your Own Inverter Experiment ====
 +
 +<WRAP center round todo 80%>
 +Set up your own inverter experiment with the loads and inductors available in the lab.
 +
 +**Task 20a)** Design a setup to test how the inverter works. At which point of your setup can you see the sinusoidal output of the inverter? Take a screenshot.
 +
 +**Task 20b)** Create a simulation of your setup. Compare the frequency components of your measurement and your simulation in the frequency domain.
 +</WRAP>
  
  
professoren_webseiten/rebholz/course_a_power_electronics.1747913222.txt.gz · Zuletzt geändert: 2025/05/22 11:27 von hrebholz

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki