
Hardware description and configuration
2.1 Selecting the chip select and clock lines of the SPI
The chip select and the clock lines of the SPI interface can be selected through dedicated
resistors as indicated in Table 3: "Chip select line selection" and Table 4: "Chip select line
selection".
Table 3: Chip select line selection
CN5 pin 3, CN10 pin 17 (default)
Table 4: Chip select line selection
CN5 pin 6, CN10 pin 9 (default)
When the alternative clock line is selected (CN9 pin 4, CN10 pin 31) the PWM2 signal is no
longer available for multi-motor configurations (see Section 2.2: "Multi motor
configuration").
2.2 Multi motor configuration
The expansion boards can be stacked on a single STM32 Nucleo board in order to drive up
to three stepper motors (one for each motor).
The configuration can be changed by mounting the necessary resistors from R1 to R12 as
listed in the Table 5. The other resistors are not mounted.
By default, the stepper driver board is configured for a single motor setup, so board
configurations for multi-motor setups must be changed before stacking the boards on the
STM32 Nucleo.
Table 5: Multi-motor setup table
If the alternative SPI clock line is selected (see Section 2.1: "Selecting the chip select and
clock lines of the SPI") the PWM2 step clock is no longer available and the multi-motor
setup is limited to two motors maximum.
The Table 6: "Multi-motor setup with alternative SPI clock line" shows the proper
configuration in this case.