5115

The first version of this example is from 2018. My wife wanted to cook vegetables at low temperatures. The aim is to keep the temperature constantly low, i.e. cook at a temperature of around 60/80°C We discussed several variants of cooking monitoring to achieve the objective and we adopted the solution: Collect a basic electric plate. Combine an Arduino Nano, a thermocouple and its MAX6675, a potentiometer (for the setpoint), a 2X16 LCD (I2C equiped with PCF) and an SSR 10DA solid state relay to control

For this Christmas, my wife ordered a version to handle two plates.
I wrote the code using the same 2x16 LCD display
The display is overloaded I am told, so, as I had a few logger parts left (TFT3"4 Arduino Mega), I also wrote a code for this version which I chose to finalize
Brief:
Electric plate management project by PID regulation Version V1. 
2 Thermocouple + Max 6675   
1 TFT3"5 LCD display   
2 Setpoint potentiometers (temperature to be reached)    
Two electric hotplate management version  
NOTA SEE :
Version V3 of the Arduino Mega 2560-based PID cooking controller represents 
a significant upgrade to the project. The entire codebase has been redesigned and optimized—for sensor readings, display handling, and PID computation alike.
use PID-1.2.0 and MyAff35 V3 library included in the zip.
Fashion compilation show all = Zero! code fast and light

In this code, we configure the controller to use conservative tuning parameters (other code idem)  when we are close to the set point and aggressive tuning parameters when we are further from it.   
Display for cooking 1 and 2:   
-Temperature measured by the thermocouple   
-Setpoint, temperature value to reach   
-Pwm in percentage (0->100 for 0->255)  
-Bar graph for pwm  
Security monitoring:
We check Bit 2 (thermocouple attached) and Bit 15 (+- sign) to validate sensor fault 
A lock via (#define VERROU_TEMP_MAX) stops the PWM output if the Max temperature threshold is exceeded.
In this code, it is positioned at 250°C carrying out monitoring of the plate (maximum average temperature 180° 190°) 
To unpack today, some code, and looking a little... to test quickly before I come back to bring you additional elements on connections and other information.

Merry Christmas to everyone
Note 
how to get a "waf" when it seems necessary. :)
soon the codes in mono and duo nano+lcd 2x16 mode but forgive me, it's Christmas...

La version V3 du contrôleur de cuisson PID basé sur l’Arduino Mega 2560 constitue une avancée majeure du projet. Le code a été entièrement repensé et optimisé, tant pour la lecture des capteurs que pour l’affichage et le calcul du PID.

Parmi les améliorations notables :
– Lecture plus rapide et plus précise du thermocouple grâce au bit-banding
– Calcul PID plus fluide et stable
– Affichage optimisé pour une meilleure réactivité et une ergonomie sans latence perceptible entre l'action sur le potentiomètre et la réponse à l'écran

« Madame m’a souvent fait remarquer la lenteur de l’affichage... Alors je m’y suis mis sérieusement — et maintenant, vous en profitez aussi ! »