Parts
Bought the following parts:
- 2x NEMA 17 stepper motor - 68 oz in (400 steps/rev)
- 1x Pololu universal aluminum mounting hub for 5mm shaft M3 holes (2 Pack)
- 2x NEMA 17 stepper motor mounting bracket
- 1x Nano 3.0 CNC board (uses A4988 stepper motor drivers)
- 1x 11.1v LiPo battery
Assembling the Turret
I drilled 4x 3 mm diameter holes in the base of one of the motor brackets to match the mounting hub:
Hook Up the CNC board
Here is what the CNC board looks like:

Almost no documentation in the Internet on this board!?
Mapping/tracing the Nano pins I get:
- RX - Serial Receive (pin provided but not used)
- TX - Serial Transmit (pin provided but not used)
- D2 - X Direction
- D3 - Y Direction
- D4 - Z Direction
- D5 - X Step
- D6 - Y Step
- D7 - Z Step
- D8 - Enable
- D9 - +/- X End Stops (pin provided but not used)
- D10 - +/-Y End Stops (pin provided but not used)
- D11 - +/-Z End Stops (pin provided but not used)
- D12 - Free (pin provided)
- D13 - Free (pin provided)
- A0 - Abort (pin provided but not used)
- A1 - Hold (pin provided but not used)
- A2 - Resume (pin provided but not used)
- A3 - Coolant Enable (pin provided but not used)
- A4 - SDA (pin provided but not used)
- A5 - SCL (pin provided but not used)
- A6 - Free (pin provided)
- A7 - Free (pin provided)
There are also:
- +5v0 and ground pins
- +3v3 and ground pins (uses an on board regulator)
- Reset button (for Nano)
- E-Stop pins (same as reset)
- The power plug (Motor Power 8-12v):
- Powers the Nano and via a shunt powers the A4988 stepper motor boards.
- Otherwise the A4988 boards and the Nano are powered separately.
- Under each A4988 stepper motor board are pins to shunt (S) the micro-stepping:
- MS1 MS2 MS3 (up view)
- - - - Full Step
- S - - Half Step
- - S - 1/4 Step
- S S - 1 /8 Step
- S S S 1/16 Step
Here is the turret waiting for the battery pack (ordered), code and perhaps some cable sleeves:
Next
Get a laser pointer and write some code to control it (see logs).
AlanX
Hi Florian,
The datasheet was 15' of arc which is 0.25 degrees. I used degrees to avoid unit change and possible confusion (fail!).
Yes pre-loading is an option as is mechanical damping of overshoot but both these add mechanical construction complexity to the project. Considering that the steppers pull a few Gs in normal operation, pre-loading need to be quite significant to be effective (i.e. not just at low speeds).
Backlash compensation in software simply allows for the gearbox movement in software. Not quite that simple as it changes with speed and loading.
To recap the current turret performance: precision is 0.11 degrees, overshoot about 0.23 degrees from the mean. If allowed to settle then accuracy is about 0.11 degrees. Uses off the shelf components. These measurements were at a crazy speed of 60 RPM! All for less than $100.
Open questions:
(1) Is better performance available using a precision planetary gear stepper?
(2) When will 0.36 degree steppers be available!
For this project I don't see any simple improvements that I can make that would greatly increase the performance.
---
By the way I like your laser cut planetary gear project. Neat. I assume you are press fitting the pinion gear. I had lots of problems in this area. Here is an idea (forget where I found it): https://cdn.hackaday.io/files/12929553154336/LaserCutWheelCentre.jpg
Regards AlanX