Digital AC voltage control with moc3021 and using triyak drive with PWM signal. for the create PMW signal using microcontroller.
drive the triac with the MOC, which is the signal from the Arduino.
A pulse is obtained with an optocoupler at the zero points of the sine received from the signal source.