WebServer + 3d printer

Dependents:   Nucleo

configuration.h

Committer:
Sergunb
Date:
2017-02-04
Revision:
0:21b85706ec2f

File content as of revision 0:21b85706ec2f:

#ifndef PARAMETERS_H
#define PARAMETERS_H

// THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!!
const bool USE_THERMISTOR = true; //Set to false if using thermocouple

// 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
float x_steps_per_unit = 80.376; 
float y_steps_per_unit = 80.376;
//float y_steps_per_unit = 6.18;
//float z_steps_per_unit = 6667.184;
//16*200/1.25 = 2560
float z_steps_per_unit = 2560.0; //3333.0;
float e_steps_per_unit = 33.33*16;//volumetric //533.28
//float e_steps_per_unit = 580.0;
float max_feedrate = 18000.0;

//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 = false;
const bool DISABLE_E = false;

const bool INVERT_X_DIR = false;
const bool INVERT_Y_DIR = false;
const bool INVERT_Z_DIR = true;
const bool INVERT_E_DIR = false;

//Endstop Settings
const bool ENDSTOPS_INVERTING = true;
const bool min_software_endstops = false; //If true, axis won't move to coordinates less than zero.
const bool max_software_endstops = false;  //If true, axis won't move to coordinates greater than the defined lengths below.
const int X_MAX_LENGTH = 200;
const int Y_MAX_LENGTH = 200;
const int Z_MAX_LENGTH = 70;

#define BAUDRATE 57600
//#define BAUDRATE 115200
//#define BAUDRATE 19200

#endif