Hi! I am trying to create a pneumatic system using a solenoid valve I purchased from Parker. It is the Parker-Hannifin 3-way solenoid valve part #009-0269-900. This is the data sheet if interested:
It takes 24V to switch the valve to the normally closed side. I am trying to program it using an Arduino Uno to switch back and forth every 5 seconds. I am very new to all of this so I don't know how much of it works. I found a website, BC Robotics, that was very helpful, and I set it up that way, but it still doesn't work. I am using a 24V power supply. This is the website where I found it from:
I have attached pictures of the setup of the breadboard, and the setup of the arduino (almost exactly the same as BC Robotics, except it's 24V). Any help will be greatly appreciated as I am in a time crunch and cannot for the life of me figure out what is wrong with my setup.
Here is my code:
int solenoidPin = 4; //This is the output valve on the Arduino
void setup() {
// put your setup code here, to run once:
pinMode(solenoidPin, OUTPUT); //Sets the valve as an output
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(solenoidPin, HIGH); //Switch Solenoid ON
delay(5000); //Wait 5 sec
digitalWrite(solenoidPin, LOW); //Switch Solenoid OFF
delay(5000); //Wait 5 sec
}
Thanks so much!!



