Go to Post A year where the students learn a lot and win nothing is more rewarding than a year where the team does well and doesn't learn much. - Molten [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 06-02-2010, 14:40
Jessi-Team 2156's Avatar
Jessi-Team 2156 Jessi-Team 2156 is offline
2156 Sacramento!!
AKA: Jessi Hageman
FRC #2156 (Wire Freaks)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Sacramento, CA
Posts: 1
Jessi-Team 2156 is an unknown quantity at this point
Exclamation How do you code the compressor?

please help!
  #2   Spotlight this post!  
Unread 06-02-2010, 14:47
Michael DiRamio Michael DiRamio is offline
Registered User
FRC #1114 (Simbotics)
Team Role: Teacher
 
Join Date: Jan 2006
Rookie Year: 2006
Location: St. Catharines, Ontario, Canada
Posts: 39
Michael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond reputeMichael DiRamio has a reputation beyond repute
Re: How do you code the compressor?

What programming language are you using?
  #3   Spotlight this post!  
Unread 10-02-2010, 11:27
ericand's Avatar
ericand ericand is offline
Registered User
AKA: Eric Anderson
FRC #3765 (Terrabots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: St. Paul, MN
Posts: 148
ericand is a jewel in the roughericand is a jewel in the roughericand is a jewel in the rough
Re: How do you code the compressor?

The C++ compressor class works well. You just need to tell it the digital I/O pin that you read the pressure switch from and which relay to turn on/off to charge the system when needed.

This class is a standard part of the WPI lib and is covered in the WPI documentation.
  #4   Spotlight this post!  
Unread 10-02-2010, 18:20
joek's Avatar
joek joek is offline
Team Welder and CAD tech
FRC #2052 (KnightKrawler)
Team Role: Mechanical
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Irondale H.S.
Posts: 231
joek is an unknown quantity at this point
Re: How do you code the compressor?

why don't they make it a closed, automatic system within the compressor? it would make thing much easier, and save cRio processor power, and eliminate the need to program the compressor, and probably make inspection easier for FIRST volunteers.
__________________


2012 Record (13-2-0)
lake superior regional finalists- thank you WAVE (2826) and Blue Twilight (2220)
  #5   Spotlight this post!  
Unread 11-02-2010, 11:01
Numbers's Avatar
Numbers Numbers is offline
Cyberdemon
FRC #3238 (Team Red)
Team Role: Mechanical
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Washington
Posts: 12
Numbers is an unknown quantity at this point
Send a message via MSN to Numbers
Re: How do you code the compressor?

Quote:
Originally Posted by joek View Post
why don't they make it a closed, automatic system within the compressor? it would make thing much easier, and save cRio processor power, and eliminate the need to program the compressor, and probably make inspection easier for FIRST volunteers.
You mean we can't do that?

Currently, we just have our analog pressure switch wired to battery terminals and a spike relay to automatically turn on the compressor with no programming.
  #6   Spotlight this post!  
Unread 11-02-2010, 11:13
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: How do you code the compressor?

No, you cant. The sensor is not allowed to directly affect power pathways between the Spike and the compressor.

You must wire the sensor to a digital input, and use that input in your code to switch the compressor on and off.

I've always thought this was silly too, but maybe there's a reason for it.
  #7   Spotlight this post!  
Unread 11-02-2010, 11:49
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How do you code the compressor?

Quote:
Originally Posted by Numbers View Post
You mean we can't do that?

Currently, we just have our analog pressure switch wired to battery terminals and a spike relay to automatically turn on the compressor with no programming.
What you describe is forbidden by Rule <R78>:

<R78> The Nason pressure switch must be connected to the high-pressure side of the pneumatic circuit (i.e. prior to the pressure regulator) to sense the “stored” pressure of the circuit. The two wires from the pressure switch must be connected directly to a digital input and ground port on the Digital Sidecar, and the cRIO-FRC must be programmed to sense the state of the switch and operate the relay module that powers the compressor to prevent over-pressuring the system.

I don't know why your approach is not allowed. Perhaps someone with further insight could shed some light.


~
  #8   Spotlight this post!  
Unread 11-02-2010, 12:11
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: How do you code the compressor?

Taking the cRIO out of the loop removes the ability to turn off the compressor when the robot is disabled.

<R78> is clear and unambiguous.
  #9   Spotlight this post!  
Unread 11-02-2010, 12:26
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: How do you code the compressor?

I'm not suggesting to take the cRIO out of the loop, but why is it forbidden to have cRIO->Spike->Pressure Switch (its NC, so this works)->Compressor.

In 2003 this is how we wired it till we got to competition and told to change.

I don't understand why this configuration has always been disallowed... Its functionally identical, and there is no possibility for code to screw up.
  #10   Spotlight this post!  
Unread 11-02-2010, 12:38
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: How do you code the compressor?

Quote:
Originally Posted by 1075guy View Post
I'm not suggesting to take the cRIO out of the loop, but why is it forbidden to have cRIO->Spike->Pressure Switch (its NC, so this works)->Compressor.
The Nason pressure switch is rated for only 5 amps, nowhere near the current required by the compressor.
  #11   Spotlight this post!  
Unread 11-02-2010, 12:41
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How do you code the compressor?

Quote:
Originally Posted by Alan Anderson View Post
Taking the cRIO out of the loop removes the ability to turn off the compressor when the robot is disabled.
That sounds like a good reason. The only downside might be that the prevention of over-pressurization, which is the clearly stated intent of the Rule, is made less robust by including so many more components in the loop.

Of course, one might argue that the pressure-relief valve mitigates this concern. Unless, of course, the "factory pre-calibrated" pressure relief valve is in fact not properly calibrated as-received (as some teams have discovered).

With Alan's clarification of the likely intent of the rule, it certainly seems like a good rule, all things considered.


Quote:
<R78> is clear and unambiguous.
The rule is completely clear and unambiguous as to what is required.


~
  #12   Spotlight this post!  
Unread 11-02-2010, 13:01
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: How do you code the compressor?

Quote:
Originally Posted by Alan Anderson View Post
The Nason pressure switch is rated for only 5 amps, nowhere near the current required by the compressor.
That makes sense. Interesting that it worked for us though... guess it would dramatically shorten the lifespan of the switch / leave you open to risks of the switch welding itself or something.

I've seen things like that happen before. On my race car I have a switch on the radiator fans. The switch is rated for 10A (the biggest switch I could find without going online to a specialty supplier), and the fans pull 20-40A. Switch works, but on 2 instances has ceased to function. I thought about replacing it with an old automotive relay or something, but never got around to it. We hadn't realized what happened at first until I thought of the current draw of the motors, and the rating on the switch.
  #13   Spotlight this post!  
Unread 11-02-2010, 13:35
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: How do you code the compressor?

It's a SAFTY issue.

When the field control system shuts down the competition, it will shut down everything including the compressor
When the robot is disabled, all OUTPUTS are disabled including the compressor.

Don’t want a compressor kicking on and pressurizing a line and possible kicking unexpectedly>

Omar
__________________
Omar
  #14   Spotlight this post!  
Unread 11-02-2010, 15:14
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: How do you code the compressor?

Omar, with the system I described, FMS will still be able to shut it down, it just takes the cRIO out of the Overpressure-ShutDown condition.

Alan's answer about the 5A rating on the NASON switch was the part I didn't know about, and now it all makes sense to me.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
How long can the battery run the compressor? rsisk Pneumatics 9 10-02-2010 12:13
Compressor Code causes No Robot Code Error sircedric4 C/C++ 25 03-02-2010 10:13
Code to have speed of motors dependent on how hard you push the joystick JoJo5 Programming 15 06-02-2007 12:35
Default code and the Compressor Matthew_H Programming 16 07-02-2005 07:19
How long does it take you to load the default code? vegasmcse Robotics Education and Curriculum 10 03-11-2003 21:41


All times are GMT -5. The time now is 01:26.

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