2011-11-06 18:23:08 +00:00
# ifndef __CONFIGURATION_H
# define __CONFIGURATION_H
2011-11-06 11:39:00 +00:00
2012-02-07 19:23:43 +00:00
// This configurtion file contains the basic settings.
// Advanced settings can be found in Configuration_adv.h
// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration
2011-11-09 19:28:40 +00:00
2012-02-09 19:26:17 +00:00
//User specified version info of THIS file to display in [Pronterface, etc] terminal window during startup.
//Implementation of an idea by Prof Braino to inform user that any changes made
//to THIS file by the user have been successfully uploaded into firmware.
# define STRING_VERSION_CONFIG_H "2012-02-08j" //Personal revision number for changes to THIS file.
# define STRING_CONFIG_H_AUTHOR "username" //Who made the changes.
2011-11-09 19:28:40 +00:00
// This determines the communication speed of the printer
2011-12-12 18:34:37 +00:00
# define BAUDRATE 250000
//#define BAUDRATE 115200
2011-11-06 11:39:00 +00:00
//// The following define selects which electronics board you have. Please choose the one that matches your setup
// MEGA/RAMPS up to 1.2 = 3,
// RAMPS 1.3 = 33
// Gen6 = 5,
// Sanguinololu 1.2 and above = 62
// Ultimaker = 7,
2012-02-05 11:42:15 +00:00
// Teensylu = 8,
// Gen3+ =9
2011-12-12 18:34:37 +00:00
# define MOTHERBOARD 7
2011-11-06 18:30:04 +00:00
2011-11-09 19:28:40 +00:00
//===========================================================================
//=============================Thermal Settings ============================
//===========================================================================
2011-11-06 11:39:00 +00:00
2012-02-07 19:23:43 +00:00
//// Temperature sensor settings:
// -2 is thermocouple with MAX6675 (only for sensor 0)
// -1 is thermocouple with AD595
// 0 is not used
2011-11-06 11:39:00 +00:00
// 1 is 100k thermistor
// 2 is 200k thermistor
// 3 is mendel-parts thermistor
2012-02-08 17:38:45 +00:00
// 4 is 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!
2011-11-06 11:39:00 +00:00
// 5 is ParCan supplied 104GT-2 100K
// 6 is EPCOS 100k
// 7 is 100k Honeywell thermistor 135-104LAG-J01
2011-12-12 18:34:37 +00:00
2012-02-07 19:23:43 +00:00
# define TEMP_SENSOR_0 -1
# define TEMP_SENSOR_1 0
# define TEMP_SENSOR_2 0
# define TEMP_SENSOR_BED 0
2011-11-06 11:39:00 +00:00
2011-11-09 19:28:40 +00:00
// Actual temperature must be close to target for this long before M109 returns success
2011-12-06 04:33:33 +00:00
# define TEMP_RESIDENCY_TIME 30 // (seconds)
# define TEMP_HYSTERESIS 3 // (C°) range of +/- temperatures considered "close" to the target one
2011-11-06 11:39:00 +00:00
2012-02-07 19:23:43 +00:00
// The minimal temperature defines the temperature below which the heater will not be enabled It is used
// to check that the wiring to the thermistor is not broken.
// Otherwise this would lead to the heater being powered on all the time.
2011-11-09 19:28:40 +00:00
# define HEATER_0_MINTEMP 5
2012-02-07 19:23:43 +00:00
# define HEATER_1_MINTEMP 5
# define HEATER_2_MINTEMP 5
# define BED_MINTEMP 5
2011-11-06 11:39:00 +00:00
2011-11-09 19:28:40 +00:00
// When temperature exceeds max temp, your heater will be switched off.
// This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
// You should use MINTEMP for thermistor short/failure protection.
# define HEATER_0_MAXTEMP 275
2012-02-07 19:23:43 +00:00
# define HEATER_1_MAXTEMP 275
# define HEATER_2_MAXTEMP 275
# define BED_MAXTEMP 150
2012-02-06 19:13:44 +00:00
2012-02-16 10:03:41 +00:00
//These defines help to calibrate the AD595 sensor in case you get wrong temperature measurements.
//The measured temperature is defined as "actualTemp = (measuredTemp * TEMP_SENSOR_AD595_GAIN) + TEMP_SENSOR_AD595_OFFSET"
# define TEMP_SENSOR_AD595_OFFSET 0.0
# define TEMP_SENSOR_AD595_GAIN 1.0
2011-11-09 19:28:40 +00:00
// PID settings:
2012-02-07 19:23:43 +00:00
// Comment the following line to disable PID and enable bang-bang.
2011-11-09 19:28:40 +00:00
# define PIDTEMP
2011-12-12 18:34:37 +00:00
# define PID_MAX 255 // limits current to nozzle; 255=full current
2011-11-09 19:28:40 +00:00
# ifdef PIDTEMP
//#define PID_DEBUG // Sends debug data to the serial port.
//#define PID_OPENLOOP 1 // Puts PID in open loop. M104 sets the output power in %
# define PID_INTEGRAL_DRIVE_MAX 255 //limit for the integral term
# define K1 0.95 //smoothing factor withing the PID
2011-12-12 18:34:37 +00:00
# define PID_dT 0.128 //sampling period of the PID
2011-11-09 19:28:40 +00:00
2012-02-07 19:23:43 +00:00
// If you are using a preconfigured hotend then you can use one of the value sets by uncommenting it
// Ultimaker
2011-12-12 18:34:37 +00:00
# define DEFAULT_Kp 22.2
# define DEFAULT_Ki (1.25*PID_dT)
# define DEFAULT_Kd (99 / PID_dT)
2011-12-06 04:33:33 +00:00
// Makergear
2011-12-12 18:34:37 +00:00
// #define DEFAULT_Kp 7.0
// #define DEFAULT_Ki 0.1
// #define DEFAULT_Kd 12
2011-11-18 17:59:17 +00:00
// Mendel Parts V9 on 12V
// #define DEFAULT_Kp 63.0
// #define DEFAULT_Ki (2.25*PID_dT)
2012-02-07 19:23:43 +00:00
// #define DEFAULT_Kd (440/PID_dT)
2011-11-09 19:28:40 +00:00
# endif // PIDTEMP
2011-11-06 11:39:00 +00:00
2012-02-07 19:23:43 +00:00
//this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
//can be software-disabled for whatever purposes by
# define PREVENT_DANGEROUS_EXTRUDE
2012-02-12 16:38:54 +00:00
# define EXTRUDE_MINTEMP 170
2012-02-07 19:23:43 +00:00
# define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.
2011-11-06 11:39:00 +00:00
2011-11-09 19:28:40 +00:00
//===========================================================================
//=============================Mechanical Settings===========================
//===========================================================================
// Endstop Settings
# define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors
2011-12-06 04:33:33 +00:00
2011-11-09 19:28:40 +00:00
// The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins.
2011-12-12 18:34:37 +00:00
const bool X_ENDSTOPS_INVERTING = true ; // set to true to invert the logic of the endstops.
const bool Y_ENDSTOPS_INVERTING = true ; // set to true to invert the logic of the endstops.
const bool Z_ENDSTOPS_INVERTING = true ; // set to true to invert the logic of the endstops.
2011-11-06 11:39:00 +00:00
// For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
# define X_ENABLE_ON 0
# define Y_ENABLE_ON 0
# define Z_ENABLE_ON 0
2011-12-06 04:33:33 +00:00
# define E_ENABLE_ON 0 // For all extruders
2011-11-06 11:39:00 +00:00
// Disables axis when it's not being used.
# define DISABLE_X false
# define DISABLE_Y false
2011-12-12 18:34:37 +00:00
# define DISABLE_Z false
2011-12-06 04:33:33 +00:00
# define DISABLE_E false // For all extruders
2011-11-13 19:42:08 +00:00
2011-12-12 18:34:37 +00:00
# define INVERT_X_DIR true // for Mendel set to false, for Orca set to true
2011-11-18 18:46:16 +00:00
# define INVERT_Y_DIR false // for Mendel set to true, for Orca set to false
# define INVERT_Z_DIR true // for Mendel set to false, for Orca set to true
2011-12-06 04:33:33 +00:00
# define INVERT_E0_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
2011-12-12 18:34:37 +00:00
# define INVERT_E1_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
2011-12-06 04:33:33 +00:00
# define INVERT_E2_DIR false // for direct drive extruder v9 set to true, for geared extruder set to false
2011-11-06 11:39:00 +00:00
2012-02-07 19:23:43 +00:00
// ENDSTOP SETTINGS:
2011-11-06 11:39:00 +00:00
// Sets direction of endstops when homing; 1=MAX, -1=MIN
# define X_HOME_DIR -1
# define Y_HOME_DIR -1
# define Z_HOME_DIR -1
2011-12-12 18:34:37 +00:00
# define min_software_endstops true //If true, axis won't move to coordinates less than zero.
# define max_software_endstops true //If true, axis won't move to coordinates greater than the defined lengths below.
# define X_MAX_LENGTH 205
# define Y_MAX_LENGTH 205
# define Z_MAX_LENGTH 200
2011-11-06 11:39:00 +00:00
//// MOVEMENT SETTINGS
# define NUM_AXIS 4 // The axis order in all axis related arrays is X, Y, Z, E
2011-12-12 18:34:37 +00:00
# define HOMING_FEEDRATE {50*60, 50*60, 4*60, 0} // set the homing speeds (mm/min)
2011-11-06 18:23:08 +00:00
2011-11-06 11:39:00 +00:00
// default settings
2011-12-12 18:34:37 +00:00
# define DEFAULT_AXIS_STEPS_PER_UNIT {78.7402,78.7402,200*8 / 3,760*1.1} // default steps per unit for ultimaker
2011-12-02 16:45:05 +00:00
# define DEFAULT_MAX_FEEDRATE {500, 500, 5, 45} // (mm/sec)
2011-11-13 19:42:08 +00:00
# define DEFAULT_MAX_ACCELERATION {9000,9000,100,10000} // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for skeinforge 40+, for older versions raise them a lot.
2011-11-06 11:39:00 +00:00
# define DEFAULT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves
2011-12-02 16:45:05 +00:00
# define DEFAULT_RETRACT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for r retracts
2011-11-06 11:39:00 +00:00
2012-02-07 19:23:43 +00:00
//
2011-11-27 20:12:55 +00:00
# define DEFAULT_XYJERK 20.0 // (mm/sec)
2011-11-13 19:42:08 +00:00
# define DEFAULT_ZJERK 0.4 // (mm/sec)
2011-11-06 11:39:00 +00:00
2011-11-09 19:28:40 +00:00
//===========================================================================
//=============================Additional Features===========================
//===========================================================================
2011-11-06 11:39:00 +00:00
2011-11-09 19:28:40 +00:00
// EEPROM
// the microcontroller can store settings in the EEPROM, e.g. max velocity...
// M500 - stores paramters in EEPROM
// M501 - reads parameters from EEPROM (if you need reset them after you changed them temporarily).
// M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
//define this to enable eeprom support
2012-02-07 19:23:43 +00:00
//#define EEPROM_SETTINGS
2011-11-09 19:28:40 +00:00
//to disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
// please keep turned on if you can.
2012-02-07 19:23:43 +00:00
//#define EEPROM_CHITCHAT
2011-11-09 19:28:40 +00:00
//LCD and SD support
//#define ULTRA_LCD //general lcd support, also 16x2
2012-02-09 18:27:45 +00:00
# define SDSUPPORT // Enable SD Card Support in Hardware Console
2011-11-09 19:28:40 +00:00
2011-12-22 10:45:52 +00:00
//#define ULTIPANEL
2011-11-09 19:28:40 +00:00
# ifdef ULTIPANEL
2011-11-19 13:50:31 +00:00
//#define NEWPANEL //enable this if you have a click-encoder panel
2011-11-09 19:28:40 +00:00
# define SDSUPPORT
# define ULTRA_LCD
# define LCD_WIDTH 20
# define LCD_HEIGHT 4
# else //no panel but just lcd
# ifdef ULTRA_LCD
# define LCD_WIDTH 16
# define LCD_HEIGHT 2
# endif
# endif
2011-12-22 11:11:39 +00:00
// M240 Triggers a camera by emulating a Canon RC-1 Remote
// Data from: http://www.doc-diy.net/photo/rc-1_hacked/
// #define PHOTOGRAPH_PIN 23
2012-02-07 19:23:43 +00:00
# include "Configuration_adv.h"
2011-11-09 19:28:40 +00:00
# include "thermistortables.h"
2011-11-06 18:23:08 +00:00
# endif //__CONFIGURATION_H