From 656003f8b17b0096eb0645aa6a58e4a9b697a321 Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Sun, 12 May 2024 18:16:09 -0700 Subject: [PATCH] updates --- basic_macros.cfg | 4 ++-- printer.cfg | 16 +++++++++---- sensorless.cfg | 2 +- tinytemp.cfg | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 75 insertions(+), 8 deletions(-) create mode 100644 tinytemp.cfg diff --git a/basic_macros.cfg b/basic_macros.cfg index 666760e..adf0523 100644 --- a/basic_macros.cfg +++ b/basic_macros.cfg @@ -131,8 +131,8 @@ gcode: G91 G1 Z{Z} G90 - G1 X{X} F{1000*60} - G1 Y{Y} F{1000*60} + G1 X{X} Y{Y} F{1000*60} + #G1 Y{Y} F{1000*60} G91 [gcode_macro safe_retract] diff --git a/printer.cfg b/printer.cfg index be91b79..ec507ed 100644 --- a/printer.cfg +++ b/printer.cfg @@ -1,4 +1,5 @@ # [include pico.cfg] +#[include tinytemp.cfg] [include basic_macros.cfg] [include timelapse.cfg] [include kiauh_macros.cfg] @@ -53,13 +54,17 @@ serial: /dev/serial/by-id/usb-Klipper_stm32f103xe_33FFD8055646303527842243-if00 heater_pin: PA3 sensor_type: NTC 100K MGB18-104F39050L32 sensor_pin: PF3 -control: pid -pid_Kp: 34.144 -pid_Ki: 0.650 -pid_Kd: 448.141 +control = pid +pid_kp = 49.702 +pid_ki = 1.246 +pid_kd = 495.773 +#control: pid +#pid_Kp: 34.144 +#pid_Ki: 0.650 +#pid_Kd: 448.141 +#max_power: 0.6 min_temp: 0 max_temp: 150 -max_power: 0.6 pwm_cycle_time: 0.0166 [firmware_retraction] @@ -78,3 +83,4 @@ shaper_freq_x = 120.4 # To avoid too much smoothing with 'mzv', suggested max_accel <= 16600 mm/sec^2 shaper_type_y = mzv shaper_freq_y = 75.0 + diff --git a/sensorless.cfg b/sensorless.cfg index 9dfbaff..7a115bc 100644 --- a/sensorless.cfg +++ b/sensorless.cfg @@ -79,7 +79,7 @@ gcode: G90 G1 x300 y226 F{800*60} # Belt is tight on the edge. Go slow to reach the endstop. - G1 x327.5 y226 F{30*60} + G1 x327 y227 F{30*60} SET_GCODE_OFFSET Z=0.0 # Reset offset before homing Z G28 Z0 G1 Z{Z} diff --git a/tinytemp.cfg b/tinytemp.cfg new file mode 100644 index 0000000..0c50979 --- /dev/null +++ b/tinytemp.cfg @@ -0,0 +1,61 @@ +# To flash +# [*] Enable extra low level configuration options +# Micro-controller Architecture (Raspberry Pi RP2040] ---> +# Flash chip (Generic_03H with CLKDIV 4) ---> +# Communiccation interface (USB) ---> +# USB ids ---> +# () GPIO pins to set at micro-controller startup + + +# Klipper config for TinyTemp + +[mcu tinytemp] +serial: /dev/serial/by-id/usb-Klipper_rp2040_E6617C93E3186627-if00 +restart_method: command + +[board_pins tinytemp] +mcu: tinytemp +aliases: + T1=gpio29, + T2=gpio28, + T3=gpio27, + T4=gpio26, + LED=gpio16 + +[temperature_sensor thermistor1] +sensor_type: Generic 3950 +sensor_pin: tinytemp:T1 +pullup_resistor: 4730 +#min_temp: 0 +#max_temp: 200 + +[temperature_sensor thermistor2] +sensor_type: Generic 3950 +sensor_pin: tinytemp:T2 +pullup_resistor: 4660 +#min_temp: 0 +#max_temp: 200 + +[temperature_sensor thermistor3] +sensor_type: Generic 3950 +sensor_pin: tinytemp:T3 +pullup_resistor: 4680 +#min_temp: 0 +#max_temp: 200 + +[temperature_sensor thermistor4] +sensor_type: Generic 3950 +sensor_pin: tinytemp:T4 +pullup_resistor: 4670 +#min_temp: 0 +#max_temp: 200 + +[neopixel tinytemp] +pin: tinytemp:LED +color_order: RGB +initial_RED: 1.0 +initial_GREEN: 0.0 +initial_BLUE: 1.0 + +# Plenty of pins are free for random things. +# They are listed on the bottom of the board.