hi, I would like to map a non-linear MAF sensor (bosch 0281002613) how could I do?
I am a young student with arduino, I see it complicated for my skills .....
Is there an air mass sensor with linear response?
Another way would be to enter the sensor's calibration data into Excel and use Excel's curve-fitting functions to attempt to find a formula that gives a "good enough" approximation over the range of interest.
But, really, how hard can this (multiMap) be?
// out[] holds the output values
int out[] = {150,140,130,120,110,100, 90, 80, 70, 60, 50, 40, 30, 20}; //enter your own numbers
// in[] holds the measured analogRead() values
// note: the in[] array should have increasing values
int in[] = { 90, 97,105,113,124,134,147,164,185,218,255,317,408,506}; // enter your own numbers
int val = analogRead(A0);
int airFlow = multiMap(val, in, out, 14);// replace 14 with your number of data points
brugola:
I am a young student with arduino, I see it complicated for my skills .....
Surely being a student means you should be in a learning frame-of-mind?
sure, I'm thinking about it .....