Go to Post neato. - ebarker [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 23-01-2015, 21:37
ahudson ahudson is offline
Registered User
FRC #3179
 
Join Date: Jan 2010
Location: aDAIR
Posts: 47
ahudson is infamous around these parts
Limit switches

Our team has never used a limit switch, but this year we want to include one. The purpose is for our lifting mechanism. We would like to place a limit switch at the top and bottom to cut the power at a certain point. Any good place to start to learn how to wire it correctly?
  #2   Spotlight this post!  
Unread 23-01-2015, 22:38
TFleig78's Avatar
TFleig78 TFleig78 is offline
Registered User
AKA: Tyler
FRC #0078 (Air Strike)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Rhode Island
Posts: 58
TFleig78 will become famous soon enoughTFleig78 will become famous soon enough
Re: Limit switches

The limit switch wires go to the DIO on the RoboRio. Use the ground (black) and signal (white) wires. Most of the switches have NO(normally open) and NC(Normally closed) options. Wire the signal wire to one of these pins, and the ground to the ground or common pin on the limit switch.
The detailed specifics depend on which limit switch you use.
  #3   Spotlight this post!  
Unread 23-01-2015, 23:00
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,654
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Limit switches

For switches with both normally open (NO) and normally closed (NC) options, the surest way is to use BOTH. Assuming you have your 3-pin cable color-coded as a standard PWM cable, connect the white pin to common, the red to normally open, and the black to normally closed. This way, you will get a definite 0V (OFF) when the switch is in the normal position, and a definite 5V (ON) when the switch is in the activated position. I don't know if this is critical for a 'RIO based system, but when I've done other microcontrollers (e.g. arduino), having a "floating" signal line gave indeterminate answers. Wire it this way, and you can use it on nearly any system.

Just as important as wiring the limit switch correctly is mounting it correctly. You must ensure that the switch is not part of the "hard" force that brings your load to a crunching stop. This can be accomplished by mounting the limit switch inside the stop, but back far enough so that it will not be crushed (like a push-button refregerator light switch), or on the side of the load so that the switch is activated by being pushed out of the way (like a lever-style refregerator light switch).
  #4   Spotlight this post!  
Unread 24-01-2015, 10:11
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Limit switches

The roborio has pullups on the digital inputs, so you can get away with just having the switch pull the signal pin to ground. That way you don't have 5V off the roborio out where it could possibly get shorted, for example, if the switch is connected wrong.
__________________
Brian K
Team 1225 Robotics Mentor
  #5   Spotlight this post!  
Unread 24-01-2015, 20:23
ahudson ahudson is offline
Registered User
FRC #3179
 
Join Date: Jan 2010
Location: aDAIR
Posts: 47
ahudson is infamous around these parts
Re: Limit switches

Thank you for the help! Now, to try to program it.
  #6   Spotlight this post!  
Unread 25-01-2015, 07:21
BlueOps4216MrG's Avatar
BlueOps4216MrG BlueOps4216MrG is offline
Coach
FRC #4216 (Blue Ops)
Team Role: Coach
 
Join Date: Mar 2012
Rookie Year: 2012
Location: Jackson,MI
Posts: 6
BlueOps4216MrG is an unknown quantity at this point
Re: Limit switches

We have used the limit switch function of the Jaguar Motor controllers in the past which allows you to avoid any programming. Not sure how others feel about this but it worked OK for our ball intake arm last year.
  #7   Spotlight this post!  
Unread 25-01-2015, 11:08
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 578
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Limit switches

We had trouble with noise on long runs to limit switches on our 2013 robot. There were two fixes that worked for us -- increasing the pullup current using an external resistor, or a shielded run to the switch (22ga security system cable).
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
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 19:28.

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