Ok .. here is the scenario, and I am an Arduino newbie but I have been a coder guy for some time.
What I have is a device that I am getting data from (voltage data) to the Arduino Analog A0 port. So I get a value in the range of 0 to 1023 from the Arduino.
But here is my issue ... for each of those 1024 items I have a corresponding other value I need to look up. For example (and these are fake numbers) I just need to find the best way to code this lookup part.
So it would be something like this with 1024 items.
ADC, Raw Data
ADC 0, 7
ACD 1, 10
ADC 2, 14
ADC 3, 17
..
ADC 1022, 822
ADC 1023, 825
So I need to look up the Raw Data part for the corresponding ADC value ?
I do not have live true data for possibly a few days (likely at least Friday) but the concept is exactly the same as above. I am expecting the raw data values to be in the range from 20 to 140 but do not know yet.
So what is the best way .. Arduino wise to get the data ?
I should note that I only need to display the data to my LCD screen once a second. So I will get the ADC value once a second and look up the Raw Data at that time and display it.
Thanks
Kevin

