Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
add files
  • Loading branch information
VICLER committed Jan 24, 2022
1 parent 6ee5600 commit bca3947
Show file tree
Hide file tree
Showing 18 changed files with 651 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bed_mesh.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
####################################################################
# Bed Mesh Settings
####################################################################

[bed_mesh]
speed: 60
horizontal_move_z: 20
mesh_radius: 115
mesh_origin: 0,0
round_probe_count: 7
algorithm: bicubic
#fade_start: 1.5
#fade_end: 10
#fade_target: 0
8 changes: 8 additions & 0 deletions button.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
####################################################################
# Button Settings
####################################################################

[gcode_button shutdown_button]
pin: !P1.29
press_gcode:
RUN_SHELL_COMMAND CMD=shutdown_system
56 changes: 56 additions & 0 deletions fan.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
####################################################################
# Thermistors
####################################################################

[thermistor ext_thermistor]
temperature1: 25
resistance1: 10000
beta: 3950

[temperature_sensor Host]
sensor_type: temperature_host
min_temp: 10
max_temp: 100

####################################################################
# Fans
####################################################################

[fan]
pin: P2.3
max_power: 1.0
off_below: 0.0
cycle_time: 0.010
hardware_pwm: False
shutdown_speed: 1.0
kick_start_time: 0.100

[heater_fan hotend_fan]
pin: P0.10
max_power: 1.0
off_below: 0.0
cycle_time: 0.010
hardware_pwm: False
shutdown_speed: 1.0
kick_start_time: 0.100
heater: extruder
fan_speed: .35
heater_temp: 50.0

# [fan_generic generic_fan]
# pin: P0.0
# max_power: 1.0

[temperature_fan mainboard_fan]
pin: P0.0
max_power: 0.38
shutdown_speed: 0
hardware_pwm: false
kick_start_time: 0.100
sensor_type: ext_thermistor
sensor_pin: P0.25
control: watermark
max_delta: 2.0
min_temp: 10.0
max_temp: 500
target_temp: 30.0
42 changes: 42 additions & 0 deletions heater.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
####################################################################
# Extruder Settings
####################################################################
[extruder]
step_pin: P2.13
dir_pin: !P0.11
enable_pin: !P2.12
heater_pin: P2.7
microsteps: 8
gear_ratio: 5:1
rotation_distance: 22.998
full_steps_per_rotation: 200
nozzle_diameter: 0.4
filament_diameter: 1.75
pressure_advance: 0.04 # polylite pla
#pressure_advance: 0.08 # 3djake niceABS

sensor_type: ATC Semitec 104NT-4-R025H42G
sensor_pin: P0.24
control: pid
pid_kp: 17.736
pid_ki: 1.207
pid_kd: 65.179
min_temp: 10
max_temp: 500
max_power: 1.0
min_extrude_temp: 180

####################################################################
# Bed Heater Settings
####################################################################
[heater_bed]
heater_pin: P2.5
sensor_pin: P0.23
sensor_type: EPCOS 100K B57560G104F
control: pid
pid_kp: 69.724
pid_ki: 1.031
pid_kd: 1179.204
min_temp: 10
max_temp: 500
max_power: 1.0
5 changes: 5 additions & 0 deletions homing.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[homing_override]
gcode:
SET_VELOCITY_LIMIT ACCEL={printer['gcode_macro _USER_VARIABLE'].home_accel} ACCEL_TO_DECEL={printer['gcode_macro _USER_VARIABLE'].home_accel|int / 2}
G28
SET_VELOCITY_LIMIT ACCEL={printer.configfile.settings.printer.max_accel} ACCEL_TO_DECEL={printer.configfile.settings.printer.max_accel_to_decel}
Binary file added imgs/nyan-cat-01-625x450.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions input_shaper.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
####################################################################
# Resonance Compensation Configuration
####################################################################

[input_shaper]
shaper_type_x = mzv
shaper_freq_x = 49.8
shaper_type_y = mzv
shaper_freq_y = 52.0
52 changes: 52 additions & 0 deletions led.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
##############################################################################################################
# LED Configuration
##############################################################################################################

[neopixel status_leds]
pin: P3.25
chain_count: 11
color_order: GRBW
initial_RED: .12
initial_GREEN: .25
initial_BLUE: 0

[led_effect lights_breathing]
autostart: true
frame_rate: 24
leds:
neopixel:status_leds
layers:
#breathing 10 1 top (.12, .25, .0) # lime green
breathing 9 1 top (0, .4, 1) # turkis

[led_effect lights_rainbow]
autostart: false
frame_rate: 24
leds:
neopixel:status_leds
layers:
gradient -0.5 0 top (1.0, 0.0, 0.0),(0.0, 1.0, 0.0),(0.0, 0.0, 1.0)

[led_effect lights_comet]
autostart: false
frame_rate: 24
leds:
neopixel:status_leds
layers:
comet -0.9 1 top (0.8, 1.0, 1.0),(0.0, 0.8, 1.0),(0.0, 0.0, 1.0)

[led_effect lights_strobe]
autostart: false
frame_rate: 24
leds:
neopixel:status_leds
layers:
strobe 1 1.5 top (1.0, 0.1, 0.0)

[led_effect lights_fire]
autostart: false
frame_rate: 24
leds:
neopixel:status_leds
layers:
fire 25 60 top (0.0, 0.0, 0.0),(1.0, 0.0, 0.0),(1.0, 1.0, 0.0),(1.0, 1.0, 1.0)
74 changes: 74 additions & 0 deletions macro_basic.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
####################################################################
# Basic Macros
####################################################################

[virtual_sdcard]
path: ~/gcode_files

[display_status]

[pause_resume]

[gcode_macro print_start]
gcode:
G21 # metric values
G90 # absolute positioning
M107 # start with the fan off
G28 # move to endstops
G92 E0 # zero the extruded length
G1 F600 E5 # extrude 5mm of feed stock
G92 E0 # zero the extruded length again
led_white
SET_GCODE_OFFSET Z=.4 # flat pei site

[gcode_macro print_end]
gcode:
M400 # Free buffer
G91 # relative positioning
G1 E-1 F300 # retract the filament a bit before lifting the nozzle, to release some of the pressure
G1 Z+1 E-5 # move Z up a bit and retract filament even more
G90 # absolute positioning
M107 # fan off
G28 # move to endstop
M84 # steppers off
M104 S0 # hotend heater off
M140 S0 # bed heater off
led_breathing # lights idle

[gcode_macro PAUSE]
rename_existing: BASE_PAUSE
gcode:
{% set X = params.X|default(0) %}
{% set Y = params.Y|default(0) %}
{% set Z = params.Z|default(280) %}
{% set E = params.E|default(5) %}
SAVE_GCODE_STATE NAME=PAUSE_state
BASE_PAUSE
G91
G1 E-{E} F2100
G1 Z{Z}
G90
G1 X{X} Y{Y} F6000

[gcode_macro RESUME]
rename_existing: BASE_RESUME
gcode:
{% set E = params.E|default(5) %}
G91
G1 E{E} F2100
G90
RESTORE_GCODE_STATE NAME=PAUSE_state MOVE=1
BASE_RESUME

[gcode_macro CANCEL_PRINT]
rename_existing: BASE_CANCEL_PRINT
gcode:
# TURN_OFF_HEATERS
G91
G1 E-5
M106 S0
G28
CLEAR_PAUSE
SDCARD_RESET_FILE
BASE_CANCEL_PRINT
led_breathing
43 changes: 43 additions & 0 deletions macro_led.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
##############################################################################################################
# LED Macros
##############################################################################################################

[gcode_macro led_off]
gcode:
STOP_LED_EFFECTS
SET_LED LED=status_leds RED=0 GREEN=0 BLUE=0 WHITE=0

[gcode_macro led_white]
gcode:
STOP_LED_EFFECTS
SET_LED LED=status_leds RED=1 GREEN=1 BLUE=1 WHITE=1

[gcode_macro led_breathing]
gcode:
STOP_LED_EFFECTS
SET_LED LED=status_leds RED=0 GREEN=0 BLUE=0 WHITE=0
SET_LED_EFFECT EFFECT=lights_breathing

[gcode_macro led_comet]
gcode:
STOP_LED_EFFECTS
SET_LED LED=status_leds RED=0 GREEN=0 BLUE=0 WHITE=0
SET_LED_EFFECT EFFECT=lights_comet

[gcode_macro led_strobe]
gcode:
STOP_LED_EFFECTS
SET_LED LED=status_leds RED=0 GREEN=0 BLUE=0 WHITE=0
SET_LED_EFFECT EFFECT=lights_strobe

[gcode_macro led_rainbow]
gcode:
STOP_LED_EFFECTS
SET_LED LED=status_leds RED=0 GREEN=0 BLUE=0 WHITE=0
SET_LED_EFFECT EFFECT=lights_rainbow

[gcode_macro led_fire]
gcode:
STOP_LED_EFFECTS
SET_LED LED=status_leds RED=0 GREEN=0 BLUE=0 WHITE=0
SET_LED_EFFECT EFFECT=lights_fire
24 changes: 24 additions & 0 deletions macro_probe.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
####################################################################
# Probe & Bed Mesh Macros
####################################################################


[gcode_macro bed_calibration]
gcode:
BED_MESH_CALIBRATE METHOD=automatic

[gcode_macro DOWN]
gcode:
TESTZ Z=-.1

[gcode_macro UP]
gcode:
TESTZ Z=.05

[gcode_macro ACCEPT_Z]
gcode:
ACCEPT

[gcode_macro ABORT_PROBING]
gcode:
ABORT
Loading

0 comments on commit bca3947

Please sign in to comment.