Signal Processing
Base Concept
Calculation & data processing done below order,
-
Remove the DC offset in all signal.
-
RMS Amplitude of voltage, current signal.
-
Calculate RMS Voltage, Current
-
With modulation method, calculate the phase
-
Now derive the complex impedance value

Reference from TI TIDA-060029
Amplitude & Phase calculation
RMS value - Voltage & Current
RMS(Root Mean Square) is the square root of the mean square of a set of numbers or a continuous function $$ x_\text{RMS} = \sqrt{ \frac{1}{n} \left( {x_1}^2 + {x_2}^2 + \cdots + {x_n}^2 \right) }. $$
Synchronous Demodulation - Phase
The voltages are acquired using a two channel differential ADC and processed in the following form. Followed below steps
-
Modulation of the signal by multiplying the signal with a unity magnitude square wave of 0 degree phase and taking the average of the resulting signal (\(V_1\)).
-
Modulation of the signal by multiplying the signal with a unity magnitude square wave of 90 degree phase and taking the average of the resulting signal (\(V_2\)).
$$ \alpha = \tan^{-1} (\frac{V_2}{V_1}) $$ phase ‘\(\alpha\)’ of any signal is estimated with respect to the reference signal.