Duty cycle control or phase shifting
I want to control a TRIAC's gate which will be working on 230V AC. I managed to create a one-pulse PWM based on zero-crossing detection. I want to implement a soft start function. To do that, I implemented soft start by controlling the duty cycle. However, the delay is coming from the zero-crossing side, meaning the TRIAC gate will be turned on not immediately after zero-crossing but during some random voltage. How can I solve this? Is there a way to make delay from duty cyle comming from the other side?
As you can see on the photo when rising edge is detected(orange channel) there is a delay after that(blue channel).

