← Back to Home

AD measurement with ESP32 and display

PROTOTYPE

Task :

Tracking the movement of a cylinder and displaying measured data on a graph.

Implementation :

The ESP32 WROOM32D microcontroller measures the movement of a cylinder equipped with a position sensor as a function of time, using its internal 12-bit AD converter corrected with a calibration table.

Measurement parameters :

  • AD measurement resolution : 12 bit
  • Time between 2 measurements : 4 ms .. 1000 ms
  • Number of measurements : max. 18000
  • Start point search : 0/1 (yes/no)
  • Start point min. deviation : 1...4095 AD value
  • Start point search duration : 0 .. 60 sec

The measurement series can be started by pressing a button or by a START command via the serial port after presetting the measurement parameters. When all measurements are done, the measurement stops. Measurement data can be saved to a txt file from the serial port monitor window, which, when imported into Excel, displays the data on a graph. By sampling the correct movement of the cylinder, a reference graph is created. By comparing the reference with a data series recorded at a later time, conclusions can be drawn about the cylinder's wear, condition, and suitability for the task.

Image


© 2026 DevProt Engineering