Build instructions

It's time to get your hands dirty, learn which components you require for this project and learn howto build one for yourself.

Hardware Firmware

Motor Connections

Unipolar

The Unipolar motor connection is straight forward because both the motor and the ULN2003 board usually come with a JST-XH connector. But nevertheless the table bellow lists the correct connections between the two components.

ColorWindingSideULN2003
Blue2BA
Pink1BB
Yellow2AC
Orange1AD
RedN/AN/A+12V

28BYJ-48 and ULN2003

Remember to enable #define MOTOR1_USE_ULN2003_DRIVER on your config.h file, for more information check the firmware page.

Bipolar

Bipolar stepper motors are only supported by Ardufocus when using a step stick, due to the multiple motors and connectors available on the market it’s hard to specify which one will be the correct one in use at your configuration but nevertheless there are some tricks that will ease your job finding the correct connections.

NEMA17

All NEMA motors have only four wires, to find the correct windings just grab your multimeter and set it for resistance measurement. Label each one of the wires from 1 to 4 and then take any random two and measure the resistance between them, either you’ll get a reading or a open circuit. Keep measuring different wires until you get the two pairs that give you a reading between them and that’s your two coils.

Let’s assume wire 1 and 3 form a pair and 2 and 4 form the other pair, to connect it to the step stick connect wire 1 to 2B, wire 3 to 2A, wire 2 to 1B and wire 4 to 1A.

28BYJ-48

The table bellow shows the connections between the 28BYJ-48 motor and the A4988 step stick.

ColorWindingSide
Blue2B
Yellow2A
Orange1A
Pink1B
RedN/AN/A

28BYJ-48 and ULN2003

Remember to enable #define MOTOR1_USE_A4988_DRIVER or #define MOTOR1_USE_DRV8825_DRIVER on your config.h file, for more information check the firmware page.

Breadboard

28BYJ-48 with ULN2003 driver

This build is the cheapest focuser you can have not only due it’s bare bones approach but also due to the it’s minimal BOM, part count and availability of each item. Use this configuration only with unmodded 28BYJ-48 stepper motors.

28BYJ-48 and ULN2003

BOM

Check the required BOM on the table bellow. The 100nF capacitor is only required if you intend to use Ardufocus in a Moonlite compatibility mode i.e. use Moonlite’s ASCOM drivers, if you intend to use Ardufocus ASCOM drivers then this capacitor is not required.

DescriptionSpecsQt
28BYJ-48 stepper motor12V1
ArduinoNano 3.01
Driver break out boardULN20031
Electrolytic Capacitor100nF >12V1
NTC10K1
Resistor10KΩ 5% 1/4W1

Settings

Edit your config.h file and set make sure the options bellow are enabled.

#define MOTOR1_USE_ULN2003_DRIVER
#define MOTOR1_PINOUT 12, 11, 10, 9

Pinout

PINMotor #1Motor #2
IN1D12D08
IN2D11D07
IN3D10D06
IN4D09D05

28BYJ-48 with A4988 driver

This solution is not so much more expensive nor complicated but will give you much more torque from the exact same motor when compared with the Unipolar build. Use this configuration only with modded 28BYJ-48 stepper motors or with NEMA17 stepper motors. The example bellow shows a modded 28BYJ-48 but the connections for a NEMA17 are exactly the same.

28BYJ-48 and A4988

BOM

Check the required BOM on the table bellow. The 100nF capacitor is only required if you intend to use Ardufocus in a Moonlite compatibility mode i.e. use Moonlite’s ASCOM drivers, if you intend to use Ardufocus ASCOM drivers then this capacitor is not required.

DescriptionSpecsQt
28BYJ-48 stepper motor12V1
ArduinoNano 3.01
Electrolytic Capacitor100nF >12V1
NTC10K1
Resistor10KΩ 5% 1/4W1
Step StickA49881

Settings

Edit your config.h file and set make sure the options bellow are enabled.

#define MOTOR1_USE_A4988_DRIVER
#define MOTOR1_PINOUT 12, 11, 10, 9, 8, 7

Pinout

PINMotor #1Motor #2
MS1D12A2
MS2D11D6
MS3D10D5
RESETNCNC
SLEEPD9D4
STEPD8D3
DIRD7D2

PCB

TODO This section needs further improvement.

PCB Top

PCB Botttom

BOM

Settings

Pinout

PINMotor #1Motor #2
IN1D12D08
IN2D11D07
IN3D10D06
IN4D09D05