Go to Post [the last period is] a free for all, both goals are turned on, and any robot can go anywhere on the field and score in any goal (although I would recommend scoring in the correct goal, not your opponents :D ) - Ryan Foley [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 16-10-2014, 14:40
bmammen's Avatar
bmammen bmammen is offline
Registered User
AKA: Brent Mammen
FRC #5801 (Inspire)
Team Role: Mentor
 
Join Date: Oct 2014
Rookie Year: 2014
Location: Kansas City
Posts: 30
bmammen is an unknown quantity at this point
Mechanical limit switches - acceptable practice?

We were wondering if it’s an acceptable practice to have a second normally closed limit switch wired in line with a motor and sitting just a little longer in the throw, past the electrically monitored limit switch as a safety precaution?

The reason that I ask is that last season we had two instances where our software controlled limit switch either didn’t work or was physically knocked off center causing a very strong bag motor with planetary gearbox to bend and break our launching mechanism as it didn’t shutoff the motor at the end of the throw.

Any suggestions?
  #2   Spotlight this post!  
Unread 16-10-2014, 14:50
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Mechanical limit switches - acceptable practice?

Quote:
Originally Posted by bmammen View Post
We were wondering if it’s an acceptable practice to have a second normally closed limit switch wired in line with a motor and sitting just a little longer in the throw, past the electrically monitored limit switch as a safety precaution?

The reason that I ask is that last season we had two instances where our software controlled limit switch either didn’t work or was physically knocked off center causing a very strong bag motor with planetary gearbox to bend and break our launching mechanism as it didn’t shutoff the motor at the end of the throw.

Any suggestions?
FRC legality aside, a few technical questions:

What motor controller were you using?

About the software you were using to detect the switch state: Was this an interrupt service routine or a polled task? If polled, at what frequency?

About the software you were using to react to the limit switch state: Was this an interrupt service routine or a polled task? If polled, at what frequency?

About the limit switch actuating lever: did you add a flexible extension to prevent permanent bending of the lever?

and finally:

What's the current rating on the limit switch you plan to put in the power line going to the motor?


  #3   Spotlight this post!  
Unread 16-10-2014, 14:56
pfreivald's Avatar
pfreivald pfreivald is offline
Registered User
AKA: Patrick Freivald
FRC #1551 (The Grapes of Wrath)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2001
Location: Naples, NY
Posts: 2,290
pfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond reputepfreivald has a reputation beyond repute
Re: Mechanical limit switches - acceptable practice?

The other question I'd ask is, is this a more-than-one-use mechanism? Because once that limit switch kills power to the motor....
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School

I write books, too!
  #4   Spotlight this post!  
Unread 16-10-2014, 14:57
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,494
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Mechanical limit switches - acceptable practice?

Quote:
Originally Posted by pfreivald View Post
The other question I'd ask is, is this a more-than-one-use mechanism? Because once that limit switch kills power to the motor....
Driver flails on the joysticks until the arm moves enough to lose contact!
  #5   Spotlight this post!  
Unread 16-10-2014, 14:58
bmammen's Avatar
bmammen bmammen is offline
Registered User
AKA: Brent Mammen
FRC #5801 (Inspire)
Team Role: Mentor
 
Join Date: Oct 2014
Rookie Year: 2014
Location: Kansas City
Posts: 30
bmammen is an unknown quantity at this point
Re: Mechanical limit switches - acceptable practice?

Actually I'd not like to put FRC legality aside, if it's against the rules then we don't want to do it.

Our motor controllers are Talon SR's and not Jag's with CAN controlled limits, and to focus on one of the scenario's - lets go with the switch was physically damaged during a match (and it was), so we can leave programming out of the discussion for right now unless the thinking is to add another monitor in addition to the limit switch.

Yes the normally closed limit switch would need to be rated for the current draw of the bag motor.

Just wondering if this is possible and legal.
Thanks for the reply!
  #6   Spotlight this post!  
Unread 16-10-2014, 15:00
bmammen's Avatar
bmammen bmammen is offline
Registered User
AKA: Brent Mammen
FRC #5801 (Inspire)
Team Role: Mentor
 
Join Date: Oct 2014
Rookie Year: 2014
Location: Kansas City
Posts: 30
bmammen is an unknown quantity at this point
Re: Mechanical limit switches - acceptable practice?

Quote:
Originally Posted by pfreivald View Post
The other question I'd ask is, is this a more-than-one-use mechanism? Because once that limit switch kills power to the motor....
Yes, the limit switch would be a safety mechanism and the robot would be done for the match however it could be fixed much easier than replacing a mangled launching assembly.
  #7   Spotlight this post!  
Unread 16-10-2014, 15:07
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Mechanical limit switches - acceptable practice?

Quote:
Originally Posted by bmammen View Post
lets go with the switch was physically damaged during a match (and it was), so we can leave programming out of the discussion for right now
Do you know with acceptable certainty why the switch got damaged? I ask because in your original post it sounded like you don't know why:

Quote:
two instances where our software controlled limit switch either didn’t work or was physically knocked off center
Before you fix something, it's worthwhile to make a concerted effort to figure out why it failed. Software could be the cause. Or lack of a flexible extension on the actuation lever. Or improper mounting of the switch.


  #8   Spotlight this post!  
Unread 16-10-2014, 15:13
bmammen's Avatar
bmammen bmammen is offline
Registered User
AKA: Brent Mammen
FRC #5801 (Inspire)
Team Role: Mentor
 
Join Date: Oct 2014
Rookie Year: 2014
Location: Kansas City
Posts: 30
bmammen is an unknown quantity at this point
Re: Mechanical limit switches - acceptable practice?

Quote:
Originally Posted by Ether View Post
Do you know with acceptable certainty why the switch got damaged? I ask because in your original post it sounded like you don't know why:



Before you fix something, it's worthwhile to make a concerted effort to figure out why it failed. Software could be the cause. Or lack of a flexible extension on the actuation lever. Or improper mounting of the switch.


Understandable, but similar to the reasoning behind breakers on the PDB - there could be a plethora of failures/mistakes/accidents and therefore never a bad idea to provide a safety mechanism to help narrow the scope of imperfection.
  #9   Spotlight this post!  
Unread 16-10-2014, 15:15
JamesCH95's Avatar
JamesCH95 JamesCH95 is offline
Hardcore Dork
AKA: JCH
FRC #0095 (The Grasshoppers)
Team Role: Engineer
 
Join Date: Dec 2004
Rookie Year: 2001
Location: Enfield, NH
Posts: 1,798
JamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond reputeJamesCH95 has a reputation beyond repute
Re: Mechanical limit switches - acceptable practice?

Quote:
Originally Posted by bmammen View Post
Yes, the limit switch would be a safety mechanism and the robot would be done for the match however it could be fixed much easier than replacing a mangled launching assembly.
Not necessarily. If the arm contacted a spring (a cushioned hard-stop is a good idea anyway) that was able to push the arm off the switch after the switch cut power to the motor, you could reset everything. That's just an example.

Or this...

Quote:
Originally Posted by AdamHeard View Post
Driver flails on the joysticks until the arm moves enough to lose contact!

This, however, is the most important part.

Quote:
Originally Posted by Ether View Post
Do you know with acceptable certainty why the switch got damaged? I ask because in your original post it sounded like you don't know why:

Before you fix something, it's worthwhile to make a concerted effort to figure out why it failed. Software could be the cause. Or lack of a flexible extension on the actuation lever. Or improper mounting of the switch.
__________________
Theory is a nice place, I'd like to go there one day, I hear everything works there.

Maturity is knowing you were an idiot, common sense is trying to not be an idiot, wisdom is knowing that you will still be an idiot.
  #10   Spotlight this post!  
Unread 16-10-2014, 15:20
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Mechanical limit switches - acceptable practice?

Quote:
Originally Posted by bmammen View Post
Yes, the limit switch would be a safety mechanism and the robot would be done for the match however it could be fixed much easier than replacing a mangled launching assembly.
If your root-cause failure analysis reveals that it's a software timing issue (your software as designed can't reliably respond fast enough to the limit switch), you might want to consider using a pot instead of a limit switch as your primary means of preventing motor overtravel. That would give your software a lot more time to respond and slow the motor down.


  #11   Spotlight this post!  
Unread 16-10-2014, 15:24
bmammen's Avatar
bmammen bmammen is offline
Registered User
AKA: Brent Mammen
FRC #5801 (Inspire)
Team Role: Mentor
 
Join Date: Oct 2014
Rookie Year: 2014
Location: Kansas City
Posts: 30
bmammen is an unknown quantity at this point
Re: Mechanical limit switches - acceptable practice?

Quote:
Originally Posted by Ether View Post
If your root-cause failure analysis reveals that it's a software timing issue (your software as designed can't reliably respond fast enough to the limit switch), you might want to consider using a pot instead of a limit switch as your primary means of preventing motor overtravel. That would give your software a lot more time to respond and slow the motor down.


Awesome, thanks for the input! We'd talked about adding a pot and that sounds like a good option.
  #12   Spotlight this post!  
Unread 16-10-2014, 15:27
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,695
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Mechanical limit switches - acceptable practice?

A limit switch in the motor power pathway sounds like it would violate last year's R50 and primarily R53, but a robot inspectors advice is more valuable on questions such as these.
Quote:
R53

CUSTOM CIRCUITS shall not directly alter the power pathways between the ROBOT battery, PD Board, motor controllers, relays, motors, or other elements of the ROBOT control system (items explicitly mentioned in R64). Custom high impedance voltage monitoring or low impedance current monitoring circuitry connected to the ROBOT’S electrical system is acceptable, if the effect on the ROBOT outputs is inconsequential.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #13   Spotlight this post!  
Unread 16-10-2014, 15:42
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,544
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Mechanical limit switches - acceptable practice?

I agree with Mark that it isn't legal to place a limit switch inline with a motor.

We've typically chosen two options from the following list:
  • Limit Switch with software control
  • Potentiometer or Encoder with PID control and soft limits
  • Current sensor
  • Mechanism robust enough that it doesn't matter

Another option is to use the limit switch inputs on the jaguars, which will operate faster then your software and won't get commented out accidentally.
  #14   Spotlight this post!  
Unread 16-10-2014, 17:04
FrankJ's Avatar
FrankJ FrankJ is offline
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,886
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Mechanical limit switches - acceptable practice?

Joe stole my comment about using Jags.

Anyway, as much as I like to rag on the software guys, Limit switch failures are almost always mechanical & how they actually stop the motor is not the issue.

Anything that requires double protection like you are suggesting, you want to separate the modes of operation as much as practical. Like using a feedback pot for normal posting & limit switch through a jag for the end points.
__________________
If you don't know what you should hook up then you should read a data sheet
  #15   Spotlight this post!  
Unread 16-10-2014, 17:15
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,719
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Mechanical limit switches - acceptable practice?

As others have said, this would be illegal. The intent, as I read it, of R53 is one of safety- we need to know that the robot will cooperate in a predictable way when connected to the field (for example the field says stop and the motors all stop), and we need to know that the components can handle the current the motor is going to be pulling. As such, this is something I could see as being something teams could lobby the HTC to change in future years- an appropriately rated limit switch wouldn't prevent the motor from stopping. The trick is finding an appropriately rated limit switch and ensuring inspectors can verify rinsing catch on fire while on the field.

Using the limit switch into a jag helps, as it takes it out of the programmers control. Additionally, we've always designed in a hard stop that would force the motor to stall before a mechanism ripped itself apart. This was also a good place for the limit switch, as the hard stop can help prevent a mechanical failure of the switch. Leave it stalled long enough and the mechanism might still year itself apart, but the hard stop gives you a small buffer for the code to respond to the limit switch.

Where possible, potentiometer or absolute encoders can also come in handy for helping to control a mechanism and limit its range of motion.
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:56.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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