#### Maverickmax

##### Advanced Member level 1

**ADC calculation - help**

Hi

I have been doing a small experiment as I get the reading such as 920 from ADC channel when the input voltage is 680V. Then I get the value - 82 when the voltage is 0V.

920 - 680V

82 - 0V

How to convert between 920 and 82 into 680V and 0V respectively for my code?

So far I have done a little calculation:

680/920 = 0.739

so 0.739*920 will yields 680V

but when I try to calculate 0.739 * 82 and I would expect OV but I get 60.6V

So I have done summat wrong with my calculation. Any help would be appreicated

Maverickmax