Connecting an SKR Pro v1.1 and v1.2 via SBC

Overview

The SKR Pro v1.1 and v1.2 are STM32F407ZGT6 based boards.

Firmware File

Choose the correct corresponding firmware (firmware-stm32f4-sbc.bin) from here. Remember to rename it to firmware.bin. Put it in the root of a FAT32 formatted SD card.

SBC

Connecting a Single Board Computer, such as a raspberry pi 3B/3B+/4.

Prepare the Raspberry Pi

Follow the instructions detailed here.

BOM

  • 5 x 100R resistor
  • jumpers or other ways of connecting to the SKR

Connecting the SBC to the SKR Pro v1.1 and 1.2

The pinout for the SKR (The EXP1 and EXP2 pinouts are the same for the SKR Pro v1.1 and 1.2) can be found here and the schematic for the Duet 3 for reference can be found here. The raspberry pi GPIO pinout can be found here.

The table below shows the pins required on the SBC and what they are connected to on the SKR Pro v1.1 and 1.2. Please ensure that your cables are no longer than 30cm although they should ideally be as short as possible.

SBC Pin SKR Pin Resistor Value
23/BCM11/SPI0 Clk PB13 on EXP2 100R
21/BCM9/SPI0 Miso PB14 on EXP2 100R
19/BCM10/SPI0 Mosi PB15 on EXP2 100R
24/BCM8/SPIO CE0 PB12 on EXP2 100R
22/BCM25 PF12 on EXP2 100R
20/GND GND on EXP2 None

Don’t power the raspberry pi from the SKR Pro. Either us a 12/24v to 5v step down transformer or power the pi from the micro usb or usb-c port.

Prepare the SD Card

All the SD card on the SKR Pro v1.1 and 1.2 needs is the board.txt file with the following contents.

//Config for SKR Pro v1.1 and 1.2
board = biquskrpro_1.1
sbc.TfrReadyPin = F.12
heat.tempSensePins = { F.6, F.3, F.4, F.5 }

Smart Drivers

If using TMC5160 or TMC22XX drivers (where 22XX is either the TMC2208, TMC2209, TMC2225 or TMC2226), the following line must also be added to the board.txt file

stepper.numSmartDrivers = X

Where X is the number of drivers fitted in total.

TMC22XX UART Drivers

The drivers must be continuous and start at unit 0 (unless TMC5160 are also used, which case they must be installed after them). So, for the SKR board, if you have say 3 TMC2208s and 1 other driver, the 2208s must be in slots 0, 1, 2 and the remainiong driver in slot 3 or 4. You can use RRF to assign any of those slots to an axis/extruder.

TMC5160 SPI Drivers

TMC5160 drivers are supported from 3.3 beta 1 onwards. If using TMC5160 drivers, the following lines must also be added to the board.txt file.

stepper.num5160Drivers = X
stepper.spiChannel = 2

Where X is the number of TMC5160 drivers fitted. The drivers must be continuous and start at unit 0. So, if you have say 3 TMC5160s and 1 TMC22XX and 1 other driver, the 5160s must be in slots 0, 1, and 2, the TMC22XX in slot 3 and the remainiong driver in 4. You can use RRF to assign any of those slots to an axis/extruder.

The SKR Pro also uses a different pin for the CS for SPI so you need to modify stepper.TmcUartPins in board.txt accordingly.

Driver UART Pin SPI Pin
X C.13 A.15
Y E.3 B.8
Z E.1 B.9
E0 D.4 B.3
E1 D.1 G.15
E2 D.6 G.12
BTT-EXP-MOT 1 F.11  
BTT-EXP-MOT 2 G.10  

For example, if you had TMC5160s on X and Y, you would add the following line to your board.txt

stepper.TmcUartPins = { A.15 B.8 E.1 D.4 D.1 D.6 F.11 G.10 NoPin NoPin NoPin }

Note the added two SPI pins for the TMC5160s and then the remainder of the pins are the UART pins used by TMC22XX drivers.

Sensorless Homing

Supported by only the TMC2209, TMC2226 and TMC5160 If using sensorless homing/stall detection with TMC2209 or TMC2226 the following line must be added to the board.txt file. It is not needed with TMC5160.

stepper.TmcDiagPins = {B.10, E.12, G.8, E.15, E.10, G.5}

Please only include the diag pin numbers where you intend to use sensorless homing on that axis.
For example, if you only intend to use sensorless homing/stall detection on driver 0 and driver 1, only include B.10 and E.12 in your board.txt file.
For more information about setting up sensorless homing, please read this.

Driver Diag Pin

Board.txt Location

Place the board.txt file in a directory called “sys” on the SD card and install the SD card in the SKR Pro.

Finally…

Turn it all on and you should be good to go.

You can either navigate to duet3.local or find the IP address of the rasberry pi using your router. If you don’t have access to that, use something like Fing to scan your network.

Once you’ve connected to the raspberry pi through your router, start to customise your config.g file etc or upload the outputted zip file from the Configurator to the pi using the system tab of DWC.

Errors

Please report any disconnects on either the forum or discord.

Changing the SBC hostname

This is an optional step if you only have a single duet3 on your network. It is required if you have more than one SBC configured RRF setup (as each setup on a network needs a unique host name) or you just want to change the name from the default “duet3”.

The name of the printer is its hostname on the network, you will need to connect to the SBC over SSH in order to run the Raspberry Pi configuration utility and change the hostname.

  1. Connect via ssh
  2. At a command prompt type
    sudo raspi-config
    
  3. Select “System Options” -> Hostname-> “OK”-> and set the new printername/hostname.

  4. Select “Finish” and reboot.

Once up and running

You will need to PID tune your tools and your bed. Please be aware that bed tuning may take up to an hour and tool tuning normally takes around 15 minutes. If it takes longer, that is also fine as up to 30 cycles may be ran.

To tune the bed, run the following command, changing the temperature (the S value) if a different tuning temperature is required.

M303 H0 S60

To tune each tool, run the following command, changing the temperature (the S value) if a different tuning temperature is required. This proceedure will activate the part cooling fans during the final phase of the tuning process so their effect is taken into account. If your printer has more than one tool, make sure each one of them is tuned.

M303 T0 S220

Once the tuning is complete, either copy the M307 command into the heater definitions or send M500, ensuring you have M501 at the end of your config.g.
If the tuning fails at the end, carry on saving the values as in most cases the outputted values still work correctly.
If the values still result in a heater fault, please refer to this wiki page for information about how to adjust the values manually.

Tags: