I'd like to sense if I have AC 220V 50HZ available, and convert it to some logical level.
I made such circuit, will it work?
I use C1 as a resistor.
Any recommendations what can be improved?
Thanks for the great help.
I choose Russel's answer because he was first and the note about 1N4001 was very useful,
calculations show that D1 will be stressed to up to 70 volts while C1 charging, so Turpie head will be kept in place.
I will hold 4001 for lower voltage applications.
Olin's answer was like the same C: Olin 0.1 uF, Rusl 0.068 (or 0.05). Rseries Olin 1k. Russell 10k, but also helped me alot.
Here is the updated circuit with simulation.
As keen beginner sorry for noobish questions. I will add more details with datasheets next time.