Skip to content

Commit

Permalink
config: Add HC32F460 variant of Ender 2 Pro (#6334)
Browse files Browse the repository at this point in the history
PR to add the newer version of the Ender 2 Pro with the CR-FDM-v2.5.54.170 motherboard with the HC3232F460 chip.

Confirmed as working with discord member NyftHeart and using configs from Steve Gotthardt, with his permission to use and submit.

Signed-off-by: James Hartley <[email protected]>
  • Loading branch information
JamesH1978 authored Sep 10, 2023
1 parent 5f990f9 commit 5f58fe7
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 1 deletion.
95 changes: 95 additions & 0 deletions config/printer-creality-ender2pro-hc32-2022.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# This file contains pin mappings for the Creality Ender2 Pro
# with the HC32F460. The board is CR-FDM-v2.5.S4.170
# To use this config, during "make menuconfig" select HC32F460

# Flash this firmware by copying "out/klipper.bin" to a SD card
# as /user/firmware.bin
# Turn on the printer with the card inserted.

# See docs/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PC1
dir_pin: PC0
enable_pin: !PC2
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA5
position_min: -20
position_endstop: -20
position_max: 165
homing_speed: 50

[stepper_y]
step_pin: PB9
dir_pin: PB8
enable_pin: !PH2
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA6
position_min: -5
position_endstop: -5
position_max: 165
homing_speed: 50

[stepper_z]
step_pin: PB6
dir_pin: !PB5
enable_pin: !PB7
microsteps: 16
rotation_distance: 8
endstop_pin: ^PB0
position_endstop: 0.0
position_max: 180

[extruder]
max_extrude_only_distance: 100.0
step_pin: PB3
dir_pin: PA15
enable_pin: !PB4
microsteps: 16
rotation_distance: 27.53480577
nozzle_diameter: 0.400
filament_diameter: 1.750
heater_pin: PA1
sensor_pin: PC5
sensor_type: Generic 3950
control: pid
pid_Kp: 29.634
pid_Ki: 2.102
pid_Kd: 104.459
min_temp: 0
max_temp: 260

[heater_bed]
heater_pin: PB10
sensor_type: Generic 3950
sensor_pin: PC4
control: pid
pid_Kp: 72.921
pid_Ki: 1.594
pid_Kd: 834.031
min_temp: 0
max_temp: 80

[fan]
pin: PA0

[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 3000
max_z_velocity: 5
max_z_accel: 100

[display]
lcd_type: st7920
cs_pin: PB15
sclk_pin: PB14
sid_pin: PB12
encoder_pins: ^PB13,^PA2
click_pin: ^!PC7
3 changes: 3 additions & 0 deletions test/configs/hc32f460-serial-PA7PA8.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Base config file for boards using HC32F460
CONFIG_MACH_HC32F460=y
CONFIG_HC32F460_SERIAL_PA7_PA8=y
6 changes: 5 additions & 1 deletion test/klippy/printers.test
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,15 @@ CONFIG ../../config/generic-bigtreetech-skr-mini-e3-v3.0.cfg
DICTIONARY rp2040.dict
CONFIG ../../config/generic-bigtreetech-skr-pico-v1.0.cfg

# Anycubic Printers using trigorilla board with the hc32f460
# Printers using the hc32f460 with serial on PA3 PA2
DICTIONARY hc32f460-serial-PA3PA2.dict
CONFIG ../../config/printer-anycubic-kobra-go-2022.cfg
CONFIG ../../config/printer-anycubic-kobra-plus-2022.cfg

# Printers using the hc32f460 with serial on PA7 PA8
DICTIONARY hc32f460-serial-PA7PA8.dict
CONFIG ../../config/printer-creality-ender2pro-hc32-2022.cfg

# Printers using the PRU
DICTIONARY pru.dict host=linuxprocess.dict
CONFIG ../../config/generic-cramps.cfg
Expand Down

0 comments on commit 5f58fe7

Please sign in to comment.