I'm building one of those DIY reflow ovens from a toaster oven, a K-type thermocouple, a MAX6675 breakout board, a SSR and an Arduino.
I'm having a lot of trouble getting a reliable temperature measurement from the MAX6675. With the Arduino powered (through a USB connection) but the mains part of the circuit disconnected, I get a good temperature measurement. But as soon as I plug the mains in, it goes haywire. It's not even particularly predictable; most often, it just reads zero, but sometimes it reads about 750 degrees, other times it wanders up and down between zero and a hundred degrees or so.
It's a bit hard to tell, but it seems that just plugging the earth pin of the mains circuit in is enough to cause this. I guess I have a noise problem, and since it seems to be the earth connection that does it, I guess it's a ground loop.
The thermocouple is a screw-in probe type, which I've insulated from the body of the oven using kapton tape. I've connected the braided shield to the Arduino's earth; on the scope, this improves the noise situation considerably, though it doesn't seem to make much difference to the measurement. Initially I had the MAX6675 mounted fairly close to the SSR, but have since moved this, again without it making much difference.
What else should I try? Would connecting the arduino's earth to mains earth be a good move? (The Arduino is being powered from a laptop that probably doesn't have a very good earth).
Thanks for any suggestions!
Update
FWIW, here's what the 'scope shows between T+ and T-:
The peaks every 40ms look fairly nasty, but it's not immediately obvious to me what would cause them. There is a solid state relay nearby, but it's just off at this stage, so wouldn't expect switching noise from it.