Go to Post You can learn a lot from making mistakes - even more from fixing them. - DarrinMunter [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 06-02-2013, 18:13
BlueDevilFRC BlueDevilFRC is offline
Registered User
FRC #4296
 
Join Date: Feb 2013
Location: Illinois
Posts: 3
BlueDevilFRC is an unknown quantity at this point
Digital Inputs and the Digital Side Car

For the past few days our team has been working on trying to get a simple limit switch to work to no avail. We have tried completing the circuit with two wires, but that did not give us any input back either.

We are programming in labview and we have a very simple code set-up, so we do not believe that it is the problem there, but we are not sure at all. We have tried with PWM and relays on the sidecar and these outputs all work fine.

Our indicator on labview continuously displays an output of 0, both when the limit switch is pressed and when it is not pressed.

Does anybody have any idea as to why nothing is happening?

Thank You,

Included are pictures of the circuit/sidecar and the programming on labview.



  #2   Spotlight this post!  
Unread 06-02-2013, 18:28
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Digital Inputs and the Digital Side Car

Unfortunately, everything looks correct.

The digital inputs work using an internal pullup resistor, an 10K resistor to be precise, in the digital sidecar.

Have you hooked power to the DSC? I'm not sure if the control system is powered on or off in the picture, but it appears to be off. Without power to the DSC, the pullup resistors won't work, and therefore, your output will always be 0.

Next, it's possible, but unlikely, that the limit switch is shorting out. Have you tried to unplug it while running the code. With nothing connected, it should output a HIGH due to the pullup resistor.

Next, try a different port. We had a port go bad for no reason in 2011 right before our unveiling. It was a very familiar scenario. Simply move the limit switch to a different port, or get a new DSC.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #3   Spotlight this post!  
Unread 06-02-2013, 18:34
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Re: Digital Inputs and the Digital Side Car

The PWM cable appears to be connected to the DSC reversed. The Brown wire connected to COM should go to signal. The Yellow wire connected to NO should go to (-)
  #4   Spotlight this post!  
Unread 06-02-2013, 18:37
BlueDevilFRC BlueDevilFRC is offline
Registered User
FRC #4296
 
Join Date: Feb 2013
Location: Illinois
Posts: 3
BlueDevilFRC is an unknown quantity at this point
Re: Digital Inputs and the Digital Side Car

Thank you for the reply, sadly we already tried most of what you suggested.

The sidecar was currently off when taking pictures, but all the lights were all on when testing.

We have tried multiple limit switches, and have tried directly connecting the ground wire and the signal wire on the DSC.

We have also tried using ports 1, 4, 5, and 8 on this sidecar and another, which all resulted in the same thing, nothing.
  #5   Spotlight this post!  
Unread 06-02-2013, 18:39
MrRoboSteve MrRoboSteve is online now
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 577
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
Re: Digital Inputs and the Digital Side Car

I see you have a ribbon cable -- is it from 2012? There was a known issue with cables from that era being put together backwards, which could cause this issue.
  #6   Spotlight this post!  
Unread 06-02-2013, 18:44
BlueDevilFRC BlueDevilFRC is offline
Registered User
FRC #4296
 
Join Date: Feb 2013
Location: Illinois
Posts: 3
BlueDevilFRC is an unknown quantity at this point
Re: Digital Inputs and the Digital Side Car

We replaced the ribbon cable and it worked, thank you for all the help.

Last edited by BlueDevilFRC : 06-02-2013 at 18:48.
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 11:19.

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