Sergey Pastor / main

Dependents:   Nucleo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers configuration.h Source File

configuration.h

00001 #ifndef PARAMETERS_H
00002 #define PARAMETERS_H
00003 
00004 // THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!!
00005 const bool USE_THERMISTOR = true; //Set to false if using thermocouple
00006 
00007 // Calibration formulas
00008 // e_extruded_steps_per_mm = e_feedstock_steps_per_mm * (desired_extrusion_diameter^2 / feedstock_diameter^2)
00009 // new_axis_steps_per_mm = previous_axis_steps_per_mm * (test_distance_instructed/test_distance_traveled)
00010 // units are in millimeters or whatever length unit you prefer: inches,football-fields,parsecs etc
00011 
00012 //Calibration variables
00013 float x_steps_per_unit = 80.376; 
00014 float y_steps_per_unit = 80.376;
00015 //float y_steps_per_unit = 6.18;
00016 //float z_steps_per_unit = 6667.184;
00017 //16*200/1.25 = 2560
00018 float z_steps_per_unit = 2560.0; //3333.0;
00019 float e_steps_per_unit = 33.33*16;//volumetric //533.28
00020 //float e_steps_per_unit = 580.0;
00021 float max_feedrate = 18000.0;
00022 
00023 //For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1
00024 const bool X_ENABLE_ON = 0;
00025 const bool Y_ENABLE_ON = 0;
00026 const bool Z_ENABLE_ON = 0;
00027 const bool E_ENABLE_ON = 0;
00028 
00029 //Disables axis when it's not being used.
00030 const bool DISABLE_X = false;
00031 const bool DISABLE_Y = false;
00032 const bool DISABLE_Z = false;
00033 const bool DISABLE_E = false;
00034 
00035 const bool INVERT_X_DIR = false;
00036 const bool INVERT_Y_DIR = false;
00037 const bool INVERT_Z_DIR = true;
00038 const bool INVERT_E_DIR = false;
00039 
00040 //Endstop Settings
00041 const bool ENDSTOPS_INVERTING = true;
00042 const bool min_software_endstops = false; //If true, axis won't move to coordinates less than zero.
00043 const bool max_software_endstops = false;  //If true, axis won't move to coordinates greater than the defined lengths below.
00044 const int X_MAX_LENGTH = 200;
00045 const int Y_MAX_LENGTH = 200;
00046 const int Z_MAX_LENGTH = 70;
00047 
00048 #define BAUDRATE 57600
00049 //#define BAUDRATE 115200
00050 //#define BAUDRATE 19200
00051 
00052 #endif