diff --git a/input_shaper.cfg b/input_shaper.cfg new file mode 100644 index 0000000..634c8d6 --- /dev/null +++ b/input_shaper.cfg @@ -0,0 +1,24 @@ +[input_shaper] +# A frequency (in Hz) of the input shaper for the axis. This is +# usually a resonance frequency of X axis that the input shaper +# should suppress. For more complex shapers, like 2- and 3-hump EI +# input shapers, this parameter can be set from different +# considerations. The default value is 0, which disables input +# shaping for the axis. +shaper_freq_x: 51.6 +shaper_freq_y: 48.0 +# A type of the input shaper to use for both X and Y axes. Supported +# shapers are zv, mzv, zvd, ei, 2hump_ei, and 3hump_ei. The default +# is mzv input shaper. +shaper_type: mzv +# If shaper_type is not set, these two parameters can be used to +# configure different input shapers for X and Y axes. The same +# values are supported as for shaper_type parameter. +# shaper_type_x: +# shaper_type_y: +# Damping ratios of vibrations of X and Y axes used by input shapers +# to improve vibration suppression. Default value is 0.1 which is a +# good all-round value for most printers. In most circumstances this +# parameter requires no tuning and should not be changed. +damping_ratio_x: 0.1 +damping_ratio_y: 0.1 diff --git a/printer.cfg b/printer.cfg index 904f044..81b343e 100644 --- a/printer.cfg +++ b/printer.cfg @@ -30,6 +30,7 @@ serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_1E0030000E5053424E363620-if00 #restart_method: command ##-------------------------------------------------------------------- + [printer] kinematics: corexy max_velocity: 300 @@ -38,6 +39,10 @@ max_accel_to_decel: 1500 # default half of max_accel max_z_velocity: 30 # Max 15 for 12V TMC Drivers, can increase for 24V max_z_accel: 500 square_corner_velocity: 5.0 +## input_shaper +# max_accel: 7000 +# max_accel_to_decel: 3500 +# max_z_accel: 7000 ##################################################################### @@ -48,6 +53,8 @@ square_corner_velocity: 5.0 [include macros.cfg] [include neopixel.cfg] [include fans.cfg] +[include input_shaper.cfg] +# [include resonance_test.cfg] ##################################################################### @@ -268,7 +275,7 @@ max_temp: 120 pin: ~PB7 x_offset: 0 y_offset: 25.0 -z_offset: 0 +#z_offset: 0 speed: 10.0 samples: 3 samples_result: median @@ -296,19 +303,24 @@ insert_gcode: ##################################################################### # Enclosure Temp Sensor Section ##################################################################### -[thermistor chamber_temp] +[thermistor chamber] temperature1: 25 resistance1: 10000 beta: 3950 -[temperature_sensor enclosure_temp] +[temperature_sensor chamber] sensor_type: chamber_temp sensor_pin: PF5 min_temp: 0 max_temp: 100 gcode_id: C +[temperature_sensor rpi] +sensor_type: temperature_host +min_temp: 0 +max_temp: 100 + [idle_timeout] timeout: 1800 @@ -326,7 +338,7 @@ mesh_min: 40,60 mesh_max: 260,280 fade_start: 0.6 fade_end: 10 -probe_count: 5,5 +probe_count: 9,9 algorithm: bicubic relative_reference_index: 12 @@ -364,21 +376,28 @@ max_adjust: 10 #*# [bed_mesh default] #*# version = 1 #*# points = -#*# 0.005000, 0.050000, 0.017500, 0.007500, 0.002500 -#*# -0.005000, 0.037500, -0.005000, -0.015000, -0.027500 -#*# -0.015000, 0.030000, 0.000000, -0.010000, -0.027500 -#*# 0.010000, 0.060000, 0.027500, 0.015000, -0.015000 -#*# 0.065000, 0.112500, 0.077500, 0.072500, 0.047500 +#*# -0.032500, -0.010000, 0.017500, 0.002500, -0.017500, 0.012500, -0.025000, 0.020000, -0.020000 +#*# -0.040000, -0.020000, 0.000000, -0.012500, -0.037500, 0.000000, -0.040000, 0.007500, -0.030000 +#*# -0.045000, -0.025000, 0.000000, -0.012500, -0.035000, -0.002500, -0.040000, 0.000000, -0.042500 +#*# -0.065000, -0.045000, -0.020000, -0.032500, -0.057500, -0.022500, -0.067500, -0.020000, -0.057500 +#*# -0.052500, -0.032500, -0.010000, -0.020000, -0.042500, -0.007500, -0.050000, -0.010000, -0.060000 +#*# -0.045000, -0.022500, -0.005000, -0.017500, -0.040000, -0.010000, -0.047500, -0.005000, -0.047500 +#*# -0.042500, -0.025000, 0.000000, -0.015000, -0.035000, -0.002500, -0.040000, 0.000000, -0.047500 +#*# -0.027500, -0.015000, 0.010000, -0.012500, -0.032500, 0.000000, -0.035000, 0.005000, -0.035000 +#*# -0.005000, 0.012500, 0.045000, 0.025000, 0.005000, 0.040000, 0.002500, 0.042500, -0.007500 #*# tension = 0.2 #*# min_x = 40.0 #*# algo = bicubic -#*# y_count = 5 +#*# y_count = 9 #*# mesh_y_pps = 2 #*# min_y = 60.0 -#*# x_count = 5 +#*# x_count = 9 #*# max_y = 280.0 #*# mesh_x_pps = 2 #*# max_x = 260.0 #*# #*# [stepper_z] -#*# position_endstop = 0.907 +#*# position_endstop = 0.597 +#*# +#*# [probe] +#*# z_offset = 1.890 diff --git a/resonance_test.cfg b/resonance_test.cfg new file mode 100644 index 0000000..1e8430e --- /dev/null +++ b/resonance_test.cfg @@ -0,0 +1,58 @@ +# [mcu nano] +# serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0 + +# [mcu pico] +# serial: /dev/serial/by-id/usb-Klipper_rp2040_E660583883511936-if00 + +# [board_pins arduino] +# mcu: nano +# aliases: +# ar0=PD0, ar1=PD1, ar2=PD2, ar3=PD3, ar4=PD4, +# ar5=PD5, ar6=PD6, ar7=PD7, ar8=PB0, ar9=PB1, +# ar10=PB2, ar11=PB3, ar12=PB4, ar13=PB5, ar14=PC0, +# ar15=PC1, ar16=PC2, ar17=PC3, ar18=PC4, ar19=PC5, +# analog0=PC0, analog1=PC1, analog2=PC2, analog3=PC3, analog4=PC4, +# analog5=PC5, analog6=PE2, analog7=PE3 + +# [output_pin led] +# pin: nano:ar13 +# value: 0 +# +# ## arduino nano +# [adxl345] +# # The SPI enable pin for the sensor. This parameter must be provided. +# cs_pin: nano:ar10 +# # The SPI speed (in hz) to use when communicating with the chip. +# # The default is 5000000. +# # spi_speed: 5000000 +# # See the "common SPI settings" section for a description of the +# # above parameters. +# # spi_bus: +# spi_software_sclk_pin: nano:ar13 +# spi_software_mosi_pin: nano:ar11 +# spi_software_miso_pin: nano:ar12 +# # The accelerometer axis for each of the printer's x, y, and z axes. +# # This may be useful if the accelerometer is mounted in an +# # orientation that does not match the printer orientation. For +# # example, one could set this to "y,x,z" to swap the x and y axes. +# # It is also possible to negate an axis if the accelerometer +# # direction is reversed (eg, "x,z,-y"). The default is "x,y,z". +# axes_map: x,z,-y +# # Output data rate for ADXL345. ADXL345 supports the following data +# # rates: 3200, 1600, 800, 400, 200, 100, 50, and 25. Note that it is +# # not recommended to change this rate from the default 3200, and +# # rates below 800 will considerably affect the quality of resonance +# # measurements. +# # rate: 3200 + +# ## rpi pico +# [adxl345] +# cs_pin: pico:gpio1 +# spi_bus: spi0a +# axes_map: x,y,z + +# [resonance_tester] +# accel_chip: adxl345 +# probe_points: +# 150,150,20 # an example +