Home > Projects > Metering – Instrument Projects > SH1106 Voltage Display Reference: ADC Limits, Input Scaling and Module Verification

SH1106 Voltage Display Reference: ADC Limits, Input Scaling and Module Verification

Quick answer: In a voltage display, three different things get blamed as one: the analog input chain, the microcontroller’s ADC and the OLED module. They fail differently, and a display that shows a number proves none of them. Verify the module’s controller identity and the ADC’s documented limits separately before believing any reading.

Three layers, three kinds of uncertainty

The classic UNO R3 reference is explicit that analogRead uses a 10-bit ADC and identifies A0 through A5 as usable analog inputs. It also notes roughly 100 microseconds per read on ATmega boards and warns that this is not a bandwidth guarantee for a complete application.

The ATmega328P datasheet adds the electrical context. The ADC is 10-bit and its single-ended conversion is referenced to the selected VREF. It recommends a source impedance of approximately 10 kilohms or less and explains sample-and-hold charging limitations. It also cautions that absolute maximum ratings are stress limits, not guaranteed functional operating conditions.

None of that says anything about whether your display’s controller is the one you think it is. That is a separate verification problem, and it is answered by the module’s own documentation.

What each layer can and cannot tell you

Layer What it contributes What it cannot establish
Analog input chain A scaled, protected signal at the pin That the scaling matches your assumed range
ADC (ATmega328P) A 10-bit result referenced to VREF Accuracy beyond its documented limits
Source impedance Its effect on sample-and-hold Readings stay valid with a high-impedance source
OLED module A visual representation Controller identity or measurement truth
Display formatting Rounding and layout Anything about the underlying measurement

For related voltmeter references, see the Arduino voltmeter with OLED display guide and the four-channel LCD voltmeter guide.

An ordered approach

  1. Design input scaling and protection first. The measurement chain precedes the display; what reaches the pin defines everything downstream.
  2. Check source impedance against the datasheet guidance of approximately 10 kilohms or less, so sample-and-hold behavior does not corrupt the reading.
  3. Respect documented ADC limits. The 10-bit result is referenced to VREF, and absolute maximum ratings are stress limits, not operating conditions.
  4. Verify the OLED module’s controller identity from the module’s own documentation rather than a marketplace listing. Controller identity decides the driver, so confirm it before wiring or firmware.
  5. Match your driver to the confirmed controller. Identity decides firmware; guessing wastes debugging time.
  6. Separate numeric uncertainty from display formatting. A steady on-screen number reflects formatting, not measurement quality.
  7. Verify with a known low-voltage DC reference inside documented limits, and nowhere else.

Reader questions

How many counts does the ADC give me?

On the classic UNO R3 it is a 10-bit ADC, so the result is referenced to the selected VREF. That is the documented resolution, not a claim of accuracy.

Why do readings sag with a high-impedance source?

Because of sample-and-hold behavior. The ATmega328P datasheet recommends a source impedance of approximately 10 kilohms or less for this reason.

Can I simply connect anything below the maximum rating?

No. Absolute maximum ratings are stress limits, not guaranteed functional operating conditions, so design to functional limits rather than the stress ceiling.

How do I know my OLED is an SH1106?

Verify from the module’s own documentation. The controller identity should be confirmed, not assumed, and this guide does not assert a pinout for any particular breakout.

Documentation

Note: no build, calibration or code execution was performed. SH1106 panel and controller documentation was not reviewed for this reference, so no pinout is asserted, and any specific measurement range, wiring or library claim should be treated as unverified. This is not a substitute for a rated meter.


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top