summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware/configuration.h
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-04-10 21:58:56 +0200
committerkliment <kliment.yanev@gmail.com>2011-04-10 21:58:56 +0200
commit31936a2caabdd0d10a3332ca10ca83fb43d96ad8 (patch)
tree0dec6628f67ed5b722d5f0b027db3de6dbd4f2cf /Tonokip_Firmware/configuration.h
parentd8f195bd3f12b5fc7ebe2b6af65582008fa19c2f (diff)
Experimental PID support. Use with caution.
Diffstat (limited to 'Tonokip_Firmware/configuration.h')
-rw-r--r--Tonokip_Firmware/configuration.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/Tonokip_Firmware/configuration.h b/Tonokip_Firmware/configuration.h
index 704fdae..5e12295 100644
--- a/Tonokip_Firmware/configuration.h
+++ b/Tonokip_Firmware/configuration.h
@@ -15,6 +15,18 @@ float min_units_per_second = 35.0; // the minimum feedrate
// THERMOCOUPLE SUPPORT UNTESTED... USE WITH CAUTION!!!!
const bool USE_THERMISTOR = true; //Set to false if using thermocouple
+//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
+
+
// 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)
@@ -25,7 +37,7 @@ float x_steps_per_unit = 80.376;
float y_steps_per_unit = 80.376;
float z_steps_per_unit = 3200/1.25;
float e_steps_per_unit = 16;
-float max_feedrate = 18000;
+float max_feedrate = 200000; //mmm, acceleration!
//float x_steps_per_unit = 10.047;
//float y_steps_per_unit = 10.047;