hi chandu, etferrari
Attached a very simple use of chords. I hope it explaines the principle.
An easy way to generate your table values, is to write a VB [or equiv] program that evaluates the non linear formula values and prints them into a text box.
Copy/Paste and Edit into your coding.
If you are using a PIC with an 10 bit ADC value, most likely 255 chords, table length should be OK.
Makes the 'within range' comparisons easier if a byte is used.
If this does not explain well enough, let me know.
Eric
Yes BeeBop, thats the idea,