Loading

Easy Pump arduino stepper

by mochr, published

Easy Pump arduino stepper by mochr Apr 1, 2017
0 Share
Download All Files

Thing Apps Enabled

Order This Printed View All Apps

Contents

License

Liked By

View All

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag

Thing Statistics

6171Views 583Downloads Found in Outdoor & Garden

Summary

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 < 4000; x++) // Loop 200 times
{
  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 low

}

}

More from Outdoor & Garden

view more

All Apps

Auto-magically prepare your 3D models for 3D printing. A cloud based 3D models Preparing and Healing solution for 3D Printing, MakePrintable provides features for model repairing, wall thickness...

App Info Launch App

Kiri:Moto is an integrated cloud-based slicer and tool-path generator for 3D Printing, CAM / CNC and Laser cutting. *** 3D printing mode provides model slicing and GCode output using built-in...

App Info Launch App
KiriMoto Thing App

With 3D Slash, you can edit 3d models like a stonecutter. A unique interface: as fun as a building game! The perfect tool for non-designers and children to create in 3D.

App Info Launch App

Print through a distributed network of 3D printing enthusiasts from across the US, at a fraction of the cost of the competitors. We want to change the world for the better through technology, an...

App Info Launch App

Quickly Scale, Mirror or Cut your 3D Models

App Info Launch App

3D Print a wide range of designs with Treatstock. Easy to use tools to get the perfect result. The global 3D printing network that connects you with high-quality and fast working print services nea...

App Info Launch App

Hi, can you share the connections please

Top