Shop by category
Shop all componentsAnalog circuits
LSB = Vref ÷ 2^bitsV = reading × Vref ÷ 2^bitsReading = floor(V ÷ LSB)Arduino Uno, 10-bit, 5 V: LSB = 5 ÷ 1024 = 4.88 mV, so analogRead() = 512 means 2.50 V. ESP32 12-bit at 3.3 V: 0.806 mV per step.
An analogue-to-digital converter splits its reference voltage into 2ⁿ steps. More bits mean finer steps: a 10-bit ADC sees 1024 levels, a 12-bit ADC 4096. The smallest change it can detect is one LSB.
Accuracy is a different matter from resolution. The ESP32’s built-in ADC is non-linear near its ends, and noise usually costs a bit or two, so average several samples. For precise measurements, add an external ADC such as the ADS1115, and keep inputs within 0 V to Vref with a divider.
Arduino Uno has a 10-bit ADC, so with a 5 V reference one step is 5 ÷ 1024 ≈ 4.9 mV.
V = reading × Vref ÷ 1024 on a 10-bit ADC. A reading of 512 at 5 V is 2.5 V.
Its 12-bit ADC is non-linear near 0 V and the top of its range. Keep inputs roughly between 0.15 V and 2.4 V or use calibrated readings.
LSB = Vref ÷ 2^bits; V = reading × Vref ÷ 2^bits; Reading = floor(V ÷ LSB).
Arduino Uno, 10-bit, 5 V: LSB = 5 ÷ 1024 = 4.88 mV, so analogRead() = 512 means 2.50 V. ESP32 12-bit at 3.3 V: 0.806 mV per step.
Geekobot builds that use it include Pico servo controlled by a knob (MicroPython), Control a servo with a knob, Servo sweep: control an angle and Seven-segment display lab. Each has the full parts list, wiring and code.
Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators