initial working config
This commit is contained in:
parent
656a3429ca
commit
42561ed825
100
moonraker.conf
Normal file
100
moonraker.conf
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
[server]
|
||||||
|
host: 0.0.0.0
|
||||||
|
port: 7125
|
||||||
|
# The maximum size allowed for a file upload (in MiB). Default 1024 MiB
|
||||||
|
max_upload_size: 1024
|
||||||
|
# Path to klippy Unix Domain Socket
|
||||||
|
klippy_uds_address: ~/printer_data/comms/klippy.sock
|
||||||
|
|
||||||
|
[file_manager]
|
||||||
|
# post processing for object cancel. Not recommended for low resource SBCs such as a Pi Zero. Default False
|
||||||
|
enable_object_processing: False
|
||||||
|
|
||||||
|
[authorization]
|
||||||
|
cors_domains:
|
||||||
|
https://my.mainsail.xyz
|
||||||
|
http://my.mainsail.xyz
|
||||||
|
http://*.local
|
||||||
|
http://*.lan
|
||||||
|
trusted_clients:
|
||||||
|
10.0.0.0/8
|
||||||
|
127.0.0.0/8
|
||||||
|
169.254.0.0/16
|
||||||
|
172.16.0.0/12
|
||||||
|
192.168.0.0/16
|
||||||
|
FE80::/10
|
||||||
|
::1/128
|
||||||
|
|
||||||
|
# enables partial support of Octoprint API
|
||||||
|
[octoprint_compat]
|
||||||
|
|
||||||
|
# enables moonraker to track and store print history.
|
||||||
|
[history]
|
||||||
|
|
||||||
|
# this enables moonraker announcements for mainsail
|
||||||
|
[announcements]
|
||||||
|
subscriptions:
|
||||||
|
mainsail
|
||||||
|
|
||||||
|
# this enables moonraker's update manager
|
||||||
|
[update_manager]
|
||||||
|
refresh_interval: 168
|
||||||
|
enable_auto_refresh: True
|
||||||
|
|
||||||
|
[update_manager mainsail]
|
||||||
|
type: web
|
||||||
|
channel: stable
|
||||||
|
repo: mainsail-crew/mainsail
|
||||||
|
path: ~/mainsail
|
||||||
|
|
||||||
|
[update_manager mainsail-config]
|
||||||
|
type: git_repo
|
||||||
|
primary_branch: master
|
||||||
|
path: ~/mainsail-config
|
||||||
|
origin: https://github.com/mainsail-crew/mainsail-config.git
|
||||||
|
managed_services: klipper
|
||||||
|
|
||||||
|
### moonraker-timelapse
|
||||||
|
### Don't forget to include timelapse.cfg to your printer.cfg
|
||||||
|
### Uncomment to enable moonraker-timelapse
|
||||||
|
|
||||||
|
|
||||||
|
#[update_manager timelapse]
|
||||||
|
#type: git_repo
|
||||||
|
#primary_branch: main
|
||||||
|
#path: ~/moonraker-timelapse
|
||||||
|
#origin: https://github.com/mainsail-crew/moonraker-timelapse.git
|
||||||
|
#managed_services: klipper moonraker
|
||||||
|
|
||||||
|
#[timelapse]
|
||||||
|
### Directory where the generated video will be saved
|
||||||
|
#output_path: ~/timelapse/
|
||||||
|
### Directory where ffmpeg is installed
|
||||||
|
#ffmpeg_binary_path: /usr/bin/ffmpeg
|
||||||
|
|
||||||
|
# Crowsnest update_manager entry
|
||||||
|
[update_manager crowsnest]
|
||||||
|
type: git_repo
|
||||||
|
path: ~/crowsnest
|
||||||
|
origin: https://github.com/mainsail-crew/crowsnest.git
|
||||||
|
managed_services: crowsnest
|
||||||
|
install_script: tools/pkglist.sh
|
||||||
|
|
||||||
|
# Sonar update_manager entry
|
||||||
|
[update_manager sonar]
|
||||||
|
type: git_repo
|
||||||
|
path: ~/sonar
|
||||||
|
origin: https://github.com/mainsail-crew/sonar.git
|
||||||
|
primary_branch: main
|
||||||
|
managed_services: sonar
|
||||||
|
install_script: tools/install.sh
|
||||||
|
|
||||||
|
[power printer]
|
||||||
|
type: gpio
|
||||||
|
pin: !gpiochip0/gpio17
|
||||||
|
off_when_shutdown: True
|
||||||
|
restart_klipper_when_powered: true
|
||||||
|
restart_delay: 5.0
|
||||||
|
initial_state: off
|
||||||
|
locked_while_printing: True
|
||||||
|
bound_services: klipper
|
196
printer.cfg
Normal file
196
printer.cfg
Normal file
@ -0,0 +1,196 @@
|
|||||||
|
[stepper_x]
|
||||||
|
step_pin: P2.2
|
||||||
|
dir_pin: !P2.6
|
||||||
|
enable_pin: !P2.1
|
||||||
|
microsteps: 16
|
||||||
|
rotation_distance: 40
|
||||||
|
#endstop_pin: P1.29 # P1.28 for X-max
|
||||||
|
endstop_pin: tmc2130_stepper_x:virtual_endstop
|
||||||
|
position_endstop: 0
|
||||||
|
position_max: 200
|
||||||
|
homing_speed: 20
|
||||||
|
homing_retract_dist: 0
|
||||||
|
|
||||||
|
|
||||||
|
[stepper_y]
|
||||||
|
step_pin: P0.19
|
||||||
|
dir_pin: !P0.20
|
||||||
|
enable_pin: !P2.8
|
||||||
|
microsteps: 16
|
||||||
|
rotation_distance: 40
|
||||||
|
#endstop_pin: P1.27 # P1.26 for Y-max
|
||||||
|
endstop_pin: tmc2130_stepper_y:virtual_endstop
|
||||||
|
position_endstop: 0
|
||||||
|
position_max: 200
|
||||||
|
homing_speed: 20
|
||||||
|
homing_retract_dist: 0
|
||||||
|
homing_positive_dir: false
|
||||||
|
|
||||||
|
[stepper_z]
|
||||||
|
step_pin: P0.22
|
||||||
|
dir_pin: P2.11
|
||||||
|
enable_pin: !P0.21
|
||||||
|
microsteps: 16
|
||||||
|
rotation_distance: 8
|
||||||
|
#endstop_pin: P1.25 # P1.24 for Z-max
|
||||||
|
endstop_pin: probe:z_virtual_endstop
|
||||||
|
position_min: 0
|
||||||
|
position_max: 180
|
||||||
|
|
||||||
|
[stepper_z1]
|
||||||
|
step_pin: P0.1
|
||||||
|
dir_pin: P0.0
|
||||||
|
enable_pin: !P0.10
|
||||||
|
microsteps: 16
|
||||||
|
rotation_distance: 8
|
||||||
|
|
||||||
|
[extruder]
|
||||||
|
step_pin: P2.13
|
||||||
|
dir_pin: !P0.11
|
||||||
|
enable_pin: !P2.12
|
||||||
|
microsteps: 16
|
||||||
|
rotation_distance: 29.888
|
||||||
|
nozzle_diameter: 0.400
|
||||||
|
filament_diameter: 1.750
|
||||||
|
heater_pin: P2.7
|
||||||
|
sensor_type: Generic 3950
|
||||||
|
sensor_pin: P0.24
|
||||||
|
control: pid
|
||||||
|
pid_Kp: 22.2
|
||||||
|
pid_Ki: 1.08
|
||||||
|
pid_Kd: 114
|
||||||
|
min_temp: 0
|
||||||
|
max_temp: 280
|
||||||
|
|
||||||
|
[heater_bed]
|
||||||
|
heater_pin: P2.5
|
||||||
|
sensor_type: Generic 3950
|
||||||
|
sensor_pin: P0.23
|
||||||
|
control: pid
|
||||||
|
pid_Kp: 148.74
|
||||||
|
pid_Ki: 29.72
|
||||||
|
pid_Kd: 496.3
|
||||||
|
min_temp: 0
|
||||||
|
max_temp: 80
|
||||||
|
|
||||||
|
[fan]
|
||||||
|
pin: P2.3
|
||||||
|
|
||||||
|
[mcu]
|
||||||
|
serial: /dev/serial/by-id/usb-Klipper_lpc1768_0A30000407083DAF4C46665CC22000F5-if00
|
||||||
|
|
||||||
|
[printer]
|
||||||
|
kinematics: cartesian
|
||||||
|
max_velocity: 200
|
||||||
|
max_accel: 1500
|
||||||
|
max_z_velocity: 4
|
||||||
|
max_z_accel: 100
|
||||||
|
|
||||||
|
[safe_z_home]
|
||||||
|
home_xy_position: 125, 125
|
||||||
|
speed: 30
|
||||||
|
z_hop: 5
|
||||||
|
|
||||||
|
########################################
|
||||||
|
# TMC2130 configuration
|
||||||
|
########################################
|
||||||
|
|
||||||
|
# For TMC SPI
|
||||||
|
# 1) Place jumpers on all the red pin headers under the stepper drivers
|
||||||
|
# 2) Remove jumpers from the red pin headers labeled XUART (XUART, YUART etc.)
|
||||||
|
|
||||||
|
[tmc2130 stepper_x]
|
||||||
|
cs_pin: P1.17
|
||||||
|
spi_software_miso_pin: P0.5
|
||||||
|
spi_software_mosi_pin: P4.28
|
||||||
|
spi_software_sclk_pin: P0.4
|
||||||
|
diag1_pin: !P1.29
|
||||||
|
run_current: 0.800
|
||||||
|
stealthchop_threshold: 0
|
||||||
|
driver_SGT: 26 # -64 is most sensitive value, 63 is least sensitive
|
||||||
|
|
||||||
|
[tmc2130 stepper_y]
|
||||||
|
cs_pin: P1.15
|
||||||
|
spi_software_miso_pin: P0.5
|
||||||
|
spi_software_mosi_pin: P4.28
|
||||||
|
spi_software_sclk_pin: P0.4
|
||||||
|
diag1_pin: !P1.27
|
||||||
|
run_current: 0.800
|
||||||
|
stealthchop_threshold: 0
|
||||||
|
driver_SGT: 23 # -64 is most sensitive value, 63 is least sensitive
|
||||||
|
|
||||||
|
[tmc2130 stepper_z]
|
||||||
|
cs_pin: P1.10
|
||||||
|
spi_software_miso_pin: P0.5
|
||||||
|
spi_software_mosi_pin: P4.28
|
||||||
|
spi_software_sclk_pin: P0.4
|
||||||
|
#diag1_pin: P1.25
|
||||||
|
run_current: 0.650
|
||||||
|
stealthchop_threshold: 999999
|
||||||
|
|
||||||
|
[tmc2130 stepper_z1]
|
||||||
|
cs_pin: P1.1
|
||||||
|
spi_software_miso_pin: P0.5
|
||||||
|
spi_software_mosi_pin: P4.28
|
||||||
|
spi_software_sclk_pin: P0.4
|
||||||
|
#diag1_pin: P1.25
|
||||||
|
run_current: 0.650
|
||||||
|
stealthchop_threshold: 999999
|
||||||
|
|
||||||
|
[tmc2130 extruder]
|
||||||
|
cs_pin: P1.8
|
||||||
|
spi_software_miso_pin: P0.5
|
||||||
|
spi_software_mosi_pin: P4.28
|
||||||
|
spi_software_sclk_pin: P0.4
|
||||||
|
#diag1_pin: P1.28
|
||||||
|
run_current: 0.800
|
||||||
|
stealthchop_threshold: 0
|
||||||
|
|
||||||
|
########################################
|
||||||
|
# EXP1 / EXP2 (display) pins
|
||||||
|
########################################
|
||||||
|
|
||||||
|
[board_pins]
|
||||||
|
aliases:
|
||||||
|
# EXP1 header
|
||||||
|
EXP1_1=P1.30, EXP1_3=P1.18, EXP1_5=P1.20, EXP1_7=P1.22, EXP1_9=<GND>,
|
||||||
|
EXP1_2=P0.28, EXP1_4=P1.19, EXP1_6=P1.21, EXP1_8=P1.23, EXP1_10=<5V>,
|
||||||
|
# EXP2 header
|
||||||
|
EXP2_1=P0.17, EXP2_3=P3.26, EXP2_5=P3.25, EXP2_7=P1.31, EXP2_9=<GND>,
|
||||||
|
EXP2_2=P0.15, EXP2_4=P0.16, EXP2_6=P0.18, EXP2_8=<RST>, EXP2_10=<NC>
|
||||||
|
# Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "ssp0"
|
||||||
|
|
||||||
|
# See the sample-lcd.cfg file for definitions of common LCD displays.
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# "RepRapDiscount 128x64 Full Graphic Smart Controller" type displays
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
[display]
|
||||||
|
lcd_type: st7920
|
||||||
|
cs_pin: EXP1_4
|
||||||
|
sclk_pin: EXP1_5
|
||||||
|
sid_pin: EXP1_3
|
||||||
|
encoder_pins: ^EXP2_3, ^EXP2_5
|
||||||
|
click_pin: ^!EXP1_2
|
||||||
|
#kill_pin: ^!EXP2_8
|
||||||
|
|
||||||
|
[output_pin beeper]
|
||||||
|
pin: EXP1_1
|
||||||
|
|
||||||
|
|
||||||
|
[bltouch]
|
||||||
|
sensor_pin: ^P1.25 # Pull-up (^ symbol) needed in open drain mode
|
||||||
|
control_pin: P2.0
|
||||||
|
# Some BLTouch V3 and many clones apparently require this, though mine didnt:
|
||||||
|
#pin_up_touch_mode_reports_triggered: False
|
||||||
|
x_offset: -33.0
|
||||||
|
y_offset: -37.0
|
||||||
|
z_offset: 1.5
|
||||||
|
speed: 3.0
|
||||||
|
samples: 2
|
||||||
|
|
||||||
|
[force_move]
|
||||||
|
enable_force_move: True
|
||||||
|
|
||||||
|
[include mainsail.cfg]
|
Loading…
x
Reference in New Issue
Block a user