BT San Technology

19 November 2026

ADC, PWM and calibration: getting sensor readings that mean something

2 min read · Automation

Illustration: hands turning a calibration knob, a microcontroller board, a fan and an oscilloscope
AI-generated illustration

An ADC turns a voltage into a digital value. The result depends on the reference, the resolution, the signal source and noise. PWM is a signal that switches on and off according to its duty cycle. It is not a steady analog voltage from a DAC. Turning a number into a temperature or a voltage therefore needs an equation, units and a check against a reference instrument.

What this covers and the order of the experiments

  1. Check the input voltage range, the reference source and the resolution the core is actually set to use.
  2. Read several levels and note the values from the reference instrument, to find the error.
  3. Choose a filter by weighing stability against response time. Do not average so much that you hide a fault.
  4. Mark out-of-range readings, a disconnected wire and unusable values separately from normal values.

Exercise and application example

Exercise: use a test signal source that stays within the board's safe range. Build a calibration table, then show each value with its unit and a validity status.

Limits and what else to check

The number of bits of resolution is not the same as real accuracy. Using PWM with a filter circuit must be designed around the load. Do not assume that analogWrite behaves like a DAC on every board.

Manufacturer documents worth reading

  • Arduino Hardware
  • Arduino UNO R3/R4 comparison
  • Arduino GIGA R1 WiFi

References

  1. Arduino Hardware (accessed 2026-11-21)
  2. Arduino UNO R3/R4 comparison (accessed 2026-11-21)
  3. Arduino GIGA R1 WiFi (accessed 2026-11-21)

Add us on LINE

Scan with the LINE app on your phone

QR code to add LINE @Bankoos

LINE ID: @Bankoos

Open LINE on this computer