Skip to content

Commit

Permalink
Added Mellow Fly-SB2040 V1 config
Browse files Browse the repository at this point in the history
Uploaded translated mellow fly config
  • Loading branch information
irebane authored Nov 4, 2022
1 parent 92adfe3 commit 8bfc5fc
Showing 1 changed file with 107 additions and 0 deletions.
107 changes: 107 additions & 0 deletions mellow_fly-sb2040_klipper.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
[mcu]
canbus_uuid: 661eb9c9feaf

[mcu sb2040]
canbus_uuid: 1ded6b365b23

[printer]
kinematics: none
max_velocity: 300
max_accel: 3000

## SB2040 temperature
[temperature_sensor FLY-SB2040]
sensor_type: temperature_mcu
sensor_mcu: sb2040

## SB2040 on-board NTC100K temperature
[temperature_sensor Warehouse]
sensor_type = ATC Semitec 104GT-2
sensor_pin = sb2040:gpio26
min_temp: -50
max_temp: 350

## FAN0
[fan]
pin: sb2040:gpio13

## FAN1
[fan_generic fan]
pin: sb2040:gpio14

## FAN2
## [fan_generic fan]
## pin: sb2040:gpio15

## X limit setting
# [stepper_x]
# endstop_pin: !sb2040:gpio29
## SB2040 board has three limit pins available: gpio25, gpio28, gpio29. gpio25 supports high voltage input. Modify the configuration according to the actual wiring

## Extruder
[extruder]
step_pin: sb2040:gpio9
dir_pin: sb2040:gpio10
enable_pin: !sb2040:gpio7
heater_pin: sb2040:gpio6
sensor_pin: sb2040:gpio27
## Update value below when you perform extruder calibration
## If you ask for 100mm of filament, but in reality it is 98mm:
## rotation_distance = <previous_rotation_distance> * <actual_extrude_distance> / 100
## 22.6789511 is a good starting point
#rotation_distance: 22.112 #Bondtech 5mm Drive Gears
## Update Gear Ratio depending on your Extruder Type
## Use 50:17 for Afterburner/Clockwork (BMG Gear Ratio)
## Use 80:20 for M4, M3.1
gear_ratio: 50:10 #BMG Gear Ratio
#gear_ratio: 75:10
rotation_distance: 20.9
#rotation_distance: 33.85
microsteps: 32
full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
nozzle_diameter: 0.400
filament_diameter: 1.75
## Check what thermistor type you have. See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types.
## Use "Generic 3950" for NTC 100k 3950 thermistors
sensor_type: ATC Semitec 104NT-4-R025H42G
min_temp: 10
max_temp: 270
max_power: 1.0
min_extrude_temp: 170
max_extrude_only_distance: 500
control = pid
pid_kp = 26.213
pid_ki = 1.304
pid_kd = 131.721
## Try to keep pressure_advance below 1.0
#pressure_advance: 0.05
## Default is 0.040, leave stock
#pressure_advance_smooth_time: 0.040
pressure_advance: 0.035 #0.041 #0.044 # See tuning pressure advance doc
pressure_advance_smooth_time: 0.040

## sensor_type: PT1000
## pullup_resistor: 1000
## SB2040 default thermal pullup resistor is 4700. 1000 can be configured via jumper cap, 1000 is more suitable for PT1000 type temperature sensor

## Extruder drive settings
[tmc2209 extruder]
uart_pin: sb2040:gpio8
run_current: 0.600
stealthchop_threshold: 999999

## RGB
[neopixel my_neopixel]
pin: sb2040:gpio12
chain_count: 12
color_order: GRBW
initial_RED: 0.0
initial_GREEN: 0.0
initial_BLUE: 0.0

## ADXL345 Accelerometer
[adxl345]
cs_pin: sb2040:gpio1
spi_software_sclk_pin: sb2040:gpio0
spi_software_mosi_pin: sb2040:gpio3
spi_software_miso_pin: sb2040:gpio2

0 comments on commit 8bfc5fc

Please sign in to comment.