![]() |
![]() |
![]() |
|
|
|||||||
| 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. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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 ...
|
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
Hi ... the frequency of the dignal 1.7 Mhz
|
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
Mike. |
||
|
|
|
|
|
(permalink) |
|
You may consider AD8302, by the way, I am using this chip to perform relative phase difference detection for 1MHz sine wave...
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
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 |
||
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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.
|
|
|
|
|
|
|
(permalink) |
|
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 ..
|
|
|
|
|
|
|
(permalink) | |
|
Hi Abdullah2121,
Quote:
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. |
||
|
|
|
|
|
(permalink) |
|
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) |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |