Here I used BT136 MOSFET to switch on and of 230v AC bulb from Arduino. The circuit is so simple and only required a few components.
I also try PMW to dimming bulb with MOC3041 and it results in the flickering of the bulb because AC frequency is 50 Hz and MOC3041 only switch on when there are zero crossings.
For dimming, application go with MOC3021.
Ещё видео!