This calculator converts between analog voltage values and their digital representations (ADC values) for microcontrollers and digital systems.
Voltage from ADC Value: \[ \text{Voltage} = \left( \frac{\text{ADC Value}}{2^{\text{Resolution}} - 1} \right) \times V_{\text{ref}} \]
ADC Value from Voltage: \[ \text{ADC Value} = \left( \frac{\text{Voltage}}{V_{\text{ref}}} \right) \times (2^{\text{Resolution}} - 1) \]
Example 1: For a 10-bit ADC with Vref of 5V, an ADC value of 512 represents a voltage of approximately 2.5V.
Example 2: For a 12-bit ADC with Vref of 3.3V, a voltage of 1.65V would give an ADC value of 2048.