I am using the MAX31855 breakout board with the Arduino Nano.
I have used the PID Library by Brett Beauregard to implement a ramp - soak controller for an oven.
The themocouple have is metal sheathed and K type and has a 2 metre cable and I have a 0.1uf cap at the thermocouple connector just as mentioned by Adafruit to reduce noise from the sensor.
The issue I have in sometimes the temperature reading (in celcius) suddenly goes to zero (or near zero) and then returns back to its value and after this happens the PID output just stays 0 so the relay just stays off and doesn't recover from there.
Is there Anyone else facing this kind of problem with the MAX31855 or PID, I would be happy to hear how they solved it.
I am doing neither of those.
I have ran the controller on 2 locations.
At home the readings are very stable the problem occurs once in an hour or maybe 2 hours where as on site the problem is more severe 1 out of every 10 - 20 readings is near zero.
My power supply is also transformer based and but there is a cable connected to the pc usb port where data is being sent to the PC.
Would you still recommend averaging in this case?
When you say bogus values do you mean out of range values, do I have to check if my input is in range before calling compute?
I had ordered a ungrounded theromocouple. Don't know if the manufacturer made some mistake. I also rechecked again by checking each wire of the thermocouple for connection against the metal body however it's not showing any connectivity on the multimeter.