From a098f4b698e26c68c3146c54a32d0471c2c13ea1 Mon Sep 17 00:00:00 2001 From: Kire Dyfvelsten Date: Tue, 21 Jan 2025 20:41:59 +0100 Subject: [PATCH 1/6] Crazy3DPrinter CZ-300 Motherboard is named "3FD1X ENTINE T1 2018/10/22" --- config/printer-crazy3dprint-cz-300-2018.cfg | 189 ++++++++++++++++++++ 1 file changed, 189 insertions(+) create mode 100644 config/printer-crazy3dprint-cz-300-2018.cfg diff --git a/config/printer-crazy3dprint-cz-300-2018.cfg b/config/printer-crazy3dprint-cz-300-2018.cfg new file mode 100644 index 000000000..8d0fe76ab --- /dev/null +++ b/config/printer-crazy3dprint-cz-300-2018.cfg @@ -0,0 +1,189 @@ +# To install Klipper on your Raspberry pi (octoprint) or PC (any debian flavor) +# try KIAUH https://github.com/th33xitus/kiauh#-download-and-use-kiauh + + +# This file contains common pin mappings for XYZPrint Crazy3DPrint CZ-300. +# To use this config, the firmware should be compiled for the SAM4S8C (duet maestro). +# Motherboard is named "3FD1X ENTINE T1 2018/10/22" +# Several pins on the motherboard dont have a pinheader, it is jst 2.0 + +# To flash using klipper.. press firmware reset button under the rotary knob +# Powerreset and confirm that the USB port is detected as "usb-03eb_6124-if00" (flashmode , BossaC) +# Flash and then Powerreset the printer again. + +# See docs/Config_Reference.md for a description of parameters. + + + +[mcu] +baud: 115200 #i have trubble to connect using faster speeds( even original marlin fw uses speed 115200) +# Customized firmware build +# if building Custom firmware with "Enable extra low-level configuration options" disable Chip serial and empty usb serial +serial: /dev/serial/by-id/usb-Klipper_sam4s8c-if00 +# if you did not disable serial, you have to find your own serial +#serial: /dev/serial/by-id/usb-Klipper_sam4s8c_00313753314D43383139303432303331-if00 + + +[stepper_x] +# A5984 +step_pin: PA19 +dir_pin: PC27 +enable_pin: !PC15 +microsteps:32 +rotation_distance: 40 +endstop_pin: ^PC17 +position_endstop: -11.494 +position_min: -11.494 +position_max: 302 +homing_speed: 25 + +[stepper_y] +# A5984 +step_pin: PA6 +dir_pin: !PC23 +enable_pin: !PA5 +microsteps:32 +rotation_distance: 40 +endstop_pin: ^PA0 +position_endstop: -36.098 +position_min: -36.098 +position_max: 383 +homing_speed: 25 + +[stepper_z] +# A5984 +step_pin: PA18 +dir_pin: !PC26 +enable_pin: !PA17 +microsteps: 32 +rotation_distance: 0.81 +endstop_pin: ^PC16 +position_endstop: -4 +position_min: -8 +position_max: 314 +homing_speed: 15 + +[safe_z_home] +home_xy_position:-11.494,-36.098 +speed: 15 +z_hop: 7 #rise abowe glass clamp + +[extruder] +# Nozzle +nozzle_diameter: 0.400 +filament_diameter: 1.750 +# Flow +step_pin: PA2 +dir_pin: PC10 +enable_pin: !PC11 +microsteps: 32 +# esteps=188.79 +rotation_distance: 16.924 #was 15 +heater_pin: !PA20 +# Temperatures +sensor_type: ATC Semitec 104GT-2 +sensor_pin: PC29 +pullup_resistor: 1000 +inline_resistor: 100 +min_temp: 0 +max_temp: 275 +min_extrude_temp: 180 #default 170 +# Calibration +# PID calibration with std brass nozzle and target 230 +control: pid +pid_Kp: 19.789 +pid_Ki: 1.109 +pid_Kd: 88.310 + +[heater_bed] +heater_pin: PA23 +# Temperature +sensor_type: ATC Semitec 104GT-2 +sensor_pin: PB0 +pullup_resistor: 10000 +inline_resistor: 100 +min_temp: 0 +max_temp: 110 +# Calibration +# PID calibration with 10mm bed insulation and target of 60 +control: pid +pid_Kp: 69.036 +pid_Ki: 1.202 +pid_Kd: 991.533 + + +[bed_screws] +screw1: 34,24 +screw1_name: Front Left +screw2: 34,276 +screw2_name: Front Right +screw3: 266,24 +screw3_name: Back Left +screw4: 266,276 +screw4_name: Back Right +screw5: 150,150 +screw5_name: Center + +[menu __main __setup __calib __bedlevel] +type: command +enable: {(not printer.idle_timeout.state == "Printing") } +name: Manual Bed Leveling +gcode: BED_SCREWS_ADJUST + + +#[fan] +#pin: PC31 # FAN0 (part cooler) + +[heater_fan hotend_fan] +pin: PC13 # FAN1 +heater_temp: 50 #default 50 +shutdown_speed: 1 #Set fan to 100% after emergency stop + + +#[heater_fan board_cooling_fan] +#pin: PC29 # FAN2 + +#[bltouch] +#sensor_pin: PC15 # Z_PROBE_IN +#control_pin: PC26 # Z_PROBE_MOD +#... + + +[temperature_sensor MB-CPU] +sensor_type: temperature_mcu +sensor_mcu: mcu + + +[printer] +kinematics: cartesian +max_velocity: 300 +max_accel: 3000 +max_z_velocity: 5 +max_z_accel: 100 + +# [static_digital_output led] +# pins: !PC26 # Z_PROBE_MOD / SERVO pin + +[display] +lcd_type: st7920 +cs_pin: PC28 # D/I or RS is chip select in serial mode +sclk_pin: PA22 # E = SCK in serial mode +sid_pin: PC8 # R/W is data in serial mode +# Rotary Knob (switch order to change upp/down) +encoder_pins: ^PA21,^PC12 +encoder_steps_per_detent: 2 #default 4 +click_pin: ^!PB3 +# This is Firmware Erase/Flash Enable button, not emergency shutdown +#kill_pin: ^!PB12 + +[output_pin beeper] +pin: PA16 +pwm: True +value: 0 +shutdown_value:0 +cycle_time: 0.001 +scale: 1000 + +[static_digital_output my_output_pins] +pins: PC18, PC20, !PC22, !PB4 # MS1 & MS2 & MS3 on A5984 (force 32 microsteps), and CS1 on display + From ba8119def99e60afcc966c0c547c59d7b0af78df Mon Sep 17 00:00:00 2001 From: Kire Dyfvelsten Date: Tue, 21 Jan 2025 20:58:10 +0100 Subject: [PATCH 2/6] Update printer-crazy3dprint-cz-300-2018.cfg removed whitespaces --- config/printer-crazy3dprint-cz-300-2018.cfg | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/printer-crazy3dprint-cz-300-2018.cfg b/config/printer-crazy3dprint-cz-300-2018.cfg index 8d0fe76ab..a375b3278 100644 --- a/config/printer-crazy3dprint-cz-300-2018.cfg +++ b/config/printer-crazy3dprint-cz-300-2018.cfg @@ -170,11 +170,11 @@ cs_pin: PC28 # D/I or RS is chip select in serial mode sclk_pin: PA22 # E = SCK in serial mode sid_pin: PC8 # R/W is data in serial mode # Rotary Knob (switch order to change upp/down) -encoder_pins: ^PA21,^PC12 +encoder_pins: ^PA21,^PC12 encoder_steps_per_detent: 2 #default 4 click_pin: ^!PB3 # This is Firmware Erase/Flash Enable button, not emergency shutdown -#kill_pin: ^!PB12 +#kill_pin: ^!PB12 [output_pin beeper] pin: PA16 @@ -186,4 +186,3 @@ scale: 1000 [static_digital_output my_output_pins] pins: PC18, PC20, !PC22, !PB4 # MS1 & MS2 & MS3 on A5984 (force 32 microsteps), and CS1 on display - From 1506a793f54f1bc4f6696de6be610bb4bfcd56a9 Mon Sep 17 00:00:00 2001 From: Kire Dyfvelsten Date: Thu, 23 Jan 2025 08:36:08 +0100 Subject: [PATCH 3/6] Update printer-crazy3dprint-cz-300-2018.cfg The glass bed is 310 wide not 300 --- config/printer-crazy3dprint-cz-300-2018.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/printer-crazy3dprint-cz-300-2018.cfg b/config/printer-crazy3dprint-cz-300-2018.cfg index a375b3278..1e6258f3a 100644 --- a/config/printer-crazy3dprint-cz-300-2018.cfg +++ b/config/printer-crazy3dprint-cz-300-2018.cfg @@ -32,9 +32,9 @@ enable_pin: !PC15 microsteps:32 rotation_distance: 40 endstop_pin: ^PC17 -position_endstop: -11.494 -position_min: -11.494 -position_max: 302 +position_endstop: -1.494 +position_min: -1.494 +position_max: 312 homing_speed: 25 [stepper_y] From 10151f890450c90c7b43a1d77deae221bdff8c24 Mon Sep 17 00:00:00 2001 From: Kire Dyfvelsten Date: Fri, 24 Jan 2025 15:07:33 +0100 Subject: [PATCH 4/6] Update printer-crazy3dprint-cz-300-2018.cfg Added pin numbers for unsoldered pinheaders, Spelling and corrected safe home data --- config/printer-crazy3dprint-cz-300-2018.cfg | 74 +++++++++++++-------- 1 file changed, 46 insertions(+), 28 deletions(-) diff --git a/config/printer-crazy3dprint-cz-300-2018.cfg b/config/printer-crazy3dprint-cz-300-2018.cfg index 1e6258f3a..1c09d58ad 100644 --- a/config/printer-crazy3dprint-cz-300-2018.cfg +++ b/config/printer-crazy3dprint-cz-300-2018.cfg @@ -5,7 +5,7 @@ # This file contains common pin mappings for XYZPrint Crazy3DPrint CZ-300. # To use this config, the firmware should be compiled for the SAM4S8C (duet maestro). # Motherboard is named "3FD1X ENTINE T1 2018/10/22" -# Several pins on the motherboard dont have a pinheader, it is jst 2.0 +# Several pins on the motherboard dont have a soldered pinheader, it is jst 2.0 # To flash using klipper.. press firmware reset button under the rotary knob # Powerreset and confirm that the USB port is detected as "usb-03eb_6124-if00" (flashmode , BossaC) @@ -14,16 +14,14 @@ # See docs/Config_Reference.md for a description of parameters. - [mcu] baud: 115200 #i have trubble to connect using faster speeds( even original marlin fw uses speed 115200) # Customized firmware build -# if building Custom firmware with "Enable extra low-level configuration options" disable Chip serial and empty usb serial +# If building Custom firmware with "Enable extra low-level configuration options" disable Chip serial and empty usb serial serial: /dev/serial/by-id/usb-Klipper_sam4s8c-if00 -# if you did not disable serial, you have to find your own serial +# If you did not disable serial, you have to find your own serial #serial: /dev/serial/by-id/usb-Klipper_sam4s8c_00313753314D43383139303432303331-if00 - [stepper_x] # A5984 step_pin: PA19 @@ -64,7 +62,7 @@ position_max: 314 homing_speed: 15 [safe_z_home] -home_xy_position:-11.494,-36.098 +home_xy_position:-1.494,-36.098 speed: 15 z_hop: 7 #rise abowe glass clamp @@ -111,7 +109,6 @@ pid_Kp: 69.036 pid_Ki: 1.202 pid_Kd: 991.533 - [bed_screws] screw1: 34,24 screw1_name: Front Left @@ -121,7 +118,7 @@ screw3: 266,24 screw3_name: Back Left screw4: 266,276 screw4_name: Back Right -screw5: 150,150 +screw5: 155,165 screw5_name: Center [menu __main __setup __calib __bedlevel] @@ -130,30 +127,15 @@ enable: {(not printer.idle_timeout.state == "Printing") } name: Manual Bed Leveling gcode: BED_SCREWS_ADJUST - -#[fan] -#pin: PC31 # FAN0 (part cooler) - [heater_fan hotend_fan] pin: PC13 # FAN1 heater_temp: 50 #default 50 shutdown_speed: 1 #Set fan to 100% after emergency stop - -#[heater_fan board_cooling_fan] -#pin: PC29 # FAN2 - -#[bltouch] -#sensor_pin: PC15 # Z_PROBE_IN -#control_pin: PC26 # Z_PROBE_MOD -#... - - [temperature_sensor MB-CPU] sensor_type: temperature_mcu sensor_mcu: mcu - [printer] kinematics: cartesian max_velocity: 300 @@ -161,9 +143,6 @@ max_accel: 3000 max_z_velocity: 5 max_z_accel: 100 -# [static_digital_output led] -# pins: !PC26 # Z_PROBE_MOD / SERVO pin - [display] lcd_type: st7920 cs_pin: PC28 # D/I or RS is chip select in serial mode @@ -173,8 +152,8 @@ sid_pin: PC8 # R/W is data in serial mode encoder_pins: ^PA21,^PC12 encoder_steps_per_detent: 2 #default 4 click_pin: ^!PB3 -# This is Firmware Erase/Flash Enable button, not emergency shutdown -#kill_pin: ^!PB12 +# This is Firmware Erase/Flash Enable button +#Erase_pin: ^!PB12 [output_pin beeper] pin: PA16 @@ -186,3 +165,42 @@ scale: 1000 [static_digital_output my_output_pins] pins: PC18, PC20, !PC22, !PB4 # MS1 & MS2 & MS3 on A5984 (force 32 microsteps), and CS1 on display + +#[fan] +#pin: PC31 # FAN2 (part cooler) + +#[Probe] +#pin1: PA24 #Calibration_1 +#pin2: GND #Calibration_2 +#pin3: VCC #Calibration_3 + +#[filament_switch_sensor RunoutSensor] +#pause_on_runout: True +#runout_gcode: +# M600 +# M117 No Filament detected +#insert_gcode: +# M117 Filament detected +#switch_pin: PA1 #SENSOR_E1_1 +#switch_pin: PC14 #SENSOR_E1_2 +#switch_pin: GND #SENSOR_E1_3 +#switch_pin: VCC #SENSOR_E1_4 + +#[LED] +#LED_1: PB14 +#LED_2: GND +#LED_3: 24V? + +#[bltouch] +#Debug_1: PA10 +#Debug_2: VCC +#Debug_3: GND +#Debug_4: PA9 + +#[Burning] +#Burning_1: VDDIO +#Burning_2: TMS/SWDIO/PB5 +#Burning_3: GND +#Burning_4: TDO/TRACESWO/PB5 +#Burning_5: TCK/SWCLK/PB7 +#Burning_6: NRST From 61f35089005993435ab0f20f329d5e28764f1768 Mon Sep 17 00:00:00 2001 From: Kire Dyfvelsten Date: Fri, 24 Jan 2025 15:12:57 +0100 Subject: [PATCH 5/6] Update printer-crazy3dprint-cz-300-2018.cfg removed whitespace --- config/printer-crazy3dprint-cz-300-2018.cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/printer-crazy3dprint-cz-300-2018.cfg b/config/printer-crazy3dprint-cz-300-2018.cfg index 1c09d58ad..3f6954a79 100644 --- a/config/printer-crazy3dprint-cz-300-2018.cfg +++ b/config/printer-crazy3dprint-cz-300-2018.cfg @@ -176,14 +176,14 @@ pins: PC18, PC20, !PC22, !PB4 # MS1 & MS2 & MS3 on A5984 (force 32 microsteps), #[filament_switch_sensor RunoutSensor] #pause_on_runout: True -#runout_gcode: +#runout_gcode: # M600 # M117 No Filament detected #insert_gcode: # M117 Filament detected -#switch_pin: PA1 #SENSOR_E1_1 -#switch_pin: PC14 #SENSOR_E1_2 -#switch_pin: GND #SENSOR_E1_3 +#switch_pin: PA1 #SENSOR_E1_1 +#switch_pin: PC14 #SENSOR_E1_2 +#switch_pin: GND #SENSOR_E1_3 #switch_pin: VCC #SENSOR_E1_4 #[LED] From 9501c7a68d35eb594e371bd1701c41b59c6ff75a Mon Sep 17 00:00:00 2001 From: Kire Dyfvelsten Date: Fri, 24 Jan 2025 15:56:58 +0100 Subject: [PATCH 6/6] added printer-crazy3dprint-cz-300-2018.cfg added printer-crazy3dprint-cz-300-2018.cfg --- test/klippy/printers.test | 1 + 1 file changed, 1 insertion(+) diff --git a/test/klippy/printers.test b/test/klippy/printers.test index 92c340cb8..61d107641 100644 --- a/test/klippy/printers.test +++ b/test/klippy/printers.test @@ -112,6 +112,7 @@ CONFIG ../../config/generic-ruramps-v1.3.cfg # Printers using the sam4s8c DICTIONARY sam4s8c.dict CONFIG ../../config/generic-duet2-maestro.cfg +CONFIG ../../config/printer-crazy3dprint-cz-300-2018.cfg # Printers using the sam4e8e DICTIONARY sam4e8e.dict