Go to Post I'd rather have a target on my back than be invisible to the competition. - Chris is me [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 15-02-2014, 17:18
lokistormbringe lokistormbringe is offline
Registered User
FRC #4681
 
Join Date: Oct 2013
Location: Dark/Under/Evil World
Posts: 6
lokistormbringe is an unknown quantity at this point
Limit Switch Tripping

Our team is currently using a catapult arm driven by two cim motors with a similar configuration to Boom Done's catapult. Currently, we have a wire attached to the large gear at the top to trigger a limit switch that stops the throwing arm. However, the wire keeps bending out of shape. We are looking for something strong enough to trigger the switch but flexible enough to bend around the switch and the frame while returning to the same position. Do you guys have any ideas?

actual pics can be posted later if you need to see the current config.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2014, 17:39
SenorZ's Avatar
SenorZ SenorZ is offline
Physics Teacher
AKA: Tom Zook
FRC #4276 (Surf City Vikings)
Team Role: Teacher
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Huntington Beach, California
Posts: 936
SenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond reputeSenorZ has a reputation beyond repute
Re: Limit Switch Tripping

So, you have a throwing arm rotating at a high speed (?) and stopping once a limit switch gets tripped?
I would recommend trying to program your "launch" command to only power the motor for a set amount of time. I'm not a programmer though so I don't know how to implement that exactly.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2014, 19:23
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,187
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: Limit Switch Tripping

If you can post what language you're using, I could help you with the programming of the timing operation mentioned above.
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2014, 21:53
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Limit Switch Tripping

Instead of metal, maybe you can try a strip of lexan? It'll flex but return to its original shape (unless you overstress it).
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2014, 08:45
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: 580
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 Switch Tripping

We used small strips of plastic taken from a plastic bottle (I think it was a liquid Tide container) to do something similar last year.
__________________
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
Reply With Quote
  #6   Spotlight this post!  
Unread 16-02-2014, 08:55
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,020
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Limit Switch Tripping

Quote:
Originally Posted by lokistormbringe View Post
actual pics can be posted later if you need to see the current config.
Yes, we need to see what you're talking about. Pictures are always very helpful.

See if you can make it so that the switch will be triggered as the arm approaches the end of it's travel, not when it reaches it. And so that the switch is activated as the thing touching it goes by, not as it runs into it. Hard to explain, but make it so that it works sort of like a cam, pushing the switch from the side, not directly in it's face.

We've had lots of trouble with limit switches in applications like this...so this year we have pneumatics doing all of the arm moving stuff, and the only motors on the robot turn stuff that can keep spinning as long as it wants to
Reply With Quote
  #7   Spotlight this post!  
Unread 16-02-2014, 21:17
lokistormbringe lokistormbringe is offline
Registered User
FRC #4681
 
Join Date: Oct 2013
Location: Dark/Under/Evil World
Posts: 6
lokistormbringe is an unknown quantity at this point
Re: Limit Switch Tripping

Quote:
Originally Posted by Whippet View Post
If you can post what language you're using, I could help you with the programming of the timing operation mentioned above.
We are using java. The current code runs the throwing arm at full until the top switch is hit and them slowly reverses it back into place. It stops when a second limit switch is hit at the bottom

Last edited by lokistormbringe : 16-02-2014 at 21:28.
Reply With Quote
  #8   Spotlight this post!  
Unread 16-02-2014, 21:37
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,187
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: Limit Switch Tripping

Quote:
Originally Posted by lokistormbringe View Post
We are using java. The current code runs the throwing arm at full until the top switch is hit and them slowly reverses it back into place
Alright. I'm not too good with Java, but I think the pseudocode for such an operation would look something like this:

Code:
if(stick.getRawButton(Trigger) == true){
arm.setSpeed(speed);
timer.Delay(time);
arm.setSpeed(0);
}
else {
arm.setSpeed(0);
}
where the variable Time is equal to how long your arm needs to be run, Speed is the power you are applying to your arm, and Trigger is the appropriate button on your joystick. Sorry if this is incorrect, I use LabVIEW and just started learning Java this weekend, but I *think* with some tweaking, this should be what you want.

EDIT: This is for a strictly timing-based solution like SenorZ suggested. I am as yet unsure of how to get the values from limit switches.
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)

Last edited by Whippet : 16-02-2014 at 21:41.
Reply With Quote
  #9   Spotlight this post!  
Unread 16-02-2014, 23:01
tStano tStano is offline
Registered User
AKA: Sparks
no team
Team Role: Electrical
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Madison, WI
Posts: 177
tStano will become famous soon enough
Re: Limit Switch Tripping

A limit switch is a DigitalInput, and its 'get()' may return true or false when pressed depending upon the switch.

It sounds as if you have the code figured out to me. It sounds like you are looking for the mechanical solution to hitting the switch; of which I have none.
But if you need help with code; feel free to PM me and we can work it out some more.
Reply With Quote
  #10   Spotlight this post!  
Unread 17-02-2014, 01:25
om_nom_nom om_nom_nom is offline
Registered User
AKA: Nam
FRC #0708 (Hardwired Fusion)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2012
Location: Pennsylvania
Posts: 6
om_nom_nom is an unknown quantity at this point
Re: Limit Switch Tripping

Like other people have said, you'll want to trip the limit switch as it passes right before the endpoint, but not at the end point. Momentum should carry it over a bit if you have your motor controllers set to coast, and you can set a timer of some sort to count before it goes backwards. As for what material to use to trip it, try a decently thick zip tie/ wire tie.

Code-wise, it could look something like this in a CommandGroup:
Code:
addSequential(new MoveArmForwardUntilLimit());
addSequential(new WaitCommand(0.5));
addSequential(new MoveArmBackwardsUntilLimit());
Reply With Quote
  #11   Spotlight this post!  
Unread 17-02-2014, 19:38
lokistormbringe lokistormbringe is offline
Registered User
FRC #4681
 
Join Date: Oct 2013
Location: Dark/Under/Evil World
Posts: 6
lokistormbringe is an unknown quantity at this point
Re: Limit Switch Tripping

Thanks for the coding help. To trip the switch we are going to go with the plastic idea. We cut apart the bottom of a plastic bin and its tripping the switches just fine.

Thanks guys!
Reply With Quote
Reply


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 18:33.

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