Hi,
Be carefull, be very carefull, when using a power supply without transformer is like walking in the wire without the net underneath...
Atached you can see the circuit I use to put some power ... in PICs and other stuff. I found this circuit some years ago when I bought a kit (K6713)from Velleman, its a IR receiver to switch on/off a load connected to mains trough a relay.
One more advise, if by any chance you are planning to use this circuit in a touch sensor or similar do not forget to use two resistors in series for the sensor, the contour voltage for a regular 1/4W is less than 200V, unless you like to get a curly hair...
regards
Bookmarks