Help out a MechE! I need to switch a mechanical relay based on polarity of a +/- 10mV signal from a floating source - a battery tester. I'm using an LM339 to ascertain polarity, driving a ULN2803 to get enough current for the relays. Everything is powered using a 24V isolated supply. I created a virtual ground at 0.5V above V- using a resistive voltage divider and tied one of the inputs to that, in effect creating a Vref. The circuit still does not work until I tie the V- output of the 24V power supply to AC ground. Now it works, but we're really concerned about the effect of tying the battery tester to ground, particularly if it's biased relative to earth ground. Is it possible to use 0V as reference if the other input never goes below -300mV? To add insult to injury, merely probing the outputs on the LM339 with a voltmeter can make the difference between the circuit functioning and not.