Go to Post What is it about inefficient design and operation that either pushes the envelope or deserves to be awarded? - Madison [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 22-02-2011, 00:55
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Angry 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.
__________________
FRC 2656 | FTC 5526 | VEX 9656
  #2   Spotlight this post!  
Unread 22-02-2011, 01:28
Grim Tuesday's Avatar
Grim Tuesday Grim Tuesday is offline
Registered User
AKA: Simon Bohn
FRC #0639 (Code Red)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Baltimore MD (JHU)
Posts: 1,607
Grim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond reputeGrim Tuesday has a reputation beyond repute
Re: SPIKEs malfunctioning in "Reverse"

Do you have any more spikes you could test with?

Your problem very well may be the Spikes.
  #3   Spotlight this post!  
Unread 22-02-2011, 01:43
biojae's Avatar
biojae biojae is offline
Likes Omni drives :)
AKA: Justin Stocking
FTC #5011 (BOT SQUAD) && FTC#72(Garage bots)&& FRC#0399 (Eagle Robotics)
Team Role: College Student
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Lancaster
Posts: 276
biojae is a jewel in the roughbiojae is a jewel in the roughbiojae is a jewel in the rough
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.
__________________
FTC Team 72 - No site
FRC Team 399 - http://www.team399.org
2010 Rockwell Collins Innovation in Control Award - (Use of the CAN bus, among other reasons) Phoenix, Arizona!

Last edited by biojae : 22-02-2011 at 03:38.
  #4   Spotlight this post!  
Unread 22-02-2011, 07:59
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: 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.
  #5   Spotlight this post!  
Unread 22-02-2011, 08:22
Brandon_L Brandon_L is offline
Back @ it again with the white vans
AKA: Brandon Liatys
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Newark, NJ
Posts: 1,207
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: SPIKEs malfunctioning in "Reverse"

Quote:
Originally Posted by Alan Anderson View Post
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!
__________________
FRC 2495 - Hamilton West Robotics [2007-2014] - whats a..."hive mind"?
FRC 3929 - Atomic Dragons [2012-2013]
FRC 2180 - Zero Gravity [2017-]

Just trying to collect all the possible team colors
  #6   Spotlight this post!  
Unread 22-02-2011, 08:33
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,798
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: 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.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #7   Spotlight this post!  
Unread 22-02-2011, 09:27
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: SPIKEs malfunctioning in "Reverse"

Quote:
Originally Posted by Al Skierkiewicz View Post
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.
  #8   Spotlight this post!  
Unread 22-02-2011, 10:21
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Exclamation Re: SPIKEs malfunctioning in "Reverse"

Quote:
Originally Posted by Alan Anderson View Post
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?]
__________________
FRC 2656 | FTC 5526 | VEX 9656
  #9   Spotlight this post!  
Unread 22-02-2011, 10:33
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: SPIKEs malfunctioning in "Reverse"

Quote:
Originally Posted by smcmahon View Post
--------------------
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.
__________________


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)
  #10   Spotlight this post!  
Unread 22-02-2011, 11:16
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: SPIKEs malfunctioning in "Reverse"

Quote:
Originally Posted by smcmahon View Post
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?
  #11   Spotlight this post!  
Unread 23-02-2011, 08:25
sp33chy sp33chy is offline
Registered User
FRC #3332
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Melbourne, FL
Posts: 29
sp33chy is an unknown quantity at this point
Re: SPIKEs malfunctioning in "Reverse"

Quote:
Originally Posted by smcmahon View Post
--------------------
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.
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 19:02.

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