Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Limit Switch Issues (http://www.chiefdelphi.com/forums/showthread.php?t=116195)

inkspell4 17-04-2013 22:19

Limit Switch Issues
 
Has anyone had issues with limit switches tripping due to excessive vibraton?

Woolly 17-04-2013 22:22

Re: Limit Switch Issues
 
Quote:

Originally Posted by inkspell4 (Post 1263942)
Has anyone had issues with limit switches tripping due to excessive vibraton?

No, but a way to fix that would to be to put a filter on your limit switch in code. That way it has to stay down for a certain amount of time before the code reads it as tripped.

asteb27 17-04-2013 23:34

Re: Limit Switch Issues
 
What limit switches are you using? Also, that much vibration may point to a mechanical issue (for example, non symmetric shooter wheels)

lonnie lascelle 17-04-2013 23:35

Re: Limit Switch Issues
 
We have noticed back EMF noise generated from the motors to cause false tripping "limit switch closures" on our robots. Many of the false triggers can last for a second or two. Filtering in code, suppressing via capacitor, using 5 volts as input, using ferrite doughnuts, and assuring good wiring practice(keeping wires as short as possible for motor and signals, twisting pairs, not running signal wires near or in parallel with motor power wires). generally eliminates these issues. Be sure to ward off this in all areas to limit the issue. Have you tried to put a meter on the limit switch? Start by using a AA battery in-line and set meeter to hold peak or min/max hold (assure the robot wires are not connect) and then drive the robot causing vibration to see if it actually mechanically opens or bounces? Try to confirm that the limit is mechanically vibrating open and closed. We have often thought that we must have a bad limit or excessive vibration only to find noise.

zaphodp.jensen 18-04-2013 09:34

Re: Limit Switch Issues
 
One other simple thing to try is just making a mechanical "filter". This year, my team had issues where a limit switch with a longer paddle was bouncing up and down, preventing us from using our lifter. The solution: We wrapped a piece of surgical tubing around the paddle, and attached it above the limit switch, so the tubing was slightly stretched. It worked great, and we didn't have any more false triggers.

inkspell4 18-04-2013 17:08

Quote:

Originally Posted by zaphodp.jensen (Post 1264148)
One other simple thing to try is just making a mechanical "filter". This year, my team had issues where a limit switch with a longer paddle was bouncing up and down, preventing us from using our lifter. The solution: We wrapped a piece of surgical tubing around the paddle, and attached it above the limit switch, so the tubing was slightly stretched. It worked great, and we didn't have any more false triggers.

Do you have a picture of this?

inkspell4 19-04-2013 20:08

What is a good robust type of limit switch?

timytamy 19-04-2013 20:54

Re: Limit Switch Issues
 
We had an issue where the switch where the micro switch that we used to position frisbees before the shooter would bounce mechanically, ie occasionally it would detect two frisbees passing through instead of the one. The switch was set up so that it had a flexible surgical tubing extension that contacted the frisbee. We found the extra mass of the tubing would give it a higher inertia, and give it a higher tendancey to bounce.

We solved this by removing the tubing and by repositioning the switch so that it contacted a bent metal section of the lever, in tandem software also implemented debouncing code. (Which I think we disabled after fixing the problem mechanically)

As for what limit switch, in Australia we use: http://australia.rs-online.com/web/p...itches/515735/ It is pretty much identical to the one that came in the KoP (except grey, and slightly higher current rating) and has been very versatile.

Tim

Al Skierkiewicz 19-04-2013 22:37

Re: Limit Switch Issues
 
Lonnie,
I am a little surprised at the noise problems you are having. If you use the normally closed contacts, then the line impedance is so low (effectively zero ohms) that noise would only affect the input circuitry if a motor was directly connected to the switch. Even when using the normally open contacts there is still a low enough impedance by the DSC input to be relatively immune to noise pickup. What you may have is an intermittent switch contact that is affected with vibration. The result would be a rapidly changing trigger to the DSC. This should be easily diagnosed by rapping the switch with the insulated end (handle) of a screwdriver. Microswitches can be damaged by rough handling of the exterior contacts. In rare cases, the internal spring can be damaged or broken resulting in the effect you describe.

inkspell4 21-04-2013 16:11

Quote:

Originally Posted by timytamy (Post 1264993)
We had an issue where the switch where the micro switch that we used to position frisbees before the shooter would bounce mechanically, ie occasionally it would detect two frisbees passing through instead of the one. The switch was set up so that it had a flexible surgical tubing extension that contacted the frisbee. We found the extra mass of the tubing would give it a higher inertia, and give it a higher tendancey to bounce.

We solved this by removing the tubing and by repositioning the switch so that it contacted a bent metal section of the lever, in tandem software also implemented debouncing code. (Which I think we disabled after fixing the problem mechanically)

As for what limit switch, in Australia we use: http://australia.rs-online.com/web/p...itches/515735/ It is pretty much identical to the one that came in the KoP (except grey, and slightly higher current rating) and has been very versatile.

Tim

Is there any way that i can see the code that you wrote?

Shiri 21-04-2013 16:31

Re: Limit Switch Issues
 
612 uses similar logic with our joysticks:
https://github.com/anidev/612-2013/b...edJoystick.cpp
(see GetRawButton())
Hope this helps!

inkspell4 08-05-2013 20:32

To update this problem has not yet been solved.

It has been determined that vibration inside the limit switch is causing the problem.

Hardware solutions would be prefered.

Mark McLeod 08-05-2013 20:42

Re: Limit Switch Issues
 
Perhaps vibration isolating the switch by mounting it on shock absorbing foam rather than directly to a solid piece of vibrating frame.
Maybe a firmer style switch like the big ones we've received in older kits.

Pendulum^-1 09-05-2013 07:28

Re: Limit Switch Issues
 
Recommend going optical.
https://www.sparkfun.com/products/9299
https://www.sparkfun.com/products/9322
(Get the breakout board with the photo interrupter.)

Or maybe try this:
https://www.sparkfun.com/products/246

If nothing else, extend a small, opaque tab in a position such that the above products give you a return at an appropriate location.

We tested the photo interrupter out for a home made linear encoder this year. While we never used it, the concept worked quite well, with the interrupter/optical limit switch hooked to the digital input on the sidecar. The Optical Detector / Phototransistor could pointed across the path of your mechanism, but close enough to the path so that when the mechanism passed across the interrupter, you got a response. Should be very accurate. While we have not tried this, I plan to test out the concept this summer, to have another item in our bag of tricks.

Al Skierkiewicz 09-05-2013 07:38

Re: Limit Switch Issues
 
Quote:

Originally Posted by inkspell4 (Post 1273456)
To update this problem has not yet been solved.

It has been determined that vibration inside the limit switch is causing the problem.

Hardware solutions would be prefered.

Can you post a photo of the mounting of the switch. These are used in industrial applications all the time and vibration is rarely a problem. Often the actuator is actually the problem and that is easily solved with external damping. As I stated earlier it is always possible you have a damaged switch. The construction of the microswitch uses a spring to hold the contacts in place.
Are you experiencing "contact bounce" instead? There are certainly electronic and programming techniques that can eliminate this condition.


All times are GMT -5. The time now is 11:18.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi