I like the resistors the way you did it. People think "120 VAC" and "GND" will all wise be that way. I find that "line" and "neutral" get switched around. This way if and when your meter or scope probe shorts out you are some what isolated from the power line, both sides.
With the 4 diodes (not one) the current into OK1 is most of the time. (not 45%) So the capacitor needs to work only about 10% of the time.
On the output the time constant is R3 C1.
On the input the R is complicated. It is the impedance of OK1 LED.
If I was making a PCB I would make a place for two caps. But probably only use one.
With the 4 diodes (not one) the current into OK1 is most of the time. (not 45%) So the capacitor needs to work only about 10% of the time.
On the output the time constant is R3 C1.
On the input the R is complicated. It is the impedance of OK1 LED.
If I was making a PCB I would make a place for two caps. But probably only use one.