Hello,
Wouldnt the required value be more like 0.33uf though?
The voltage across the cap is 230v-40v, not 230v, right?
The other problem though is that if there is a diode in series (and another
in the opposite direction to ground) that means only 1/2 the power gets
to the LEDs, so in that configuration we would need a 0.66uf cap.
On the other hand, if he uses a full wave bridge the cap value can be 0.33uf.
Maybe a 470 ohm resistor in series to lower the turn on surge too.
Double check my values...