download my schematics Charger0.asc and my model library SUB_LIB.txt to your simulation working directory and play with it. If you are not using LTspice, you need to manually enter the
connected to the power grid, with a certain windings ratio to generate a nonregulated output voltage, a few volts higher than the needed supply voltage in a system. Then, a linear regulator was used to convert this voltage to a well-regulated one as needed by the electronics. Figure 2 ...