MaxN68, while you are here...do you maintain/modify any of the codeMaxN68 said:The correct code is
void load_pid_settings () {
myPID.SetTunings(r_set(1) - 100, (double)((r_set(2) - 100.00) / 250.00), r_set(3) - 100);
WindowSize = r_set(5);
myPID.SetSampleTime(r_set(4) * 250);
}
This section call the parameter from EEPROM and set the PID before start the elecrical Mash process.
I have downloaded this code from public dropbox space
While playing with Lael's kit I found an error in the LCD20x4_ENG.h file which causes the PID settings to show an invalid character at the end of the line on every setting except the first, as the first settings (Electric/Gas) are offset by one too many chars (current cursor offset is 10,2 but needs to be 9,2 to make the Gas and Electric strings stop at the same location as the other settings). Looking at the history of the file it seems it was modified back in Feb and changed from (9, 2) to (10, 2).
e.g.
void PidSet(int pidSet, byte i){
if (i == 0) {
lcd.setCursor(9, 2); //<- This line was previously lcd.setCursor(10, 2);