diff options
author | Sumeet Koli | 2018-06-27 12:54:12 +0530 |
---|---|---|
committer | Sumeet Koli | 2018-06-27 12:54:12 +0530 |
commit | 773e2f1fcd71c2a6a857ca5ad6fea748b0962d98 (patch) | |
tree | 7a9f05d07acf2d7d683ca89e46ffffe12ee471f1 /Firmware/Arduino/pidmata3 | |
parent | fabb419af36a7085b899a4df920641ead1a7396b (diff) | |
download | OpenModelicaEmbedded-773e2f1fcd71c2a6a857ca5ad6fea748b0962d98.tar.gz OpenModelicaEmbedded-773e2f1fcd71c2a6a857ca5ad6fea748b0962d98.tar.bz2 OpenModelicaEmbedded-773e2f1fcd71c2a6a857ca5ad6fea748b0962d98.zip |
Bugs fixed
Diffstat (limited to 'Firmware/Arduino/pidmata3')
-rw-r--r-- | Firmware/Arduino/pidmata3/pidmata3.ino | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Firmware/Arduino/pidmata3/pidmata3.ino b/Firmware/Arduino/pidmata3/pidmata3.ino index 01a4710..3cfadbc 100644 --- a/Firmware/Arduino/pidmata3/pidmata3.ino +++ b/Firmware/Arduino/pidmata3/pidmata3.ino @@ -28,11 +28,11 @@ #include <Firmata.h> #include <AutoPID.h> -//Comment the line below, "#define PID", if you are not using PID else uncomment it and follow further instructions. +//Comment the macro defined below "#define PID" if you are not using PID, else uncomment it and follow further instructions. #define PID //------------PID values---------------- -// Pin 6 - setPoint (input value) +// Pin 6 - setPoint (input value) // Pin 5 - feedback (input value) // Pin 15 - control (output value) @@ -40,14 +40,14 @@ //If you use both real will be prefered //#define REAL_INPUT // This line define analog pin for read values from real sources -#define AREAD_PIN A1 +#define AREAD_PIN A2 #define PID_OUTPUT_MIN -512.0 #define PID_OUTPUT_MAX 512.0 -#define PID_KP 15 -#define PID_KI 10 -#define PID_KD 10 +#define PID_KP 5 +#define PID_KI 3 +#define PID_KD 3 #define PID_BANG_BANG 40 #define PID_INTERVAL 100 |