Go to Post Hmmm, the Michelangelo method of robot building. Just cut away anything that doesn't look like a robot. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
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 09-02-2014, 20:34
DangitDrBob DangitDrBob is offline
Registered User
FRC #4135
 
Join Date: Jan 2014
Location: Modesto, CA
Posts: 6
DangitDrBob is an unknown quantity at this point
Compressor will not start!

Hello! Team 4135 Programmer here.

We are having issues with our compressor. It will not start when we tell it to with our program. We are using C++ and Wind River to program it. We do not get any errors when compiling the program, and our robot does everything else that it is supposed to. We have the Vex Spike relay plugged into the compressor and the digital side car relay port 1. The Pressure Switch is plugged into the digital side car Digital I/O port 1. All of the code that pertains to the compressor is as follows (but in the right spots):

Compressor Ac; //Declaring the compressor
Ac(1,1), //Digital I/O port 1, Relay port 1
Ac.Start(); //Run the compressor

If you want the whole code I have attached it in a .txt file so that you can see the whole thing. We have tried to program the compressor purely as a relay ( Relay Ac; Ac(1); Ac.Set(Relay:: kOn); ) The Spike relay does not change colors from the default red/orange when we run the program. We have tested the Spike relay and its fuse and both are working properly. We have tried swapping all of the wires involved. The Digital Side Car's power lights are lighting up (all three), but the LED lights next to the relay port are NOT lighting up. We tested the compressor by hooking it up directly to a battery and it worked. We have tried using a brand new Digital Side Car but to no avail. We think think the problem may be with DSC, the cRIO or something in that area. Any suggestions would be greatly appreciated!! Thanks!
Attached Files
File Type: txt 2014RobotCode.txt (3.2 KB, 35 views)
  #2   Spotlight this post!  
Unread 09-02-2014, 20:42
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: Compressor will not start!

Quote:
Originally Posted by DangitDrBob View Post
Hello! Team 4135 Programmer here.

We are having issues with our compressor. It will not start when we tell it to with our program. We are using C++ and Wind River to program it. We do not get any errors when compiling the program, and our robot does everything else that it is supposed to. We have the Vex Spike relay plugged into the compressor and the digital side car relay port 1. The Pressure Switch is plugged into the digital side car Digital I/O port 1. All of the code that pertains to the compressor is as follows (but in the right spots):

Compressor Ac; //Declaring the compressor
Ac(1,1), //Digital I/O port 1, Relay port 1
Ac.Start(); //Run the compressor

If you want the whole code I have attached it in a .txt file so that you can see the whole thing. We have tried to program the compressor purely as a relay ( Relay Ac; Ac(1); Ac.Set(Relay:: kOn); ) The Spike relay does not change colors from the default red/orange when we run the program. We have tested the Spike relay and its fuse and both are working properly. We have tried swapping all of the wires involved. The Digital Side Car's power lights are lighting up (all three), but the LED lights next to the relay port are NOT lighting up. We tested the compressor by hooking it up directly to a battery and it worked. We have tried using a brand new Digital Side Car but to no avail. We think think the problem may be with DSC, the cRIO or something in that area. Any suggestions would be greatly appreciated!! Thanks!
This might be a dumb question, but have you tried flipping around the cable in the DSC/relay? We've had issues with one of the two being backwards in the past. Do your motors / digital IO work correctly? If so, I don't think it's the DSC or the cRIO as a failure in either is unlikely.
  #3   Spotlight this post!  
Unread 09-02-2014, 20:51
DangitDrBob DangitDrBob is offline
Registered User
FRC #4135
 
Join Date: Jan 2014
Location: Modesto, CA
Posts: 6
DangitDrBob is an unknown quantity at this point
Re: Compressor will not start!

We just tried it and it didn't change anything. Yes, the motors and Digital I/O both work. We can drive it around still, but the compressor will not start. We have also check with last year's code which worked, but it didn't work on this robot.
  #4   Spotlight this post!  
Unread 09-02-2014, 21:06
eddie12390's Avatar
eddie12390 eddie12390 is offline
Registered User
AKA: Eddie
FRC #3260 (SHARP)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Pittsburgh
Posts: 285
eddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of lighteddie12390 is a glorious beacon of light
Re: Compressor will not start!

Quote:
Originally Posted by DangitDrBob View Post
We just tried it and it didn't change anything. Yes, the motors and Digital I/O both work. We can drive it around still, but the compressor will not start. We have also check with last year's code which worked, but it didn't work on this robot.
Can you try another Relay port on the DSC?
  #5   Spotlight this post!  
Unread 09-02-2014, 21:08
DangitDrBob DangitDrBob is offline
Registered User
FRC #4135
 
Join Date: Jan 2014
Location: Modesto, CA
Posts: 6
DangitDrBob is an unknown quantity at this point
Re: Compressor will not start!

We have tried that it did not work.
  #6   Spotlight this post!  
Unread 10-02-2014, 12:22
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,585
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: Compressor will not start!

You are not initializing the objects in the same order they are declared.

Just to verify, if you remove the DB-37 cable from the Digital Sidecar, are all 3 power LEDs on the Digital Sidecar brightly lit?


Quote:
Originally Posted by DangitDrBob View Post
We just tried it and it didn't change anything. Yes, the motors and Digital I/O both work. We can drive it around still, but the compressor will not start. We have also check with last year's code which worked, but it didn't work on this robot.
What does this mean? Can you describe in more detail what you did and what did and didn't work?
  #7   Spotlight this post!  
Unread 10-02-2014, 14:14
Matt C's Avatar
Matt C Matt C is offline
Registered User
FRC #1468 (J-Birds)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 1999
Location: Islip Terrace, NY
Posts: 396
Matt C has a reputation beyond reputeMatt C has a reputation beyond reputeMatt C has a reputation beyond reputeMatt C has a reputation beyond reputeMatt C has a reputation beyond reputeMatt C has a reputation beyond reputeMatt C has a reputation beyond reputeMatt C has a reputation beyond reputeMatt C has a reputation beyond reputeMatt C has a reputation beyond reputeMatt C has a reputation beyond repute
Send a message via AIM to Matt C
Re: Compressor will not start!

Quote:
Originally Posted by DangitDrBob View Post
We have tested the Spike relay and its fuse and both are working properly. !
After you do get the software side ironed out, you may want to replace your fuse with a 20A breaker when the fuse blows after the first couple times your compresser kicks on.

Quote:
R64
E. If powering the compressor, the fuse on a Spike H-Bridge Relay may be replaced with a 20A Snap-Action circuit breaker.
  #8   Spotlight this post!  
Unread 10-02-2014, 14:56
Jasmine Zhou Jasmine Zhou is offline
Registered User
FRC #1678
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Davis, CA
Posts: 17
Jasmine Zhou has much to be proud ofJasmine Zhou has much to be proud ofJasmine Zhou has much to be proud ofJasmine Zhou has much to be proud ofJasmine Zhou has much to be proud ofJasmine Zhou has much to be proud ofJasmine Zhou has much to be proud ofJasmine Zhou has much to be proud of
Re: Compressor will not start!

For relay testing, try running it as Ac.Set(Relay::kForward); instead of Relay::kOn. That should run the compressor and turn the light on the spike green. Forward and reverse aren't the same as on; someone who knows more can explain that. If that works, then the spike and its connections are good.
Also make sure your pressure switch is working and wired properly: if it's not sending signal to the digital sidecar, the compressor won't (shouldn't) run.
  #9   Spotlight this post!  
Unread 10-02-2014, 16:24
Andy A. Andy A. is offline
Getting old
FRC #0095
Team Role: Coach
 
Join Date: Jun 2001
Rookie Year: 2001
Location: New Hampshire
Posts: 1,017
Andy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond reputeAndy A. has a reputation beyond repute
Re: Compressor will not start!

Quote:
Originally Posted by Jasmine Zhou View Post
Forward and reverse aren't the same as on; someone who knows more can explain that.
The simple answer is that 'on' means both output terminals of the spike are at +12 volts, as opposed to 'forward' or 'reverse' where one is + and the other -.

The utility being that 'on' allows you to power two loads connected to a shared ground. It's not a common thing in FRC, to the point I wasn't really aware of the functionality till it showed up as a 'bug' in this years code. The obvious use would be running two solenoids with one spike. In that case, 'forward' or 'reverse' would power one load but not the other, and 'on' would power both.
  #10   Spotlight this post!  
Unread 15-02-2014, 22:01
matthewdenny's Avatar
matthewdenny matthewdenny is offline
Registered User
FRC #6054 (Dukes)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: United States
Posts: 311
matthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant futurematthewdenny has a brilliant future
Re: Compressor will not start!

We had an issue getting our compressor to work also. Turns out the pressure switch was broken. You can test this by simply shorting the 2 terminals on the switch to close the circuit and seeing it that fixes the issue. If it does, try replacing the pressure switch.
  #11   Spotlight this post!  
Unread 16-02-2014, 22:45
DangitDrBob DangitDrBob is offline
Registered User
FRC #4135
 
Join Date: Jan 2014
Location: Modesto, CA
Posts: 6
DangitDrBob is an unknown quantity at this point
Re: Compressor will not start!

Thanks for all the suggestions. We called the support and they helped us fix things.
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 11:55.

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