An algorithm to accurately determine the time constant of a circuit simplifies reading out resistive and capacitive sensors. However, implementing such an algorithm on low-cost, low-power microcontrollers requires overcoming hardware limitations, such as ADC noise, limited memory, and the lack of a floating-point unit. This work utilizes the Matrix Pencil Method (MPM) to estimate the time constant of a decaying exponential signal and outlines the non-trivial firmware implementation of the algorithm on a low-cost, low-power microcontroller. Experimental results show that time constants over more than two orders of magnitude can be accurately estimated to be within around 2% of the nominal value with a standard error of about 0.2% of the nominal value, despite the hardware limitations. This is a significant improvement over previous methods for accurately determining the time constant of a circuit using subpar hardware.
Keywords: {Signal to noise ratio;Standards;Vectors;Hardware;Temperature measurement;System-on-chip;Resistors;Resistance;Noise measurement;Microprogramming;Sensor applications;Internet of Things (IoT);low-cost sensing;matrix pencil method (MPM);resistive sensor readout;time constant estimation},