Arduino Uno - 100zł
+ program
http://www.open.com.au/mikem/arduino/AccelStepper/
Kod: Zaznacz cały
#include <AccelStepper.h>
// Define a stepper and the pins it will use
AccelStepper stepper; // Defaults to 4 pins on 2, 3, 4, 5
// This defines the analog input pin for reading the control voltage
// Tested with a 10k linear pot between 5v and GND
#define ANALOG_IN A0
void setup()
{
stepper.setMaxSpeed(1000);
stepper.setAcceleration(50);
}
void loop()
{
stepper.moveTo(1000);
stepper.runToPosition();
}
