Hi i am new in c programming, and now i have a problem/question.
My ADC will only show 4092mV althoug i measure on the 5V VCC point, and i came down to that it has something to do with this line of code:
ADC_result = (ADC_result * (5000 / 1023));
Can it realy be right that i need to use a float/double as sub calculations to get the right result?
I am curretly running the code on a atmega16 and i would like to keep it simple and low on ressources