Daniel Wood
Member
Hi guys
I have a working circuit at the moment measuring a sensor and I am using the arduino map function to calibrate my results
float map(float x)
{
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
Everything works fine but there are some non-linear regions to my sensor which is throwing off the results, does anyone know of a version of this method of calibration that can use arrays as inputs so I can do a 10 to 20 point calibration?
I have a working circuit at the moment measuring a sensor and I am using the arduino map function to calibrate my results
float map(float x)
{
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
Everything works fine but there are some non-linear regions to my sensor which is throwing off the results, does anyone know of a version of this method of calibration that can use arrays as inputs so I can do a 10 to 20 point calibration?
Last edited: