Pneumatics

Hello,
A VexU team recently donated a dual action pneumatics kit to us. We installed it to run the claw, and when we put pressure right on the claw via opening the dump valve, it closes the claw successfully. However, when we wrote a test program in EasyC V4, we get no movement. The valve is open, the regulator is set, but the solenoid doesn’t move. It is acting like the solenoid isn’t plugged in, but we have it plugged into digital port 1.
Our code is:


#include "Main.h"

void main (void)
{
    int ClawOpen = 0;

    while (1)
    {
        ClawOpen = GetJoystickDigital (1,6,2);
        ClawOpen = GetJoystickDigital (1,6,2);
        if (ClawOpen == 1)
        {
            SetDigitalOutput (1,1);
        }
        else if (ClawOpen == 0)
        {
            SetDigitalOutput (1,0);
        }
    }
}

I’ll post pictures of physical setup later this afternoon.
Any help is appreciated! Thanks!

Do you hear the solenoids clicking?

It needs to be plugged in a digital port form 9-12
Digital ports 1-8 are input ports

Thanks all, we got it working! We rewrote the program in RobotC (had to borrow a computer with it) and everything is now working. IIRC, it is still in port 1.

That’s good to hear that it is working.