Skip to content

Commit

Permalink
add chamber config
Browse files Browse the repository at this point in the history
  • Loading branch information
frylock34 committed Sep 11, 2023
1 parent adb1495 commit 2221b0c
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 241 deletions.
8 changes: 4 additions & 4 deletions stereotech_config/HTE750-0-0-23.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ path: /home/ste/uploads
[include config/v7/kinematics.cfg]
[include config/v7/kinematics_tmc.cfg]

# [include config/v7/chamber.cfg]
# [include config/v7/printhead.cfg]
[include config/v7/chamber.cfg]
[include config/v7/printhead.cfg]
[include config/v7/main_extruder.cfg]
[include config/v7/second_extruder.cfg]
[include config/v7/fiber_extruder.cfg]
# [include config/v7/filament_control_2.cfg]
# [include config/v7/filament_control_second_2.cfg]
# [include config/v7/module_3d.cfg]
# [include config/v7/module_5d.cfg]
[include config/v7/module_3d.cfg]
[include config/v7/module_5d.cfg]
# [include config/v7/homing.cfg]
# [include config/v7/probe.cfg]
# [include config/v7/probe_hybrid_printer.cfg]
Expand Down
25 changes: 12 additions & 13 deletions stereotech_config/v7/board_stm32f4.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,18 @@ aliases:
e_step_pin=PC13, e_dir_pin=PF0, e_en_pin=PF1,
e1_step_pin=PE2, e1_dir_pin=PE3, e1_en_pin=PD4,
e2_step_pin=PE6, e2_dir_pin=PA14, e2_en_pin=PE0,
cooling_pump_pin=PA1, cooling_pump_fan_pin=PA8,
air_heat_extruder_pin=PA2, air_heat_extruder_pin1=PA3, air_heat_extruder_sensor_pin=PF4,
air_heat_extruder1_pin=PB10, air_heat_extruder1_pin1=PB11, air_heat_extruder1_sensor_pin=PF5,
chamber_sensor_pin=PF3, chamber_heater_pin=PD12, chamber_fan_pin=PD13,
heater_bed_sensor_pin=PF6,
module_5d_fan1_pin=PE5, module_5d_fan2_pin=PD14, module_5d_fan3_pin=PD15

door_endswitch=PG10, filament_control_1=PG11, filament_control_2=PG15,
[multi_pin air_heat_extruder_heater_pin]
pins: air_heat_extruder_pin, air_heat_extruder_pin1

led_pin=PB0,
[multi_pin air_heat_extruder1_heater_pin]
pins: air_heat_extruder1_pin, air_heat_extruder1_pin1

bed_heater=PA1, bed_sensor=PF5,

five_axis_pin=PG12,

main_nozzle_blower_sensor=PF6,
second_nozzle_blower_heater=PA3, second_nozzle_blower_sensor=PF7,

; air_compressor=PB10, blower_air_compressor=PD15, ?????

cooling_fan_heat=PA8, turbine_5d=PE5, fan_5d=PD12, pump=PD13,
fan_pump_cooling=PD14,
[multi_pin module_5d_fan]
pins: module_5d_fan1_pin, module_5d_fan2_pin, module_5d_fan3_pin
7 changes: 6 additions & 1 deletion stereotech_config/v7/board_stm32g1b0.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ mcu:
aliases:
e_heater_pin=PE3, e_sensor_pin=PA4,
e1_heater_pin=PB5, e1_sensor_pin=PA3,
e2_heater_pin=PB6, e2_sensor_pin=PA2
e2_heater_pin=PB6, e2_sensor_pin=PA2,
air_pump_pin=PC12, heater_bed_heater_pin=PE6, heater_bed_heater_pin1=PE0,
chamber_led_pin=PB7

[multi_pin heater_bed_heater]
pins: manta_mcu:heater_bed_heater_pin, manta_mcu:heater_bed_heater_pin1
152 changes: 36 additions & 116 deletions stereotech_config/v7/chamber.cfg
Original file line number Diff line number Diff line change
@@ -1,124 +1,44 @@
[fan_generic chamber_fan]
pin: PE6

# [fan_generic chamber_fan]
# pin: second_mcu: cooling_fan_heat

# [heater_generic chamber_heater]
# gcode_id: CHAM_HEATE
# heater_pin: heater_fire_bar
# sensor_type: ATC Semitec 104GT-2
# sensor_pin: temp_chamber
# control: pid
# pid_Kp: 13.509
# pid_Ki: 0.566
# pid_Kd: 80.549
# min_temp: -150
# max_temp: 320

# [gcode_button endswitch_door]
# pin: !door_endswitch
# press_gcode: QUERY_BUTTON BUTTON=endswitch_door

# # cooling axis C
# [heater_fan fan_axis_c]
# pin: turbine_5d
# heater: chamber_heater
# heater_temp: 40.0

# # cooling axis A and module 5D
# [heater_fan fan_cooling_5d]
# pin: fan_5d
# heater: chamber_heater
# heater_temp: 40.0

# [temperature_fan bottom_fan] # ????????
# pin: PD13 # ????????
# sensor_type: temperature_host
# control: pid
# pid_Kp: 15
# pid_Ki: 0.5
# pid_Kd: 25
# min_temp: 0
# max_temp: 90
# target_temp: 45.0
# min_speed: 0.0
# gcode_id: E

# LED Light controls

# [neopixel case_led]
# pin: led_pin
# chain_count: 1
# color_order: GRB
# initial_RED: 0.0
# initial_GREEN: 0.0
# initial_BLUE: 0.0

# [display_template led_white]
# text: 0.0, 0.0, 0.0

# [display_template led_red]
# text: 1.0, 0.0, 0.0

# [display_template led_green]
# text: 0.0, 1.0, 0.0
[heater_generic chamber_heater]
gcode_id: С
heater_pin: chamber_heater_pin
sensor_type: ATC Semitec 104GT-2
sensor_pin: chamber_sensor_pin
control: pid
pid_Kp: 13.509
pid_Ki: 0.566
pid_Kd: 80.549
min_temp: -150
max_temp: 200

[heater_fan chamber_fan]
pin: chamber_fan_pin
heater: chamber_heater
heater_temp: 40

[verify_heater chamber_heater]
check_gain_time: 1000

[output_pin chamber_led]
pin: manta_mcu:chamber_led_pin
pwm: True
cycle_time: 0.01

[gcode_macro TOGGLE_LIGHT]
variable_light: 1
gcode:
{% set led_value= printer["output_pin chamber_led"].value %}
{% if led_value > 0 %}
SET_PIN PIN=chamber_led VALUE=0
SET_GCODE_VARIABLE MACRO=TOGGLE_LIGHT VARIABLE=light VALUE=0
{% else %}
SET_PIN PIN=chamber_led VALUE=1
SET_GCODE_VARIABLE MACRO=TOGGLE_LIGHT VARIABLE=light VALUE=1
{% endif %}

# [display_template led_blue]
# text: 0.0, 0.0, 1.0

# [display_template led_color]
# param_red: 0.0
# param_green: 0.0
# param_blue: 0.0
# text: {param_red}, {param_green}, {param_blue}

# [display_template led_heatup]
# text: {printer[printer.toolhead.extruder].temperature / 320}, 0.0, 1.0, 0.0

# [gcode_macro M150]
# description: Change color macro
# variable_current_red_value: 0.0
# variable_current_green_value: 0.0
# variable_current_blue_value: 0.0
# gcode:
# SET_GCODE_VARIABLE MACRO=M150 VARIABLE=current_red_value VALUE={printer["neopixel case_led"].color_data[0][0]}
# SET_GCODE_VARIABLE MACRO=M150 VARIABLE=current_green_value VALUE={printer["neopixel case_led"].color_data[0][1]}
# SET_GCODE_VARIABLE MACRO=M150 VARIABLE=current_blue_value VALUE={printer["neopixel case_led"].color_data[0][2]}
# {% set duration = params.D|default(0)|float %}
# {% set red_input = params.R|default(0)|float %}
# {% set green_input = params.G|default(0)|float %}
# {% set blue_input = params.B|default(0)|float %}
# {% set red_value = red_input %}
# {% set green_value = green_input%}
# {% set blue_value = blue_input%}
# M400
# SET_LED_TEMPLATE LED=case_led TEMPLATE=led_color param_red={red_value / 255} param_green={green_value / 255} param_blue={blue_value / 255}
# ;SET_LED LED=case_led RED={red_value / 255} GREEN={green_value / 255} BLUE={blue_value / 255}
# {% if duration > 0 %}
# UPDATE_DELAYED_GCODE ID=return_color DURATION={duration}
# {% endif %}

# [delayed_gcode return_color]
# gcode:
# M400
# SET_LED_TEMPLATE LED=case_led TEMPLATE=led_color param_red={printer["gcode_macro M150"].current_red_value} param_green={printer["gcode_macro M150"].current_green_value} param_blue={printer["gcode_macro M150"].current_blue_value}
# ;SET_LED LED=case_led RED={printer["gcode_macro M150"].current_red_value} GREEN={printer["gcode_macro M150"].current_green_value} BLUE={printer["gcode_macro M150"].current_blue_value}

# [gcode_macro TOGGLE_LIGHT]
# variable_light: 1
# gcode:
# {% set red_value = printer["neopixel case_led"].color_data[0][0] %}
# {% set green_value = printer["neopixel case_led"].color_data[0][1] %}
# {% set blue_value = printer["neopixel case_led"].color_data[0][2] %}
# {% set light_is_on = [white_value, red_value, green_value, blue_value]|max %}
# {% if light_is_on > 0 %}
# M150 R0 G0 B0
# SET_GCODE_VARIABLE MACRO=TOGGLE_LIGHT VARIABLE=light VALUE=0
# {% else %}
# M150 R255 G255 B255
# SET_GCODE_VARIABLE MACRO=TOGGLE_LIGHT VARIABLE=light VALUE=1
# {% endif %}

# [gcode_macro STATUS_LED]
# gcode:
Expand Down
20 changes: 10 additions & 10 deletions stereotech_config/v7/module_3d.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# [heater_bed]
# heater_pin: bed_heater
# sensor_type: ATC Semitec 104GT-2
# sensor_pin: bed_sensor
# control: pid
# pid_Kp: 63.164
# pid_Ki: 2.379
# pid_Kd: 419.254
# min_temp: -100
# max_temp: 130
[heater_bed]
heater_pin: multi_pin:heater_bed_heater
sensor_type: ATC Semitec 104GT-2
sensor_pin: heater_bed_sensor_pin
control: pid
pid_Kp: 63.164
pid_Ki: 2.379
pid_Kd: 419.254
min_temp: -100
max_temp: 250

;[bed_screws]
;horizontal_move_z: 10.0
Expand Down
102 changes: 5 additions & 97 deletions stereotech_config/v7/module_5d.cfg
Original file line number Diff line number Diff line change
@@ -1,98 +1,6 @@
# [gcode_button five_axis_module]
# pin: !five_axis_pin
# press_gcode: QUERY_BUTTON BUTTON=five_axis_module
[a_axis_offset]

# # [a_axis_offset]

# [gcode_macro MOVE_WCS_ZERO]
# gcode:
# G54
# {% if printer.toolhead.axis_maximum[0] > 250 %}
# G0 Z150 F6000
# {% else %}
# G0 Z100 F6000
# {% endif %}
# {% set current_wcs = params.WCS|default(1)|int %}
# {% set offsets = printer.gcode_move.wcs_offsets[current_wcs] %}
# {% if offsets[0] == 0 and offsets[1] == 0 %}
# {% if printer.toolhead.axis_maximum[0] > 250 %}
# G0 X162 Y242 F6000
# {% else %}
# G0 X107 Y137 F6000
# {% endif %}
# {% else %}
# G0 X{offsets[0]} Y{offsets[1]} F6000
# {% endif %}
# {% if current_wcs == 1 %}
# G0 A0
# {% elif current_wcs == 2 %}
# {% if printer.toolhead.axis_maximum[0] > 250 %}
# G0 Y192 A90 F6000
# {% else %}
# G0 Y87 A90 F6000
# {% endif %}
# {% endif %}

# [gcode_macro SET_WCS_OFFSET]
# gcode:
# G54
# G90
# {% set current_wcs = params.WCS|default(1)|int %}
# SET_WCS WCS={current_wcs}
# G10 L20 X{params.X} Y{params.Y} Z{params.Z}
# G54
# {% set adjust_wcs = params.ADJUST_WCS|default(0)|int %}
# {% if adjust_wcs > 0 and adjust_wcs != current_wcs %}
# ADJUST_WCS_OFFSET WCS={current_wcs} ADJUST_WCS={adjust_wcs} X={params.X} Y={params.Y} Z={params.Z}
# {% endif %}

# [gcode_macro ADJUST_WCS_OFFSET]
# gcode:
# {% set current_wcs = params.WCS|default(1)|int %}
# {% set adjust_wcs = params.ADJUST_WCS|default(0)|int %}
# {% set source_wcs = current_wcs + 2 %}
# {% set source_wcs_2 = adjust_wcs + 2 %}
# {% set offsets = printer.gcode_move.wcs_offsets[source_wcs] %}
# {% set offsets_2 = printer.gcode_move.wcs_offsets[source_wcs_2] %}
# {% set delta_x = printer.gcode_move.wcs_offsets[current_wcs][0] - offsets[0] %}
# {% set delta_y = printer.gcode_move.wcs_offsets[current_wcs][1] - offsets[1] %}
# {% set delta_z = printer.gcode_move.wcs_offsets[current_wcs][2] - offsets[2] %}
# G10 L2 P{adjust_wcs + 1} X{offsets_2[0] + delta_x + params.X|float} Y{offsets_2[1] - delta_z + params.Z|float} Z{offsets_2[2] + delta_y + params.Y|float}

# [gcode_macro MOVE_CALIBRATION_POINT]
# gcode:
# G54
# {% set point = params.POINT|default(0)|int %}
# {% set x = 162 if printer.toolhead.axis_maximum[0] > 250 else 108 %}
# {% set y = 242 if printer.toolhead.axis_maximum[0] > 250 else 137 %}
# {% if point == 3 or point == 4 %}
# {% set y = 192 if printer.toolhead.axis_maximum[0] > 250 else 87 %}
# {% endif %}
# {% if point == 1 %}
# {% set x = 112 if printer.toolhead.axis_maximum[0] > 250 else 58 %}
# {% endif %}
# {% if point == 2 %}
# {% set x = 212 if printer.toolhead.axis_maximum[0] > 250 else 158 %}
# {% endif %}
# G0 A0
# G0 X{x} Y{y} Z110 F3600
# {% if point > 3 %}
# G0 Z70 A90 F3600
# {% endif %}


# [gcode_macro SET_A_AXIS_OFFSET_POINT]
# gcode:
# {% set point = params.POINT|default(0)|int %}
# {% set coord_x = printer.gcode_move.position.x %}
# {% set coord_y = printer.gcode_move.position.y %}
# {% set coord_z = printer.gcode_move.position.z %}
# SAVE_A_AXIS_POINT POINT={point} COORDS={coord_x},{coord_y},{coord_z}

# [gcode_macro SAVE_STATE_MODULE]
# gcode:
# {% if printer["gcode_button five_axis_module"].state == "RELEASED" %}
# SAVE_VARIABLE VARIABLE=5d_module_enabled VALUE=0
# {% else %}
# SAVE_VARIABLE VARIABLE=5d_module_enabled VALUE=1
# {% endif %}
[heater_fan module_5d_fan]
pin: multi_pin:module_5d_fan
heater: chamber_heater
heater_temp: 40
Loading

0 comments on commit 2221b0c

Please sign in to comment.