Hi,
I have a non-linear (so I can't form a simple expression) transducer, I am reading a voltage from the ADC and now wish to do a lookup or search an array to retrieve its corresponding value. It's not large but I'm unsure as to what if a lookup table is best nor how to implement it. I've had a look around and can't find anything simple.
ADC = 1.45 (Vin)......Find its greater than 1.4000 so return 32
#DATA
TC, Vin
25 1.9000
26 1.7700
28 1.6500
30 1.5100
32 1.4000....