I have built a little circuit to read the output from a current sense board, details hopefully attached of the device on the board. It outputs 2.5V DC with no current being sensed. If current is drawn the output rises or falls depending on polarity. I want the LM393 comparator to trip over at 3.7V, and it seems to do this, but looking at a meter and a LED on its output pin this is not a sudden change of state around that voltage. I THINK I need to add a feedback resistor, to add hysteresis? Can someone tell me what value to try and confirm it needs to go from output to the + In pin?
Secondly, I want the output to go straight to an inverter based on part of an HEF4069 hex inverter. Will the pull up resistor on the output of the comparator affect the inverter's operation? Is there a better way to get a Low output from the comparator?
I attach the schematic of my circuit, don't laugh too much, `tis my first attempt with Eagle
"IN" is from the current sense module, "OUT" is to the hex inverter.
Many thanks