View Single Post
  #6   Spotlight this post!  
Unread 01-02-2007, 09:05
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Pneumatic Pressure Switch for EasyC

Have you tried the online window to see if you can fire your relays there?

Code:
while ( 1 )
      {
            OIToRelay ( 1 , 1 , 2 , 1 ) ;  //Relay Port 2 FWD
            OIToRelay ( 1 , 2 , 2 , 2 ) ;  //Relay Port 2 REV
      }
This will map the thumb and trigger to forward and reverse of the relay on port 1.
I have attached a precompiled program with the pressure monitoring function.
Plug the compressor relay into Relay Port 1,
Plug a Spare Relay into Port 2,
Plug the pressure switch into I/O port 7.
Joystick into port 1 on the OI
Attached Files
File Type: zip pressure.zip (13.4 KB, 40 views)
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni

Last edited by Kingofl337 : 01-02-2007 at 10:20.