I need to obtain 5V stable week power supply from a 230VAC power line. I need this as cheap and as small as possible. Fortunately I don't need galvanic isolation and required current is as low as 1-2 mA.
There are no available linear regulators which I could connect directly to rectified mains (the most voltage resistant ICs has up to 450 volts when I need at least 616 volts: 400 * 1,41 + 10% - the device should survive phase to phase connection).
Now I came to this solution:
This schematic works very will.
However I will need conventional linear regulator anyway to provide stable Vcc (output ovof the schematic above is depends on consumed current and has 100Hz ripples).
If I'd able to put an external switch to regulator I could find the switch with necessary voltage strength and I'd get needed stability.
Is there any solution?