Closed SmallpTsai closed 1 year ago
Hi, the function maps the measured ADC value to the calibrated temperature. For example, CalTemp[0] is the calibrated temperature at a measured ADC value of 200. This means that the value 200 must be mapped exactly to this temperature and not the other way around, which is the case here.
hi,
CalTemp[0] is the calibrated temperature at a measured ADC value of 200
Ok, I did misunderstand the calibration process.
I thought the process is:
But the correct process is:
Thanks for clarification!
Hello:
I found below lines interesting: https://github.com/wagiminator/ATmega-Soldering-Station/blob/master/software/original/sources/SolderingStation2_u8glib_v1.9.ino#L392
according to arduino.cc, map syntax are
map(value, fromLow, fromHigh, toLow, toHigh)
so, should it be
map (RawTemp, 21, CalTemp[CurrentTip][0], 0, 200);
? please correct me If I misunderstand the map logic here.Thanks.