viewof stepperLabMode = Inputs.select(["Full step", "Half step", "1/4 microstep", "1/8 microstep", "1/16 microstep"], {value: "Full step", label: "Drive mode"})
viewof stepperLabAngle = Inputs.range([0, 360], {value: 90, step: 5, label: "Target rotation (degrees)"})
viewof stepperLabBaseSteps = Inputs.range([200, 2048], {value: 200, step: 1, label: "Motor steps per revolution"})Interactive Lab: Stepper Precision
Interactive Lab: Stepper Precision
animation
actuators
stepper
Try Keep Target rotation (degrees) at 90 and Motor steps per revolution at 200. Change Drive mode from Full step to Half step.
Observe The opening Full step setting gives 50 steps to send and 1.800 degrees per step. Half step doubles the effective step count and halves the displayed angle per step.
Explain Drive mode supplies a multiplier for Motor steps per revolution. Steps to send is the effective count times the target angle divided by 360, rounded to the nearest whole step.
Technical boundaries. The command estimate assumes each requested step is delivered. Available multipliers are 1, 2, 4, 8 and 16; torque, acceleration and missed steps are not calculated.
Interactive Lab: Stepper Precision
Challenges:
- Make the stepper rotate exactly 90 degrees
- Implement a clock with the second hand driven by the stepper
- Add buttons for forward/reverse step control