This circuit outputs LOW on D when a magnets passes by the reed switch. Can it be converted to output HIGH instead? (HIGH being 3.3V, the voltage at which I'm powering the circuit).
Attachments
-
80.5 KB Views: 43
That would work also. BUt the request in post #1 was to modify, not add parts. If the circuit is on a PCB then it does get a bit more tedious, but cutting runners and adding jumpers can certainly be done.I can lift the legs #5 and #6 of the LM393 and re-route the connections...
However, what about connecting the gate of an AO3400 N-Channel mosfet to D, the source to ground, the drain to VCC using a 10K resistor and use the voltage level measured from drain to ground and output? I'd like to trigger at interrupt on a microcontroller that expects 3.3V logic, in this case a HIGH signail.
Not only that, but why use a potentiometer at all?I don't get it: what's the point of using comparators with a reed switch?
Ah. So, don't believe everything you reed on the internet....it may not be really a "reed switch".
J999, you shoould be aware by now that half the time somebody has already decided where the problem is, and is asking for a fix, when the problem is someplace not in the part we are shown. There are many types of sensors that simply change resistance in response to some physical change, but they do not have a standard symbol. The best I have seen tor those was "Thing #1" and "Thing #2" on a drawing done for me. I told the detailer who did the drawing that was perfect, until I could discover the proper symbol.I don't get it: what's the point of using comparators with a reed switch?
These arduino sensor modules share the same basic LM393-as-comparator circuit.I don't get it: what's the point of using comparators with a reed switch?
The schematic in post #1 has pull-ups, so that is not an issue in this case.unlike an OP-AMP, the LM393 COMPARATOR requires a pull-up resistor because it has an NPN open collector output.
It was an error I made on another thread, then. It had an LM393 lighting an LED tied to the output with a series resistor to V+, which works. But they wanted to revers the sense of the LED, With an op-amp used as a comparator that would be simple, just put the LED and resistor between output and common instead of between output and V+. With an NPN open collector output it is a bit more complicated. And much less efficient.The schematic in post #1 has pull-ups, so that is not an issue in this case.
ak