View Single Post
  #1   Spotlight this post!  
Unread 08-11-2012, 19:17
MrTechCenter's Avatar
MrTechCenter MrTechCenter is offline
INTENSITY
AKA: Harsharan "Harsh" Dhaliwal
FRC #2073 (Eagleforce)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2010
Location: Sacramento, CA
Posts: 559
MrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant future
Help with limit switches?

So, we are using two limit switches for our bridge tipper. Our tipper is powered by one CIM motor, controlled by a victor. In it's normal, upright position one limit switch is being pressed, while the other remains open. When it is down, it's the opposite. We have the switches wired on NO to DIOs 1 and 2 on the Digital Sidecar. In LabView, button 7 on our joystick is wired to a case structure as well as the two DIOs. We have another case structure inside of that case structure so the code is:

-If button 7 is not being pressed, motor value is 0.
-If button 7 is being pressed, run motor value at 1 until limit switch 2 is hit.
-If button 7 is released while tipper is hitting switch 2, run motor value at -1 until limit switch 1 is hit.

But when we go to test it, we push the button on the joystick (we tried pushing all the buttons to make sure we didn't accidentally wire it to the wrong one) and nothing happens. I don't understand where we went wrong. Also, the light on the Victor blinks orange all the time, one time it turned solid until we shut the bot off, but then started blinking again when we turned it back on.
__________________
2011 Sacramento Regional Finalists; 2011 MadTown Throwdown VIP Excellence in Engineering Award; 2012 Sacramento Regional Innovation in Control Award; 2012 Silicon Valley Regional Judges' Award; 2012 CalGames Autonomous Challenge Award; 2012 MadTown Throwdown Finalists; 2013 P0W3RH0U53 PWNAGE Gracios Professionalism Award; 2014 Central Valley Regional Innovation in Control; 2014 Sacramento Regional Innovation in Control; 2014 Curie Division Gracious Professionalism Award; 2015 Sacramento Regional Innovation in Control