How to connect to an BTT Kraken via SBC

Overview

The BTT Kraken is a STM32H723VGT6 based board.

Firmware File

Teamgloomy now generate per board firmware files. The correct file to use for this board is firmware_kraken_h723.bin.
The firmware release includes both SBC and WiFi modes in one. There are 3 methods available to get the board into SBC mode. These are:

1. There is no SD card detected in the board.
2. There is no board.txt on the SD card.
3. There is an entry sbc.loadConfig=true in the board.txt file on the SD card.

These instructions use option 1.

The latest firmware files can be found here

Remember to rename it to firmware.bin. Put it in the root of a FAT32 formatted SD card. The maximum size supported card is 32GB.
Load the SD card into the board and power it up (either using USB or 12/24v). Leave it for 1 minute or so and then power the board down. Check the SD card, and if firmware.bin has changed to , then your board has been flashed correctly and an SD card is not required in the mainboard any more.

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 BTT Kraken

Connecting the SBC to the BTT Kraken

The pinout for the BTT Kraken 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 BTT Kraken. Please ensure that your cables are no longer than 30cm although they should ideally be as short as possible.

SBC Pin BTT Kraken Resistor Value
23/BCM11/SPI0 Clk PE_12 100R
21/BCM9/SPI0 Miso PE_13 100R
19/BCM10/SPI0 Mosi PE_14 100R
24/BCM8/SPIO CE0 PE_11 100R
22/BCM25 PG_6 100R
20/GND GND None

Prepare the SD Card

Remember, there are 3 methods available to get the board into SBC mode. These are:

1. There is no SD card detected in the board.
2. There is no board.txt on the SD card.
3. There is an entry sbc.loadConfig=true in the board.txt file on the SD card.

This instruction will assume option 1. If any changes to the stock board.txt settings (shown below) are required, these can be made to a board.txt file on the SBC itself. These are then loaded during the startup process. Therefore, an SD card is not required.
The preset configurables are listed below for reference.

board=kraken_h723
board.longName="BTT Kraken V1 STM32H723"
sdcard.internal.type=5
SPI0.pins={NoPin,NoPin,NoPin}
SPI1.pins={B.13,B.14,B.15}
SPI2.pins={C.10,C.11,C.12}
SPI3.pins={C.6,C.7,C.8}
SPI4.pins={NoPin,NoPin,NoPin}
SPI5.pins={D.13,D.15,D.12}
SPI6.pins={E.12,E.13,E.14}
SPI7.pins={NoPin,NoPin,NoPin}
SPI8.pins={NoPin,NoPin,NoPin}
stepper.powerEnablePin=NoPin
stepper.enablePins={E.6,E.3,E.0,B.7,G.13,G.12,B.5,G.14}
stepper.stepPins={C.14,E.5,E.2,B.9,G.9,G.11,B.4,G.15}
stepper.directionPins={C.13,E.4,E.1,B.8,G.10,D.7,B.3,B.6}
stepper.numSmartDrivers=8
stepper.num5160Drivers=8
stepper.spiChannel=3
stepper.TmcUartPins={D.6,D.5,D.4,D.3,D.2,A.15,A.9,A.10}
power.VInDetectPin=NoPin
sbc.TfrReadyPin=G.6
sbc.csPin=E.11
sbc.spiChannel=6
wifi.espDataReadyPin=G.8
wifi.TfrReadyPin=G.7
wifi.espResetPin=G.6
wifi.spiChannel=6
wifi.csPin=E.11
wifi.serialRxTxPins={D.9, D.8}
wifi.serialRxTxPins={B.11,B.10}
wifi.moduleType=esp32
heat.tempSensePins={B.0,B.1,C.5,C.4,A.7}
can.writePin=D.1
can.readPin=D.0
serial.aux.rxTxPins={D.9,D.8}
heat.spiTempSensorChannel=2
heat.spiTempSensorCSPins={C.9,A.8}

Booting

Turn it all on and, assuming you have followed the steps correctly, the board will boot correctly.

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.

Errors

Please report any disconnects on either the forum or discord.

Editing board.txt

These changes made to board.txt should be made to the board.txt file on the SBC (through DWC) in the system folder (where config.g can be found). If there is no board.txt present, it can be created using DWC.

Uploading your config

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.

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: