relay not steady
Jayguy5000
Posts: 139
ok I am controlling a relay with the bs2 high out command. The I/O pin is connected to a transistor and resistor then goes to the relay coil to turn it on and off. I am getting the relay to work but about every 3 seconds the test light I am using flickers off real quick then its back on. why is this happening and how do I make the relay stay steadily on?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Actually I think Im going to add the whiskers to my tank and let it roam, just need to figure out where.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Actually I think Im going to add the whiskers to my tank and let it roam, just need to figure out where.
Comments
HIGH 5
DO
LOOP
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting, and XBee Wireless Adapters- Close out on Adapters!
Southern Illinois University Carbondale, Electronic Systems Technologies
DO
high 0
LOOP
and now the relay is stuck in the on position, I turned off the bs2 and disconected the batteries to the coil of the relay. I also tried a LOW 0 command. also did a
DO
HIGH 0
PAUSE 1000
LOW 0
PAUSE 1000
LOOP
and still the light is on. what should I do?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Actually I think Im going to add the whiskers to my tank and let it roam, just need to figure out where.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Actually I think Im going to add the whiskers to my tank and let it roam, just need to figure out where.
What is the goal here, that seems to be missing?
If your program falls through to an END statement, you will get the symptoms you are seeing. You can avoid that by ending your program with the STOP command.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Actually I think Im going to add the whiskers to my tank and let it roam, just need to figure out where.
As you can probably see by now HIGH will turn it ON and LOW will turn it off. If you put in in a LOOP, it will go ON-OFF, ON-OFF, ON-OFF. If that's not what you want, remove the DO and LOOP commands.
Please note my comments about using the END statement above. Please also note the comments that Mike Green made above as well.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Actually I think Im going to add the whiskers to my tank and let it roam, just need to figure out where.
The relay probably is not fixable. If it's an open relay (rather than sealed in a box) and it's large enough, you can sometimes pry the contacts apart and it'll work again, but not "good as new". Often the contacts are plated or clad with some material to help conductivity and that is melted or vaporized in a small, critical spot.
Russ
Looks like you beat me to the punch, Mike, we must have been typing at the same time.
Post Edited (Professorwiz) : 8/12/2007 12:25:56 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
StampPlot - GUI and Plotting, and XBee Wireless Adapters- Close out on Adapters!
Southern Illinois University Carbondale, Electronic Systems Technologies
First establish if the relay works or not using just the recommended power supply, if connecting and disconnecting does not seem to have any effect change the relay out for a new one.
When you have a relay that works measure the steady ON state current. Replace your transistor with one that has a max collector current rated at·least 4 or·5 times greater than the the value of your relays steady ON state.
Here a Parallax link to aid you with choosing resistance values and connecting protection diodes, your relay will take the place of the motor in the image.
http://forums.parallax.com/attachment.php?attachmentid=37701
Additional information a link to the data sheet for·your existing·transistor
http://www.fairchildsemi.com/ds/2N/2N5961.pdf
Jeff T.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support