From 9687b2786aa890899793c0840600662c0bfa6e08 Mon Sep 17 00:00:00 2001 From: Desuuuu Date: Sun, 28 Aug 2022 18:29:39 +0200 Subject: [PATCH] t5uid1: add tests --- test/configs/atmega2560-t5uid1.config | 6 +++ test/klippy/t5uid1.cfg | 68 +++++++++++++++++++++++++++ test/klippy/t5uid1.test | 22 +++++++++ 3 files changed, 96 insertions(+) create mode 100644 test/configs/atmega2560-t5uid1.config create mode 100644 test/klippy/t5uid1.cfg create mode 100644 test/klippy/t5uid1.test diff --git a/test/configs/atmega2560-t5uid1.config b/test/configs/atmega2560-t5uid1.config new file mode 100644 index 000000000000..90ac5fa29c90 --- /dev/null +++ b/test/configs/atmega2560-t5uid1.config @@ -0,0 +1,6 @@ +# Base config file for atmega2560 +CONFIG_MACH_AVR=y +CONFIG_MACH_atmega2560=y +CONFIG_CLOCK_FREQ=16000000 +CONFIG_T5UID1_SERIAL=y +CONFIG_T5UID1_SERIAL_PORT=2 diff --git a/test/klippy/t5uid1.cfg b/test/klippy/t5uid1.cfg new file mode 100644 index 000000000000..db7703ac2d97 --- /dev/null +++ b/test/klippy/t5uid1.cfg @@ -0,0 +1,68 @@ +[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 + +[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 + +[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.500 +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 + +[heater_bed] +heater_pin: PH5 +sensor_type: EPCOS 100K B57560G104F +sensor_pin: PK6 +control: watermark +min_temp: 0 +max_temp: 110 + +[mcu] +serial: /dev/ttyACM0 + +[printer] +kinematics: cartesian +max_velocity: 500 +max_accel: 3000 +max_z_velocity: 25 +max_z_accel: 30 + +[t5uid1] +firmware: dgus_reloaded diff --git a/test/klippy/t5uid1.test b/test/klippy/t5uid1.test new file mode 100644 index 000000000000..5e24fdd84dd3 --- /dev/null +++ b/test/klippy/t5uid1.test @@ -0,0 +1,22 @@ +DICTIONARY atmega2560-t5uid1.dict +CONFIG t5uid1.cfg + +M117 Print starting + +M300 +DGUS_PLAY_SOUND + +DGUS_PRINT_START + +G28 +G90 + +G1 X0 Y0 +M400 + +M73 P50 + +G1 X2 Y2 +M400 + +DGUS_PRINT_END