Go to Post I also hate it when I keep seeing this message: "You must spread some Reputation around before giving it to Andy Baker again." - dlavery [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-12-2008, 12:42
Maxpower57's Avatar
Maxpower57 Maxpower57 is offline
Fabuloso
AKA: Maxwell V.
FRC #2574 (RoboHuskie)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: St. Anthony, MN
Posts: 53
Maxpower57 will become famous soon enoughMaxpower57 will become famous soon enough
Send a message via AIM to Maxpower57
spike relay problem?

On the new control system cRIO we're having a bit of trouble getting the spike relays to work.

We have the code setup to run the relay forward when one button is pushed, and backwards when another is pushed. The forward button works and the relay changes, however, the reverse doesn't. The code is working, you can see the reverse light on the digital sidecar turn on, but the spike will not change like it does for for forward.we've vhecked and replaced the pwm cable several times.

My beleif is that the problem lies in the libraries controlling the pins for the relay switches incorrectly. Has anyone else experienced this problem?
__________________
  #2   Spotlight this post!  
Unread 06-12-2008, 20:23
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,113
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: spike relay problem?

If the light on the digital sidecar is changing as expected, I don't think there's a software issue.

What do you expect to see from the Spike, and why do you expect that? What is it doing instead?
  #3   Spotlight this post!  
Unread 07-12-2008, 14:06
Maxpower57's Avatar
Maxpower57 Maxpower57 is offline
Fabuloso
AKA: Maxwell V.
FRC #2574 (RoboHuskie)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: St. Anthony, MN
Posts: 53
Maxpower57 will become famous soon enoughMaxpower57 will become famous soon enough
Send a message via AIM to Maxpower57
Re: spike relay problem?

Quote:
Originally Posted by Alan Anderson View Post
If the light on the digital sidecar is changing as expected, I don't think there's a software issue.

What do you expect to see from the Spike, and why do you expect that? What is it doing instead?
That was my conclusion too

I expect the relay to go forward, reverse and stop.
it only goes forward and stop, even though the digital sidecar is sending the signal, the spike isn't doing anything.
and, yes. I have tried using a different spike relay and cable.
__________________
  #4   Spotlight this post!  
Unread 08-12-2008, 07:39
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,792
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: spike relay problem?

This may seem like a dumb question but are you using a newer Spike? There was a model change several years ago and previous models responded differently than the modern ones. The old ones were labeled with a red label as I remember.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #5   Spotlight this post!  
Unread 08-12-2008, 08:58
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: spike relay problem?

Are you trying to simultaneously drive the Spike both forward AND reverse?

If you're trying to drive a motor and you set both FWD and REV, the motor will have both leads driven to battery voltage which means 0V across the motor.

You might need to check the logic in your software since you only be asserting either FWD or REV with this type of application.

Russ
  #6   Spotlight this post!  
Unread 08-12-2008, 10:58
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,113
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: spike relay problem?

Quote:
Originally Posted by Maxpower57 View Post
I expect the relay to go forward, reverse and stop.
it only goes forward and stop, even though the digital sidecar is sending the signal, the spike isn't doing anything.
Please tell us what colors the light on the Spike is showing. Yellow means stop. Green means forward. Red means reverse. Off means both forward and reverse at the same time, which is probably what you're telling it to do when you think you're telling it to go from forward to reverse. It's just like stop, except that both outputs are at battery voltage instead of both being at no voltage.

A Spike has two completely independent relays. Forward and Reverse are not two different states of the same relay. They are separate relays which each can either be on or off. If you want to "go in reverse", you have to turn the reverse relay on while simultaneously turning the forward relay off.
  #7   Spotlight this post!  
Unread 08-12-2008, 18:37
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 803
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: spike relay problem?

I don't know the electrical pin out of the SPIKE control signals, but you could take a volt meter out and check to see if it is sending the signal you expect. I would expect that the manual has that information, or someone on CD knows.
  #8   Spotlight this post!  
Unread 08-12-2008, 21:51
Dan2081's Avatar
Dan2081 Dan2081 is offline
Registered User
AKA: Dan
FRC #2081 (Icarus)
Team Role: College Student
 
Join Date: Dec 2008
Rookie Year: 2007
Location: Peoria, Illinois
Posts: 84
Dan2081 is a splendid one to beholdDan2081 is a splendid one to beholdDan2081 is a splendid one to beholdDan2081 is a splendid one to beholdDan2081 is a splendid one to beholdDan2081 is a splendid one to beholdDan2081 is a splendid one to beholdDan2081 is a splendid one to behold
Re: spike relay problem?

*sneeze*
__________________
09 IRI #7seed and Semifinalists
09 BMR GM Industrial Design
08 BMR Engineering Inspiration
08 Archimedes #5 seed
07 BMR Rookie All-Star
  #9   Spotlight this post!  
Unread 18-02-2012, 13:06
student 1254 student 1254 is offline
Registered User
FRC #1254
 
Join Date: Feb 2012
Location: VanBuren Tech. Center
Posts: 1
student 1254 is an unknown quantity at this point
Lightbulb Re: spike relay problem?

you should try and bypass the spike and use a victor control. we just did that today and it solved our problem. Now we can go forward and reverse.
  #10   Spotlight this post!  
Unread 09-04-2012, 13:09
coreyjon's Avatar
coreyjon coreyjon is offline
Flight Engineer
FRC #0250 (Team 250 Dynamos)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Upstate, Ny
Posts: 184
coreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nice
Send a message via AIM to coreyjon
Re: spike relay problem?

Did anyone ever figure this out? I am having the same problem. In the programming I have it set that one button is forward, another reverse and when nothing is pressed it is off. The digital side car responds as expected, green light forward, red light reverse, and no lights when off. The spike (blue label IFI) responds to forward (green light on spike, +12 volts), but does nothing when reverse is sent to it. no clicking no nothing. Sending the kOn command turns on both the green and red light on the digital side car and the green light on the spike.

Why no reverse? such an odd problem.

when the command kOn is sent is it activating both internal relays? so I should be getting 12 volts from both output pins when compared to ground on the power distro panel? Just trying to figure out a way to trouble shoot and see if one of the relays are bad, I do not have another spike on hand at the moment to test by just swapping them out.
__________________
"Jack of all trades, master of none, though offtimes better than master of one".

Last edited by coreyjon : 09-04-2012 at 13:11.
  #11   Spotlight this post!  
Unread 09-04-2012, 13:34
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,833
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: spike relay problem?

Quote:
Originally Posted by coreyjon View Post
when the command kOn is sent is it activating both internal relays? so I should be getting 12 volts from both output pins when compared to ground on the power distro panel?
Your code passes muster if the Digital sidecar Relay LEDs are performing as described.

The Spike should reflect what the Sidecar LEDs are doing, although I think the Spike should be yellow for neutral when the Sidecar LEDs are both off.

It sounds as if the code is working through to the Sidecar.
Any of the parts after that could be causing a problem:
  • Sidecar itself (test the Relay pin outputs with a multimeter- relays are a constant 5v on both the red & green signal pins when they are active, 0v when not)
  • PWM cable (test at the far end with a multimeter)
  • Spike (test 12v output on M+ & M- lines to ground)
P.S. It sounds like the red signal line isn't getting through for some reason.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-04-2012 at 13:43.
  #12   Spotlight this post!  
Unread 09-04-2012, 13:35
coreyjon's Avatar
coreyjon coreyjon is offline
Flight Engineer
FRC #0250 (Team 250 Dynamos)
Team Role: Mentor
 
Join Date: Feb 2003
Rookie Year: 2001
Location: Upstate, Ny
Posts: 184
coreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nicecoreyjon is just really nice
Send a message via AIM to coreyjon
Re: spike relay problem?

all sound like excellent troubleshooting techniques, will perform and report back.
__________________
"Jack of all trades, master of none, though offtimes better than master of one".
  #13   Spotlight this post!  
Unread 09-04-2012, 13:44
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: spike relay problem?

Either one of the wires in the PWM cable may have a poor connection or the SPIKE is damaged.

Make sure that the PWM cable is seated all the way into the spike with the black wire (- on the Digital Sidecar) next to the "B" on the SPIKE.

Pull the PWM cable out completely. Check each wire end-to-end with an Ohmmeter to make sure there is not a broken wire.

There may be a dirty connection. Unplug and replug the PWM cable 5-10 times at each end. Try rubbing a red pencil eraser on the pins of the PWM cable to clean them.

Set your voltmeter to DC Volts. Hold the black probe on the pin with the black wire of the PWM cable. Hold the red probe on the middle pin and have your software enable forward then reverse. You should see about +4 V in one direction. Move the red probe to the third pin and have your software enable forward then reverse. You should see about +4 V in the other direction. If this is OK, your signals are getting to your SPIKE but it is not responding due to a bad connection between the SPIKE and the PWM cable or damage to the SPIKE.

In the "Braking Mode", both relays in the SPIKE should be energized. Set your voltmeter to DC Volts. Put the black probe on the "-" terminal of the spike (input from the PD Board). Put the red probe on the "M+" and "M-" terminals. You should see +12 V relative to the "-" on both output terminals.

It is possible that the circuitry for one direction is damaged in your SPIKE. The circuitry for forward and reverse are largely independent so it is possible to have a SPIKE where only one direction works. Replace it with another SPIKE.

I just noticed Mark has posted similar advice.
  #14   Spotlight this post!  
Unread 09-04-2012, 13:49
Mr. Van Mr. Van is offline
Registered User
#0599 (Robo-Dox)
 
Join Date: Feb 2002
Location: Granada Hills, CA
Posts: 350
Mr. Van has a reputation beyond reputeMr. Van has a reputation beyond reputeMr. Van has a reputation beyond reputeMr. Van has a reputation beyond reputeMr. Van has a reputation beyond reputeMr. Van has a reputation beyond reputeMr. Van has a reputation beyond reputeMr. Van has a reputation beyond reputeMr. Van has a reputation beyond reputeMr. Van has a reputation beyond reputeMr. Van has a reputation beyond repute
Re: spike relay problem?

Quote:
Originally Posted by Al Skierkiewicz View Post
This may seem like a dumb question but are you using a newer Spike? There was a model change several years ago and previous models responded differently than the modern ones. The old ones were labeled with a red label as I remember.
I believe that Al is on to something here. We had a similar problem - swapped everything (spike, code, cRIO, wire, etc.) and then tried a VEXPro Spike (we had been using older IFI redlabel/bluelabel Spikes). Suddenly, everything worked as expected.

- Mr. Van
Coach, Robodox
  #15   Spotlight this post!  
Unread 09-04-2012, 14:03
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,792
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: spike relay problem?

To back up Mark, almost always when the DSC is showing the expected LEDs the problem lies with the PWM cable.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[OCCRA]: spike relay polarity question bernieseaholm OCCRA Q&A 1 12-11-2008 16:43
Spike relay question Zack Briggs Electrical 17 19-02-2008 14:48
Spike Relay Wire Gauge sparrowkc Electrical 7 12-02-2008 14:26
Spike (relay) module pin out coreyjon Electrical 14 05-04-2004 07:05
Spike Relay Input nwagers Electrical 3 16-07-2002 22:23


All times are GMT -5. The time now is 22:47.

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