Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   SPIKEs malfunctioning in "Reverse" (http://www.chiefdelphi.com/forums/showthread.php?t=92654)

smcmahon 22-02-2011 00:55

SPIKEs malfunctioning in "Reverse"
 
We have a pair of Spike relays on our robot, driving a pair of Window motors. Both of them are exhibiting some rather odd behavior.

When we energize them to FORWARD (via code), the lights come on Green (both side car and Spike) and the motors work just fine. Output with a multimeter is measured at 12V (or is it is -12V...) Anyways, the motors spin and everything is fine.

However, when we energize them with REVERSE (via code), weird things happen. We do get Red lights at the correct places (side car and Spike) but they blink very very quickly, almost pulsing. The Spikes emit a very clear, and very fast, clicking sound. The one the left measures around 10.8V and the one on the right measures the proper 12V, but it dips erratically every few seconds or so down to like 5V.

Even more strange, the left one was measuring 4.8V with a mutlimeter in Reverse before that. We then changed both the Spike and the PWM cable to get to where we are now.

We've tried swapping PWM cables, changing RELAY Ports on the Side Car, swapping out the entire Side Car itself, changing the crimp-on wiring connectors. Just about everything. We even checked the fuses on the Power Distribution board. We also double-checked that our Relays were set to "both directions" in LabVIEW.

Again, the really odd part is it only does this in Reverse (red lights). It seems to work fine in Forward (green lights).

Thoughts? Suggestions? Anything else we can swap or check? Anyone ever see this before?

As always, thanks for your time and assistance.

Grim Tuesday 22-02-2011 01:28

Re: SPIKEs malfunctioning in "Reverse"
 
Do you have any more spikes you could test with?

Your problem very well may be the Spikes.

biojae 22-02-2011 01:43

Re: SPIKEs malfunctioning in "Reverse"
 
Are the (relay, red) lights on the sidecar blinking?

If they are, then it is likely a code problem.

If not, You seem to have a malfunctioning set of spikes.

Alan Anderson 22-02-2011 07:59

Re: SPIKEs malfunctioning in "Reverse"
 
If the lights are flickering the way you say they are, it sounds like a programming problem. My wild guess:

Your program has a pair of case blocks or if/then statements. One decides whether the Spike should be set REV or OFF. The other decides whether the Spike should be set FWD or OFF.

Prove me wrong. :) Show us your code.

Brandon_L 22-02-2011 08:22

Re: SPIKEs malfunctioning in "Reverse"
 
Quote:

Originally Posted by Alan Anderson (Post 1029023)
If the lights are flickering the way you say they are, it sounds like a programming problem. My wild guess:

Your program has a pair of case blocks or if/then statements. One decides whether the Spike should be set REV or OFF. The other decides whether the Spike should be set FWD or OFF.

Prove me wrong. :) Show us your code.

Exactly the problem we had, and this was the cause. I bet hes right!

Al Skierkiewicz 22-02-2011 08:33

Re: SPIKEs malfunctioning in "Reverse"
 
Anyone think that maybe the motors are drawing more than 20 amps in the reverse mode and are tripping breakers? The breakers are fast reset and will exhibit a clicking sound when they trip. Is it possible the clicking is coming from the breakers and the Spike? Remember that one of the window motors has a stall current of 21.5 amps.

Alan Anderson 22-02-2011 09:27

Re: SPIKEs malfunctioning in "Reverse"
 
Quote:

Originally Posted by Al Skierkiewicz (Post 1029041)
Anyone think that maybe the motors are drawing more than 20 amps in the reverse mode and are tripping breakers?

Nope. That wouldn't explain the flickering red light on the Digital Sidecar.

smcmahon 22-02-2011 10:21

Re: SPIKEs malfunctioning in "Reverse"
 
Quote:

Originally Posted by Alan Anderson (Post 1029023)
If the lights are flickering the way you say they are, it sounds like a programming problem. My wild guess:

Your program has a pair of case blocks or if/then statements. One decides whether the Spike should be set REV or OFF. The other decides whether the Spike should be set FWD or OFF.

Prove me wrong. :) Show us your code.

--------------------
I can get the code from the Programmer a little later on today, but that's basically exactly what we have Mr. Anderson. We have code that sets the relay(s) to FORWARD if Button 1 is true, and OFF if button 1 is false. And then I think they're REVERSE if Button 2 is true, and OFF if button 1 is false.

We've never programmed Spikes like this before. The only one we ever used was "always Forward" and it was for a harvester brush in 2009.

What's the proper way to program the Spike relays to accomplish what I described above?

[should I move this to Programming/LabVIEW, or start a new thread there?]

Vikesrock 22-02-2011 10:33

Re: SPIKEs malfunctioning in "Reverse"
 
Quote:

Originally Posted by smcmahon (Post 1029117)
--------------------
I can get the code from the Programmer a little later on today, but that's basically exactly what we have Mr. Anderson. We have code that sets the relay(s) to FORWARD if Button 1 is true, and OFF if button 1 is false. And then I think they're REVERSE if Button 2 is true, and OFF if button 1 is false.

We've never programmed Spikes like this before. The only one we ever used was "always Forward" and it was for a harvester brush in 2009.

What's the proper way to program the Spike relays to accomplish what I described above?

[should I move this to Programming/LabVIEW, or start a new thread there?]

You need to use nested Case sttructures or multiple Select VIs to get down to a single Relay Set VI. The multiple Relay Sets are conflicting, sometimes one is in control and sometimes the other is so sometimes your Spike gets set forward and sometimes it gets set to off. It's likely just sheer luck that is preventing you from seeing the same behavior in the forward direction.

Alan Anderson 22-02-2011 11:16

Re: SPIKEs malfunctioning in "Reverse"
 
Quote:

Originally Posted by smcmahon (Post 1029117)
What's the proper way to program the Spike relays to accomplish what I described above?

I can think of three "proper" ways to do it. One is conceptually simple but has nested case statements that are hard to read at a glance. One is elegant but unobvious, using boolean arrays to derive a single number that selects from four cases. My favorite isn't exactly pretty, but it's small and easy to explain.

Place two Select functions (you'll find them in the Comparison palette). Wire button 1 to the s input (labeled with a question mark) of the first one. The f (bottom) input should have a relay "Off" constant, and the t (top) input should have a relay "Forward". The second Select's s input should be wired from button 2, the f input from the output of the first Select, and the the t input should have a relay "Reverse". The output of the second Select goes to the input of a Relay Set.

When neither button is pressed, the Off is selected through to the relay. When button 1 is pressed (and button 2 is not), the relay sees the Forward. When button 2 is pressed, the relay is set Reverse.

Does that make sense?

sp33chy 23-02-2011 08:25

Re: SPIKEs malfunctioning in "Reverse"
 
Quote:

Originally Posted by smcmahon (Post 1029117)
--------------------
We have code that sets the relay(s) to FORWARD if Button 1 is true, and OFF if button 1 is false. And then I think they're REVERSE if Button 2 is true, and OFF if button 1 is false.

Isn't that the issue? Because both button 2 "on" and button 1 "off" can be simulatenously true, which would explain the cycling its making.


All times are GMT -5. The time now is 09:56.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi