The 3D Printed Marble Machine 3 stepper mod 28byj-48
This is a mod for The 3D Printed Marble Machine 3 by Tulio with a 28byj-48 stepper motor instead of the manual lift of the balls.
arduino Library : http://www.airspayce.com/mikem/arduino/AccelStepper/
arduino code:
#include <AccelStepper.h>#define HALFSTEP 8// Motor pin definitions#define motorPin1 3 // IN1 on the ULN2003 driver 1#define motorPin2 4 // IN2 on the ULN2003 driver 1#define motorPin3 5 // IN3 on the ULN2003 driver 1#define motorPin4 6 // IN4 on the ULN2003 driver 1// Initialize with pin sequence IN1-IN3-IN2-IN4 for using the AccelStepper with 28BYJ-48AccelStepper stepper1(HALFSTEP, motorPin1, motorPin3, motorPin2, motorPin4);void setup(){ stepper1.setMaxSpeed(2000); stepper1.setSpeed(-1100); }void loop(){ stepper1.runSpeed();}