Go to Post So, if you feel your team is at a disadvantage, or the playing field isn't level.... Do something about it. - AdamHeard [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 08-11-2012, 19:40
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,835
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Help with limit switches?

If the Victor is blinking orange, then it isn't receiving a signal.
If it worked once and your code hasn't changed, then it's likely to be an electrical problem.
Really, the only code reason the Victor should be blinking is if the device wasn't Opened properly.

Failure to receive a signal can be the PWM cable - not seated properly in the Victor (common), plugged in backwards, or a bad cable. You can test the cable with a multimeter and you'll be able to detect the power of the signal (even a neutral signal) at the Victor end of the cable if it's good. The robot just has to be Enabled for the signal to be active.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-11-2012 at 07:45.
  #3   Spotlight this post!  
Unread 09-11-2012, 00:19
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: 935
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: Help with limit switches?

Try dropping your case structure into a new LabView vi using a "button" in the Front Panel instead of the Joystick button in block diagram. And send the on/off signal from the case to an "LED" that will light up for 1,0,-1 different colors. If this standalone program lights up correctly in the Front Panel then your code is fine and its a hardware issue.
Closed Thread


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 00:22.

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