Easy Pump arduino stepper
myminifactory
Easy pump with Arduino and Stepper motor.https://youtu.be/dSlVYtNwtloI use: 6x bearings: 10x5x4 mm NEMA 17 Stepper motor with 5mm shaft stepper driver Pololu A4988 Arduino Nano resistor 10k switch silicone pipe 5x3mm some screws M3, M2 and nuts. Arduino code: int x; const int buttonPin = 2; int buttonState = 0; void setup(){ pinMode(6, OUTPUT); // Enable pinMode(5, OUTPUT); // Stepping pinMode(4, OUTPUT); // Dir digitalWrite(6, LOW); // Set Enable low pinMode(buttonPin, INPUT); Serial.begin(9600); } void loop(){ buttonState = digitalRead(buttonPin); Serial.println(buttonState); if (buttonState == HIGH) { digitalWrite(6, LOW); // Set Enable low digitalWrite(4, HIGH); // Set Dir high for (x = 0; x <100; x++) { digitalWrite(5, HIGH); // Output high delayMicroseconds(300); // Wait 1/2 a ms digitalWrite(5, LOW); // Output low delayMicroseconds(300); // Wait 1/2 a ms} delay(1000); // pause one second } else { digitalWrite(6, HIGH); // Set Enable high } }
With this file you will be able to print Easy Pump arduino stepper with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Easy Pump arduino stepper.