Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
Thread Tools Display Modes
Old 30th March 2008, 09:44 PM   (permalink)
Default How Can I detect the phase shift between two sinusoidal signals

Hi .... How can i detect the phase shift between two sinusoidal signals? ... because I want the PIC to calculate the time between the + phase and the - phase ...
Abdullah2121 is offline   Reply With Quote
Old 30th March 2008, 10:18 PM   (permalink)
Default

What frequency are the signals?

If the frequency is less than about 1o kHz you can read the signals with the ADC and use the timers to measure time difference and period.
Diver300 is offline   Reply With Quote
Old 30th March 2008, 10:21 PM   (permalink)
Default

Hi ... the frequency of the dignal 1.7 Mhz
Abdullah2121 is offline   Reply With Quote
Old 30th March 2008, 10:37 PM   (permalink)
Default

I think you can detect the zero cross and figure it out that way. BUt I don't have time to sit down and draw a picture and figure out the relationship between the time spacing of the zero crossings and the frequency.

FOr example:

0 phase shift - the spacings are equal to the period
180 degree phase shift - intdeterminate since you get no signal due to desctructive interference.
dknguyen is offline   Reply With Quote
Old 30th March 2008, 11:19 PM   (permalink)
Default

Have a read of this thread.

Mike.
Pommie is online now   Reply With Quote
Old 30th March 2008, 11:23 PM   (permalink)
Default

Quote:
Originally Posted by Pommie
Have a read of this thread.

Mike.
You redirect the OP to another thread again in the thread you posted
dknguyen is offline   Reply With Quote
Old 30th March 2008, 11:33 PM   (permalink)
Default

Quote:
Originally Posted by dknguyen
You redirect the OP to another thread again in the thread you posted
I know, but for some unknown (and annoying) reason the OP in the first thread deleted his question.

Mike.
Pommie is online now   Reply With Quote
Old 31st March 2008, 12:05 AM   (permalink)
Default

You may consider AD8302, by the way, I am using this chip to perform relative phase difference detection for 1MHz sine wave...
Harros is offline   Reply With Quote
Old 31st March 2008, 01:13 AM   (permalink)
Default

Quote:
Originally Posted by Abdullah2121
Hi .... How can i detect the phase shift between two sinusoidal signals? ... because I want the PIC to calculate the time between the + phase and the - phase ...
Use a phase comparator.
http://www.google.co.uk/search?hl=en...omparator&meta=
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
Hero999 is offline   Reply With Quote
Old 31st March 2008, 01:45 AM   (permalink)
Default

Hi Abdullah2121,

There's a easy way of doing this: You can mix both signals with
the same oscillator signal and pass them to equal low-pass filters.
If you use 1,65 or 1.75 MHz you'll end up with two 50 kHz signals
with the same phase difference. Do I need to say more ?

on1aag.
on1aag is offline   Reply With Quote
Old 31st March 2008, 06:18 AM   (permalink)
Default

Do you have to differentiate between the phases eg signal 1 is is 10deg leading reletive to signal 2 or is it only a case of knowing what phase difference there is. If it is the last case then ADD both signals thru a opamp(RF type) when both signals are 180deg apart then there will be zero signal and if both in phase, double the signal. Feed the result into an integrator and then use the PIC ADC to read the value.
Super_voip is offline   Reply With Quote
Old 31st March 2008, 04:28 PM   (permalink)
Default

thanx guys for all these answers ... but all i know that all chips like PLL or XOR gate or phase comparator or the mixer deal only with the square waves not with the sine wave ... if not ,please give me the number of this chip , and i will be greatfull for this ... and I'm sorry if I bother you ..
Abdullah2121 is offline   Reply With Quote
Old 31st March 2008, 10:56 PM   (permalink)
Talking Mixers and sinewaves ?

Hi Abdullah2121,

Quote:
Originally Posted by Abdullah2121
thanx guys for all these answers ... but all i
know that all chips like PLL or XOR gate or phase comparator or the
mixer deal only with the square waves not with the sine wave ... if not ,please give me the number of this chip , and i will be greatfull
for this ... and I'm sorry if I bother you ..
I think you should reconsider using the mixers to bring the frequency
of both signals down to manageable levels for the pic. I used 50 kHz
as an example but you could bring the frequency of the signals even
further down by selecting the frequency of the oscillator closer to
the frequency of the signals.
And the signals are all sinewaves.

on1aag.
Attached Images
File Type: png 90° circuit diagram.PNG (25.9 KB, 23 views)
File Type: png 90° input & output graphs.PNG (23.5 KB, 14 views)
File Type: png 90° ouput graph.PNG (17.6 KB, 12 views)
on1aag is offline   Reply With Quote
Old 1st April 2008, 03:37 AM   (permalink)
Default

you can also use a bandpass filter an ADC. you can remove out-of-band information and alias the signal back to baseband. from there you can determine phase with normal methods. your ADC must have an input bandwidth exceeding the frequency of interest and upper cutoff of the filter.

ideally you will sample at a fraction of the input signal's rate.

also, you can convert the sine wave into a square wave. from there you can use the xor gate. (or ideally two gates and a delayed version of one wave, this allows you to measure down to 0d of difference without worry of narrow-pulses)
cdstahl is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Variable capacitor circuits walters General Electronics Chat 83 11th March 2008 02:58 PM
TL071 phase shift oscillator shirazmacuff Electronic Projects Design/Ideas/Reviews 4 25th December 2007 03:59 AM
Using Oscilloscopes mechie Electronic Theory 9 29th November 2007 09:48 PM
out of phase signals cyprio7 General Electronics Chat 14 8th June 2006 12:36 PM
phase shift detection circuit erique82 Electronic Projects Design/Ideas/Reviews 11 8th October 2005 04:22 PM



All times are GMT. The time now is 08:45 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.