Sample Configuration files for the Fly-SB2040-V2
Edit me

Fly-SB2040-V2 Configuration files

Fly-SB2040-V2 aliases file

## Fly-SB2040-V2 BOARD PINS
[board_pins SB2040v2]
mcu: SB2040v2
aliases:
aliases_2209:
    EXT_EN=gpio7,EXT_STEP=gpio9,EXT_DIR=gpio10,EXT_UART=gpio8
aliases_endstop:
    LIMIT_0=gpio25,LIMIT_1=gpio28,LIMIT_2=gpio29
aliases_cnc_fans:
    FAN0=gpio13,FAN1=gpio14,FAN2=gpio15
aliases_thermistors:
    TH0=gpio27,TH1=gpio26
aliases_heaters:
    HE0=gpio6
aliases_rgb:
    RGBLED=gpio12
aliases_adxl:
    ADXL=gpio1
aliases_pt100:
    PT100=gpio22

Edit the following sections of your printer.cfg file.

Add an include for the SB2040-V2 aliases file

[include fly_sb2040_v2.cfg]

MCU UUID

[mcu SB2040v2]
canbus_uuid: 6248a4b16ede # <-- replace with your UUID

Fly-SB2040-V2 CPU Temp

[temperature_sensor SB2040v2]
sensor_type: temperature_mcu
sensor_mcu: SB2040v2

Chamber Temperature Sensor

[temperature_sensor Chamber]
sensor_type: Generic 3950
sensor_pin: SB2040v2:TH1

Hot End Fan

[heater_fan hotend_fan]
pin: SB2040v2:FAN1
max_power: 1.0
kick_start_time: 0.5
heater: extruder
heater_temp: 50.0

Part cooling

[fan]
pin: SB2040v2:FAN0
kick_start_time: 0.25
cycle_time: 0.15
off_below: 0.10

Extruder

[extruder]
step_pin: SB2040v2:EXT_STEP
dir_pin: !SB2040v2:EXT_DIR
enable_pin: !SB2040v2:EXT_EN
rotation_distance: 22.67895 # VZHextrudort, Mini SHerpa and other BMG based extruders
gear_ratio: 50:10 
microsteps: 16
full_steps_per_rotation: 200
max_extrude_only_distance: 1000.0
max_extrude_only_velocity: 50.0
max_extrude_only_accel: 1500
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: SB2040v2:HE0
sensor_pin: SB2040v2:TH0
sensor_type: ATC Semitec 104GT-2  # this is the default for the Revo heater
#pullup_resistor: 1000             # Uncomment for PT1000 Sensor with jumper installed. 
control = pid # Sample PID - perform your own PID tuning for accurate results. 
pid_kp = 26.213
pid_ki = 1.304
pid_kd = 131.721
min_temp: 0
max_temp: 275
min_extrude_temp: 160

PT100 Support

sensor_type: MAX31865                
sensor_pin: SB2040v2:PT100            
spi_software_sclk_pin: SB2040v2:gpio18
spi_software_mosi_pin: SB2040v2:gpio19
spi_software_miso_pin: SB2040v2:gpio23
rtd_reference_r: 430              

Extruder Motor

[tmc2209 extruder]
uart_pin: SB2040v2:EXT_UART
stealthchop_threshold: 0
run_current: 0.30

ADXL345

[adxl345]
cs_pin: SB2040v2:ADXL
spi_software_sclk_pin: SB2040v2:gpio0
spi_software_mosi_pin: SB2040v2:gpio3
spi_software_miso_pin: SB2040v2:gpio2

[resonance_tester]
accel_chip:adxl345
probe_points:
    150,150,20

RGB

[neopixel SB2040v2_led]
pin: SB2040v1:RGBLED
chain_count: 3
color_order: GRBW
initial_RED: 0.0
initial_GREEN: 0.0
initial_BLUE: 0.0
initial_WHITE: 0.0

Z Probe

[probe]
pin: ^SB2040v2:LIMIT_2 # Use the high voltage port Limit_0 for Induction probes.

BLTouch

[bltouch]
sensor_pin: ^SB2040v2:LIMIT_2
control_pin: SB2040v2:LIMIT_1
x_offset: -26.1              
y_offset: -15.3              
z_offset: 2.1    
Tags: