Created
October 16, 2025 04:34
-
-
Save skramstad/c57a91d3c632ee01080bebc1970b96b6 to your computer and use it in GitHub Desktop.
TMC2240 on Manta M8P
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [mcu] | |
| ## For USB | |
| ## Obtain definition by "ls /dev/serial/by-id/*" then unplug to verify | |
| ##-------------------------------------------------------------------- | |
| serial: /dev/serial/by-path/platform-1000480000.usb-usb-0:1.4:1.0 | |
| restart_method: command | |
| ##-------------------------------------------------------------------- | |
| ## Toolhead Board | |
| ##-------------------------------------------------------------------- | |
| [mcu thb] | |
| ## For USB | |
| ## Obtain definition by "ls /dev/serial/by-id/*" then unplug to verify | |
| serial: /dev/serial/by-id/usb-Klipper_rp2040_4E363334320E3E50-if00 | |
| restart_method: command | |
| [include mainsail.cfg] | |
| [include macros.cfg] | |
| [include pause_resume_cancel.cfg] | |
| # LDO NiteHawk36 | |
| [include LDONH36.cfg] | |
| # LED animations | |
| #[include led_animations.cfg] | |
| ################### | |
| # Beacon3D # | |
| ################### | |
| [include beacon.cfg] | |
| [include accelerometer.cfg] | |
| [printer] | |
| kinematics: corexy | |
| max_velocity: 200 | |
| max_accel: 8500 #This can be adjusted after you run Input Shaper calibration | |
| max_z_velocity: 25 #Max 15 for 12V TMC Drivers, can increase for 24V | |
| max_z_accel: 350 | |
| square_corner_velocity: 5 | |
| ####################### | |
| # Temperature Sensors # | |
| ####################### | |
| [temperature_sensor Manta M8] | |
| sensor_type: temperature_mcu | |
| [temperature_sensor CM5] | |
| sensor_type: temperature_host | |
| [temperature_sensor Chamber] # TH0 | |
| sensor_type: Generic 3950 | |
| sensor_pin: PB0 | |
| min_temp: 0 | |
| max_temp: 125 | |
| [temperature_sensor Chamber_Bottom] # TH2 | |
| sensor_type: Generic 3950 | |
| sensor_pin: PC4 | |
| min_temp: 0 | |
| max_temp: 125 | |
| [temperature_sensor Chamber_Top] # TH3 | |
| sensor_type: Generic 3950 | |
| sensor_pin: PA7 | |
| min_temp: 0 | |
| max_temp: 125 | |
| ################ | |
| # X/Y Steppers # | |
| ################ | |
| ## X Stepper on Motor1(B Motor) | |
| [stepper_x] | |
| step_pin: PE6 | |
| dir_pin: PE5 | |
| enable_pin: !PC14 | |
| rotation_distance: 32 | |
| microsteps: 32 | |
| full_steps_per_rotation: 200 #400 for 0.9 deg steppers | |
| position_min: 0 | |
| homing_positive_dir: true | |
| homing_speed: 40 | |
| position_endstop: 173 | |
| position_max: 173 | |
| endstop_pin: tmc2240_stepper_x:virtual_endstop | |
| homing_retract_dist: 73 | |
| ########################## | |
| # Uncomment for Manta M8 # | |
| ########################## | |
| [tmc2240 stepper_x] | |
| cs_pin: PC13 | |
| spi_software_mosi_pin: PG6 | |
| spi_software_miso_pin: PG7 | |
| spi_software_sclk_pin: PG8 | |
| interpolate: True | |
| run_current: 0.8 | |
| stealthchop_threshold: 0 | |
| rref: 12000 | |
| diag0_pin: ^!PF4 | |
| driver_SGT: 1 # -64 is most sensitive value, 63 is least sensitive | |
| driver_SLOPE_CONTROL: 3 | |
| ## Y Stepper on Motor2 (A Motor) | |
| [stepper_y] | |
| step_pin: PE2 | |
| dir_pin: PE1 | |
| enable_pin: !PE4 | |
| rotation_distance: 32 | |
| microsteps: 32 | |
| full_steps_per_rotation: 200 #400 for 0.9 deg steppers | |
| position_min: 0 | |
| homing_positive_dir: true | |
| homing_speed: 40 | |
| position_endstop: 188 | |
| position_max: 188 | |
| endstop_pin: tmc2240_stepper_y:virtual_endstop | |
| homing_retract_dist: 30 | |
| [tmc2240 stepper_y] | |
| cs_pin: PE3 | |
| spi_software_mosi_pin: PG6 | |
| spi_software_miso_pin: PG7 | |
| spi_software_sclk_pin: PG8 | |
| interpolate: True | |
| run_current: 0.8 | |
| stealthchop_threshold: 0 | |
| rref: 12000 | |
| diag0_pin: ^!PF3 | |
| driver_SGT: 1 # -64 is most sensitive value, 63 is least sensitive | |
| driver_SLOPE_CONTROL: 3 | |
| ############## | |
| # Z Steppers # | |
| ############## | |
| ## Z0 Stepper - Front Left | |
| [stepper_z] | |
| step_pin: PB4 | |
| dir_pin: PB3 | |
| enable_pin: !PB6 | |
| rotation_distance: 32 | |
| gear_ratio: 64:16 | |
| microsteps: 32 | |
| endstop_pin: probe:z_virtual_endstop | |
| position_max: 165 | |
| position_min: -1.5 | |
| homing_speed: 5 | |
| homing_retract_dist: 0 | |
| [tmc2240 stepper_z] | |
| cs_pin: PB5 | |
| spi_software_mosi_pin: PG6 | |
| spi_software_miso_pin: PG7 | |
| spi_software_sclk_pin: PG8 | |
| interpolate: true | |
| run_current: 0.8 | |
| stealthchop_threshold: 99999 | |
| rref: 12000 | |
| driver_SLOPE_CONTROL: 3 | |
| ## Z1 Stepper - Rear Left | |
| [stepper_z1] | |
| step_pin: PG13 | |
| dir_pin: !PG12 | |
| enable_pin: !PG15 | |
| rotation_distance: 32 | |
| gear_ratio: 64:16 | |
| microsteps: 32 | |
| [tmc2240 stepper_z1] | |
| cs_pin: PG14 | |
| spi_software_mosi_pin: PG6 | |
| spi_software_miso_pin: PG7 | |
| spi_software_sclk_pin: PG8 | |
| interpolate: true | |
| run_current: 0.8 | |
| stealthchop_threshold: 99999 | |
| rref: 12000 | |
| driver_SLOPE_CONTROL: 3 | |
| ## Z2 Stepper - Rear Right | |
| [stepper_z2] | |
| step_pin: PG9 | |
| dir_pin: PD7 | |
| enable_pin: !PG11 | |
| rotation_distance: 32 | |
| gear_ratio: 64:16 | |
| microsteps: 32 | |
| [tmc2240 stepper_z2] | |
| cs_pin: PG10 | |
| spi_software_mosi_pin: PG6 | |
| spi_software_miso_pin: PG7 | |
| spi_software_sclk_pin: PG8 | |
| interpolate: true | |
| run_current: 0.8 | |
| stealthchop_threshold: 99999 | |
| rref: 12000 | |
| driver_SLOPE_CONTROL: 3 | |
| ## Z3 Stepper - Front Right | |
| [stepper_z3] | |
| step_pin: PD4 | |
| dir_pin: !PD3 | |
| enable_pin: !PD6 | |
| rotation_distance: 32 | |
| gear_ratio: 64:16 | |
| microsteps: 32 | |
| [tmc2240 stepper_z3] | |
| cs_pin: PD5 | |
| spi_software_mosi_pin: PG6 | |
| spi_software_miso_pin: PG7 | |
| spi_software_sclk_pin: PG8 | |
| interpolate: true | |
| run_current: 0.8 | |
| stealthchop_threshold: 99999 | |
| rref: 12000 | |
| driver_SLOPE_CONTROL: 3 | |
| ############ | |
| # Extruder # | |
| ############ | |
| [extruder] | |
| step_pin: thb:gpio23 | |
| dir_pin: !thb:gpio24 | |
| enable_pin: !thb:gpio25 | |
| heater_pin: thb:gpio9 | |
| sensor_type: PT1000 # Generic 3950 | |
| sensor_pin: thb:gpio29 | |
| pullup_resistor: 2200 | |
| #control: pid | |
| #pid_Kp: 21.527 | |
| #pid_Ki: 1.063 | |
| #pid_Kd: 108.982 | |
| min_temp: 0 | |
| max_temp: 300 | |
| max_power: 1.0 | |
| microsteps: 16 | |
| gear_ratio: 9:1 # Galileo 2 | |
| rotation_distance: 47.088 # Galileo 2 | |
| full_steps_per_rotation: 200 # 400 for 0.9 degree | |
| nozzle_diameter: 0.500 | |
| filament_diameter: 1.75 | |
| pressure_advance: 0.02 | |
| pressure_advance_smooth_time: 0.010 # this can be calibrated later | |
| [tmc2209 extruder] | |
| uart_pin: thb:gpio0 | |
| tx_pin: thb:gpio1 | |
| sense_resistor: 0.100 | |
| run_current: 0.6 # Galileo 2 | |
| interpolate: false | |
| ############## | |
| # Bed Heater # | |
| ############## | |
| [heater_bed] | |
| ## SSR Pin - HE1 | |
| heater_pin: PA1 | |
| sensor_type: Generic 3950 | |
| sensor_pin: PB1 | |
| max_power: 1 | |
| min_temp: 0 | |
| max_temp: 120 | |
| control: pid | |
| pid_kp: 58.437 | |
| pid_ki: 2.347 | |
| pid_kd: 363.769 | |
| ############### | |
| # Fan Control # | |
| ############### | |
| [fan] | |
| ## Part Cooling Fan | |
| pin: thb:gpio6 | |
| kick_start_time: 0.5 | |
| [heater_fan hotend_fan] | |
| pin: thb:gpio5 | |
| heater: extruder | |
| heater_temp: 50.0 | |
| kick_start_time: 0.5 | |
| max_power: 1.0 | |
| tachometer_pin: thb:gpio16 # Tach on NH36 | |
| [multi_pin fan_bottom] | |
| pins: PA6, PA2 | |
| [fan_generic bottom_fans] # Fan 6 | |
| #pin: PA2 | |
| pin: multi_pin:fan_bottom | |
| max_power: 0.42 | |
| hardware_pwm: True | |
| kick_start_time: 0.5 | |
| tachometer_pin: PC2 | |
| tachometer_ppr: 2 | |
| #tachometer_poll_interval: | |
| #[multi_pin bed_fans] | |
| #pins: PF8, PF6, PA4 | |
| [fan_generic chamber_fan] # Fan 4 | |
| pin: PB10 | |
| #pin: multi_pin:bed_fans | |
| enable_pin: PA4 | |
| max_power: 1.0 | |
| hardware_pwm: True | |
| kick_start_time: 0.5 | |
| ############### | |
| # LED Control # | |
| ############### | |
| [multi_pin led_chamber] | |
| pins: PF7, PF9 | |
| ## Chamber Lighting | |
| [output_pin caselight] | |
| pin: multi_pin:led_chamber | |
| #pwm:true | |
| #shutdown_value: 0 | |
| #value:1 | |
| #cycle_time: 0.01 | |
| [gcode_macro TOGGLE_CASELIGHT] | |
| gcode: | |
| SET_PIN PIN=caselight VALUE={(not printer['output_pin caselight'].value)|int} | |
| ######################################### | |
| # Homing and Gantry Adjustment Routines # | |
| ######################################### | |
| [idle_timeout] | |
| timeout: 900 | |
| [quad_gantry_level] | |
| speed: 105 | |
| horizontal_move_z: 8 | |
| retries: 5 | |
| retry_tolerance: 0.0075 | |
| max_adjust: 10 | |
| ## Gantry Corners for 180 Build | |
| gantry_corners: | |
| -60.2,-10.4 | |
| 244.1,234.5 | |
| ## Probe points | |
| points: | |
| 13,1 | |
| 13,140 | |
| 160,140 | |
| 160,1 | |
| [telemetry] | |
| enabled: False # Set to False to disable telemetry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment