How e-tinkers/esp32-adc-calibrate works
This is a small ESP32 firmware project for measuring ADC non-linearity, generating a device-specific lookup table, and applying that table in a separate sketch. The generator sweeps the DAC, samples the ADC, interpolates measurements, constructs the correction table, and prints it over Serial for copying into the example application. The example’s implementation was not sampled, so its internal behavior and wiring are shown only as documented in the README.
Main entry points: main.cpp DAC sweep · esp32_adc_lut_example.ino LUT example sketch
Components 10
LUT generation
- DAC sweep
src/main.cpp - ADC sampling
src/main.cpp - Measurement interpolation
src/main.cpp - Correction LUT generation
src/main.cpp - Serial table output
src/main.cpp
LUT application
- LUT example sketch
examples/esp32_adc_lut_example.ino - Calibrated readings
Other components
- Operator
- ESP32 DAC
- ESP32 ADC
Connections 9
- Operator → DAC sweep: starts
README.md - DAC sweep → ESP32 DAC: sets output
src/main.cpp - ADC sampling → ESP32 ADC: reads samples
src/main.cpp - DAC sweep → ADC sampling: takes readings
src/main.cpp - ADC sampling → Measurement interpolation: supplies measurements
src/main.cpp - Measurement interpolation → Correction LUT generation: feeds values
src/main.cpp - Correction LUT generation → Serial table output: prints table
src/main.cpp - Operator → LUT example sketch: copies table
README.md - LUT example sketch → Calibrated readings: applies LUT
README.md