Relays randomly getting stuck on??

Hello guys

I’ve written this code to control a relay timing sequence as follows;

relay 1 & 2 - on 500ms, off 1000ms, on 500ms and off 8000ms (equates to a 10 second cycle) these two are equally staggered so they don’t trigger at the same time.

relay 3 & 4 - on 500ms, off 14500ms, on 500ms and off 44500ms (equates to a 1 min cycle) these two trigger at the same time.

Issue is randomly one of the relays would get stuck on until the cycle goes round again, Im not sure what it is see my code attached.

Thanks! :smiley:

Wet_Rig_Push_Button_Working.ino (3.11 KB)

Don't you already have at least one other thread on the SAME topic?

Wenborn:
Issue is randomly one of the relays would get stuck on until the cycle goes round again, Im not sure what it is see my code attached.

Thanks! :smiley:

have you looked here?