johaniskandar
Newbie level 3
please help, how solve the fluctuated adc value using codevisionavr? i will just to display the average value of it on lcd 16x2. thx very much
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
int i ;
long sum = 0;
for(i = 0; i < "your Limit say 50"; i++)
array[i] = read_adc();
for(int x = 0; x < i; x++ )
{
sum = array[x] ;
}
average =sum / i;