Control a Stepper Motor with Serial over USB
Required hardware

- Stepper Control board either for generic or A4988 drivers.
- FTDI to USB adaptor
- A computer
- A Stepper Motor
Required Software

- A serial port terminal. To name a few: Cutecom Screen Hyperterminal Putty Minicom
- Arduino IDE (if re-programming needed)
Proposed Sketch
The control board host an ATtiny84 chip. This chip can be programmed with Arduino IDE. The following sketch can be used as a base for controlling the motor.
Serial sketch v1.0
Default communication settings
Baud rate: 9600 Data bits: 8 Handshake: None Stop bits: 1
Operation commands
All commands are described in the table below:
Command | Description | Header 3 |
---|---|---|
row 1, cell 1 | row 1, cell 2 | row 1, cell 3 |
row 2, cell 1 | row 2, cell 2 | row 2, cell 3 |