Hi all!
I wnat to power an AtMega with the mains AC power, but without use a transformer, using what is always used for this cases, a poliester cap and a half wave rectifier or a full wave rectifier. then a zener diode and a resistor
Just to say that such a connection directly to the mains is dangerous and in some places actually illegal.
It is unlikely to get safety approval in the EU.
The big problem happens when you consider a single failure, namely that of the input capacitor. If anyone got damaged by using this technique then you would be libel to possible criminal sanctions. A lot depends on how this will be used in the final application.