Hi, I am currently designing a project where I need to take a sample from one of the ADC's on my arduino board every 3 seconds. I need to save 200 samples (i.e. 10 minutes worth) which are sent back to a PC once they are requested.
the problem I have is that the ADC resolution is 10-bit. I initially thought it was 8-bit so I defined an array of type byte with 200 locations. My questions is, is there anyway to define memory in 10-bit words or must I use type int? (Which I presume allocates way more bits than actually required?) I am worried that I may not have enough memory for other parts of the program.
Alternatively, if I cannot allocate the memory more economically, is there a way to ignore the 2 lsb's of the 10-bit sample and still use a byte of memory for each sample at reduced resolution.
Thanks for any ideas