HV-2405E IC with some circuitry act as power inverter with 100-260V A.C mains supply to 5-24 V D.C supply. The peak output current of the device is 50 mA.
The chip contains a pre-regulator that arranges the charging of C2, a fairly large capacitance, at the onset of each period of the mains voltage. The charging continues until the potential across the capacitor has reached a level that is roughly the wanted output pulse 6 V.
When that state is reached, C2 provides the voltage necessary for the series regulator also contained in the IC. The output of this regulator can be set between 5 V and 24 V with P1 and is available at pin 6.
Power Inverter Circuit Diagram:
The load current will discharge C2 to some extent, but the pre-regulator ensures the adequate recharging takes place during every period of the mains supply
Since the circuit and its output are connected electrically to the mains, any apparatus connected to the circuit is, therefore, at mains potential. Great care should thus be exercised when working on it. Touching certain parts is potentially lethal!