I have a project requiring 3 low resolution measurements at say 5 second intervals. More importantly I need to sample at 12 bit resolution another input at precise 2ms intervals. A couple of questions.
1. Should I use the ADC library by Pedvide
2. Can I/Should I separate the low and high resolution to the 2 ADC channels
3. For the high resolution does this make any sense: (in plain English) Without going into detail there are occasions when the interval will be more than 2ms.
4. How many readings am I likely to get during say the 2ms interval
dim a counter
dim total value
do until next interval
total value += analog read
increment counter
loop
averaged value = total value/counter
thanks
1. Should I use the ADC library by Pedvide
2. Can I/Should I separate the low and high resolution to the 2 ADC channels
3. For the high resolution does this make any sense: (in plain English) Without going into detail there are occasions when the interval will be more than 2ms.
4. How many readings am I likely to get during say the 2ms interval
dim a counter
dim total value
do until next interval
total value += analog read
increment counter
loop
averaged value = total value/counter
thanks