![]() |
Trouble using Spike Relay
Our spike is not giving power to our motor. This is my code:
Code:
#include "WPILib.h"The Jaguar for 'ballSucker' works fine, I changed it from the left trigger to the right trigger to make sure both triggers were working properly. Are we setting up the Relay wrong? It might be a wiring problem, also. We were not sure where to plug in the spike's PWM cable on the digital sidecar. Right now it is plugged in to Relay port 4, but we have also tried the side for the Jaguars and it did not work. We tried turning the cables around, too. Thanks, -Team 1358 |
Re: Trouble using Spike Relay
The relay outputs are correct for connecting to Spike relays.
There are LEDs adjacent to the relay pins on the Digital Sidecar. When you tell the door relay (#4) to turn on forward, its associated green LED should light. Does it? Are the Digital Sidecar's 12v and 5v power LEDs lit? Is the RSL on steady? |
Re: Trouble using Spike Relay
Thanks! It works now! Not really sure why, though :confused:
|
Re: Trouble using Spike Relay
Quote:
All bots are programmed in Wind River. The firmware matches the software installation. This has happened today, twice, on two different robots (neither of which are mine). I'm not quite sure what to try next. Hopefully there is a "duh" I'm missing and someone can help me correct the problem. Should I bust out the "Persuader" and take the sidecar out behind the woodshed? :rolleyes: |
Re: Trouble using Spike Relay
If the Digital Sidecar's Relay LED is working, but the Spike wired to the Relay pins associated with that LED is not, with two different sets of wires having been tried, I would tend to suspect the Spike as the source of the fault.
|
Re: Trouble using Spike Relay
Seconding the above--we had a Spike fail as well. It's a bit of a pain to troubleshoot(since the spike has no error codes like a speed controller), but your symptoms match ours exactly.
|
Re: Trouble using Spike Relay
Harry,
You did not mention what type of motor you are trying to drive with the Spike. Have you checked the 20A fuse on the spike? Mike |
Re: Trouble using Spike Relay
Quote:
Maybe I should hook it up to an IFI controller - maybe it misses mommy.....:rolleyes: |
Re: Trouble using Spike Relay
What I found is that I had to use the following:
Code:
Relay * motorRelay;After this everything worked just fine, not sure why. However if you are saying your digital sidecar is showing the correct value, and yet the spike is not re-acting, I would not know, have you tried a different relay output? |
Re: Trouble using Spike Relay
Quote:
|
| All times are GMT -5. The time now is 02:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi