Go Down

Topic: operation of reed switch problem (Read 1 time) previous topic - next topic

buton

Sep 13, 2012, 03:45 pm Last Edit: Sep 13, 2012, 03:48 pm by buton Reason: 1

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
visit www.diveduino.com

johnwasser

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?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

buton

i have a 3.7 lipo battery
visit www.diveduino.com

retrolefty

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.

Lefty


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
visit www.diveduino.com

retrolefty


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
visit www.diveduino.com

retrolefty


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.  ;)

Go Up