Go to Post If you have not had a positive experience in FIRST, please don't bring those that have down. - Jeff K. [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-02-2011, 22:13
markgryzwa markgryzwa is offline
Registered User
FRC #3206 (Royal-T-Wrecks)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: MN
Posts: 30
markgryzwa is on a distinguished road
Using Spike Relay in Both Directions?

Can you drive the Spike Relays Forward and Reverse on the Digital Breakout Board or do you need a different connection point?

We can drive relays forward but get no response to reverse. Please advise
Reply With Quote
  #2   Spotlight this post!  
Unread 22-02-2011, 00:19
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using Spike Relay in Both Directions?

If the Spike works in FWD, it's probably not a wiring problem. Let's see your code. I can think of two different simple programming errors that could cause it not to work in REV.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-02-2011, 09:57
markgryzwa markgryzwa is offline
Registered User
FRC #3206 (Royal-T-Wrecks)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: MN
Posts: 30
markgryzwa is on a distinguished road
Re: Using Spike Relay in Both Directions?

I've attached a .jpg of our begin.vi and teleop.vi where we are simply trying to drive the relays to a state of forward or reverse. We can get forward to work but no LEDs come on for reverse state. We are using the relay output of the digital breakout.
Attached Thumbnails
Click image for larger version

Name:	relay.jpg
Views:	62
Size:	62.9 KB
ID:	10288  
Reply With Quote
  #4   Spotlight this post!  
Unread 25-02-2011, 10:37
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Using Spike Relay in Both Directions?

The attached picture is too blurry for me to read it.
Reply With Quote
  #5   Spotlight this post!  
Unread 25-02-2011, 12:52
markgryzwa markgryzwa is offline
Registered User
FRC #3206 (Royal-T-Wrecks)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: MN
Posts: 30
markgryzwa is on a distinguished road
Re: Using Spike Relay in Both Directions?

Mind sending me your email and I'll send you the hi-res version.

mark.gryzwa@bsci.com

Mark Gryzwa
Director R&D
Boston Scientific
Reply With Quote
  #6   Spotlight this post!  
Unread 01-03-2011, 20:54
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Using Spike Relay in Both Directions?

Which relay port is the spike *actually* attached to? It can't be attached to all of 2, 3, and 4. Unless.. Did you wire the PWM cable so that the BLACK wire is under the blue thing that will hold the cable in, the red is a little closer to the rest of the board, and the white/yellow is closest to the center? You must wire it like that. Then it will only be attached to relay port 2, not port 3 or 4. I think right now you have it wired parallel to the long side of the board; it needs to be perpendicular.

Then only open up one relay (there is only one, right?). Set it to both directions. In teleop, you have to do something more complicated than what you have. You need to tell it what to do based on both joystick buttons, not have two selects with one button each. The easiest way to do that is to have one select wired to one button, that selects either OFF or FORWARD. Then have another select that selects either REVERSE, or the output of the other select. This will give you all three cases. Wire this to your relay set.

For future debugging, if you look at the digital sidecar you should see a red and green LED next to each relay port. The green will light up if going forward, the red will light up if going backward. The light on the spike should do the same.

Last edited by WizenedEE : 01-03-2011 at 21:06.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-03-2011, 15:11
markgryzwa markgryzwa is offline
Registered User
FRC #3206 (Royal-T-Wrecks)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: MN
Posts: 30
markgryzwa is on a distinguished road
Re: Using Spike Relay in Both Directions?

Thanks. We never get the red light on the digital board. We only get green
Reply With Quote
  #8   Spotlight this post!  
Unread 02-03-2011, 15:30
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: Using Spike Relay in Both Directions?

Quote:
Originally Posted by markgryzwa View Post
Thanks. We never get the red light on the digital board. We only get green
With the code you have posted you should definitely be getting the red light on Relay Channel 4 when you hold Button 9 on Joystick 2. If you are not I'd check that all 3 of the status LEDs (5V, 6V and BAT) are brightly lit on the digital Sidecar, that the 37 Pin cable is well seated in both the cRIO module and the DSC and that the power wires for the DSC are securely connected. If none of those solves the issue, I would try changing out the DSC.

If you are really stuck I can get you the contact info for the lead mentor of 2175, the Fighting Calculators, out of the Woodbury Math and Science Academy. I'm sure either one of their programmers or one from 3130 based out of East Ridge (both teams share shop space at East Ridge), or both would be glad to stop by sometime and help you get things sorted out.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote
  #9   Spotlight this post!  
Unread 06-03-2011, 09:19
markgryzwa markgryzwa is offline
Registered User
FRC #3206 (Royal-T-Wrecks)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: MN
Posts: 30
markgryzwa is on a distinguished road
Re: Using Spike Relay in Both Directions?

Thanks for the help.

We replaced the digital sidecar and now everything is working.
Reply With Quote
Reply


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 20:55.

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