I am thinking now that the problem may be ripple on the DC power supply. I suspect that the large electrolytic capacitor at the middle bottom edge of the board is the main reservoir capacitor. If it is then measure the voltage between it's pins (Preferbly with the relay energised.) and also see how much ripple there is with an oscilloscope. I would expect the voltage to be about 12 volts.
I also suspect thet the TO220 device next to the trsnsformer is a 5 volt regulator to suupply 5 volts to the microcontroller. I suggest checking for ripple on the 5 volt rail. (I am thinking that ripple on the 5 volts could cause the microcontroller to misbehave and give incorrect timing and other problems.)
Les.
I also suspect thet the TO220 device next to the trsnsformer is a 5 volt regulator to suupply 5 volts to the microcontroller. I suggest checking for ripple on the 5 volt rail. (I am thinking that ripple on the 5 volts could cause the microcontroller to misbehave and give incorrect timing and other problems.)
Les.