Go to Post Never leave future engineers alone, especially with something like gravity. - Alex Pelan [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 24-01-2010, 18:15
Dark element's Avatar
Dark element Dark element is offline
Angelo Gargarello
AKA: Angelo Gargarello
None #0005 (robocards)
Team Role: Coach
 
Join Date: Apr 2009
Rookie Year: 2000
Location: Melvindale
Posts: 16
Dark element will become famous soon enough
Send a message via MSN to Dark element
Auto off air compressior code

Hello I was just wondering where to find the code that automatically. turns off the air compressor. Thank you
__________________
Melvindale Robocards team #5
Contact me at
theoldelement@gmail.com
Founder and Owner of The Old Element
  #2   Spotlight this post!  
Unread 24-01-2010, 18:19
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Auto off air compressior code

WPIlib in LabVIEW has a set of blocks to open, start, stop, and close the Compressor. When you open a compressor, you set the slot and port of the compressor AND the pressure switch. The set of blocks for the compressor will automatically handle the pressure switch for you. If you aren't using LabVIEW, the code associated for the compressor will automatically handle the pressure switch.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #3   Spotlight this post!  
Unread 24-01-2010, 18:21
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,171
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: Auto off air compressior code

Is there a C++ lib for this also?
  #4   Spotlight this post!  
Unread 24-01-2010, 18:23
ehochstein's Avatar
ehochstein ehochstein is offline
Coach, Volunteer & Mentor
AKA: Evan Hochstein
FTC #5943 (ESGM)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Bloomington, Minnesota
Posts: 933
ehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant futureehochstein has a brilliant future
Re: Auto off air compressior code

Quote:
Originally Posted by apalrd View Post
If you aren't using LabVIEW, the code associated for the compressor will automatically handle the pressure switch.
It should automatically handle the switch I guess.
__________________
Minnesota FIRST Senior Mentor | 2013-?

Stratasys Applications Engineering Technician | 2016-?

2009 Regional Win – 2470 @ 10k Lakes (Thanks 2826 and 1714)
2013 WFFA Recipient – 2470 @ 10K Lakes
2016 Ri3D: 'Snow Problem Reveal
2017 Ri3D: 'Snow Problem Reveal

The opinions expressed above are the personal opinions of the author and do not necessarily represent the views and opinions of any organization the author is affiliated with.
  #5   Spotlight this post!  
Unread 24-01-2010, 18:31
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: Auto off air compressior code

In C++ and Java, after you create a compressor object and call its start method it will automatically turn the compressor on and off as needed.

You need to make sure you have the pressure switch wired up to a digital input correctly and that you specify the correct spike relay and digital input for the pressure switch when you create the object.
  #6   Spotlight this post!  
Unread 24-01-2010, 18:38
Dark element's Avatar
Dark element Dark element is offline
Angelo Gargarello
AKA: Angelo Gargarello
None #0005 (robocards)
Team Role: Coach
 
Join Date: Apr 2009
Rookie Year: 2000
Location: Melvindale
Posts: 16
Dark element will become famous soon enough
Send a message via MSN to Dark element
Re: Auto off air compressior code

Thank you for your post and I found it is the 2005 code

relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */
relay8_rev = 0;

Thank you for your support
__________________
Melvindale Robocards team #5
Contact me at
theoldelement@gmail.com
Founder and Owner of The Old Element

Last edited by Dark element : 24-01-2010 at 19:03. Reason: found what I was looking for
  #7   Spotlight this post!  
Unread 24-01-2010, 19:04
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,905
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Auto off air compressior code

In 2005 the code needed a single line of code:
Code:
  relay8_fwd = !rc_dig_in18;  /* Power pump only if pressure switch is off. */
The pressure switch connects to Digital Input 18
The Spike for the compressor is controlled by Relay 8
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #8   Spotlight this post!  
Unread 24-01-2010, 19:24
Dark element's Avatar
Dark element Dark element is offline
Angelo Gargarello
AKA: Angelo Gargarello
None #0005 (robocards)
Team Role: Coach
 
Join Date: Apr 2009
Rookie Year: 2000
Location: Melvindale
Posts: 16
Dark element will become famous soon enough
Send a message via MSN to Dark element
Re: Auto off air compressior code

Quote:
Originally Posted by Mark McLeod View Post
In 2005 the code needed a single line of code:
Code:
  relay8_fwd = !rc_dig_in18;  /* Power pump only if pressure switch is off. */
The pressure switch connects to Digital Input 18
The Spike for the compressor is controlled by Relay 8
Ok now how can I change when the pump turns on and off
__________________
Melvindale Robocards team #5
Contact me at
theoldelement@gmail.com
Founder and Owner of The Old Element
  #9   Spotlight this post!  
Unread 24-01-2010, 20:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,905
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Auto off air compressior code

Whatever you want to do:

relay8_rev = 0; /* stays this way and doesn't change */

relay8_fwd = 1 /* Turns the compressor on */

relay8_fwd = 0 /* Turns the compressor off */
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #10   Spotlight this post!  
Unread 26-01-2010, 12:49
luc.bettaieb's Avatar
luc.bettaieb luc.bettaieb is offline
Registered User
AKA: Luc Bettaieb
FRC #1329 (Roborebels)
Team Role: Alumni
 
Join Date: Oct 2009
Rookie Year: 2007
Location: St. Louis
Posts: 6
luc.bettaieb is an unknown quantity at this point
Re: Auto off air compressior code

This is all very useful stuff. Thanks!
  #11   Spotlight this post!  
Unread 26-01-2010, 13:50
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: Auto off air compressior code

word of warning: 2005 code WONT work on your cRIOs. it was written under a MUCH different system, with completely different interfacing to the relays (Spikes) and motor controllers (jaguar/victor)
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
Auto Code ERROR 401 Programming 1 19-02-2009 00:53
Off robot air compressor sanddrag Rules/Strategy 52 11-01-2007 15:11
Air compressor never shuts off Carl Owenby Pneumatics 4 08-02-2003 23:34
Auto Air Pump Code zorro Programming 25 05-01-2003 16:50
[white paper] Auto-Balance Gyro Code Brandon Martus Technical Discussion 3 21-06-2001 10:36


All times are GMT -5. The time now is 22:28.

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