Hello,
I have a need for a simple circuit to measure the speed of a fan using a PIC MCU but this will be used in an industrial environment.
Currently, I have a fan with a open collector RPM output.
The output then goes through a 100R resistor, then through a BAT54-S (Tied to 5V and 0V and com on the RPM signal) then through a resistor and cap to ground as a low pass filter.
This signal is then tied to 5V through a 10K pull up before going into a PIC input pin. See basic circuit below.

This seems to work perfectly without any problems and has been running for sometime.
On the board I also have a op-amp as a voltage follower measuring the voltage from a 10K / NTC potential divider, just as an over temp reading for the PCB.
Now my question is really, would it be a bad idea to also have a voltage follower to buffer the RPM signal before it goes into the PIC input pin?
What about a Schmitt trigger instead? Would that be more suitable as its really a digital signal?
Really, this is just a general discussion as the best way to sort of isolate the RPM signal from a 4 wire fan that is maybe a foot away for the PCB but external to the case.
Thanks