From 2a52dbafefd3be61166570fd10ca39cc03a728d4 Mon Sep 17 00:00:00 2001 From: Zeanon Date: Thu, 25 Apr 2024 10:33:37 +0200 Subject: [PATCH] Added tests --- test/controller_temperature_fan.test | 13 ++++ test/klippy/controller_tenmperature_fan.cfg | 73 +++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 test/controller_temperature_fan.test create mode 100644 test/klippy/controller_tenmperature_fan.cfg diff --git a/test/controller_temperature_fan.test b/test/controller_temperature_fan.test new file mode 100644 index 000000000..dffd6f13c --- /dev/null +++ b/test/controller_temperature_fan.test @@ -0,0 +1,13 @@ +# Pid hot modify tests +DICTIONARY atmega2560.dict +CONFIG fan_reverse.cfg + +# Extrude only +G1 E5 +G1 E-2 +G1 E7 + +# Home and extrusion moves +G28 +G1 X20 Y20 Z1 +G1 X25 Y25 E7.5 diff --git a/test/klippy/controller_tenmperature_fan.cfg b/test/klippy/controller_tenmperature_fan.cfg new file mode 100644 index 000000000..0005946d3 --- /dev/null +++ b/test/klippy/controller_tenmperature_fan.cfg @@ -0,0 +1,73 @@ +# Config for extruder testing +[stepper_x] +step_pin: PF0 +dir_pin: PF1 +enable_pin: !PD7 +microsteps: 16 +rotation_distance: 40 +endstop_pin: ^PE5 +position_endstop: 0 +position_max: 200 +homing_speed: 50 + +[stepper_y] +step_pin: PF6 +dir_pin: !PF7 +enable_pin: !PF2 +microsteps: 16 +rotation_distance: 40 +endstop_pin: ^PJ1 +position_endstop: 0 +position_max: 200 +homing_speed: 50 + +[stepper_z] +step_pin: PL3 +dir_pin: PL1 +enable_pin: !PK0 +microsteps: 16 +rotation_distance: 8 +endstop_pin: ^PD3 +position_endstop: 0.5 +position_max: 200 + +[extruder] +step_pin: PA4 +dir_pin: PA6 +enable_pin: !PA2 +microsteps: 16 +rotation_distance: 33.5 +nozzle_diameter: 0.500 +filament_diameter: 3.500 +heater_pin: PB4 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PK5 +control: pid +pid_Kp: 22.2 +pid_Ki: 1.08 +pid_Kd: 114 +min_temp: 0 +max_temp: 210 + +[controller_temperature_fan my_temp_fan] +pin: PB5 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PK6 +control: pid +pid_Kp: 22.2 +pid_Ki: 1.08 +pid_Kd: 114 +min_temp: 0 +max_temp: 210 + +stepper: stepper_x, stepper_y + +[mcu] +serial: /dev/ttyACM0 + +[printer] +kinematics: cartesian +max_velocity: 300 +max_accel: 3000 +max_z_velocity: 5 +max_z_accel: 100