I am currently working on a project where I control a 220 ac heater with an arduino. The temperature is read through a thermistor and a pid control control a triac to heat the heating element.
I have used the pid autotune function with my 3d printer and find it was very convenient. I am now wondering how can I implement this functionality to my project
I have tried to read marlin firmware to "extract" the bit of code I need but this program is way too massive and complex for me to understand what's going on.
Thanks for your reply both of you, I will do a recap as I did not explain the project.
Have you hever heard of the "perfect egg" ?
It is a way of cooking an egg, this technique is quite complex as you must keep the water temperature at precisely 64°C during around 45 min. It is not 63, nor 65, it is exactly 64. So I thought it would be fun to develop a small arduino program for this application.
You need a stirred heated and insulated water bath to get a steady temperature across the egg .
You also need a precision RTD and hi spec amplifier .
PID can be difficult due to system lags , which will make the response time to change very slow if it is to be stable. Build it and try on/off control first .
I would check the figures you have , the spec you want is very tight - given the variation in egg size and shape … I’ve googled the subject , no figures for how they do it or what with .
The accuracy will only be as good as the quality of the surrounding electronic circuitry needed for you to get a measurable output.
You will need to calibrate your circuit when you have built it, do you have a thermometer that is accurate to the tolerances you need to independently check your temp reading?
Also make sure your circuit and AtoD can work at that precision.
Just when one thinks they have heard everything,,,,
I foresee a problem due to the latency (as already mentioned) between detecting the temp, turning on/off the heat and allowing for the heat buildup in the heater to dissipate.
Then same same in reverse......