Hey guys,
This is my first post ever on this forum, so if I did something wrong please tell me to never do it again. I have read the "How to use this forum" document, but just in case.
So I trying to make phase cutting with an Arduino. The actual circuit works and I do not need your help with that. The only thing I need help with is the timing of the Phase Cutting.
The circuit I made will be connected to the Arduino and generates a pulse whenever the mains voltage corsses 0. The idea is to generate a pulse of 10 micros after a specified amount of time (that needs to vary). The problem is that I need to generate two of those at exactly 100 Hz to control a triac. Hopefully the picture below gives you an impression of what I am trying to do.

Ofcourse you can do it with a delay but I do not want those in my code since my code needs to do other stuff as well. That's why I wanted to use the timers in the Arduino itself. Mainly because they can trigger interrupts. I've tried a frew things but nothing seems to work the way I want it to.
Hope you guys can help me out here.
Best regards,
ZweedNaat