Programming the heating control

The program is now expanded to include the control of the MOSFET.
The GPIO12 pin of the ESP32 is assigned as an output for the MOSFET. The function ledcWrite is used to program pulse width modulation (PWM). This enables proportional heating based on the input value. With PWM, the GPIO12 pin is set to HIGH only for a certain duration within a defined period. As a result, the average voltage applied to the MOSFET, which controls the heating, is modified. The signal is transmitted accordingly to switch the MOSFET.


                                 Figure: Programming code, Julius Krumpen 


Figure: Heater (left) and MOSFET (right), Julius Krumpen

Zuletzt geändert: Dienstag, 4. Juli 2023, 10:13