Circuit working principle:
After the power supply is turned on, the 1 pin of U 1 outputs a square-wave switch control pulse signal, which is obtained at the output end through the high-frequency transformer TR 1.
High-frequency voltage, after high-frequency rectification and filtering by D3 C4, the average DC voltage is obtained. When the output average DC voltage is high, the voltage at pin 1 of U2 rises, the LED inside U2 lights up (brightens), and the phototransistor inside U2 turns on (deepens), so that the voltage at pin 5 of U 1 rises. As the voltage at pin 5 rises, the high-frequency square wave inside U 1 rises. The turn-on time of pin 1 output is shortened, which makes the average DC voltage of TR 1 output lower, and vice versa.