View Single Post
  #4   Spotlight this post!  
Unread 17-02-2012, 16:24
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Programming Pneumatics

Start with getting the compressor working correctly.
It sounds like you already have this, so just verify.
There is a bit of code that goes in Begin.vi and another in Periodic Tasks,vi as shown below.

You get the blue "DIO 1" by hovering your cursor over the input node on the left of the Compressor Open vi, right-click to get the node menu and choose Create -> Constant.



The compressor vi's are all under: WPI Robotics Library->Actuators->Compressor

Then check your wiring.
  • Pressure switch wired to the outer two wires on a PWM cable. The center cable is just cut back to keep it out of the way.
  • The Pressure Switch PWM cable then gets plugged into DIO 1 on the Digital Sidecar.
  • The Spike controlling the compressor has it's PWM cable running to Relay 1 on the Digital Sidecar. Orientation of the cable matters, so be sure it's correct.
When you enable, the compressor spike should go green, as well as the matching Relay LED on the Digital Sidecar.

The compressor will only shut off if pressure reaches 115psi.
If pressure stops climbing at 60 psi or so, then your regulator is probably backwards.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-02-2012 at 16:38.
Reply With Quote