Go to Post So many questions are answered when people actually read the rules. - Steve W [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 02-02-2014, 16:27
vgdude999 vgdude999 is offline
Programmer/Driver
FRC #1751 (Comsewogue Warriors)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Port Jefferson Station, NY
Posts: 25
vgdude999 is an unknown quantity at this point
Weird behavior from a Spike

So we've wired a ring of LEDs to a spike. The positive and negative are correct, we've tested them directly. When I set the spike to kOn, just as I did with another spike (which works fine), nothing happens, and the light on the spike turns off. Then, when I send it kOff, the light flashes and the fuse trips. If I send it kOff again, the breaker trips again, and I can do this as many times as I want (obviously I don't want to do it at all). The LEDs also flash when I do this.

I tried many things: replacing the fuse, replacing the entire spike, replacing the PWM, continuously sending kOn, etc. Eventually I was completely stumped. At this point I decided to change the direction of one side of the PWM cable, just for giggles (the PWM was now connected correctly on one end and wrong on the other). Much to my surprise, the spike worked perfectly.

Does anyone have any idea as to why the spike is behaving this way?
__________________
2013: Rookie year, programmer-in-training; SBPLI Regional Finalists
2014: Co-Captain, Programmer, Driver; Seeded 15th
2015: Co-Captain, Programmer, Driver
  #2   Spotlight this post!  
Unread 02-02-2014, 18:17
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Weird behavior from a Spike

kOn makes both outputs 12v. In this case, the LED on the spike should be off, and since there's no voltage difference across your LED Ring, it should be off also. I'm not sure why the fuse trips when you go off, possibly one output is switching before the other and shorting.

When you reversed the cable, you made one output stay at ground, and the other switched to 12v. This turned the LEDs on.

If your other spike worked with kOn, it may have a dead output.
  #3   Spotlight this post!  
Unread 02-02-2014, 19:17
vgdude999 vgdude999 is offline
Programmer/Driver
FRC #1751 (Comsewogue Warriors)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Port Jefferson Station, NY
Posts: 25
vgdude999 is an unknown quantity at this point
Re: Weird behavior from a Spike

Alright, thanks for the info.

The other spike is controlling a motor, so it's fine.
__________________
2013: Rookie year, programmer-in-training; SBPLI Regional Finalists
2014: Co-Captain, Programmer, Driver; Seeded 15th
2015: Co-Captain, Programmer, Driver
  #4   Spotlight this post!  
Unread 02-02-2014, 22:19
TheJoe's Avatar
TheJoe TheJoe is offline
Registered User
AKA: Joe Neyhart
FRC #0279 (Tech Fusion)
Team Role: Alumni
 
Join Date: Apr 2013
Rookie Year: 2011
Location: Toledo, Ohio
Posts: 33
TheJoe has a spectacular aura aboutTheJoe has a spectacular aura about
Re: Weird behavior from a Spike

Based off of my understanding of your post, we had the EXACT same issue.

After replacing everything twice, I gave up and made the claim that it was a programming problem.

In the end, it was.
I'm no programmer, so please bear with me.

I just asked our lead programmer and my friend Matt what he did to make the LEDbox work, and he said he changed "K on" to "K forward"

Hope it helps!
  #5   Spotlight this post!  
Unread 03-02-2014, 12:49
tsaksa's Avatar
tsaksa tsaksa is offline
Registered User
FRC #0997 (CHS Robotics)
Team Role: Mentor
 
Join Date: Jul 2011
Rookie Year: 2011
Location: Corvallis Oregon
Posts: 203
tsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond reputetsaksa has a reputation beyond repute
Re: Weird behavior from a Spike

I do not think there is anything a programmer can do which should cause a Spike relay to trip if the relay were working properly and it is wired correctly. There are a few tests you should probably try to verify that the electrical portion of this circuit is wired and working correctly before going too far in another direction. Here are a few things to test.

1. Are any outputs of the spike accidentally grounded? There should be no path to ground from your LEDs since you are connecting it to an H-Bridge so either output could get energized. If you have a path to ground, it should be no surprise that the breaker will trip when you switch the output in one direction.

2. Does the LED circuit have a short or low resistance? Check this with an ohmmeter first, then make sure it can be powered and works correctly from another source. Also test its current draw. LEDs do not usually pull a lot of current, but you should ensure you do not have one that pulls a pulls an unexpected amount of current, is defective, or is improperly wired.

3. What happens if you disconnect all outputs from the SPIKE and run your code? If the spike does not fault internally, then the problem is probably in the circuit it is being connected to.

4. Try testing the voltage output from the spike when operated with nothing connected and see if the outputs get controlled as expected. You might also try connecting a window motor or some other modest sized and unloaded motor to the output to watch what happens. Again, if you can drive a regular motor properly using the spike, the the problem is probably downstream from that point, meaning the LED circuit.

5. Again, check one more time for any connection to ground. When working with a SPIKE this could easily show the kind of behavior you are seeing. All circuit connections to external circuits should only go to and from the output pins of the Spike. There should be no connections anywhere else.
__________________
This is the zeroth day of the rest of your life.
  #6   Spotlight this post!  
Unread 10-04-2014, 00:00
vgdude999 vgdude999 is offline
Programmer/Driver
FRC #1751 (Comsewogue Warriors)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Port Jefferson Station, NY
Posts: 25
vgdude999 is an unknown quantity at this point
Quote:
Originally Posted by TheJoe View Post
Based off of my understanding of your post, we had the EXACT same issue.

After replacing everything twice, I gave up and made the claim that it was a programming problem.

In the end, it was.
I'm no programmer, so please bear with me.

I just asked our lead programmer and my friend Matt what he did to make the LEDbox work, and he said he changed "K on" to "K forward"

Hope it helps!
Is been a while but I forgot about this thread.

I did end up figuring this out, and we did have exactly the same problem.

It actually eluded me until bag and tag day when we decided to put on some decorative leds. I ran into the same problem again and realized that kOn was not the right value.

I appreciate the help even though I didn't see it
__________________
2013: Rookie year, programmer-in-training; SBPLI Regional Finalists
2014: Co-Captain, Programmer, Driver; Seeded 15th
2015: Co-Captain, Programmer, Driver
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 10:24.

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