Content originally posted in LPCWare by drvrh on Wed Jul 15 00:12:42 MST 2015
Hello,
I have a problem with a conversion ADC value, I get ADC value (int) from my ADC, but when I would like convert to voltage (float) I cannot.
I have get 0 after calculate and conversion.
ADC value get int number at 0 to 255.
Hello,
I have a problem with a conversion ADC value, I get ADC value (int) from my ADC, but when I would like convert to voltage (float) I cannot.
I have get 0 after calculate and conversion.
ADC value get int number at 0 to 255.

It is to do with the order of the conversion. Convertv vrednostADC to float first.
(((float) vrednostADC) * 3.3) / 4096.0