Hi, I'm controlling a curing oven with an Arduino and want to improve the way the temperature cycle is implemented.
Right now, I have a function with if statements that checks the elapsed minutes and returns a target temperature. It works but I'm looking for a method to conveniently store and call different curing cycles.
I'm relatively new to programming and think there must be a way to store this in an array or struct or something else. Can you push me in the right direction?
A cycle could look like this. Changes in temperature should be linear.
minutes | temperature °C
0 | 20
30 | 70
120 | 70
150 | 120
230 | 120
260 | 20