Thank you, simple and elegant!
To prepare for more heater elements I have made it a little more generic. And for me it is easier to think of the added power in the 0 - 100% range. . .
void setup()
{
//tell the PID to range between 0 and 100
myPID.SetOutputLimits(0, 100);
}
void loop()
{
if (Output > 80)
{
digitalWrite(Heater1200Pin, HIGH);
digitalWrite(Heater800Pin, HIGH);
}
else
if (Output > 60)
{
digitalWrite(Heater1200Pin, HIGH);
digitalWrite(Heater800Pin, LOW);
}
else
if (Output > 40)
{
digitalWrite(Heater1200Pin, LOW);
digitalWrite(Heater800Pin, HIGH);
}
else
{
digitalWrite(Heater1200Pin, LOW);
digitalWrite(Heater800Pin, LOW);
}
}
But what about the level/border to enable the full power, set to 80% in my example code?
Will the output ever be 100?
This is still confusing me, please help!