This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interface reed switch with 8051

Can anyone tell me how to connect reed switch to 89c51?
I directly connected the 2 ends of the swtch to vcc and ground.
but the switch is not functioning properly..
on application of 5 volts..as i bring magnet near to it..internal mechanism of the swtch gets short...
when i remove the magnet, it remains short, doesnt go to its original position, what to do?

Parents
  • So you used your reed switch like a nail to short between plus and ground?

    Just as a nail shorted over a car battery will get very hot - hot enough that the metal starts to melt - your reed switch didn't much like being used to short your power supply. That's why there is always a resistor or some other form of load in series with the reed switch, to limit the current then the reed switch closes.

Reply
  • So you used your reed switch like a nail to short between plus and ground?

    Just as a nail shorted over a car battery will get very hot - hot enough that the metal starts to melt - your reed switch didn't much like being used to short your power supply. That's why there is always a resistor or some other form of load in series with the reed switch, to limit the current then the reed switch closes.

Children