View Single Post
  #1   Spotlight this post!  
Unread 05-02-2013, 17:08
BPtigers BPtigers is offline
Registered User
FRC #4663 (i8sumpi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Minnesota
Posts: 25
BPtigers is an unknown quantity at this point
How to program a limit switch?

Right now my team is making a tower with a hook system that goes up and down. As of now I have the tower programmed so I can control the speed the thing goes up using the axis 3 whiling holding a button, and the same for the thing to come down. Right now we have two limit switchs hooked up to the hook thing so when the object hits the limit switch the motor Should stop in that direction. How can I program a limit switch to do that? I don't know how to program a limit switch at all. Below I have a picture of my code for the motor going down without a switch, so how do I make that work until I hit the bottom limit switch thanks a ton. Visuals are awesome. Thanks
Attached Thumbnails
Click image for larger version

Name:	motor up.PNG
Views:	89
Size:	15.6 KB
ID:	13815  
__________________
Ben
Reply With Quote