so i conect the positive of the battery to one end of the reed switch and the other end to a led positive, negative of the led to a resistor and then to the battery negative...the reed switch closes and opens with a magnet as it SHOULD.
then i conect an arduino uno also, i put the magnet reed switch come ON,i remove the magnet and reed switch still ON it will not shut down the arduino...
do you know what might be wrong?
thi is the reed switchhttps://www.sparkfun.com/products/10601
it works with just the load of the led conected but with a bigger load it just stays on until i hit it with my finger lol
If the switched current is too high a reed switch can sometimes weld shut. The model you have it rated at switching 250 mA which should be plenty for the Arduino but perhaps there is a high "inrush current" due to capacitors. How is everything wired? What voltage is the battery?
Draw us or tell us exactly how you have the reed switch wired to an arduino digital input pin. I suspect you have a 'floating input' condition and that there is nothing wrong with the switch. The easiest way to wire your switch is one side to ground, the other side to the input pin, and then enable the pin's internal pull-up resistor.
buton:
i am not putting the reed switch to a pin, i just want to power my board on and off. so far hitting it is the best way to turn it off lol
You failed to answer my question, why? The switch has two terminals, what do these two terminals wire to? Don't spare the details, we don't charge by the word here.
buton:
one end is wired to the battery(-) negative therminal, the other terminal is wired to the arduino GND
Well a ohm meter and a magnet should be able to tell you if the switch is FUBAR or not. The hammer is probably not all that useful a troubleshooting device, even though it can have therapeutic properties.