No longer maintained since klipper already has the necessary modifications for HC32F460
This is a work in progress to control the Tenlog TL-D3 Pro printer with Klipper. AKA: HICTOP D3 Hero / Hellbot Hidra Plus
Make sure to modify the basic configuration to match your printer, and your Klipper installation.
file | section |
---|---|
printer.cfg | mcu serial path |
extruders.cfg | calibrate rotation_distance, (*)pressure_advance |
steppers.cfg | calibrate rotation_distance |
positioning.cfg | if you don't have a probe, comment bltouch, bed_mesh and z_tilt sections |
(*) Note: you must calibrate pressure advance on your own, and fill that value.
Then, calibrate the probe, and make sure to renew the bed mesh using the bedmesh_renew macro. The current printer.cfg has my saved bed mesh for 50, 60 and 70 temperature settings.
The Start and Stop gcodes are originally intender to use with SuperSlicer, but I've tested on Cura and works well too: Start G-Code
prep_print EXTRUDER={first_layer_temperature[initial_extruder] + extruder_temperature_offset[initial_extruder]} BED={first_layer_bed_temperature} CHAMBER={chamber_temperature} FILAMENT={filament_type} COUNT={total_layer_count} TOOLS={total_toolchanges} NUM=1;Load print settings
End G-Code:
END_PRINT
If you check the extruders.cfg config file, you will find that I'm using the 1.64 value for filament diameter. I measure the real diameter of the filament to make the test, this is a try to avoid any external factor to mess up my tests. But if you want to use the standard 1.75 value, is up to you, check the macro PREP_PRINT at the macros.cfg file too.
This is a mix of existing configurations that I've found searching over all the Internet, but the primary sources are: https://github.com/jonpackard/klipper_config_tld3pro/tree/master https://github.com/matti125/klipper_config
And the Klipper documentation. Also, my first try with this running on Klipper, was on the Creality Sonic Pad, so, I'd flashed the firmware through it.
There is a '32bit_board' folder with the 32bit motherboard support for Klipper. Is a Work In Progress. But if you want to try, put the file klipper.bin behind a 'user' folder in a micro SD card, and name the klipper.bin file to firmware.bin, then power on the board, and it will be flashed into the MCU. Use the configs as in 32bit_board/cfg files. Do this at your own risk. Remember, is a WIP. If you want to compile the firmware on your own, you need to wait to Klipper to support HC32F460-PETB (Klipper currently supports the 64pin package mcu, Tenlog's board, comes with a 100pin package mcu, PETB variant), or, you can modify the gpio.c and hard_pwm.c files as shown in gpio.c.png and hard_pwm.c.png and compile using the menuconfig as shown in the file menuconfig.png
Added Macros from: https://github.com/Klipper3d/klipper/blob/master/config/sample-idex.cfg
Managed to add UART support for TMC 2209 drivers. Removing the useless wifi module, you will be able to get 3 pins from there (PB0, PA6, PB1), then aside of this module, there is another serial / spio connector, from there, you can get another two pins (PA14, PA13). Just solved this puzzle, and now I'm testing the machine, once I get the results I will update this README.md file with the instructions. In the 32bit motherboard folder, under the Research folder, you will find an image with the pin reference.