Not sure if it has any bearing on this but I built a sequential light display that flashed mains light bulbs (240v) and didn't suffer any issues of the PIC resetting. I used solid state relays for the mains switching which are opto isolated from the mains. The only issue is that they aren't as cheap as traditional relays.
Maybe you could use an opto isolator and thyristro / triac driver to do the same thing only a bit cheaper. Something like
(ommit the 741 - as it wouldn't be needed for your circuit)
Bookmarks