Probable answer - and a question
Many thanks for your comments.
I am thinking (until I get the next failure) that the problem is transient spikes induced in the cable to the depth-dependent variable resistor in the attic.
As you say, this is a 24/365 system. I have tried different ports, with no joy though no consistent results either. I don't think it can be a counter overflow because the time-to-failure ranges randomly between one and twelve hours. At present the silly analogue values are not a problem because they get better ten seconds later and I can ignore them. The failures, where the readings drop to near zero and stay there until a long power cut, are a problem, especially as I am soon away to Australia for four weeks (but I have now got a Belkin Wemo switch I can use to depower and repower this from there).
I now suspect that the twenty feet of wire running from the ground-floor co-op to the roof tank resistor may be picking up something and jinxing the system, so I have this morning disconnected this wire to test the system without it (my inputs currently have no protection) and it has so far run OK for more than twelve hours. Five silly analogue values in 12K readings in that time (12896, 28716, 7392, 3936 and 4064), but no sign of the main 'stuck-low-reading' problem.
I think I should put a capacitor across the bottom of the wire that leads to the attic. It would be in parallel with the tank resistor, which is normally about 135 ohms, and that would be equivalent to being connected between the A2 pin and Vcc. But what value?
Or should I place the capacitor between the A2 pin and earth? That's equivalent to being across the fixed 180 ohm resistor. Suggested values in various posts range from 100pF to 4700 microFarad.
Or an inductor in each lead? In which case, again, what value? I have none, but I see RS do them in anything from 10 microhenries to 100K microhenries.
I don't think I need a 5.4 volt zener. I have no high voltages (other than induced transients).
I did connect the pi's earth line to the house earth, but that made no difference.
My system has no inputs that need to move at a frequency much higher than a milliHertz.Statistics: Posted by cchd — Wed Sep 30, 2015 8:38 pm
]]>