I’m trying to monitor the signal to a anti-rust chemical injection system to a lawn irrigation system. Seems the controller to this system has flaked out and it simply runs all the time. So we have to unplug it when its not needed. I have a micro controller wired to a Powerswitch Tail 2 and it seems to work with a button I currently have for the input signal.
The problem is sensing when the water is flowing. The broken system has a flow sensor that is from what I could glean a 3-wire hall effect sensor that plugs into a special plumbing union that must spin some magnets around when there is flow through the union. From a volt meter, I see one line is about 14V DC, there is a ground line, and what I assume is the signal. A line that when water is flowing is about 7 Vdc and about 1.4 Vac. So I assume the AC is the signal caused by the moving magnets and the signal is DC biased to about half the input voltage.
I am going to use a Resister based voltage dividor to bring the signal down to a MCU friendly voltage range. I’m going to software handle the signal to detect when there is meaningful AC.
My problem is I don’t now how safe it is to connect the Microcontroller Ground to the injector’s controller’s ground. Could be bad for both, idk. Also the Injector controller and pump are AC powered so there’s probably noise, and the potential for spikes. So I was hoping to find something to isolate them from each other.
At first an opto-coupler sounded like the correct thing I wanted. But the more I read the more they sounded like switches of some kind. I need communicate enough of the signal to monitor the AC portion to detect flow.
Is an opto-coupler what I want or is there something else?
Thx.