3D model · MyMiniFactory

Easy Pump arduino stepper

Model details

Platform
MyMiniFactory
Price
Free
License
CC-BY-NC-SA
Non-commercial use only, with credit; share remixes under the same license.
Formats
STL
  • 105 Likes
  • 7 341 Views

Author:Pepa Mochr Vladik

Published

Description

Easy pump with arduino and Stepper motor. https://youtu.be/dSlVYtNwtlo i use:

6x bearings: 10x5x4 mm NEMA 17Stepper motor with 5mm shaft steper driver pololu A4988 Arduino Nano rezistor 10k switch silicone pipe 5x3mm some screws M3,M2 and nuts

arduio code: int x; const int buttonPin = 2; int buttonState = 0;

void setup() { pinMode(6, OUTPUT); // Enable pinMode(5, OUTPUT); // Step 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 digitalWrite(6, HIGH); // Set Enable low

}

}

Tags

Comments

Loading comments…
More like this

Similar models

Names are used only to indicate the source of a result. Polyzon is not affiliated with the listed sites.