aboutsummaryrefslogtreecommitdiffstats
path: root/config/printer-eryone-er20-2021.cfg
blob: a23cafc8aa444d2ea9e718e7c54b33b0161c402e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# This file contains common pin mappings for the Eryone ER-20 board
# board. To use this config, the firmware should be compiled for the
# STM32F103 with a 16KiB HID Bootloader.

# Extra settings to support BL Touch, Filament Runout sensor and
# have setting for fixing GCode errors, these configus can be found on
# Eryone's Facebook Group under files.
# Facebook like to files: https://www.facebook.com/groups/247271792709370/files

# See docs/Config_Reference.md for a description of parameters.

[stepper_x]
step_pin: PB15
dir_pin: PB14
rotation_distance: 40
enable_pin: !PD10
microsteps: 16
endstop_pin: tmc2209_stepper_x:virtual_endstop
position_endstop: 0
position_max: 250
homing_speed: 40
homing_retract_dist: 0

[tmc2209 stepper_x]
uart_pin: PC11
tx_pin: PC10
diag_pin: ^PD8
uart_address: 2
run_current: 0.6
stealthchop_threshold: 999999
driver_SGTHRS: 80

[stepper_y]
step_pin: PD14
dir_pin: !PD13
enable_pin: !PC6
microsteps: 16
rotation_distance: 40
endstop_pin: tmc2209_stepper_y:virtual_endstop
position_min: -9
position_endstop: -9
position_max: 235
homing_speed: 50
homing_retract_dist: 0

[tmc2209 stepper_y]
uart_pin: PC11
tx_pin: PC10
diag_pin: ^PD15
uart_address: 3
run_current: 0.7
stealthchop_threshold: 999999
driver_SGTHRS: 100

[stepper_z]
step_pin: PC8
dir_pin: !PC7
enable_pin: !PA8
microsteps: 16
rotation_distance: 8
endstop_pin: probe:z_virtual_endstop
position_max: 250
position_min: -1

[tmc2209 stepper_z]
uart_pin: PC11
tx_pin: PC10
diag_pin: ^PC9
uart_address: 1
run_current: 0.7
stealthchop_threshold: 999999
driver_SGTHRS: 0

[extruder]
step_pin: PE13
dir_pin: PE14
enable_pin: !PB13
microsteps: 16
# Stock extruder [200 steps/rot]*[16 steps]/[93 steps/mm]
rotation_distance: 34.4
nozzle_diameter: 0.4
filament_diameter: 1.75
max_extrude_only_distance: 150
heater_pin: PD11
sensor_type: EPCOS 100K B57560G104F
sensor_pin: PC1
control: pid
pid_kp: 26.11
pid_ki: 2.01
pid_kd: 85
min_temp: 0
max_temp: 250

[tmc2209 extruder]
uart_pin: PC11
tx_pin: PC10
uart_address: 0
run_current: 0.7
stealthchop_threshold: 999999

[heater_bed]
heater_pin: PD12
sensor_type: ATC Semitec 104GT-2
sensor_pin: PC2
control: pid
pid_kp: 100.12
pid_ki: 5
pid_kd: 305
min_temp: 0
max_temp: 100

[fan]
pin: PB5

[heater_fan heatbreak_cooling_fan]
pin: PB4

[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command

[printer]
kinematics: cartesian
max_velocity: 300
max_accel: 1500
max_z_velocity: 5
max_z_accel: 100

######################################################################
#  Probing/Mesh Leveling settings for stock BL Touch.
#  Please make sure you set the correct values for your offsets.
######################################################################

[bltouch]
sensor_pin: ^PA11
control_pin: PA12
pin_move_time: 0.700
x_offset: 34
y_offset: 0
z_offset: 2.6
pin_up_touch_mode_reports_triggered: False

[safe_z_home]
home_xy_position: 5, 5
z_hop: 5.0
z_hop_speed: 5.0

[bed_mesh]
speed: 80
mesh_min: 40, 20
mesh_max: 210, 205
probe_count: 5, 5

######################################################################
# "RepRapDiscount 128x64 Full Graphic Smart Controller" type display
######################################################################

[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

######################################################################
# EXP1 / EXP2 (display) pins
######################################################################

[board_pins]
aliases:
    # EXP1 header
    EXP1_1=PE12, EXP1_3=PE10, EXP1_5=PE8, EXP1_7=PB2,
    EXP1_2=PE11, EXP1_4=PE9, EXP1_6=PE7, EXP1_8=PB1,
    # EXP2 header
    EXP2_3=PE4, EXP2_5=PE3
    # Pins EXP2_1, EXP2_6, EXP2_2 are also MISO, MOSI, SCK of bus "spi2"