2010-05-02 19:39:31 +00:00
|
|
|
#ifndef PARAMETERS_H
|
|
|
|
|
#define PARAMETERS_H
|
|
|
|
|
|
|
|
|
|
// NO RS485/EXTRUDER CONTROLLER SUPPORT
|
|
|
|
|
// PLEASE VERIFY PIN ASSIGNMENTS FOR YOUR CONFIGURATION!!!!!!!
|
2011-04-15 07:02:06 +00:00
|
|
|
#define MOTHERBOARD 3 // ATMEGA168 = 0, SANGUINO = 1, MOTHERBOARD = 2, MEGA/RAMPS = 3, ATMEGA328 = 4, Gen6 = 5
|
2011-03-28 16:15:38 +00:00
|
|
|
|
|
|
|
|
//Comment out to disable SD support
|
2011-03-13 11:34:34 +00:00
|
|
|
#define SDSUPPORT 1
|
2010-05-02 19:39:31 +00:00
|
|
|
|
2011-04-07 04:14:23 +00:00
|
|
|
//Acceleration settings
|
2011-04-22 19:10:10 +00:00
|
|
|
float full_velocity_units = 0.6; // the units between minimum and G1 move feedrate
|
|
|
|
|
float min_units_per_second = 60.0; // the minimum feedrate
|
|
|
|
|
float min_constant_speed_units = 0.6; // the minimum units of an accelerated move that must be done at constant speed
|
2011-04-07 04:14:23 +00:00
|
|
|
|
2011-04-19 07:26:56 +00:00
|
|
|
// AD595 THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!!
|
2010-05-02 19:39:31 +00:00
|
|
|
|
2011-04-10 19:58:56 +00:00
|
|
|
//PID settings:
|
|
|
|
|
//Uncomment the following line to enable PID support. This is untested and could be disastrous. Be careful.
|
|
|
|
|
//#define PIDTEMP 1
|
|
|
|
|
#ifdef PIDTEMP
|
|
|
|
|
#define PID_MAX 255 // limits current to nozzle
|
|
|
|
|
#define PID_INTEGRAL_DRIVE_MAX 220
|
|
|
|
|
#define PID_PGAIN 180 //100 is 1.0
|
|
|
|
|
#define PID_IGAIN 2 //100 is 1.0
|
|
|
|
|
#define PID_DGAIN 100 //100 is 1.0
|
|
|
|
|
#endif
|
|
|
|
|
|
2011-04-19 07:26:56 +00:00
|
|
|
// Select one of these only to define how the nozzle temp is read.
|
2011-04-22 10:18:12 +00:00
|
|
|
#define HEATER_USES_THERMISTOR
|
2011-04-19 07:26:56 +00:00
|
|
|
//#define HEATER_USES_AD595
|
2011-04-22 10:18:12 +00:00
|
|
|
//#define HEATER_USES_MAX6675
|
2011-04-19 07:26:56 +00:00
|
|
|
|
|
|
|
|
// Select one of these only to define how the bed temp is read.
|
|
|
|
|
#define BED_USES_THERMISTOR
|
|
|
|
|
//#define BED_USES_AD595
|
2011-04-10 19:58:56 +00:00
|
|
|
|
2010-05-02 19:39:31 +00:00
|
|
|
// Calibration formulas
|
|
|
|
|
// e_extruded_steps_per_mm = e_feedstock_steps_per_mm * (desired_extrusion_diameter^2 / feedstock_diameter^2)
|
|
|
|
|
// new_axis_steps_per_mm = previous_axis_steps_per_mm * (test_distance_instructed/test_distance_traveled)
|
|
|
|
|
// units are in millimeters or whatever length unit you prefer: inches,football-fields,parsecs etc
|
|
|
|
|
|
|
|
|
|
//Calibration variables
|
2010-08-12 03:50:51 +00:00
|
|
|
float x_steps_per_unit = 80.376;
|
|
|
|
|
float y_steps_per_unit = 80.376;
|
2011-03-13 11:34:34 +00:00
|
|
|
float z_steps_per_unit = 3200/1.25;
|
2010-08-12 03:50:51 +00:00
|
|
|
float e_steps_per_unit = 16;
|
2011-04-10 19:58:56 +00:00
|
|
|
float max_feedrate = 200000; //mmm, acceleration!
|
2010-05-02 19:39:31 +00:00
|
|
|
|
2010-08-12 03:50:51 +00:00
|
|
|
//float x_steps_per_unit = 10.047;
|
|
|
|
|
//float y_steps_per_unit = 10.047;
|
|
|
|
|
//float z_steps_per_unit = 833.398;
|
|
|
|
|
//float e_steps_per_unit = 0.706;
|
|
|
|
|
//float max_feedrate = 3000;
|
|
|
|
|
|
2010-05-02 19:39:31 +00:00
|
|
|
//For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
|
|
|
|
|
const bool X_ENABLE_ON = 0;
|
|
|
|
|
const bool Y_ENABLE_ON = 0;
|
|
|
|
|
const bool Z_ENABLE_ON = 0;
|
|
|
|
|
const bool E_ENABLE_ON = 0;
|
|
|
|
|
|
|
|
|
|
//Disables axis when it's not being used.
|
|
|
|
|
const bool DISABLE_X = false;
|
|
|
|
|
const bool DISABLE_Y = false;
|
|
|
|
|
const bool DISABLE_Z = true;
|
|
|
|
|
const bool DISABLE_E = false;
|
|
|
|
|
|
2010-05-02 20:47:44 +00:00
|
|
|
const bool INVERT_X_DIR = false;
|
|
|
|
|
const bool INVERT_Y_DIR = false;
|
2010-08-12 03:50:51 +00:00
|
|
|
const bool INVERT_Z_DIR = true;
|
2010-08-12 16:26:13 +00:00
|
|
|
const bool INVERT_E_DIR = false;
|
2010-05-02 20:47:44 +00:00
|
|
|
|
2011-03-28 16:15:38 +00:00
|
|
|
//Thermistor settings:
|
|
|
|
|
|
|
|
|
|
//Uncomment for 100k thermistor
|
|
|
|
|
//#include "ThermistorTable_100k.h"
|
|
|
|
|
//#include "BedThermistorTable_100k.h"
|
|
|
|
|
|
|
|
|
|
//Uncomment for 200k thermistor
|
|
|
|
|
//#include "ThermistorTable_200k.h"
|
|
|
|
|
//#include "BedThermistorTable_200k.h"
|
|
|
|
|
|
2011-04-15 07:02:06 +00:00
|
|
|
//Identical thermistors on heater and bed - use this if you have no heated bed or if the thermistors are the same on both:
|
2011-03-28 16:15:38 +00:00
|
|
|
#include "ThermistorTable_200k.h"
|
|
|
|
|
//#include "ThermistorTable_100k.h"
|
2011-04-15 07:02:06 +00:00
|
|
|
//#include "ThermistorTable_mendelparts.h"
|
2011-03-28 16:15:38 +00:00
|
|
|
#define BNUMTEMPS NUMTEMPS
|
|
|
|
|
#define bedtemptable temptable
|
|
|
|
|
|
2010-05-02 19:39:31 +00:00
|
|
|
//Endstop Settings
|
2011-03-13 11:34:34 +00:00
|
|
|
#define ENDSTOPPULLUPS 1
|
2011-01-06 07:01:30 +00:00
|
|
|
const bool ENDSTOPS_INVERTING = false;
|
2010-05-02 19:39:31 +00:00
|
|
|
const bool min_software_endstops = false; //If true, axis won't move to coordinates less than zero.
|
|
|
|
|
const bool max_software_endstops = true; //If true, axis won't move to coordinates greater than the defined lengths below.
|
2011-03-13 11:34:34 +00:00
|
|
|
const int X_MAX_LENGTH = 220;
|
|
|
|
|
const int Y_MAX_LENGTH = 220;
|
|
|
|
|
const int Z_MAX_LENGTH = 100;
|
2010-05-02 19:39:31 +00:00
|
|
|
|
2010-08-12 03:50:51 +00:00
|
|
|
#define BAUDRATE 115200
|
2010-05-02 19:39:31 +00:00
|
|
|
|
2011-03-28 16:15:38 +00:00
|
|
|
|
|
|
|
|
|
2010-08-30 00:45:38 +00:00
|
|
|
#endif
|