AC dimming 115 Volt (using zero crossing detection)

Mainly working on a circuit that uses an RTC along with IR sensor (control for manual and automatic control of AC, in automatic the lights are controlled based on the sunrise and sunset times) yet the interrupt messes with the communication of the RTC and IR (pause in the system causes miscommunication). I'm not the best on C++ programming (electrical engineer, not a computer engineer). Hopefully I can get some feedback (atleast something that can lead me to the right direction). If you need the code posted, I can post later (not next to the code atm).

Mainly working on a circuit that uses an RTC along with IR sensor (control for manual and automatic control of AC, in automatic the lights are controlled based on the sunrise and sunset times) yet the interrupt messes with the communication of the RTC and IR (pause in the system causes miscommunication). I'm not the best on C++ programming (electrical engineer, not a computer engineer). Hopefully I can get some feedback (atleast something that can lead me to the right direction). If you need the code posted, I can post later (not next to the code atm).

What this has to do with AC dimming 115 Volt (using zero crossing detection)?

If you need the code posted, I can post later

Well that would be great since my Cristal ball is damage :grin:

yet the interrupt messes with the communication of the RTC and IR (pause in the system causes miscommunication)

You must detail better what is the problem dude.