Amgen

Thank you that's exactly what I'm asking for !

I have been through the appnote and what's confusing me is how you got he value for the resistor R1 ??
You said ....
the capacitor reactance (resistance for ac voltage) is
1/(2 X pi X freq X Cap(micro-farad)) ohms,

For 50MA from power supply, 220V/.050 = 4400 ohms....
the required resistance provided by cap for 50HZ at 220V.
How did you get the value for this ...
Cap(micro-farad)) ohms
Kind regards
Dennis