πŸ”™ Back to Projects

Arduino Pneumatic Cylinder Project

Simple blink sketch, powerful action. Learn how to control a pneumatic actuator using an Arduino, relay, and solenoid valve. This project uses minimal code and real hardware to make something awesome.

πŸ“½οΈ Watch the Project in Action

πŸ“ Project Diagram

Arduino Pneumatic Cylinder Diagram

Notes:

🧰 Parts List

πŸ’‘ Code (Blink Sketch using pin 8)

void setup() {
  pinMode(8, OUTPUT); // Relay control pin
}

void loop() {
  digitalWrite(8, HIGH); // Extend cylinder
  delay(1000);
  digitalWrite(8, LOW);  // Retract (spring)
  delay(1000);
}

πŸ” How It Works

The Arduino runs a basic blink sketch to toggle the relay connected to a 24V solenoid valve. When the relay is HIGH, the valve opens and allows air from the compressor to extend the pneumatic cylinder. When the relay is LOW, the spring-loaded cylinder retracts automatically.

πŸ“˜ You might like my two port solenoid valve

πŸ“½ Watch the two port Pneumatic cylinder/Solenoid Valve

⬆ Back to Top