I have this schematic, with an power supply of 24V and I want to read this voltage with my arduino so i need a voltage divider, the formula for voltage divider is Vout = (Vin * R2)/R1+R2, so with my data, Vout is 2.824V (24 * 10000)/75000+10000.

So what is the reverse formula to convert 2.824V to 24V, for printing on my serial monitor?


  • \$\begingroup\$ (24 * 10000)/75000+10000 is equal to 10003.2 \$\endgroup\$
    – jsotola
    Nov 17, 2019 at 18:06

2 Answers 2


It will look something like this:

$$V_{OUT} = ADC\cdot \frac{V_{REF}}{1024} \cdot (1 + \frac{R_1}{R_2}) $$

Where \$ADC\$ is a value (between 0...1023) read by Arduino ADC. and \$V_{ref}\$ is an Arduino ADC reference voltage.

Or to answer your question directly

$$V_{CC} = V_{ADC} \cdot (1+\frac{R_1}{R_2}) = 2.824V \cdot8.5 = 24V $$




Reverse function is



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.