This part of the circuit is all DC. The AC feeds a full bridge rectifier and then to a voltage divider, the DC output is fed through an opto isolator and then feeds through 2 339 one which is invert mode. It is a really tortuous circuit that seems to have been put together and then bits added here and there to make it work!
The normal mode of operation is in the OFF position for the relay, ie this means AC is detected. It stays in this mode all the time so Pin 14 is pulled low and sits at 1.3 volts. This seems strange as one would expect it to sit at near 0v
For the relay to chatter it must be turned ON and that means pin 14 will float HI to 6.4 v but immediately (1/2 sec) go low again. The only thing that controls the relay is this circuit????
I have attached a an updated schematic which also shows the fly back diode alluded to by Alec as I found it a way away from the rest of the circuit.
So I measured the inputs to the 339 and the output and the volts are shown in the schematic, These readings are all very stationary and I do not see small fluctuations.
Maybe I should be looking outside the box, poor connections, Knackered relay, temp breakdown etc as this only happens when the system reaches equilibrium.
It is a simple battery charger circuit that detects the AC and turns on the charge mode, when the batteries are charged it drops into a float mode and holds like 13.4v on the batteries, whilst in this float mode of just supplying enough current to keep the batteries at 13.4v does the relay chatter.
Getting quite lost in the 339 logic that has been implemented.