I have essentially two controllers, an RPi, another 5V-based controller (a Hunter Hydrawise irrigation controller), and a flow sensor that I want to connect to both controllers. For this I thought I'd use an opto-isolator/coupler.
I want to connect the flowmeter to the 5V controller using the circuit below. I just don't know how to connect the output side of the opto-coupler to the RPi GPIO input.
Can I use what I've got here or am I missing some components? (resistors/transistor)
www.circuit-diagram.org
Any help would be great, thanks!
I want to connect the flowmeter to the 5V controller using the circuit below. I just don't know how to connect the output side of the opto-coupler to the RPi GPIO input.
Can I use what I've got here or am I missing some components? (resistors/transistor)
Circuit Diagram Web Editor
Create electronic circuit diagrams online in your browser with the Circuit Diagram Web Editor.
![www.circuit-diagram.org](https://www.circuit-diagram.org/editor/c/b62b11c00a4b4f7f8d2e56038137108e/favicon.png)
Any help would be great, thanks!