Being a beginner, I apologize in advance for the naiveness of my question. I'm developping a cooling device using Peltier modules but the hardware isn't relevant to the question I'm asking.
I have no problem to read, map and export measures of temperature. I'm looking to make the arduino calculate sigmoid function with manually defined parameters:
1/(1+ exp((t- inflexion)/slope))
The idea is to make arduino compare the analog value measured and the "theoretical" value and adapt the analog command it is sending in order to lessen the difference between these two values.
I've looked into PID controller but weren't able to find a simple arduino project that could shed some light on how to implement it.
Any idead are very welcomed, I'll take any help I can get.