From 9c19484449051de309a218b0a04b0c705fadf31f Mon Sep 17 00:00:00 2001 From: Sander Soots Date: Mon, 19 Sep 2022 15:08:25 +0300 Subject: [PATCH] updates config --- Manuals/Klipper/Fluidd/printer.cfg | 68 ++++--- Manuals/Klipper/Mainsail/printer.cfg | 68 ++++--- Manuals/Klipper/leds.cfg | 12 +- Manuals/Klipper/stealthburner_leds.cfg | 255 +++++++++++++++++++++++++ Manuals/Testing/Readme.md | 6 +- Manuals/Tuning/Readme.md | 6 +- 6 files changed, 351 insertions(+), 64 deletions(-) create mode 100644 Manuals/Klipper/stealthburner_leds.cfg diff --git a/Manuals/Klipper/Fluidd/printer.cfg b/Manuals/Klipper/Fluidd/printer.cfg index d83271a..3286b39 100644 --- a/Manuals/Klipper/Fluidd/printer.cfg +++ b/Manuals/Klipper/Fluidd/printer.cfg @@ -1,15 +1,30 @@ ## Voron Design VORON2 250/300/350mm Spider TMC2209 UART config ## *** THINGS TO CHANGE/CHECK: *** -## MCU paths [mcu] section -## Thermistor types [extruder] and [heater_bed] sections - See 'sensor types' list at end of file -## Z Endstop Switch location [safe_z_home] section -## Homing end position [gcode_macro G32] section -## Z Endstop Switch offset for Z0 [stepper_z] section +## MCU paths [mcu] section +## Thermistor types [extruder] and [heater_bed] sections - See 'sensor types' list at end of file +## Z Endstop Switch location [safe_z_home] section +## Homing end position [gcode_macro G32] section +## Z Endstop Switch offset for Z0 [stepper_z] section ## Probe points [quad_gantry_level] section -## Min & Max gantry corner postions [quad_gantry_level] section -## PID tune [extruder] and [heater_bed] sections -## Fine tune E steps [extruder] section +## Min & Max gantry corner postions [quad_gantry_level] section +## PID tune [extruder] and [heater_bed] sections +## Fine tune E steps [extruder] section + +## *** FOR REFERENCE *** +## +## ^PA1 - X endstop +## ^PA2 - Y endstop +## ^PA3 - proximity probe +## ^PB14 - unused +## PB13 - Case Leds +## ^PA0 - Z-endstop +## PB0 - Bed thermistor +## PC0 - Hot-End thermistor +## PA13 - EFAN +## PA14 - PFAN +## PB2 - Nevermore fans +## [mcu] ## Obtain definition by "ls -l /dev/serial/by-id/" @@ -23,7 +38,7 @@ serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_3E0019000F51383039343538-if00 kinematics: corexy max_velocity: 300 max_accel: 3000 #Max 4000 -max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V +max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V max_z_accel: 350 square_corner_velocity: 5.0 @@ -39,7 +54,7 @@ enable_pin: !PE9 rotation_distance: 40 microsteps: 32 full_steps_per_rotation:400 #set to 400 for 0.9 degree stepper -endstop_pin: ^PA1 +endstop_pin: ^PA1 position_min: 0 ##-------------------------------------------------------------------- @@ -273,15 +288,15 @@ hold_current: 0.2 sense_resistor: 0.110 stealthchop_threshold: 0 -[filament_switch_sensor RunoutSensor] -pause_on_runout: True -runout_gcode: - M117 FILAMENT RUNOUT - error_tones -insert_gcode: - M117 FILAMENT OK -switch_pin: ^PB13 -event_delay: 5.0 +##[filament_switch_sensor RunoutSensor] +##pause_on_runout: True +##runout_gcode: +## M117 FILAMENT RUNOUT +## error_tones +##insert_gcode: +## M117 FILAMENT OK +##switch_pin: ^PB13 +##event_delay: 5.0 ##################################################################### @@ -371,12 +386,12 @@ fan_speed: 1.0 # LED Control ##################################################################### -#[output_pin caselight ] -## Chamber Lighting - In E1 OUT Position -#pin: PC8 -#pwm: true -#shutdown_value: 0 -#cycle_time: 0.01 +[output_pin caselight] +## Chamber Lighting +pin: ^PB13 +pwm: true +shutdown_value: 0 +cycle_time: 0.01 ##################################################################### # Homing and Gantry Adjustment Routines @@ -624,8 +639,9 @@ gcode: M300 S700 P500 ; Make Print Completed Tones [include fluidd.cfg] -[include leds.cfg] [include menu_bed.cfg] +[include leds.cfg] +[include stealthburner_leds.cfg] ## Common Temperature Sensors diff --git a/Manuals/Klipper/Mainsail/printer.cfg b/Manuals/Klipper/Mainsail/printer.cfg index 5377a25..b601bd1 100644 --- a/Manuals/Klipper/Mainsail/printer.cfg +++ b/Manuals/Klipper/Mainsail/printer.cfg @@ -1,15 +1,30 @@ ## Voron Design VORON2 250/300/350mm Spider TMC2209 UART config ## *** THINGS TO CHANGE/CHECK: *** -## MCU paths [mcu] section -## Thermistor types [extruder] and [heater_bed] sections - See 'sensor types' list at end of file -## Z Endstop Switch location [safe_z_home] section -## Homing end position [gcode_macro G32] section -## Z Endstop Switch offset for Z0 [stepper_z] section +## MCU paths [mcu] section +## Thermistor types [extruder] and [heater_bed] sections - See 'sensor types' list at end of file +## Z Endstop Switch location [safe_z_home] section +## Homing end position [gcode_macro G32] section +## Z Endstop Switch offset for Z0 [stepper_z] section ## Probe points [quad_gantry_level] section -## Min & Max gantry corner postions [quad_gantry_level] section -## PID tune [extruder] and [heater_bed] sections -## Fine tune E steps [extruder] section +## Min & Max gantry corner postions [quad_gantry_level] section +## PID tune [extruder] and [heater_bed] sections +## Fine tune E steps [extruder] section + +## *** FOR REFERENCE *** +## +## ^PA1 - X endstop +## ^PA2 - Y endstop +## ^PA3 - proximity probe +## ^PB14 - unused +## PB13 - Case Leds +## ^PA0 - Z-endstop +## PB0 - Bed thermistor +## PC0 - Hot-End thermistor +## PA13 - EFAN +## PA14 - PFAN +## PB2 - Nevermore fans +## [mcu] ## Obtain definition by "ls -l /dev/serial/by-id/" @@ -23,7 +38,7 @@ serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_3E0019000F51383039343538-if00 kinematics: corexy max_velocity: 300 max_accel: 3000 #Max 4000 -max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V +max_z_velocity: 15 #Max 15 for 12V TMC Drivers, can increase for 24V max_z_accel: 350 square_corner_velocity: 5.0 @@ -39,7 +54,7 @@ enable_pin: !PE9 rotation_distance: 40 microsteps: 32 full_steps_per_rotation:400 #set to 400 for 0.9 degree stepper -endstop_pin: ^PA1 +endstop_pin: ^PA1 position_min: 0 ##-------------------------------------------------------------------- @@ -273,15 +288,15 @@ hold_current: 0.2 sense_resistor: 0.110 stealthchop_threshold: 0 -[filament_switch_sensor RunoutSensor] -pause_on_runout: True -runout_gcode: - M117 FILAMENT RUNOUT - error_tones -insert_gcode: - M117 FILAMENT OK -switch_pin: ^PB13 -event_delay: 5.0 +##[filament_switch_sensor RunoutSensor] +##pause_on_runout: True +##runout_gcode: +## M117 FILAMENT RUNOUT +## error_tones +##insert_gcode: +## M117 FILAMENT OK +##switch_pin: ^PB13 +##event_delay: 5.0 ##################################################################### @@ -371,12 +386,12 @@ fan_speed: 1.0 # LED Control ##################################################################### -#[output_pin caselight ] -## Chamber Lighting - In E1 OUT Position -#pin: PC8 -#pwm: true -#shutdown_value: 0 -#cycle_time: 0.01 +[output_pin caselight] +## Chamber Lighting +pin: ^PB13 +pwm: true +shutdown_value: 0 +cycle_time: 0.01 ##################################################################### # Homing and Gantry Adjustment Routines @@ -624,8 +639,9 @@ gcode: M300 S700 P500 ; Make Print Completed Tones [include mainsail.cfg] -[include leds.cfg] [include menu_bed.cfg] +[include leds.cfg] +[include stealthburner_leds.cfg] ## Common Temperature Sensors diff --git a/Manuals/Klipper/leds.cfg b/Manuals/Klipper/leds.cfg index 2ebceb9..76c0fe8 100644 --- a/Manuals/Klipper/leds.cfg +++ b/Manuals/Klipper/leds.cfg @@ -1,9 +1,9 @@ [neopixel Case_Lights] -# To control Neopixel RGB in mini12864 display -pin: PD3 +# To control Neopixel RGB in case leds +pin: PB13 chain_count: 70 -initial_RED: 0.5 -initial_GREEN: 0.5 -initial_BLUE: 0.5 -initial_WHITE: 1 +initial_RED: 1 +initial_GREEN: 0 +initial_BLUE: 0 +initial_WHITE: 0 color_order: GRBW \ No newline at end of file diff --git a/Manuals/Klipper/stealthburner_leds.cfg b/Manuals/Klipper/stealthburner_leds.cfg new file mode 100644 index 0000000..90ca615 --- /dev/null +++ b/Manuals/Klipper/stealthburner_leds.cfg @@ -0,0 +1,255 @@ +# Macros for setting the status leds on the Voron StealthBurner toolhead (or for any neopixel-type leds). +# +# You will need to configure a neopixel (or other addressable led, such as dotstar). See +# https://www.klipper3d.org/Config_Reference.html#neopixel for configuration details. + + +##################################### +# INSTRUCTIONS # +##################################### +# How to use all this stuff: +# +# 1. Copy this .cfg file into your Klipper config directory and then add [include stealthburner_leds.cfg] +# to the top of your printer.cfg in order for register the LEDs and macros with Klipper. +# 2. Define your LEDs by editing [neopixel sb_leds] below and entering the data pin from your control board +# as well as the color order. +# +# Note: RGB and RGBW are different and must be defined explicitly. RGB and RGBW are also not able to +# be mix-and-matched in the same chain. A separate data line would be needed for proper functioning. +# +# RGBW LEDs will have a visible yellow-ish phosphor section to the chip. If your LEDs do not have +# this yellow portion, you have RGB LEDs. +# +# 3. Save your config and restart Klipper. +# +# Note: We set RED and BLUE to 1.0 to make it easier for users and supporters to detect +# misconfigurations or miswiring. The default color format is for Neopixels with a dedicated +# white LED. On startup, all three SB LEDs should light up. +# +# If you get random colors across your LEDs, change the color_order to GRB and restart. Then +# omit the W for each suggested color_order in the next paragraph. +# +# If you get MAGENTA, your color order is correct. If you get CYAN, you need to use RGBW. If +# you get YELLOW, you need to use BRGW (note that BRG is only supported in the latest Klipper +# version). +# +# 4. Once you have confirmed that the LEDs are set up correctly, you must now decide where you want +# these macros called up...which means adding them to your existing gcode macros. NOTHING will happen +# unless you add the STATUS_????? macros to your existing gcode macros. +# +# Example: add STATUS_LEVELING to the beginning of your QGL gcode macro, and then add STATUS_READY +# to the end of it to set the logo LED and nozzle LEDs back to the `ready` state. +# +# Example: add STATUS_CLEANING to the beginning of your nozzle-cleaning macro, and then STATUS_READY +# to the end of it to return the LEDs back to `ready` state. +# +# 5. Feel free to change colors of each macro, create new ones if you have a need to. The macros provided below +# are just an example of what is possible. If you want to try some more complex animations, you will most +# likely have to use WLED with Moonraker and a small micro-controller (please see the LED thread for help inside +# of the stealthburner_beta channel on Discord). +# +##################################### +# END INSTRUCTRUCTIONS # +##################################### + + +[neopixel sb_leds] +pin: PD3 +# The pin connected to the neopixel. This parameter must be provided. +chain_count: 3 +# The number of Neopixel chips that are "daisy chained" to the +# provided pin. The default is 1 (which indicates only a single +# Neopixel is connected to the pin). +color_order: GRBW +# Set the pixel order required by the LED hardware. Options are GRB, +# RGB, GRBW, or RGBW. The default is GRB. +initial_RED: 1.0 +initial_GREEN: 0.0 +initial_BLUE: 0.0 +initial_WHITE: 0.0 +# Sets the initial LED color of the Neopixel. Each value should be +# between 0.0 and 1.0. The WHITE option is only available on RGBW +# LEDs. The default for each color is 0.# + +# Most configuration for the macros can be done by modifying the variables in the _sb_vars macro +# at the start of this file. + +########## +# MACROS # +########## + +# The following status macros are available (these go inside of your macros): +# +# STATUS_READY +# STATUS_OFF +# STATUS_BUSY +# STATUS_HEATING +# STATUS_LEVELING +# STATUS_HOMING +# STATUS_CLEANING +# STATUS_MESHING +# STATUS_CALIBRATING_Z +# +# With additional macros for basic control: +# +# SET_NOZZLE_LEDS_ON +# SET_LOGO_LEDS_OFF +# SET_NOZZLE_LEDS_OFF +# +# Contributed by Voron discord users wile.e, Tetsunosuke, and etherwalker + + +[gcode_macro _sb_vars] +# User settings for the StealthBurner status leds. You can change the status colors and led +# configurations for the logo and nozzle here. +variable_colors: { + 'logo': { # Colors for logo states + 'busy': {'r': 0.4, 'g': 0.0, 'b': 0.0, 'w': 0.0}, + 'cleaning': {'r': 0.0, 'g': 0.02, 'b': 0.5, 'w': 0.0}, + 'calibrating_z': {'r': 0.8, 'g': 0., 'b': 0.35, 'w': 0.0}, + 'heating': {'r': 0.3, 'g': 0.18, 'b': 0.0, 'w': 0.0}, + 'homing': {'r': 0.0, 'g': 0.6, 'b': 0.2, 'w': 0.0}, + 'leveling': {'r': 0.5, 'g': 0.1, 'b': 0.4, 'w': 0.0}, + 'meshing': {'r': 0.2, 'g': 1.0, 'b': 0.0, 'w': 0.0}, + 'off': {'r': 0.0, 'g': 0.0, 'b': 0.0, 'w': 0.0}, + 'printing': {'r': 1.0, 'g': 0.0, 'b': 0.0, 'w': 0.0}, + 'standby': {'r': 0.01, 'g': 0.01, 'b': 0.01, 'w': 0.1}, + }, + 'nozzle': { # Colors for nozzle states + 'heating': {'r': 0.8, 'g': 0.35, 'b': 0.0, 'w':0.0}, + 'off': {'r': 0.0, 'g': 0.0, 'b': 0.0, 'w': 0.0}, + 'on': {'r': 0.8, 'g': 0.8, 'b': 0.8, 'w':1.0}, + 'standby': {'r': 0.6, 'g': 0.0, 'b': 0.0, 'w':0.0}, + }, + 'thermal': { + 'hot': {'r': 1.0, 'g': 0.0, 'b': 0.0, 'w': 0.0}, + 'cold': {'r': 0.3, 'g': 0.0, 'b': 0.3, 'w': 0.0} + } + } +variable_logo_led_name: "sb_leds" +# The name of the addressable LED chain that contains the logo LED(s) +variable_logo_idx: "1" +# A comma-separated list of indexes LEDs in the logo +variable_nozzle_led_name: "sb_leds" +# The name of the addressable LED chain that contains the nozzle LED(s). This will +# typically be the same LED chain as the logo. +variable_nozzle_idx: "2,3" +# A comma-separated list of indexes of LEDs in the nozzle +gcode: + # This section is required. Do Not Delete. + + +[gcode_macro _set_sb_leds] +gcode: + {% set red = params.RED|default(0)|float %} + {% set green = params.GREEN|default(0)|float %} + {% set blue = params.BLUE|default(0)|float %} + {% set white = params.WHITE|default(0)|float %} + {% set led = params.LED|string %} + {% set idx = (params.IDX|string).split(',') %} + {% set transmit_last = params.TRANSMIT|default(1) %} + + {% for led_index in idx %} + {% set transmit=transmit_last if loop.last else 0 %} + set_led led={led} red={red} green={green} blue={blue} white={white} index={led_index} transmit={transmit} + {% endfor %} + +[gcode_macro _set_sb_leds_by_name] +gcode: + {% set leds_name = params.LEDS %} + {% set color_name = params.COLOR %} + {% set color = printer["gcode_macro _sb_vars"].colors[leds_name][color_name] %} + {% set led = printer["gcode_macro _sb_vars"][leds_name + "_led_name"] %} + {% set idx = printer["gcode_macro _sb_vars"][leds_name + "_idx"] %} + {% set transmit = params.TRANSMIT|default(1) %} + + _set_sb_leds led={led} red={color.r} green={color.g} blue={color.b} white={color.w} idx="{idx}" transmit={transmit} + +[gcode_macro _set_logo_leds] +gcode: + {% set red = params.RED|default(0)|float %} + {% set green = params.GREEN|default(0)|float %} + {% set blue = params.BLUE|default(0)|float %} + {% set white = params.WHITE|default(0)|float %} + {% set led = printer["gcode_macro _sb_vars"].logo_led_name %} + {% set idx = printer["gcode_macro _sb_vars"].logo_idx %} + {% set transmit=params.TRANSMIT|default(1) %} + + _set_sb_leds led={led} red={red} green={green} blue={blue} white={white} idx="{idx}" transmit={transmit} + +[gcode_macro _set_nozzle_leds] +gcode: + {% set red = params.RED|default(0)|float %} + {% set green = params.GREEN|default(0)|float %} + {% set blue = params.BLUE|default(0)|float %} + {% set white = params.WHITE|default(0)|float %} + {% set led = printer["gcode_macro _sb_vars"].nozzle_led_name %} + {% set idx = printer["gcode_macro _sb_vars"].nozzle_idx %} + {% set transmit=params.TRANSMIT|default(1) %} + + _set_sb_leds led={led} red={red} green={green} blue={blue} white={white} idx="{idx}" transmit={transmit} + +[gcode_macro set_logo_leds_off] +gcode: + {% set transmit=params.TRANSMIT|default(1) %} + _set_logo_leds red=0 blue=0 green=0 white=0 transmit={transmit} + +[gcode_macro set_nozzle_leds_on] +gcode: + {% set transmit=params.TRANSMIT|default(1) %} + _set_sb_leds_by_name leds="nozzle" color="on" transmit={transmit} + +[gcode_macro set_nozzle_leds_off] +gcode: + {% set transmit=params.TRANSMIT|default(1) %} + _set_sb_leds_by_name leds="nozzle" color="off" transmit={transmit} + +[gcode_macro status_off] +gcode: + set_logo_leds_off transmit=0 + set_nozzle_leds_off + +[gcode_macro status_ready] +gcode: + _set_sb_leds_by_name leds="logo" color="standby" transmit=0 + _set_sb_leds_by_name leds="nozzle" color="standby" transmit=1 + +[gcode_macro status_busy] +gcode: + _set_sb_leds_by_name leds="logo" color="busy" transmit=0 + set_nozzle_leds_on + +[gcode_macro status_heating] +gcode: + _set_sb_leds_by_name leds="logo" color="heating" transmit=0 + _set_sb_leds_by_name leds="nozzle" color="heating" transmit=1 + +[gcode_macro status_leveling] +gcode: + _set_sb_leds_by_name leds="logo" color="leveling" transmit=0 + set_nozzle_leds_on + +[gcode_macro status_homing] +gcode: + _set_sb_leds_by_name leds="logo" color="homing" transmit=0 + set_nozzle_leds_on + +[gcode_macro status_cleaning] +gcode: + _set_sb_leds_by_name leds="logo" color="cleaning" transmit=0 + set_nozzle_leds_on + +[gcode_macro status_meshing] +gcode: + _set_sb_leds_by_name leds="logo" color="meshing" transmit=0 + set_nozzle_leds_on + +[gcode_macro status_calibrating_z] +gcode: + _set_sb_leds_by_name leds="logo" color="calibrating_z" transmit=0 + set_nozzle_leds_on + +[gcode_macro status_printing] +gcode: + _set_sb_leds_by_name leds="logo" color="printing" transmit=0 + set_nozzle_leds_on diff --git a/Manuals/Testing/Readme.md b/Manuals/Testing/Readme.md index 4581d2b..7596af1 100644 --- a/Manuals/Testing/Readme.md +++ b/Manuals/Testing/Readme.md @@ -3,8 +3,8 @@ 2. Turn on heater for extruder and set it to ***50C***. Wait for it to reach temp. Once temp is reached and it's not climbing past it, turn it off and wait for temp to go down. 3. Turn on heater for bed and set it to ***50C***. Wait for it to reach temp. Once temp is reached and it's not climbing past it, turn it off and wait for temp to go down. 4. Next up we want to test motors, for that run command: - 1. **STEPPER_BUZZ STEPPER=stepper_x** <- this causes print head to move to right 1mm and then back 1mm ten times - 2. **STEPPER_BUZZ STEPPER=stepper_y** <- this causes print head to move to left 1mm and then back 1mm ten times + 1. **STEPPER_BUZZ STEPPER=stepper_x** <- this causes b motor to move + 2. **STEPPER_BUZZ STEPPER=stepper_y** <- this causes a motor to move 3. **STEPPER_BUZZ STEPPER=stepper_z** <- this is the front left corner 4. **STEPPER_BUZZ STEPPER=stepper_z1** <- the back left corner 5. **STEPPER_BUZZ STEPPER=stepper_z2** <- the back right corner @@ -54,5 +54,5 @@ ### Back: [Manuals](../Readme.md) # Sources: -[YouTube: Voron 2.4 Step By Step Part 12 Software, Configuration and Testing](https://youtu.be/yfRtpPPcnN8) +[YouTube: Voron 2.4 Step By Step Part 12 Software, Configuration and Testing](https://youtu.be/yfRtpPPcnN8) [Voron Design Docs - Initial Startup](https://docs.vorondesign.com/build/startup/) diff --git a/Manuals/Tuning/Readme.md b/Manuals/Tuning/Readme.md index 852d24b..123083f 100644 --- a/Manuals/Tuning/Readme.md +++ b/Manuals/Tuning/Readme.md @@ -39,6 +39,6 @@ Don't have an idea what to print? Try printing a [cube](https://www.thingiverse. ### Back: [Manuals](../Readme.md) # Sources: -[Youtube: Voron 2.4 Step By Step Part 13 Tuning, SuperSlicer and First Print](https://youtu.be/1wBi1mXVVEQ) -[Voron Design Docs - Initial Startup](https://docs.vorondesign.com/build/startup/) -[Voron Design Docs - First Print](https://docs.vorondesign.com/build/slicer/first_print.html) +[Youtube: Voron 2.4 Step By Step Part 13 Tuning, SuperSlicer and First Print](https://youtu.be/1wBi1mXVVEQ) +[Voron Design Docs - Initial Startup](https://docs.vorondesign.com/build/startup/) +[Voron Design Docs - First Print](https://docs.vorondesign.com/build/slicer/first_print.html)