Thread: Pressure switch
View Single Post
  #2   Spotlight this post!  
Unread 09-02-2013, 17:17
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 543
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: Pressure switch

Quote:
Originally Posted by brobot View Post
Were trying to use a low pressure switch for our pneumatics. My question is do I need to program it so it'll work? If so, how?
yes. you'll need two things

1) a pressure switch on the compressor that will return true when the pressure is above n psi and false when it is below n psi. (ask your electrical team to setup n)

2) a compressor hooked up to the sidecar (or a relay hooked up to the compressor)

if(pressure switch == true){
set compressor = false
}else{
set compressor = true
}

so basically what it will do is that if the pressure switch is returning true (meaning that its above n psi) than turn the compressor off but if its returning false (below n psi) it will turn it on to turn up the psi.

you also will want to have this running not only in teleopPeriodic but also autonomosPeriodic and disabledPeriodic
Reply With Quote