Configuration.h

Fri, 17 Nov 2017 10:13:31 +0100

author
mdd
date
Fri, 17 Nov 2017 10:13:31 +0100
changeset 3
770b218a4931
parent 0
2c8ba1964db7
permissions
-rw-r--r--

proper configuration, homing and planner optimization

0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
1 #ifndef CONFIGURATION_H
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
2 #define CONFIGURATION_H
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
3
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
4 // ==============================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
5
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
6 // For instructions on setting these constants, see:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
7 // Mendel: http://reprap.org/wiki/RepRapPro_Mendel_maintenance
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
8 // Huxley: http://reprap.org/wiki/RepRapPro_Huxley_maintenance
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
9
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
10 // Uncomment ONE of the next three lines - the one for your RepRap machine
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
11 //#define REPRAPPRO_HUXLEY
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
12 //#define REPRAPPRO_MENDEL //Legacy Mendel
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
13 //#define REPRAPPRO_MENDEL2 // Mono Mendel
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
14 #define NEOSOFT_MENDEL
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
15
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
16 // Uncomment ONE of the next two lines - the one for your master controller electronics
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
17 #define REPRAPPRO_MELZI
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
18 //#define REPRAPPRO_SANGUINOLOLU
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
19
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
20 // Uncomment ONE of the next two lines - the one for the series resistors on your controller
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
21 #define SERIAL_R 4700
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
22 //#define SERIAL_R 10000
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
23
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
24
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
25 // -------------------------------------------------------------------------------
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
26
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
27 #ifndef REPRAPPRO_HUXLEY
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
28 #ifndef REPRAPPRO_MENDEL
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
29 #ifndef REPRAPPRO_MENDEL2
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
30 #ifndef NEOSOFT_MENDEL
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
31 #error Uncomment one of #define REPRAPPRO_HUXLEY, REPRAPPRO_MENDEL, or REPRAPPRO_MENDEL2 at the start of the file Configuration.h
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
32 #endif
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
33 #endif
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
34 #endif
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
35 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
36
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
37 #ifndef REPRAPPRO_MELZI
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
38 #ifndef REPRAPPRO_SANGUINOLOLU
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
39 #error Uncomment one of #define REPRAPPRO_MELZI or REPRAPPRO_SANGUINOLOLU at the start of the file Configuration.h
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
40 #endif
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
41 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
42
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
43 #ifndef SERIAL_R
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
44 #error Uncomment one of #define SERIAL_R 10000 or 4700 at the start of the file Configuration.h
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
45 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
46
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
47 // ==============================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
48
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
49 // Uncomment this if you are experimenting, know what you are doing, and want to switch off some safety
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
50 // features, e.g. allow extrude at low temperature etc.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
51 //#define DEVELOPING
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
52
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
53 // This configurtion file contains the basic settings.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
54 // Advanced settings can be found in Configuration_adv.h
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
55 // BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
56
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
57 //User specified version info of THIS file to display in [Pronterface, etc] terminal window during startup.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
58 //Implementation of an idea by Prof Braino to inform user that any changes made
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
59 //to THIS file by the user have been successfully uploaded into firmware.
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
60 #define STRING_VERSION_CONFIG_H "2017-11-18" //Personal revision number for changes to THIS file.
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
61 #define STRING_CONFIG_H_AUTHOR "NeoSoft, Malte Di Donato" //Who made the changes.
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
62
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
63 // This determines the communication speed of the printer
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
64 #define BAUDRATE 250000
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
65 //#define BAUDRATE 115200
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
66
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
67 //// The following define selects which electronics board you have. Please choose the one that matches your setup
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
68 // Sanguinololu 1.2 and above = 62
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
69 // Melzi 63
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
70
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
71 #ifdef REPRAPPRO_SANGUINOLOLU
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
72 #define MOTHERBOARD 62
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
73 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
74
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
75 #ifdef REPRAPPRO_MELZI
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
76 #define MOTHERBOARD 63
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
77 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
78
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
79
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
80
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
81 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
82 //=============================Thermal Settings ============================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
83 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
84
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
85 // Set this if you want to define the constants in the thermistor circuit
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
86 // and work out temperatures algebraically - added by AB.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
87
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
88 // See http://en.wikipedia.org/wiki/Thermistor#B_or_.CE.B2_parameter_equation
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
89
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
90 // BETA is the B value
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
91 // RS is the value of the series resistor in ohms
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
92 // R_INF is R0.exp(-BETA/T0), where R0 is the thermistor resistance at T0 (T0 is in kelvin)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
93 // Normally T0 is 298.15K (25 C). If you write that expression in brackets in the #define the compiler
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
94 // should compute it for you (i.e. it won't need to be calculated at run time).
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
95
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
96 // If the A->D converter has a range of 0..1023 and the measured voltage is V (between 0 and 1023)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
97 // then the thermistor resistance, R = V.RS/(1023 - V)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
98 // and the temperature, T = BETA/ln(R/R_INF)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
99 // To get degrees celsius (instead of kelvin) add -273.15 to T
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
100
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
101 // This DOES assume that all extruders use the same thermistor type.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
102
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
103
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
104 #define ABS_ZERO -273.15
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
105 #define AD_RANGE 16383
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
106
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
107
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
108 #ifdef REPRAPPRO_HUXLEY
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
109 #include "Configuration_huxley.h"
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
110 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
111 #ifdef REPRAPPRO_MENDEL
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
112 #include "Configuration_mendel.h"
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
113 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
114 #ifdef REPRAPPRO_MENDEL2
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
115 #include "Configuration_mendel2.h"
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
116 #endif
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
117 #ifdef NEOSOFT_MENDEL
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
118 #include "Configuration_neosoft_mendel.h"
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
119 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
120
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
121
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
122 #define E_RS SERIAL_R
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
123 #define E_R_INF ( E_NTC*exp(-E_BETA/298.15) )
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
124
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
125 #define BED_RS SERIAL_R
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
126 #define BED_R_INF ( BED_NTC*exp(-BED_BETA/298.15) )
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
127
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
128 #define BED_USES_THERMISTOR
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
129 #define HEATER_0_USES_THERMISTOR
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
130 #define HEATER_1_USES_THERMISTOR
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
131 #define HEATER_2_USES_THERMISTOR
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
132
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
133 // Actual temperature must be close to target for this long before M109 returns success
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
134 #define TEMP_RESIDENCY_TIME 5 // (seconds)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
135 #define TEMP_HYSTERESIS 5 // (C°) range of +/- temperatures considered "close" to the target one
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
136 #define TEMP_WINDOW 2 // (degC) Window around target to start the recidency timer x degC early.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
137
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
138 // The minimal temperature defines the temperature below which the heater will not be enabled It is used
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
139 // to check that the wiring to the thermistor is not broken.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
140 // Otherwise this would lead to the heater being powered on all the time.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
141 #define HEATER_0_MINTEMP 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
142 #ifdef REPRAPPRO_MULTIMATERIALS
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
143 #define HEATER_1_MINTEMP 1
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
144 #define HEATER_2_MINTEMP 1
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
145 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
146 #define BED_MINTEMP 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
147
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
148 // When temperature exceeds max temp, your heater will be switched off.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
149 // This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
150 // You should use MINTEMP for thermistor short/failure protection.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
151 #define HEATER_0_MAXTEMP 399
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
152 #ifdef REPRAPPRO_MULTIMATERIALS
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
153 #define HEATER_1_MAXTEMP 275
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
154 #define HEATER_2_MAXTEMP 275
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
155 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
156 #define BED_MAXTEMP 150
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
157
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
158
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
159 // PID settings:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
160 // Comment the following line to disable PID and enable bang-bang.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
161 #define PIDTEMP
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
162 #define PID_MAX 255 // limits current to nozzle; 255=full current
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
163 #define FULL_PID_BAND 150 // Full power is applied when pid_error[e] > FULL_PID_BAND
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
164 #ifdef PIDTEMP
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
165 //#define PID_DEBUG // Sends debug data to the serial port.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
166 #define PID_INTEGRAL_DRIVE_MAX 125 //limit for the integral term
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
167 #define K1 0.95 //smoothing factor withing the PID
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
168 #define PID_dT 0.122 //sampling period of the PID
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
169
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
170 // RepRapPro Huxley + Mendel
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
171 #define DEFAULT_Kp 12.0
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
172 #define DEFAULT_Ki (2.2*PID_dT)
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
173 #define DEFAULT_Kd (80/PID_dT)
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
174 #endif // PIDTEMP
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
175
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
176 #ifndef DEVELOPING
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
177 //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
178 //can be software-disabled for whatever purposes by
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
179 #define PREVENT_DANGEROUS_EXTRUDE
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
180 #define EXTRUDE_MINTEMP 170
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
181 #define EXTRUDE_MAXLENGTH (999) //prevent extrusion of very large distances.
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
182 #else
3
770b218a4931 proper configuration, homing and planner optimization
mdd
parents: 0
diff changeset
183 #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE
0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
184 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
185
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
186 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
187 //=============================Mechanical Settings===========================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
188 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
189
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
190 // Endstop Settings
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
191 #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
192
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
193 // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
194 const bool X_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
195 const bool Y_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
196 const bool Z_ENDSTOPS_INVERTING = false; // set to true to invert the logic of the endstops.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
197
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
198 // For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
199 #define X_ENABLE_ON 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
200 #define Y_ENABLE_ON 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
201 #define Z_ENABLE_ON 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
202 #define E_ENABLE_ON 0 // For all extruders
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
203
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
204 // Disables axis when it's not being used.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
205 #define DISABLE_X false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
206 #define DISABLE_Y false
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
207 #define DISABLE_Z true
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
208 #define DISABLE_E false // For all extruders
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
209
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
210 // ENDSTOP SETTINGS:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
211 // Sets direction of endstops when homing; 1=MAX, -1=MIN
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
212 #define X_HOME_DIR -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
213 #define Y_HOME_DIR -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
214 #define Z_HOME_DIR -1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
215
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
216 #define min_software_endstops true //If true, axis won't move to coordinates less than zero.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
217 #define max_software_endstops true //If true, axis won't move to coordinates greater than the defined lengths below.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
218
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
219 // The position of the homing switches. Use MAX_LENGTH * -0.5 if the center should be 0, 0, 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
220 #define X_HOME_POS 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
221 #define Y_HOME_POS 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
222 #define Z_HOME_POS 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
223
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
224 //// MOVEMENT SETTINGS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
225 #define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
226
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
227 // Defaults changed by the G10 command
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
228 #define X_EXTRUDER_OFFSET 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
229 #define Y_EXTRUDER_OFFSET 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
230 #define Z_EXTRUDER_OFFSET 0
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
231 #define STANDBY_TEMP 140
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
232 #define PLA_TEMP 210
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
233 #define ABS_TEMP 250
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
234 #define DEFAULT_TEMP PLA_TEMP
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
235
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
236 #define DEFAULT_ACCELERATION 1000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
237 #define DEFAULT_RETRACT_ACCELERATION 1000 // X, Y, Z and E max acceleration in mm/s^2 for r retracts
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
238
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
239 //
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
240 #define DEFAULT_XYJERK 15.0 // (mm/sec)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
241 #define DEFAULT_ZJERK 0.4 // (mm/sec)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
242 #define DEFAULT_EJERK 15.0 // (mm/sec)
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
243
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
244 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
245 //=============================Additional Features===========================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
246 //===========================================================================
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
247
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
248 // EEPROM
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
249 // the microcontroller can store settings in the EEPROM, e.g. max velocity...
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
250 // M500 - stores paramters in EEPROM
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
251 // M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
252 // M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
253 //define this to enable eeprom support
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
254 #define EEPROM_SETTINGS
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
255 //to disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
256 // please keep turned on if you can.
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
257 #define EEPROM_CHITCHAT
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
258
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
259 //LCD and SD support
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
260 //#define ULTRA_LCD //general lcd support, also 16x2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
261 #define SDSUPPORT // Enable SD Card Support in Hardware Console
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
262
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
263 //#define ULTIPANEL
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
264 #ifdef ULTIPANEL
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
265 //#define NEWPANEL //enable this if you have a click-encoder panel
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
266 #define SDSUPPORT
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
267 #define ULTRA_LCD
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
268 #define LCD_WIDTH 20
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
269 #define LCD_HEIGHT 4
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
270
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
271 // Preheat Constants
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
272 #define PLA_PREHEAT_HOTEND_TEMP 180
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
273 #define PLA_PREHEAT_HPB_TEMP 70
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
274 #define PLA_PREHEAT_FAN_SPEED 255 // Insert Value between 0 and 255
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
275
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
276 #define ABS_PREHEAT_HOTEND_TEMP 240
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
277 #define ABS_PREHEAT_HPB_TEMP 100
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
278 #define ABS_PREHEAT_FAN_SPEED 255 // Insert Value between 0 and 255
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
279
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
280 #else //no panel but just lcd
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
281 #ifdef ULTRA_LCD
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
282 #define LCD_WIDTH 16
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
283 #define LCD_HEIGHT 2
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
284 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
285 #endif
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
286
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
287 // Enable uM-FPU support:
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
288 #define UMFPUSUPPORT 1
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
289
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
290 // M240 Triggers a camera by emulating a Canon RC-1 Remote
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
291 // Data from: http://www.doc-diy.net/photo/rc-1_hacked/
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
292 // #define PHOTOGRAPH_PIN 23
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
293
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
294 #include "Configuration_adv.h"
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
295
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
296
2c8ba1964db7 Initial code from reprappro Marlin repository
mbayer
parents:
diff changeset
297 #endif //__CONFIGURATION_H

mercurial