Pages: [1]   Go Down
Author Topic: operation of reed switch problem  (Read 1710 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 69
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


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
« Last Edit: September 13, 2012, 08:48:22 am by buton » Logged


Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 212
Posts: 8952
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Offline Offline
Jr. Member
**
Karma: 0
Posts: 69
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

i have a 3.7 lipo battery


* IMG_0429.JPG (90.26 KB, 640x480 - viewed 36 times.)
Logged


Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 69
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.  smiley-wink
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 69
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

one end is wired to the battery(-) negative therminal, the other terminal is wired to the arduino GND
Logged


Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.  smiley-wink
Logged

Pages: [1]   Go Up
Jump to: