Если нужны другие напряжения то можно воспользоваться формулой ниже (правда на свой страх и риск)
* Vin : input voltage (the voltage we try to meter)PHP код:R1 R2
Vin ----/\/\/\----*----/\/\/\---- GND
|
| Vout
|
ANALOG PIN
* Vmax : the maximum value of the input voltage
* Vout : the output voltage (the Vin remapped to 0 .. 1.1V)
Choose R1 and R2 CAREFULLY according to the following rule:
R1 = R2 x 1.1 / (Vmax - 1.1)
R2 = R1 x (Vmax - 1.1) / 1.1
A typical configuration is R1 = 1k and R2 = 4k. It assumes Vmax = 5.5V.
источник http://accrochages.drone.ws/en/node/125




)
Ответить с цитированием