This circuit will supply up to about 20ma at 12 volts. It uses capacitive reactance instead of resistance; and it doesn’t generate very much heat.The circuit draws about 30ma AC. Always use a fuse and/or a fusible resistor to be on the safe side. The values given are only a guide. There should be more than enough power available for timers, light operated switches, temperature controllers etc, provided that you use an optical isolator as your circuit’s output device. (E.g. MOC 3010/3020) If a relay is unavoidable, use one with a mains voltage coil and switch the coil using the optical isolator.C1 should be of the ’suppressor type’; made to be connected directly across the incoming Mains Supply. They are generally covered with the logos of several different Safety Standards Authorities. If you need more current, use a larger value capacitor; or put two in parallel; but be careful of what you are doing to the Watts. The low voltage ‘AC’ is supplied by ZD1 and ZD2. The bridge rectifier can be any of the small ‘Round’, ‘In-line’, or ‘DIL’ types; or you could use four separate diodes. If you want to, you can replace R2 and ZD3 with a 78 Series regulator. The full sized ones will work; but if space is tight, there are some small 100ma versions available in TO 92 type cases. They look like a BC 547. It is also worth noting that many small circuits will work with an unregulated supply. You can, of course, alter any or all of the Zenner diodes in order to produce a different output voltage. As for the mains voltage, the suggestion regarding the 110v version is just that, a suggestion. I haven’t built it, so be prepared to experiment a little.
Read More Source: Ron J