Interesting, I'll keep that in mind.If you tie both LM339 outputs together with one pullup to 5V that will do as they have open collector outputs.
The gate is not needed.
Interesting, I'll keep that in mind.If you tie both LM339 outputs together with one pullup to 5V that will do as they have open collector outputs.
The gate is not needed.
OK, I'll check the characteristics of the load. That would simplify things considerably.AC current draw is almost always symmetrical around zero, so all you have to do is sense one side of the waveform.
Short circuit faults can cause asymmetric currents to flow, so I'll stick with the dual comparator concept.OK, I'll check the characteristics of the load. That would simplify things considerably.

What value has Vref? Exactly in the middle between Vs and GND?I think I'll need to invert those gates as I want the signal to go high when the voltage is outside the window. Something more like
View attachment 234437
Yes, it sets the mid point bias for the output from the Hall effect current sensor. So for a 5v supply and a 200mV/A sensor and 5A AC load the output will vary from 1.5 to 3.5 volts.What value has Vref? Exactly in the middle between Vs and GND?
Generally, it is illegal for it not to be symmetrical (EN61000-3-2) but hair-dryers are an exception!AC current draw is almost always symmetrical around zero, so all you have to do is sense one side of the waveform.
Thanks for the constructive feedback. R4 & R5 from that circuit are definitely gone, and the setpoints are now set with a 3 resistor chain as the original diagram did not make it clear which was the low and high setpoints.Your post #15 circuit is how I would have done it. I don't think I would have bothered with R4 and R5, and you can lose one resistor from R2.1, R3.1, R2.2, R3.2 by having one resistor to 5V, one resistor to 0V, and one between the inputs, and as @dendad said, wire-or the outputs with a single pull-up.
One thing to watch out for are loads which draw high pulse currents - things with toroidal transformers and large smoothing capacitors. They would trigger your circuit long before you expect it to.

Good catch thank you. You are correct in that the datasheet notes "the difference between the threshold voltages being the hysteresis voltage"Looks more like lose-lose to me, as the 841 isn't a window comparator. It sets the output when it goes above the high threshold and resets when it goes below the lower one, and seems like it uses the same number of resistors.
I doubt you'll get anything cheaper than a LM393!Good catch thank you. You are correct in that the datasheet notes "the difference between the threshold voltages being the hysteresis voltage"
Back to the drawing board.