WebServer + 3d printer
configuration.h@0:21b85706ec2f, 2017-02-04 (annotated)
- Committer:
- Sergunb
- Date:
- Sat Feb 04 18:15:30 2017 +0000
- Revision:
- 0:21b85706ec2f
nothing
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Sergunb | 0:21b85706ec2f | 1 | #ifndef PARAMETERS_H |
Sergunb | 0:21b85706ec2f | 2 | #define PARAMETERS_H |
Sergunb | 0:21b85706ec2f | 3 | |
Sergunb | 0:21b85706ec2f | 4 | // THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!! |
Sergunb | 0:21b85706ec2f | 5 | const bool USE_THERMISTOR = true; //Set to false if using thermocouple |
Sergunb | 0:21b85706ec2f | 6 | |
Sergunb | 0:21b85706ec2f | 7 | // Calibration formulas |
Sergunb | 0:21b85706ec2f | 8 | // e_extruded_steps_per_mm = e_feedstock_steps_per_mm * (desired_extrusion_diameter^2 / feedstock_diameter^2) |
Sergunb | 0:21b85706ec2f | 9 | // new_axis_steps_per_mm = previous_axis_steps_per_mm * (test_distance_instructed/test_distance_traveled) |
Sergunb | 0:21b85706ec2f | 10 | // units are in millimeters or whatever length unit you prefer: inches,football-fields,parsecs etc |
Sergunb | 0:21b85706ec2f | 11 | |
Sergunb | 0:21b85706ec2f | 12 | //Calibration variables |
Sergunb | 0:21b85706ec2f | 13 | float x_steps_per_unit = 80.376; |
Sergunb | 0:21b85706ec2f | 14 | float y_steps_per_unit = 80.376; |
Sergunb | 0:21b85706ec2f | 15 | //float y_steps_per_unit = 6.18; |
Sergunb | 0:21b85706ec2f | 16 | //float z_steps_per_unit = 6667.184; |
Sergunb | 0:21b85706ec2f | 17 | //16*200/1.25 = 2560 |
Sergunb | 0:21b85706ec2f | 18 | float z_steps_per_unit = 2560.0; //3333.0; |
Sergunb | 0:21b85706ec2f | 19 | float e_steps_per_unit = 33.33*16;//volumetric //533.28 |
Sergunb | 0:21b85706ec2f | 20 | //float e_steps_per_unit = 580.0; |
Sergunb | 0:21b85706ec2f | 21 | float max_feedrate = 18000.0; |
Sergunb | 0:21b85706ec2f | 22 | |
Sergunb | 0:21b85706ec2f | 23 | //For Inverting Stepper Enable Pins (Active Low) use 0, Non Inverting (Active High) use 1 |
Sergunb | 0:21b85706ec2f | 24 | const bool X_ENABLE_ON = 0; |
Sergunb | 0:21b85706ec2f | 25 | const bool Y_ENABLE_ON = 0; |
Sergunb | 0:21b85706ec2f | 26 | const bool Z_ENABLE_ON = 0; |
Sergunb | 0:21b85706ec2f | 27 | const bool E_ENABLE_ON = 0; |
Sergunb | 0:21b85706ec2f | 28 | |
Sergunb | 0:21b85706ec2f | 29 | //Disables axis when it's not being used. |
Sergunb | 0:21b85706ec2f | 30 | const bool DISABLE_X = false; |
Sergunb | 0:21b85706ec2f | 31 | const bool DISABLE_Y = false; |
Sergunb | 0:21b85706ec2f | 32 | const bool DISABLE_Z = false; |
Sergunb | 0:21b85706ec2f | 33 | const bool DISABLE_E = false; |
Sergunb | 0:21b85706ec2f | 34 | |
Sergunb | 0:21b85706ec2f | 35 | const bool INVERT_X_DIR = false; |
Sergunb | 0:21b85706ec2f | 36 | const bool INVERT_Y_DIR = false; |
Sergunb | 0:21b85706ec2f | 37 | const bool INVERT_Z_DIR = true; |
Sergunb | 0:21b85706ec2f | 38 | const bool INVERT_E_DIR = false; |
Sergunb | 0:21b85706ec2f | 39 | |
Sergunb | 0:21b85706ec2f | 40 | //Endstop Settings |
Sergunb | 0:21b85706ec2f | 41 | const bool ENDSTOPS_INVERTING = true; |
Sergunb | 0:21b85706ec2f | 42 | const bool min_software_endstops = false; //If true, axis won't move to coordinates less than zero. |
Sergunb | 0:21b85706ec2f | 43 | const bool max_software_endstops = false; //If true, axis won't move to coordinates greater than the defined lengths below. |
Sergunb | 0:21b85706ec2f | 44 | const int X_MAX_LENGTH = 200; |
Sergunb | 0:21b85706ec2f | 45 | const int Y_MAX_LENGTH = 200; |
Sergunb | 0:21b85706ec2f | 46 | const int Z_MAX_LENGTH = 70; |
Sergunb | 0:21b85706ec2f | 47 | |
Sergunb | 0:21b85706ec2f | 48 | #define BAUDRATE 57600 |
Sergunb | 0:21b85706ec2f | 49 | //#define BAUDRATE 115200 |
Sergunb | 0:21b85706ec2f | 50 | //#define BAUDRATE 19200 |
Sergunb | 0:21b85706ec2f | 51 | |
Sergunb | 0:21b85706ec2f | 52 | #endif |