Remember to enable #define MOTOR1_USE_ULN2003_DRIVER
on your config.h
file, for more information check the firmware page.
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.
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
.
The table bellow shows the connections between the 28BYJ-48 motor and the A4988 step stick.
Color | Winding | Side |
---|---|---|
Blue | 2 | B |
Yellow | 2 | A |
Orange | 1 | A |
Pink | 1 | B |
Red | N/A | N/A |
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.
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.
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.
Description | Specs | Qt |
---|---|---|
28BYJ-48 stepper motor | 12V | 1 |
Arduino | Nano 3.0 | 1 |
Driver break out board | ULN2003 | 1 |
Electrolytic Capacitor | 100nF >12V | 1 |
NTC | 10K | 1 |
Resistor | 10KΩ 5% 1/4W | 1 |
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
PIN | Motor #1 | Motor #2 |
---|---|---|
IN1 | D12 | D08 |
IN2 | D11 | D07 |
IN3 | D10 | D06 |
IN4 | D09 | D05 |
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.
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.
Description | Specs | Qt |
---|---|---|
28BYJ-48 stepper motor | 12V | 1 |
Arduino | Nano 3.0 | 1 |
Electrolytic Capacitor | 100nF >12V | 1 |
NTC | 10K | 1 |
Resistor | 10KΩ 5% 1/4W | 1 |
Step Stick | A4988 | 1 |
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
PIN | Motor #1 | Motor #2 |
---|---|---|
MS1 | D12 | A2 |
MS2 | D11 | D6 |
MS3 | D10 | D5 |
RESET | NC | NC |
SLEEP | D9 | D4 |
STEP | D8 | D3 |
DIR | D7 | D2 |
TODO This section needs further improvement.
PIN | Motor #1 | Motor #2 |
---|---|---|
IN1 | D12 | D08 |
IN2 | D11 | D07 |
IN3 | D10 | D06 |
IN4 | D09 | D05 |