makefile: tune slicer settings for elegoo printer

This commit is contained in:
2025-04-07 08:03:04 +00:00
parent 777e64e4b9
commit bdf129dd5d

View File

@@ -71,6 +71,9 @@ SLIC3R_FLAGS=\
# runs/data
# - defaults: print had entire walls, failed. e.g. volume box had no top.
# - defaults, ACF film: print succeeded, but some walls caved in during print.
# - Siraya recommended settings, ACF film: print succeeded, but some walls caved in during print.
# exposure=3, lift-distance=3, retract-speed=240, lift-speed=45
# - exposure=5, lift-distance=5, retract-speed=150: excellent print
#
# other resins:
# - Elegoo Standard Resin: prints excellent with default settings; zero flexibility, and BRITTLE.
@@ -78,17 +81,19 @@ SLIC3R_FLAGS=\
# N.B. we rotate the model 90-degrees when slicing else it doesn't fit within print bounds.
MSLICER_FLAGS=\
--rotation 0,0,90 \
--exposure-time 5 \
--first-layers 5 \
--transition-layers 5 \
--lift-distance 3 \
--lift-distance 5 \
--lift-speed 45 \
--retract-speed 240 \
--first-lift-distance 3 \
--retract-speed 150 \
--first-lift-distance 5 \
--first-lift-speed 45 \
--first-retract-speed 240
--first-retract-speed 150
all: build/case.stl build/case.gcode build/case.sl1 build/case.ctb build/case.goo
# all: build/case.stl build/case.gcode build/case.sl1 build/case.ctb build/case.goo build/pinephone_case.png build/pinephone_case_with_phone.png
all: build/case.stl build/case.gcode build/case.sl1 build/case.goo build/pinephone_case.png build/pinephone_case_with_phone.png
install:
mkdir -p $(SHAREDIR)
@@ -139,7 +144,6 @@ build/case.stl: main.py src/*.py
# .goo: for Gen 4+ Elegoo printers (requires `mslicer` package)
%.goo: %.stl
# XXX: slicer's --rotation argument is radians; it may change to degrees in the future.
slicer --mesh $< $(MSLICER_FLAGS) $@
readme: readme_files/pinephone_front_case_with_phone.png readme_files/pinephone_back_case_with_phone.png readme_files/pinephone_side_case_with_phone.png
@@ -147,7 +151,7 @@ readme: readme_files/pinephone_front_case_with_phone.png readme_files/pinephone_
doc: readme build/web-viewer/index.html
clean:
rm -rf build
rm -rf build/*
upload: build/case.gcode
lftp -e "set ssl:verify-certificate false; put $<; exit" -u ${PRINTER_AUTH} ftps://${PRINTER_HOST}