I need to build a circuit that closes when it detects the passing of a magnetic card.
It should open again when the card passes again.
So I need a simple magnetic reed (like this one). And some kind of switch component that closes when it detects a current pulse from the magnetic reed (right?).
Can someone tell me what kind of component I should use?
Best Answer
You could use reed switch output to toggle a flip-flop such as a 74LV74.
Simply connect the /Q output to the D input and the clock input to the debounce circuit output. /CLR and /PRE must be tied high (along with any other unused inputs from the other half of the chip).
The Q output will go high and low alternately each time the switch opens. It will not start up in any particular state, to do that requires a bit more circuitry and the use of the /CLR or the /PRE input.
Do not substitute a flip-flop that does not have a schmitt trigger clock input or you may get false operation.