Stepper control via Arduino via serial.
An external Bluetooth serial adapter (like the HM-10) can be connected to D12/D2 (RX/TX).
I've used the 28BYJ-48 stepper motor with the ULN2003 driver connected to pins 8 to 11.
You can issue commands to the module. Commands are either terminated by newline or the semicolon (;
)
character. Some commands accept parameters, these are separated by a space character, currently parameters
cannot have space character in them.
Move commands are queued and are their execution is started immediately. You may freeze the execution, so you can enter the commands in advance.
status
: lists the command queueright <amount> [time]
/left <amount> [time]
: rotate the stepper motor clockwise/counterclockwise by the given amount (either the number of steps, or the angle in degrees with the suffixd
added without space, e.g.360d
for a full turn) in the given amount of time given in seconds (or as fast as possible if omitted)freeze [exec|comm|none]
: sets the freeze mode to one of the three possible modes, or queries the current freeze mode if neither of them are providedexec
: the commands will not executecomm
: the commands will execute and the board will not listen to any communication until they are finishednone
: the commands are executing, the communication channels are open (default)
clear
: terminate execution, clear all commands
Timelapse camera rotation, star tracker motor control.