Go to Post Secure your battery well, or it will fly like a fish. - Nate Laverdure [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 12-02-2008, 17:04
kDude kDude is offline
Registered User
FRC #2450 (RaiderBots)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Minnesota
Posts: 37
kDude is an unknown quantity at this point
Exclamation pneumatics with easyC

Our team is using easyC and I was wondering how we start programming the pneumatics. We think we're going to use 3 buttons, one for piston #1, one for piston #2, and one to turn the air compressor on/off. We've finished programming the motor controls so we have a good handle on the code and how it works. If someone could give us some advice to get us started that'd be great.
  #2   Spotlight this post!  
Unread 13-02-2008, 10:03
klondike klondike is offline
Registered User
FRC #1023
 
Join Date: Mar 2007
Location: Temperance, MI
Posts: 1
klondike is an unknown quantity at this point
Re: pneumatics with easyC

The pistons are controlled with a spike, so you just have to use a relay on the RC to control them and map that to the buttons. The air compressor needs the pressure switch and doesn't need a button, it will turn off if there is pressure and on if it needs to build some up. If you still want to have the button control the compressor you can put the pressure switch block in easyC inside of an if statement for the button, but I think just letting it do its thing would be fine, unless your concerned with battery life or something...
  #3   Spotlight this post!  
Unread 13-02-2008, 16:34
kDude kDude is offline
Registered User
FRC #2450 (RaiderBots)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Minnesota
Posts: 37
kDude is an unknown quantity at this point
Re: pneumatics with easyC

Okay. So for the relay output, what does the -1 = ignore, 0 = off, and 1 = on mean for the forward and the reverse?
  #4   Spotlight this post!  
Unread 13-02-2008, 17:04
Gary Dillard's Avatar Unsung FIRST Hero
Gary Dillard Gary Dillard is offline
Generator of Entropy
AKA: you know, the old bald guy
FRC #2973 (The Mad Rockers)
Team Role: Engineer
 
Join Date: Nov 2001
Rookie Year: 1998
Location: Huntsville, AL
Posts: 1,584
Gary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond reputeGary Dillard has a reputation beyond repute
Send a message via AIM to Gary Dillard
Re: pneumatics with easyC

There are different ways to wire the pneumatics, which determines how you command the spikes, but here's how we do it for the double action solenoid. We run the red from one side and the black from the other side of the valve together, so you have 2 pairs of black/red wires to connect to the spike. You can connect these to either side (+/-); it doesn't really matter because 1) you can always switch the tubing and 2) you are usually just trying to change the state of the cylinder in or out, just click it again and it goes the other way. For a given state (say, extend widget), you will command positive on (1) and negative off (0), which will make the solenoids activate the valve in one direction. For the opposite state (retract widget), command positive off (0) and negative on (1), which makes the solenoids (and the valve) move in the other direction.
__________________
Close enough to taste it, too far to reach it
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
HUD Integration with EasyC Tach'ko Programming 0 29-01-2008 19:36
EDU programming with easyC SgtMillhouse648 Programming 4 11-07-2007 15:58
CMUCam with EasyC gabrielse Programming 5 01-02-2006 14:28
Shifting with easyC Erics626 Programming 1 24-01-2006 18:58
Pumping with pneumatics? Billfred Lego Mindstorm Discussion 7 27-05-2004 18:39


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

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