Maker Pro
Maker Pro

How do i connect a reed switch to a microprocessor?

Not many replies to be found in here..
Well, you simply connect one end of the reed to ground, the other to the input, and a pull-up resistor (1-100k) from the same input and up to Vcc. The input goes low when the reed is activated by a magnet.
 
Hi All,
I want to connect a reed switch (Model: ct05) to a Zigbee SoC cc2430 chip.
Can anyone tell me how i should wire this up ?
Thank you


Also, depending upon type of reed-switch, will determine whether or not you need or should debounce the switch. If the reed-switch is mercury whetted, you may not need to debounce, else, either debounce using a D-flip-flop externally or a small source code routine may be needed, provided your application requires it.
 
Top