Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Calculating the phase shift of the output compare to the input in matlab

Status
Not open for further replies.

mtnkh

Newbie level 6
Newbie level 6
Joined
Mar 1, 2021
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
164
Hi,

I have a system which its impedance, z = |z|∠θ, is variable and unknown and I want to estimate the impedance in this case I inject a sine current with a known amplitude and frequency to the system, I = sine(2*pi*f*t) and measured the output voltage.
So in this case we will have this equation:
Vout = I*|z|∠θ
I used a DAQ to sample the data and process it in PC. I wanted to know how can I measure the phase shift between "Vout" and "I" which is equal to the phase of the impedance using matlab?
 

It's a classical impedance meter setup. The usual method is quadrature detector, multiplying the measured signal with sin and cos reference, integrating the product over full cycles. Noise and harmonics are supressed, complex impedance respectively magnitude and angle can be calculated by basic trigonometric relations.
 
This might help :


Example project, see attached, done on a PSOC 3 SOC. I think this could be ported to PSOC 5LP which is M3 ARM.

1699873677452.png


Regards, Dana.
 

Attachments

  • ImpedanceMeterBasics.pdf
    122.1 KB · Views: 168
  • SynchDetectExp.pdf
    425.3 KB · Views: 146

Last edited:
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top