Advertisement
Guest User

Pneumatics

a guest
May 23rd, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Pneumatics control
  2. //
  3. // starting position is with paper under piston.
  4. //
  5.  
  6. const int MOVE = 5;
  7. const int STAMP = 6;
  8.  
  9. void setup() {
  10.   pinMode(MOVE, OUTPUT);
  11.   pinMode(STAMP, OUTPUT);
  12. }
  13.  
  14. void loop() {
  15.   digitalWrite(STAMP, HIGH);
  16.   delay(1000);
  17.   digitalWrite(STAMP, LOW);
  18.   delay(1000);
  19.   digitalWrite(MOVE, HIGH);
  20.   delay(1000);
  21.   digitalWrite(STAMP, HIGH);
  22.   delay(1000);
  23.   digitalWrite(STAMP, LOW);
  24.   delay(1000);
  25.   digitalWrite(MOVE, LOW);
  26.   delay(1000);
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement