Go to Post See... this is what I love about my friends in FIRST. They come forward to help me whenever I need anything. - Arefin Bari [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, 13:11
ArzaanK ArzaanK is offline
Registered User
FRC #1325 (Inverse Paradox)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Mississauga, Ontario, Canada
Posts: 40
ArzaanK is an unknown quantity at this point
Spikes are not working

Hi Chief Delphi,

We are having some problems with our spikes. Our spike is plugged into relay 8 on the digital sidecar, and we have the 12V and the GND prongs plugged into the power distribution board. The colour of the LED on the spike is orange. We also have a 20 amp breaker in the spike.

We used the following code to get the relay running.

Code:
Relay *compressor; 
compressor = new Relay (8)
if(primaryController->GetRawButton(1)){
//primaryController is our joystick. Drive code works fine with this joystick. 
compressor->Set(Relay::kForward);
} 
else{ 
compressor->Set(Relay::kOff); 
}
We have used the same code to get spikes running on robots a few months ago. We have also tried replacing "kForward" with "kReverse" and "kOff".

When I enable the robot, I press and hold the button to enable the spike, nothing happens. Also, we put a multimeter to the ground and signal ports on the digital sidecar and we did not get a voltage reading.

Our team is stumped at what is wrong. The wiring looks to be correct, and we know the code works since we have used the exact same code before.

We have tried this setup on two different robots, with two different power distribution boards, two different digital sidecars, multiple PWM cables and multiple spikes.

Any help would be greatly appreciated.
__________________
Arzaan Khairulla
Programmer/Driver
2013 Greater Toronto Regional East Winners with 1114 and 2056
2013 Galileo Division
  #2   Spotlight this post!  
Unread 02-02-2014, 13:30
mega900997's Avatar
mega900997 mega900997 is offline
Registered User
FRC #0263 (Sachem Aftershock)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2008
Location: Ronkonkoma
Posts: 58
mega900997 is on a distinguished road
Re: Spikes are not working

Are you sure that the button you are pressing is button 1? Try printf on the button to figure out which button is 1.
__________________
2015
Suffield Shakedown Winners & Most Points Scored
South Florida Regional 6th Seed, #5 Alliance Captains, Regional Winners w/ 2383 & 386, Innovation in Control Award
NY Tech Valley Regional 5th Seed, QF, Excellence in Engineering Award
SBPLI Long Island Regional 4th Seed, Finalists

Hopper Division 14th Seed, QF
  #3   Spotlight this post!  
Unread 02-02-2014, 13:53
ArzaanK ArzaanK is offline
Registered User
FRC #1325 (Inverse Paradox)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Mississauga, Ontario, Canada
Posts: 40
ArzaanK is an unknown quantity at this point
Re: Spikes are not working

Quote:
Are you sure that the button you are pressing is button 1? Try printf on the button to figure out which button is 1.
I am sure that I am pressing the right button. I have used the same button to control many things in the past. Also, if I open up "Set up USB game controllers" in windows, when I press the button that I am pressing, button one is what illuminates.
__________________
Arzaan Khairulla
Programmer/Driver
2013 Greater Toronto Regional East Winners with 1114 and 2056
2013 Galileo Division
  #4   Spotlight this post!  
Unread 02-02-2014, 14:08
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 are not working

Do you get any lights on the Digital Sidecar next to the relay pins?

Is the Digital Sidecar correctly powered, with battery voltage present on its power input and all three of the power LEDs brightly lit?

What pattern is the Robot Signal Light flashing when you have the robot enabled?
  #5   Spotlight this post!  
Unread 02-02-2014, 14:23
ArzaanK ArzaanK is offline
Registered User
FRC #1325 (Inverse Paradox)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Mississauga, Ontario, Canada
Posts: 40
ArzaanK is an unknown quantity at this point
Re: Spikes are not working

Quote:
Do you get any lights on the Digital Sidecar next to the relay pins?

Is the Digital Sidecar correctly powered, with battery voltage present on its power input and all three of the power LEDs brightly lit?

What pattern is the Robot Signal Light flashing when you have the robot enabled?
No, I do not get any lights on the digital sidecar next to the relay pins.

Also, the digital sidecar is correctly powered, we have nine victors on the robot which all work just fine.

The robot signal light flashes in its normal pattern, as if nothing were wrong with the robot.
__________________
Arzaan Khairulla
Programmer/Driver
2013 Greater Toronto Regional East Winners with 1114 and 2056
2013 Galileo Division
  #6   Spotlight this post!  
Unread 02-02-2014, 15:30
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 are not working

You didn't quite answer all my questions, but I'll assume that your understanding of "correctly powered" and "normal pattern" is correct.

Where in your program is the code you showed us? It looks correct, but whether it will work depends on where it is placed. Give some larger context, please.
  #7   Spotlight this post!  
Unread 02-02-2014, 16:16
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: Spikes are not working

Does the light on the spike change at all when you hit the button? If it doesn't, try with another PWM cable. Also try using a different port on the sidecar if you can.
__________________
2013: Rookie year, programmer-in-training; SBPLI Regional Finalists
2014: Co-Captain, Programmer, Driver; Seeded 15th
2015: Co-Captain, Programmer, Driver
  #8   Spotlight this post!  
Unread 02-02-2014, 16:27
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Spikes are not working

What programming language are you using?
  #9   Spotlight this post!  
Unread 02-02-2014, 17:02
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Spikes are not working

Quote:
Originally Posted by ArzaanK View Post
No, I do not get any lights on the digital sidecar next to the relay pins.
Quote:
Originally Posted by vgdude999 View Post
Does the light on the spike change at all when you hit the button?
vgdude999, If the status lights next to the relay ports are not lighting, the spike light and PWM cables are irrelevant...
__________________

I am N2IRZ - What's your callsign?
  #10   Spotlight this post!  
Unread 02-02-2014, 17:17
parkedraccoon's Avatar
parkedraccoon parkedraccoon is offline
Registered User
FRC #0766
Team Role: Electrical
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Bay Area CA
Posts: 13
parkedraccoon is on a distinguished road
Re: Spikes are not working

I had a similar problem earlier this season. I tried switching the layout of cRIO modules, various different cRIOs. Eventually, I believe I finally fixed it by imaging the cRIO to the 2014 image. (Make sure you are also using the matching 2014 C++ installation, including the updated WPILib) Seems strange, but it seemed to fix the problem.

On a related note, you probably should have a pressure sensor to help switch the compressor on/off.
__________________
"Why is it stupid?"
2006-2008 Little brother of Team 766 member
2008 FLL
2009-2014 FRC 766
2014-> ??? (hopefully some sort of mentor!)
  #11   Spotlight this post!  
Unread 03-02-2014, 16:20
ArzaanK ArzaanK is offline
Registered User
FRC #1325 (Inverse Paradox)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Mississauga, Ontario, Canada
Posts: 40
ArzaanK is an unknown quantity at this point
Re: Spikes are not working

Quote:
I had a similar problem earlier this season. I tried switching the layout of cRIO modules, various different cRIOs. Eventually, I believe I finally fixed it by imaging the cRIO to the 2014 image. (Make sure you are also using the matching 2014 C++ installation, including the updated WPILib) Seems strange, but it seemed to fix the problem.

On a related note, you probably should have a pressure sensor to help switch the compressor on/off.
I imaged the cRio using the 2014 cRio imaging tool. (The cRio we are using is brand new). Is there any way to specifically use the 2014 image which I am missing?

Also, we were just testing the relay for the compressor, not the actual compressor itself which is why the pressure switch is missing.
__________________
Arzaan Khairulla
Programmer/Driver
2013 Greater Toronto Regional East Winners with 1114 and 2056
2013 Galileo Division
  #12   Spotlight this post!  
Unread 03-02-2014, 17:26
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 are not working

The version 52 cRIO image will be available when you install the update for whatever language you are programming with.
  #13   Spotlight this post!  
Unread 03-02-2014, 19:36
parkedraccoon's Avatar
parkedraccoon parkedraccoon is offline
Registered User
FRC #0766
Team Role: Electrical
 
Join Date: Jan 2012
Rookie Year: 2009
Location: Bay Area CA
Posts: 13
parkedraccoon is on a distinguished road
Re: Spikes are not working

Quote:
Originally Posted by ArzaanK View Post
I imaged the cRio using the 2014 cRio imaging tool. (The cRio we are using is brand new). Is there any way to specifically use the 2014 image which I am missing?

Also, we were just testing the relay for the compressor, not the actual compressor itself which is why the pressure switch is missing.
Updated WPILib Workbench update will provide you with the required v52 cRIO image (you clicked the 'format cRIO button right?) and should also extract the updated files for WindRiver to use. That seemed to fix when I was having the same problem.
__________________
"Why is it stupid?"
2006-2008 Little brother of Team 766 member
2008 FLL
2009-2014 FRC 766
2014-> ??? (hopefully some sort of mentor!)
  #14   Spotlight this post!  
Unread 04-02-2014, 12:23
ArzaanK ArzaanK is offline
Registered User
FRC #1325 (Inverse Paradox)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Mississauga, Ontario, Canada
Posts: 40
ArzaanK is an unknown quantity at this point
Re: Spikes are not working

We fixed our issue. Apparently, our ribbon cable was not held down with screws in the cRio, which resulted in not enough pressure being applied on the pins.

Thank you all for your help.
__________________
Arzaan Khairulla
Programmer/Driver
2013 Greater Toronto Regional East Winners with 1114 and 2056
2013 Galileo Division
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:27.

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