Nager.ArduinoStepperMotor
C# control a stepper motor via Serial Port communication.
Serial Commands (Baudrate 115200)
Command |
Description |
start |
Enable the motor driver, the motor has voltage |
stop |
Disable the motor driver, the motor has no voltage |
move=500 |
Move the motor for 500 steps |
speed=200 |
Change the rpm (rotation per minute) to the new value |
Serial Commands (Baudrate 115200)
Command |
Description |
enablemotordriver |
Enable the motor driver, the motor has voltage |
disablemotordriver |
Disable the motor driver, the motor has no voltage |
speed |
Values between -255 and 255 |
limitenable |
The motor can only move between the limits |
limitdisable |
No limits active |
setlimitleft |
Set the current position as left limit |
setlimitright |
Set the current position as right limit |
step |
Motor move one step |
ramp |
Returns the current ramp |
setramp |
Set a new ramp (setramp=0008000) rampIndex 0 -> 8000 |