Hello,
I have a Arduino Mega 2560 and a hydrometer HYDRUS DN20. I want to get the hydrometer pulses for mesuring purposes.
In the datasheet, it says the pulses output is a open-collector circuit. Need a protective resistence in the collector branch for current limitation and the internal resistence of the switching device must be 5x the protective resistence, and i'm assuming the switching device is the arduino mega.
Someone could help me with those resistence, and how it should be the circuit.
No other resistance needed, no. Connect the 24 volt system GND with controller GND.
To awoid all risks for ground loops an opto coupler can be used. Then a pullup of 2.7 kOhm is used as pullup. Install the resistor close to the controller.
Yes. The 27k has to be used to voltage divide 24 volt to something less than 5 volts. 2.7k for an opto device limits the current to 10 mA.
2 completely aspects.
To be sure schematics showing the total build, 24 volt system powering as well as controller powering, is needed for safety. Using the opto couplper eliminates the risk for mains ground loops.