|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
How to work with pneumatics
Hey I'm starting to do pneumatics only I dont know how to start. How would you start to do something simple like turn the compressor on. We are using Windriver by the way. The compressor is connected to Digital sidecar relay 8 also.
|
|
#2
|
||||||
|
||||||
|
Re: How to work with pneumatics
Have you looked at the compressor class?
|
|
#3
|
||||
|
||||
|
Re: How to work with pneumatics
How do we use this compressor class?
|
|
#4
|
|||
|
|||
|
Re: How to work with pneumatics
Code:
Compressor *compressor;
Contructor() {
...
compressor = new Compressor(PRESSURE_SWITCH_CHANNEL, RELAY_CHANNEL);
compressor->Start();
...
}
|
|
#5
|
||||
|
||||
|
Re: How to work with pneumatics
How do we put this piece of code on our code. We just have the simple template.
|
|
#6
|
||||
|
||||
|
Re: How to work with pneumatics
Never mind, got the compressor to start but now we need to get the compressor to stop. How do you make it stop at 60 psi?
|
|
#7
|
||||
|
||||
|
Re: How to work with pneumatics
Quote:
To turn the compressor off when it reaches a different PSI, you either need a pressure switch that changes state at 60 PSI or you need a Pressure Transducer, which applies resistance depending on the pressure. |
|
#8
|
|||
|
|||
|
Re: How to work with pneumatics
Quote:
, so your code becomesCode:
RobotDemo(void):
myRobot(3, 4),
myRobot2(2, 1),
myRobot3(5, 6),
stick(1),
stick2(2),
stick3(3),
compressor(1, 8)
{
compressor.Start();
GetWatchdog().SetExpiration(0.1);
}
Also, why do you have 2 different robotDrives running with the same inputs? You can list 4 jaguars in the initializer of a single robotDrive and it will output to two motors per side. |
|
#9
|
|||||
|
|||||
|
Re: How to work with pneumatics
The short version is that there are classes (named objects) in the software packages we have been given. You just plug in the specifics (such as 'channel 8 of sidecar 0') and it works. I'm not a programmer, so I can't explain how it works. Magic, maybe. But it's pretty easy.
Turning the compressor on an off is only the start, of course. You turn it on while the pressure switch is "closed" and then turn it off when the switch is "open". The only other major thing you need to do is 'turn on this solenoid valve' when 'this' (usually a joystick button press) happens. You usually toggle the valve on or off depending on what condition it had last. |
|
#10
|
|||
|
|||
|
Re: How to work with pneumatics
What? I just made a solenoid object and literally just turned on or off the solenoid that was controlling the compressor, it worked great.
|
|
#11
|
|||||
|
|||||
|
Re: How to work with pneumatics
It "works", but it's not in accordance with the robot rules of the past two years. The compressor must be controlled based on the feedback from the pressure switch.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Half of pneumatics doesn't work | Red Mage | Pneumatics | 12 | 02-12-2009 09:52 AM |
| No pneumatics work help | nevereverregret | Pneumatics | 3 | 02-12-2009 08:14 AM |
| How to wire pneumatics | LuckyLotto2487 | Electrical | 9 | 02-11-2009 02:35 PM |
| Ultrasonics: Will it work and how to make it work | DavidB | Electrical | 2 | 01-17-2009 04:27 PM |
| How long to get Pneumatics? | sanddrag | Pneumatics | 3 | 01-31-2005 01:18 AM |