--
You received this message because you are subscribed to the Google Groups "accelstepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to accelstepper+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
//Stepper Motor 23HS33-3008D//Driver M542T#include <AccelStepper.h>#include <MultiStepper.h>AccelStepper motor(1, 7, 8);const int buttonPin = 3; // the number of the pushbutton pin// * pushbutton attached to pin 3 from +5V// * 10K resistor attached to pin 3 from ground// variables will change:int buttonState = 0; // variable for reading the pushbutton statusvoid setup() {// initialize the pushbutton pin as an input:pinMode(buttonPin, INPUT);
motor.setMaxSpeed(15000);motor.setAcceleration(75000);//motor.setMinPulseWidth(20);
motor.setCurrentPosition(0);}void loop() {// read the state of the pushbutton value:buttonState = digitalRead(buttonPin);// check if the pushbutton is pressed.// if it is, the buttonState is high:if (buttonState == HIGH) {
motor.moveTo(3000);motor.run();} else {motor.setCurrentPosition(0);motor.stop();}}
| Accel = | 75000 | pps^2 | maxSpeed | 15000 | pps | |
| Accel | iniSpeed | endSpeed | avgSpeed | Total | ||
| Time, s | pps | pps | pps | Pulses | ||
| 0.02 | 0 | 1500 | 750 | 750 | ||
| 0.04 | 1500 | 3000 | 2250 | 3000 | ||
| 0.06 | 3000 | 4500 | 3750 | 6750 | ||
| 0.08 | 4500 | 6000 | 5250 | 12000 | ||
| 0.1 | 6000 | 7500 | 6750 | 18750 | ||
| 0.12 | 7500 | 9000 | 8250 | 27000 | ||
| 0.14 | 9000 | 10500 | 9750 | 36750 | ||
| 0.16 | 10500 | 12000 | 11250 | 48000 | ||
| 0.18 | 12000 | 13500 | 12750 | 60750 | ||
| 0.2 | 13500 | 15000 | 14250 | 75000 | ||
| 0.22 | 15000 | 15000 | 15000 | 90000 | ||
| 0.24 | 15000 | 15000 | 15000 | 105000 | ||
| 0.26 | 15000 | 15000 | 15000 | 120000 | ||
| 0.28 | 15000 | 15000 | 15000 | 135000 | ||
| 0.3 | 15000 | 15000 | 15000 | 150000 |
--
| Accel | iniSpeed | endSpeed | avgSpeed | Total |
| Time, s | pps | pps | pps | Pulses |
| 0.02 | 0 | 1500 | 750 | 15 |
| 0.04 | 1500 | 3000 | 2250 | 60 |
| 0.06 | 3000 | 4500 | 3750 | 135 |
| 0.08 | 4500 | 6000 | 5250 | 240 |
| 0.1 | 6000 | 7500 | 6750 | 375 |
| 0.12 | 7500 | 9000 | 8250 | 540 |
| 0.14 | 9000 | 10500 | 9750 | 735 |
| 0.16 | 10500 | 12000 | 11250 | 960 |
| 0.18 | 12000 | 13500 | 12750 | 1215 |
| 0.2 | 13500 | 15000 | 14250 | 1500 |
| 0.22 | 15000 | 15000 | 15000 | 1800 |
| 0.24 | 15000 | 15000 | 15000 | 2100 |
| 0.26 | 15000 | 15000 | 15000 | 2400 |
| 0.28 | 15000 | 15000 | 15000 | 2700 |
| 0.3 | 15000 | 15000 | 15000 | 3000 |
--