
02-02-2015, 20:59
|
 |
FRC RI/FLL Field Manager
AKA: Max Vrany
 FRC #1306 (BadgerBOTS)
Team Role: College Student
|
|
Join Date: Jan 2011
Rookie Year: 2011
Location: Madison, WI
Posts: 2,081
|
|
|
Re: Two limit switches, one button
Quote:
Originally Posted by nickb705
After talking to my mentor, I had miss understood the intent of the limit switch, we DO want to want to have the motor run as long as the button is held, or the limit switch is hit, whichever comes first. I have figured out how to run the motor (up with button 1 and down with button 2) I could just use some help figuring out how to incorporate the two limit switches to turn the motor off. Any example would be highly appreciated!
|
There are 6 possible states for a button and 2 limit switches that can't be true at the same time. What do you want the motor to do for each of them?
- Button not pressed, Switch 1 false, Switch 2 false
- Button pressed, Switch 1 false, Switch 2 false
- Button not pressed, Switch 1 true, Switch 2 false
- Button pressed, Switch 1 true, Switch 2 false
- Button not pressed, Switch 1 false, Switch 2 true
- Button pressed, Switch 1 false, Switch 2 true
|