View unanswered posts | View active topics It is currently Sat Apr 19, 2014 6:15 am






Reply to topic  [ 8 posts ] 
Pneumatics 
Author Message
Rookie

Joined: Thu Nov 14, 2013 8:26 am
Posts: 5
Post Pneumatics
How to code the VEX pneumatics system? Single Function?


Thu Nov 14, 2013 8:29 am
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 534
Post Re: Pneumatics
Using the pnuematic system with ROBOTC is a fairly simple process; all you need to do is set up the port that the pnuematic system is attached to as a 'Digital Out' (which can be done through the 'Robot -> Motors and Sensors Setup -> Digital Sensors' tab in ROBOTC) and set the pnuematic to either a value of 1 (energized) or 0 (de-energized):

Code:
SensorValue[dgtl1] = 1;
wait1Msec(3000);
   
SensorValue[dgtl] = 0;
wait1Msec(3000);

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Thu Nov 14, 2013 2:02 pm
Profile
Rookie

Joined: Thu Nov 14, 2013 8:26 am
Posts: 5
Post Re: Pneumatics
Thank you very much!!


Mon Nov 18, 2013 7:31 am
Profile
Rookie

Joined: Thu Nov 14, 2013 8:26 am
Posts: 5
Post Re: Codes
As for I'm a new student in a VEX based engineering class, I'd like to know how to code for the ultrasonic range finders, line followers, shaft encoders, servos, and the color camera. Can you guys help me on these? :?


Mon Nov 18, 2013 9:49 am
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: Pneumatics
just out of interest: there surely exists a VEX pneumatic compressor although I can't find it anywhere
- can someone show me a link to it?
- what's the maximum pressure you can achieve by it?

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Fri Nov 22, 2013 11:00 am
Profile
Rookie

Joined: Thu Nov 14, 2013 8:26 am
Posts: 5
Post Re: Pneumatics
http://www.vexrobotics.com/275-0274.html

the maximum pressure it like 250 psi


Tue Nov 26, 2013 11:30 pm
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post Re: Pneumatics
thank you! but where's the pressure pump (the compressor)?

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Wed Nov 27, 2013 3:32 am
Profile
Rookie

Joined: Thu Nov 14, 2013 8:26 am
Posts: 5
Post Re: Pneumatics
Actually, there is no compressor...it sucks i know....we are having the same problem for the toss up competition in Taipei


Thu Nov 28, 2013 4:47 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.