Projects / Ideas / Oversampling to gain extra bits

Oversampling to gain extra bits

IntermediateAnalog CircuitsIdeaReviewed
In short

How do you build an oversampling to gain extra bits?

By adding up many readings of a slightly noisy input and dividing, the Nano's 10-bit converter can give a result with finer steps than its single readings, and you can compare with and without a little added noise. A clever trick that shows how averaging buys resolution. You need Arduino Nano, Potentiometer 10 kΩ, Resistor 10 kΩ, Ceramic Capacitor 100 nF, SSD1306 OLED Display, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

Level
Intermediate
Time
About 90 min
Parts
7
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Get finer readings from a 10-bit converter.

How to build it

  1. Read a steady voltage from a pot
  2. Add 16 readings and shift to get 12 bits
  3. Compare with a single reading
  4. Add a little noise with a pin and resistor
  5. Show both values on the screen

Related projects

Common questions

What parts do I need for the oversampling to gain extra bits?

Arduino Nano, Potentiometer 10 kΩ, Resistor 10 kΩ, Ceramic Capacitor 100 nF, SSD1306 OLED Display, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the oversampling to gain extra bits take to build?

About 90 minutes for a intermediate maker.