Hi, I've been trying for a while now to detect when a voltage crosses a threshold. I've been using comparators. First the LM311 and now the
TL3016.
The threshold I'm after is 2.5v and I've been trying to use a hysteresis of around 100mv but nothing seems to work. Either its very noisy with HF spikes or the hysteresis seems not to be centred.
Ultimately I am try to detect zero current through a motor using a current shunt and current shunt monitor
LT1999 or
INA282.
These both give a voltage dependant on current and direction and is centred around 2.5v.
I used the LT1999 with its reference voltage pin into the TL3016 but it loaded it and affected the reference voltage. I then passed the reference though a MCP602 as a voltage follower and then into the TL3016 and this gave me a perfect output that triggered when the motor current was at zero (LT1999 output at 2.5v) however it only worked when my motor was in one direction. My motor drive uses PWM through a H-Bridge and runs in both directions.
Any ideas on getting the signal I need? Or another way of getting zero current through a motor?