Have you tried searching this forum. There is an example of some working code for an AC dimmer using Zero-Cross detection. Although I personally have not tried this project.
Have you tried searching this forum. There is an example of some working code for an AC dimmer using Zero-Cross detection. Although I personally have not tried this project.