Thread: Limit Switches
View Single Post
  #4   Spotlight this post!  
Unread 03-03-2009, 18:01
ebmonon36's Avatar
ebmonon36 ebmonon36 is offline
Registered User
AKA: Eric Bredehoeft
FRC #1018 (Robodevils)
Team Role: Mentor
 
Join Date: Dec 2002
Rookie Year: 2003
Location: Indianapolis, IN
Posts: 428
ebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud ofebmonon36 has much to be proud of
Send a message via AIM to ebmonon36
Re: Limit Switches

I used a case select on an "In Range and Coerce" block where the upper and lower limits are set by case statements controlled by a digital input and the input is the motor speed, assuming the motor is run by a speed controller.

For example, the upper limit would be 1. When the switch is tripped, the upper limit becomes 0, thus preventing the motor from driving in that direction. The lower limit would be -1 until the switch is tripped and the lower limit is set to 0.

Last edited by ebmonon36 : 03-03-2009 at 18:05.
Reply With Quote