Easy Pump arduino stepper

Easy Pump arduino stepper

thingiverse

Easy DIY Project with Arduino and Stepper Motor. I'm using the following components: * 6x bearings: 10x5x4 mm * NEMA 17 Stepper motor with 5mm shaft * Pololu A4988 stepper driver * Arduino Nano * Resistor 10k * Switch * Silicone pipe 5x3mm * Screws M3, M2 and nuts Here is the Arduino code: ```cpp int x; const int buttonPin = 2; int buttonState = 0; void setup() { pinMode(6, OUTPUT); // Enable the motor pinMode(5, OUTPUT); // Step pin pinMode(4, OUTPUT); // Direction pin 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); // Disable the motor digitalWrite(4, HIGH); // Set direction high for (x = 0; x < 4000; x++) // Loop 200 times { digitalWrite(5, HIGH); // Output high delayMicroseconds(300); // Wait half a millisecond digitalWrite(5, LOW); // Output low delayMicroseconds(300); // Wait half a millisecond } delay(1000); // Pause for one second } else { digitalWrite(6, HIGH); // Enable the motor } } ```

Download Model from thingiverse

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.