Skip to content

FYSETC-SPIDER-KING

1. Product introduction

10 axis industrial grade 3D printer motherboard

1.1 Advantage

  1. Replaceable control core: It has a replaceable control core(Named 'King' core).You can freely choose between 4xRP2040(King-R) / STM32F446(King-446) / STM32F407(King-407) / STM32H7XX(King-H7xx), and even you can make your own control core(We will open source the interface).

  2. Intelligent identification of stepper driver type: With an additional MCU, Spider-King can identify the driver type and switch the SPI/UART channel automatically. This feature save you time on searching doc of how to set the jumppers, keep you away from borning setting jumppers. No longer has problems with stepper driver setting. (If you want to use this feature, you need our new stepper driver)

  3. Multiple firmware support: It supports multiple firmwares.You can choose to use Klipper / Marlin 2.0 / Reprap Firmware / GRBL and other firmware according to your preferences and needs.

  4. Industrial-grade standard design, 5000V full IO isolation: It provides a more secure hardware base: equiped with onboard high-power isolated power supply, and the control core is isolated from all high-voltage peripherals, including stepper motor drive, MOSFET output, high-voltage input signal, CAN bus, etc.

  5. 10 way stepper motor drive support: Onboard 10 way stepping motor drive socket, 6x 3A max (maximum 35V), 4x 6A max (maximum 55V). Any socket supports SPI / UART / standalone mode.It has a new 6A drive design. It can drive 57 or even 86 step motors without external drive;

  6. A variety of communication interfaces support: It supports onboard 5000V isolated CAN interface, supports wireless WI-FI interface, supports ESP32 high-speed communication module, supports multiple connection to Raspberry Pi, including UART, SPI and USB.

  7. Centralized heat dissipation of heat-generating components: We centralized most heating components like 5V power supply, stepper driver in the middle area of the board, this area can be covered with the 12CM fan for cooling. You don't need to rack your brains to design the air duct, you can get better and more stable output performance.

  8. Compatible with RRF firmware standard socket design: The socket layout is set according to Duet wiring and layout, which is more convenient to use the RRF. And more, we adds two DUET type fan ports which have feedback signal.

  9. All Solid Capacitors: Power Section: It can provide more stable power supply and higher efficiency.

  10. Compact Design: It has a very small size of 177mm*108mm, realizes multiple MOSFET outputs, and supports up to 10 stepper drivers.

2. Hardware Guide

2.1 Pin definition

FeaturesSpider PinSTM32 PinPin No.Comment
X-MOTOR(1)X-StepPG792
X-DIRPG691
X-ENPE1164
X-CS/PDNPD2116
X2-MOTOR(2)X2-StepPD1180
X2-DIRPD1079
X2-ENPG10125
X2-CS/PDNPE1568
Y-MOTOR(3)Y-StepPG14129
Y-DIRPG12127
Y-ENPG15132
Y-CS/PDNPD877
Z-MOTOR(4)Z-StepPD4118
Z-DIRPD6122
Z-ENPD5119
Z-CS/PDNPD7123
Z2-MOTOR(5)Z2-StepPE54
Z2-DIRPC137
Z2-ENPE65
Z2-CS/PDNPC148
E0-MOTOR(6)E0-StepPE32
E0-DIRPE43
E0-ENPE21
E0-CS/PDNPC159
E1-MOTOR(7)E1-StepPG13128
E1-DIRPG893
E1-ENPG9124
E1-CS/PDNPG388
E2-MOTOR(8)E2-StepPE1142
E2-DIRPE0141
E2-ENPB248
E2-CS/PDNPD978
E3-MOTOR(9)E3-StepPF414
E3-DIRPF313
E3-ENPF212
E3-CS/PDNPF515
E4-MOTOR(10)E4-StepPF1555
E4-DIRPG056
E4-ENPG590
E4-CS/PDNPG11126
TMC Driver SPI (SOFT)MOSIPE1467
MISOPE1366
SCKPE1265
End-stopsX-MINPC545
X-MAXPB5135
Y-MINPC444
Y-MAXPF1353
Z-MINPB6136
Z-MAXPF1454
ProbePA034
DIAGDIAG-1PF618
DIAG-2PF719
DIAG-3PF820
DIAG-4PF1149
DIAG-5PF1250
DIAG-6PA14/SWCLK109
DIAG-7PA13/SWDIO105
FAN/RGB
FAN0PWM-(PE8)59
TACHO-(PB1)47
FAN1PWM-(PE9)60
TACHO-(PB7)137
FAN2PD1586
FAN3PD1281
FAN4PD1485
5V-LED(WS2812)PD3117Share with Debug Led
HeatingE0-HeaterPB4134
E1-HeaterPB046
E2-HeaterPD1382
E3-HeaterPC898
E4-HeaterPA15110
Heated-BedPE1063
TemperatureTE0(THERM0)PC127A 4.7kOhm 0.1% temperature sensor pull up resistor is used,PT1000 can be connected directly. For PT100, an amplifier board must be used.
TE1(THERM1)PF921Same as TE0.
TE2(THERM2)PC329Same as TE0.
TE3(THERM3)PC228Same as TE0.
TE4(THERM4)PC026Same as TE0.
TB(THERM5)PF1022Same as TE0.
CANTXPB9/SDA1/CAN_TX140
RXPB8/SCL1/CAN_RX139
EXP1LCD_D7PE758
LCD_D6PG481
LCD_D5PC11/MISO3/RX3/4112
LCD_D4PC10/SCK3/TX3/4111
LCD_ENPC12/MOSI3/TX5/SDA2113
LCD_RSPD0/CAN-RX1114
ENC_CPA8/SCL3100
BEEPPC9/SDA399
EXP2RESETNRST25
ENC_APC6/TX696
ENC_BPC7/RX697
SD-DETPB10/SCL269
SD-MISOPA6/MISO142
SD-MOSIPA7/MOSI143
SCKPA5/SCK141
CSPA4/CS140
EXP3SD-DETPB10/SCL269
SD-MISOPA6/MISO142
SD-MOSIPA7/MOSI143
SCKPA5/SCK141
CSPA4/CS140
TXPA2/TX236
RXPA3/RX237
EEPROM(4K) I2C Pin-OutSCLPF1/SCL211Connect to 24LC32(4K EEPROM)
SDAPF0/SDA210Connect to 24LC32(4K EEPROM)
Raspberry PiTXPA10/RX1102
RXPA9/TX1101
MOSIPB1576
MISOPB1475
SCKPB1374
CSPB1273
DATA_RDYPB1170
SWD DebugSWDIOPA13105only used for debugging now and can be used for other purposes.
SWCLKPA14109only used for debugging now and can be used for other purposes.

2.2 Pinout diagram

If the pic is not clear enough, please check the .pdf and .svg file on our github or 国内.

2.3 Endstop voltage selection

2.4 Stepper drivers guide

Check the clear picture on our GitHub or 国内.

2.4.1 Big5160 install

3. OS Guide

3.1 SAMFi-OS

Check details on github or 国内.

3.2 MainsailOS

Check details here.

3.3 Fluidd

Check details here.

3.4 OctoPi

Check details here.

4. Firmware Guide

Spider-King support Marlin firmware, Klipper firmware and RRF firmware. Choose one you need.

4.1 Marlin

4.1.1 Download Vscode + platformio

To compile the firmware , you need to install Visual Studio Code and the platformio pulg-in. More Marlin firmware details, please visit Marlin firmware official website here.

4.1.2 Download firmware

The Marlin firmware is in the firmware/Marlin folder in git repository GitHub or 国内, you can also get the firmware from latest Marlin bugfix-2.1.x branch.

Step 1: you need to enable following define in configuration.h file.

#define MOTHERBOARD BOARD_FYSETC_SPIDER_KING407
#define SERIAL_PORT -1

Step 2: then we need to change platformio.ini file

default_envs = FYSETC_SPIDER_KING407

4.1.3 Compile the firmware

Open Vscode and open platformio main page and click the "Open Project" button , and direct to the folder where you put your firmware.

If everything goes fine , at the bottom you can see several buttons

The check mark button is for compiling , click it to compile. You can find built firmware.bin at .pio\build\FYSETC_SPIDER_KING407 folder.

4.1.4 Upload firmware

Follow Firmware Update guide here.

4.2 Klipper

We put Klipper related files like printer.cfg in firmware/Klipper folder in github repo.

If you want to use Klipper. You need to follow the Klipper installation guide to install Klipper first. When we try to compile it, we need to call make menuconfig to choose compile options, please select options for Spider King as below describe.

4.2.1 menuconfig

Please choose these options for Spider King, you need to decide which to choose according to your board and wiring on some options.

  • Enable extra low-level configuration options
  • Micro-controller Architecture

Select STMicroelectronics STM32

  • Processor model

Select STM32F407

  • Clock reference

Select 8 MHz crystal

  • Bootloader offset

Choose 32kiB bootloader.

Note: If your bootloader crashed, you need to follow the 5.Bootloader Guide character to flash the spider king bootloader.

  • Communication interface

You have two choices here, if you use USB cable to connect RaspeberryPI and Spider King, you need to follow 1. USB (on PA11/PA12) below. If you use serial to connect RaspberryPI and Spider King, then check 2. Serial (on USART1 PA10/PA9).

  • 1. USB (on PA11/PA12)

If you want to connect Spider King to RaspberryPI with USB cable. You need to select USB (on PA11/PA12)

And in printer.cfg file, you need to set the serial as below. We provide an example cfg file printer.cfg for VORON 2 machine here or 国内.

Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
##--------------------------------------------------------------------
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_230032000851363131363530-if00
  • 2. Serial (on USART1 PA10/PA9)

If you want to connect Spider King UART1(RX1:PA10, TX1:PA9) port to RPI uart0(TX:GPIO14,RX:GPIO15) port, you need to select Serial (on USART1 PA10/PA9)

In printer.cfg file, you need to uncomment the following line as our example printer.cfg file here (github 国内) do, if your cfg file don't have this line, please add it.

serial: /dev/ttyAMA0

Besides this make option, you still need to follow the instructions in Connect RPI uart.md file, you can find the file github 国内.

4.2.2 Compile firmware

make

4.2.3 Upload firmware

Follow Firmware Update guide here.

4.3 RRF

Spider King is originally supported by teamgloomy‘s RRF firmware from version 3.4.2rc2 Releases · gloomyandy/RepRapFirmware · GitHub. Check the document here.

4.4 Firmware Upload

We provide several methods to upload the firmware including SDCARD, dfu-util, DFU and platformio.

4.4.1 Upload the firmware(SDCARD)

Uploading firmware using SD card is our default way to update the firmware as Spider King already has stock bootloader.

Steps:

  1. Copy your compiled firmware file firmware.bin(If you use klipper firmware, you need to rename klipper.bin to firmware.bin) file to the SD card

  2. Insert it to the SD card slot which is at the right side of the board

  3. Then power on the board.

  4. You may need to wait for about 30s to finish uploading.

Note: If you once upload the firmware to Spider King flash address 0x08000000, then the stock bootloader will be gone, you need to upload the bootloader yourself, please follow the 5.Bootloader Guide chacter to upload the bootloader.

4.4.2 Upload the firmware(dfu-util)

This method works in linux, that means should work in raspberry pi.

Step 1. Enter DFU mode first
  1. First power off the board

  2. Make sure no jumper on 5V and U5V-EN(On KING core board)

  3. Place jumper on BT0 to 3V3 pin (On KING core board)

  4. Connect USB cable to the KING core board and your computer (If you use raspberry pi to upload firmware, connect USB cable to your raspberry pi)

  5. Power on the board with 24v PSU

Now the board is in DFU mode. If not, click the reset button. Also you can power on the board with USB 5v, but you need to set jumper on 5V and U5V-EN on KING core board ,check the silkscreen lable on the KING core board, and remember to remove it after you finish uploading.

REMEMBER to remove BT0 jumper if you finish uploading firmware or it will enter DFU mode again.

Step 2. Install dfu-util

Make sure dfu-util is installed, shoot dfu-util --version command to check.

Sample output:

dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

If not , you should install it first, use the package manager of your distribution to get the latest version, like

sudo apt-get install dfu-util
Step 3. Use command to upload firmware

Then use the command below to upload the firmware. You should replace firmware.bin below with your built firmware bin(or hex) file location like out/klipper.bin.

dfu-util -R -a 0 -s 0x08008000:leave -D firmware.bin

4.4.3 Upload the firmware(DFU)

This method only works in WINDOWS OS.

Step 1. Download stm32cubeprogrammer

You can download it from ST website STM32CubeProg. Then install and open the STM32CubeProgrammer software.

Step 2. Enter DFU mode
  • First power off the board

  • Make sure no jumper on 5V and U5V-EN(On KING core board)

  • Place jumper on BT0 to 3V3 pin (On KING core board)

  • Connect USB cable to the KING core board and your computer (If you use raspberry pi to upload firmware, connect USB cable to your raspberry pi)

  • Power on the board with 24v PSU

Now the board is in DFU mode. If not, click the reset button. Also you can power on the board with USB 5v, but you need to set jumper on 5V and U5V-EN on KING core board, check the silkscreen lable on the KING core board, and remember to remove it after you finish uploading.

REMEMBER to remove BT0 jumper if you finish uploading firmware or it will enter DFU mode again.

Step 3. Upload the firmware

Now you can connect and flash the Spider board with stm32cubeprogrammer with the following operation.

Do as the red number shows in the screen shot.

  1. Click the button to find the DFU port.
  2. Connect the DFU
  3. Choose the "firmware.bin" file. (or .hex file).
  4. Fill in the 'Start address' 0x08008000.
  5. Start Programming

4.4.4 Upload the firmware(platformio)

If you compile Marlin yourself with platformio,you can follow the instructions below to upload the firmware.

Step 1. Enter DFU mode first
  • First power off the board

  • Make sure no jumper on 5V and U5V-EN(On KING core board)

  • Place jumper on BT0 to 3V3 pin (On KING core board)

  • Connect USB cable to the KING core board and your computer (If you use raspberry pi to upload firmware, connect USB cable to your raspberry pi)

  • Power on the board with 24v PSU

Now the board is in DFU mode. If not, click the reset button. Also you can power on the board with USB 5v, but you need to set jumper on 5V and U5V-EN on KING core board, check the silkscreen lable on the KING core board, and remember to remove it after you finish uploading.

REMEMBER to remove BT0 jumper if you finish uploading firmware or it will enter DFU mode again.

Step 2. Click the upload button to upload firmware