Created
August 16, 2022 04:26
-
-
Save pirogoeth/6f8c7eb75e3a9726212acdf04b46a60e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file contains common pin mappings for the FlashForge-Creator-Pro | |
# To use this config, the firmware should be compiled for | |
# the Atmel atmega2560. | |
# Use the following command to flash the board: | |
# avrdude -c stk500v2 -p m2560 -P /dev/serial/by-id/usb-MakerBot_Industries_The_Replicator_557373136313514061A2-if00 -b 57600 -D -U out/klipper.elf.hex | |
# See docs/Config_Reference.md for a description of parameters. | |
[include mainsail.cfg] | |
[include timelapse.cfg] | |
[gcode_macro START_PRINT] | |
gcode: | |
# enable build progress | |
M73 P0 | |
# colorize: getting ready to launch! | |
SET_LED LED=led_strip RED=1.0 BLUE=0.1 GREEN=0 | |
# home XY maximum | |
G162 X Y F3000 | |
# home Z minimum | |
G161 Z F1200 | |
# set Z to -5 | |
G92 Z-5 | |
# move Z to 0 | |
G1 Z0 | |
# home Z slowly | |
G161 Z F100 | |
# recall home offsets | |
M132 X Y Z A B | |
# load right extruder offsets | |
# doing a big ol' assume - M132 is "Load current home position from EEPROM and wait for buffer to empty" | |
# let's Jump To Conclusions! and say that M135 is "Load current tool position from EEPROM and wait for buffer to empty"? | |
# source: https://github.com/minsk-hackerspace/slic3r-configs/blob/master/docs/Flashforge%20Gcode%20protocol(open).md | |
# which, consequentially, Klipper doesn't support! shrugface.jpg? | |
## M135 T0 | |
# move to wait position right hand side of bed | |
G1 X150 Y-70 Z30 F9000 | |
# lower stepper Vrefs while heating | |
G130 X20 Y20 Z20 A20 B20 | |
M126 S{printer.fan.speed} | |
M140 S{printer.heater_bed.target} T0 | |
# stabilize bed temperature | |
M134 T0 | |
# set right extruder target temperature | |
M104 S{printer.extruder.target} T0 | |
# stabilize right extruder temperature | |
M133 T0 | |
# default stepper Vrefs | |
G130 X127 Y127 Z40 A127 B127 | |
# zero extruders | |
G92 A0 B0 | |
# position nozzle | |
G1 Z0.4 | |
# purge extruder nozzle | |
G1 X110 Y-70 E25 F300 | |
# slow wipe extruder nozzle on bed | |
G1 X120 Y-70 Z0.15 F1200 | |
# lift nozzle from bed | |
G1 X110 Y-70 Z0.5 F1200 | |
# zero extruders | |
G92 A0 B0 | |
# display progress! | |
M73 P1 | |
[gcode_macro END_PRINT] | |
gcode: | |
# end build progress | |
M73 P100 | |
# send Z axis to bottom of machine | |
G1 Z150 F1000 | |
# cool down heater bed | |
M140 S0 T0 | |
# cool down right extruder | |
M104 S0 T0 | |
# cool down left extruder | |
M104 S0 T1 | |
# stop nozzle blower fan | |
M107 | |
# home XY maximum | |
G162 X Y F3000 | |
# disable stepper | |
M18 | |
# finito! | |
M72 P1 | |
[stepper_x] | |
step_pin: PF1 | |
dir_pin: !PF0 | |
enable_pin: !PF2 | |
microsteps: 16 | |
rotation_distance: 34 | |
endstop_pin: ^!PL1 | |
position_endstop: 116 | |
position_max: 116 | |
position_min: -116 | |
homing_speed: 50 | |
[stepper_y] | |
step_pin: PF5 | |
dir_pin: !PF4 | |
enable_pin: !PF6 | |
microsteps: 16 | |
rotation_distance: 34 | |
endstop_pin: ^!PL3 | |
position_endstop: 80 | |
position_max: 80 | |
position_min: -80 | |
homing_speed: 50 | |
[stepper_z] | |
step_pin: PK1 | |
dir_pin: !PK0 | |
enable_pin: !PK2 | |
microsteps: 16 | |
rotation_distance: 8 | |
endstop_pin: !PL6 | |
position_endstop: -0.25 | |
position_max: 181 | |
position_min: -0.25 | |
[extruder] | |
step_pin: PA3 | |
dir_pin: !PA2 | |
enable_pin: !PA4 | |
microsteps: 16 | |
rotation_distance: 33 | |
nozzle_diameter: 0.400 | |
filament_diameter: 1.750 | |
heater_pin: PH3 | |
sensor_type: MAX6675 | |
sensor_pin: PE3 | |
spi_software_miso_pin: PE5 | |
spi_software_sclk_pin: PE2 | |
spi_software_mosi_pin: PA1 #dummy mosi pin | |
control: pid | |
pid_kp: 27.341 | |
pid_ki: 1.293 | |
pid_kd: 144.566 | |
min_temp: 0 | |
max_temp: 260 | |
[extruder1] | |
step_pin: PA7 | |
dir_pin: PA6 | |
enable_pin: !PG2 | |
microsteps: 16 | |
rotation_distance: 33 | |
nozzle_diameter: 0.400 | |
filament_diameter: 1.750 | |
heater_pin: PB5 | |
sensor_type: MAX6675 | |
sensor_pin: PE4 | |
spi_software_miso_pin: PE5 | |
spi_software_sclk_pin: PE2 | |
spi_software_mosi_pin: PA1 #dummy mosi pin | |
control: pid | |
pid_kp: 27.341 | |
pid_ki: 1.293 | |
pid_kd: 144.566 | |
min_temp: 0 | |
max_temp: 260 | |
[gcode_macro T0] | |
gcode: | |
SET_GCODE_OFFSET X=-34 | |
ACTIVATE_EXTRUDER EXTRUDER=extruder | |
[gcode_macro T1] | |
gcode: | |
SET_GCODE_OFFSET X=0 | |
ACTIVATE_EXTRUDER EXTRUDER=extruder1 | |
[heater_fan extruder_fan] | |
pin: PH4 | |
[heater_fan extruder1_fan] | |
pin: PB6 | |
[fan] | |
pin: PL5 | |
[heater_bed] | |
heater_pin: PL4 | |
sensor_type: ATC Semitec 104GT-2 | |
sensor_pin: PK7 | |
control: pid | |
pid_kp: 72.914 | |
pid_ki: 2.060 | |
pid_kd: 645.290 | |
min_temp: 0 | |
max_temp: 130 | |
[mcu] | |
serial: /dev/serial/by-id/usb-MakerBot_Industries_The_Replicator_7543931323735181A2D1-if00 | |
restart_method: command | |
[printer] | |
kinematics: cartesian | |
max_velocity: 300 | |
max_accel: 1000 | |
max_z_velocity: 5 | |
max_z_accel: 100 | |
[mcp4018 x_axis_pot] | |
scl_pin: PJ5 | |
sda_pin: PF3 | |
wiper: 118 | |
scale: 127 | |
[mcp4018 y_axis_pot] | |
scl_pin: PJ5 | |
sda_pin: PF7 | |
wiper: 118 | |
scale: 127 | |
[mcp4018 z_axis_pot] | |
scl_pin: PJ5 | |
sda_pin: PK3 | |
wiper: 40 | |
scale: 127 | |
[mcp4018 a_axis_pot] | |
scl_pin: PJ5 | |
sda_pin: PA5 | |
wiper: 118 | |
scale: 127 | |
[mcp4018 b_axis_pot] | |
scl_pin: PJ5 | |
sda_pin: PJ6 | |
wiper: 118 | |
scale: 127 | |
[display] | |
lcd_type: hd44780_spi | |
spi_software_mosi_pin: PC3 | |
spi_software_sclk_pin: PC2 | |
#miso not used, dummy pin. | |
spi_software_miso_pin: PJ1 | |
latch_pin: PC4 | |
click_pin: ^PJ0 | |
back_pin: ^PJ2 | |
up_pin: ^PJ4 | |
down_pin: ^PJ3 | |
[pca9533 led_strip] | |
i2c_bus: twi | |
i2c_address: 98 | |
initial_RED: 1 | |
initial_GREEN: 1 | |
initial_BLUE: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment