+ Reply to Thread
Page 1 of 2
1 2 Last
Results 1 to 15 of 21

Thread: Calculating distance using RF

  1. #1
    ealee264 Newbie
    Join Date
    Nov 2008
    Posts
    19

    Unhappy Calculating distance using RF

    Hi, I am facing this particular problem of determining the distance between the transceivers using Radio Frequency Wave.

    SInce the wave is travelling in the speed of light, there is not a proper PIC which is fast enough to calculate the distance up to the accuracy of 1m as i would need an internal frequency of 300Mhz. Is there any other way of calculating this distance?

    The reason i used RF is because it could penetrate obstacles. So I cannot use other wave..IS there any suggestion for my problem?,,


  2. #2
    JimB Excellent JimB Excellent JimB Excellent JimB Excellent JimB Excellent JimB Excellent
    Join Date
    Sep 2004
    Location
    Peterhead, Scotland
    Posts
    1,944

    Default

    Timimng to nano-second resolution is relatively easy using hardware counters and a suitable clock.

    However, if you are thinking of using one transceiver to send a pulse which is then recieved and re-transmitted back to the first transciever to give the "time of flight" of the pulse, you will have far greater problems than the timing resolution.

    There will be propagation delays through the transceivers at both ends of the link, these delays (if they are consistently repeatable) must be subtracted from the measured pulse return time.
    You may also have problems with receiver recovery time, ie the time for the reciever to return to full sensitivity on switching from transmit to receive.

    JimB
    Experience is directly proportional to the value of the equipment ruined.

  3. #3
    pc88 Newbie
    Join Date
    Jun 2007
    Location
    Minneapolis, MN
    Posts
    179

    Default

    Have a look at this thread:

    High frequency precision counter/timer

  4. #4
    ealee264 Newbie
    Join Date
    Nov 2008
    Posts
    19

    Red face

    Quote Originally Posted by JimB View Post
    Timimng to nano-second resolution is relatively easy using hardware counters and a suitable clock.


    There will be propagation delays through the transceivers at both ends of the link, these delays (if they are consistently repeatable) must be subtracted from the measured pulse return time.
    You may also have problems with receiver recovery time, ie the time for the reciever to return to full sensitivity on switching from transmit to receive.

    JimB
    Thx PC88 for the thread it enlighten me more. Mr JimB, u mentioned tha nano- sec resolution is easy to achieved...but i find it hard to locate such high frequency clock and counter.. how much would it cost ?

    Ab the delays, i have thought of it. I would be carry out experiment to ind out the errors hopefullyit could be accurate enough.

  5. #5
    Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent
    Join Date
    Apr 2008
    Posts
    1,275

    Default

    while triangulation is much easier, RF time of flight would need to be 3.33nS/meter.

    Well you could use all ECL but that is very expensive and power huungry.

    The affordable way to do it is a combination of

    http://datasheets.maxim-ic.com/en/ds/DS1124.pdf

    and

    http://global.kyocera.com/prdct/elec.../169_173_e.pdf

    Remembering that the length of the counter is your maximum measurable distance and you need two edges of the counter going in the same direction in the delay line.

    Dan

  6. #6
    pc88 Newbie
    Join Date
    Jun 2007
    Location
    Minneapolis, MN
    Posts
    179

    Default

    I'm not sure how you would do it with discrete chips, but here are some frequency counters with 300 Mhz direct count capabilities:

    http://www.elexp.com/a_data/01FC103_01FC104.pdf

    Aceco by WiMo: Frequency counter, bug finder, RF tester

  7. #7
    Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent
    Join Date
    Apr 2008
    Posts
    1,275

    Default

    Quote Originally Posted by pc88 View Post
    I'm not sure how you would do it with discrete chips, but here are some frequency counters with 300 Mhz direct count capabilities:

    http://www.elexp.com/a_data/01FC103_01FC104.pdf

    Aceco by WiMo: Frequency counter, bug finder, RF tester
    Those are 300MHz frequency counters and not 300MHz timers.

    They are usually front end mixers and then lower frequency counters. This may have changed more recently on high end units, they might have transitioned to FPGAs.

  8. #8
    ealee264 Newbie
    Join Date
    Nov 2008
    Posts
    19

    Red face

    Quote Originally Posted by Ubergeek63 View Post
    while triangulation is much easier, RF time of flight would need to be 3.33nS/meter.


    Remembering that the length of the counter is your maximum measurable distance and you need two edges of the counter going in the same direction in the delay line.

    Dan
    Thx Dan, are u saying using triangulation to calculate the distance?,,Im using Triangulation to calculate the position of the tracked object..

    The datasheet u gave me, the size of the clock is kinda mini...How am I supposed to solder on PCB board..and the clock frequency is just 40MHz and I need the clock frequency to be 300MHz.Did I get the wrong idea?..

    Please enlighten me...

  9. #9
    danielsmusic Newbie
    Join Date
    Jul 2005
    Location
    cheshire
    Posts
    457

    Default

    EDIT: never mind
    Last edited by danielsmusic; 1st December 2008 at 11:43 AM.
    when you post that reply, im just kidding.

  10. #10
    Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent
    Join Date
    Apr 2008
    Posts
    1,275

    Default

    Quote Originally Posted by ealee264 View Post
    Thx Dan, are u saying using triangulation to calculate the distance?,,Im using Triangulation to calculate the position of the tracked object..

    The datasheet u gave me, the size of the clock is kinda mini...How am I supposed to solder on PCB board..and the clock frequency is just 40MHz and I need the clock frequency to be 300MHz.Did I get the wrong idea?..

    Please enlighten me...
    Well if you are already triangulating, I am a bit in the dark as to what you are doing since it is simple math from your location to it's to give you it's distance.

    The clock frequency does not need to be 300MHz, the measurement resolution needs to be 3nS. 30MHz into a PIC counter, since so many have a thing for worshiping it, gives you your main time base. The programmable delay line gives you sub nanosecond resolution in affordable parts.

    Wow. that part is better than I thought. I was only comparing decent accuracy with decent price. Of course my idea of decent is a bit, um, extreme.

    Dan

  11. #11
    ealee264 Newbie
    Join Date
    Nov 2008
    Posts
    19

    Default

    Emm,,perhaps i have misused the word triangulation. I calculated the distance A(transceiver) and B(transceiver),by having A transmit a signal to B and B send back to A.
    By using the speed equation distance traveled = speed of light/time taken. with the assumption that the time delay is deducted. I will be using this distance together with another 2 distance of separation(BC and BD) to calculated the 2D position of B. This is actually Trilateration...=.=''

    I thought the clock frequency is directly proportional to the resolution of the measurement. For example PIC 16F877A using 20 MHz crystal, the internal clock frequency would be 5 MHz. When i used this to make a counter , the step size of be 200 ns.

    Did i get the wrong concept?..

  12. #12
    ealee264 Newbie
    Join Date
    Nov 2008
    Posts
    19

    Red face

    Quote Originally Posted by Ubergeek63 View Post
    The clock frequency does not need to be 300MHz, the measurement resolution needs to be 3nS. 30MHz into a PIC counter, since so many have a thing for worshiping it, gives you your main time base. The programmable delay line gives you sub nanosecond resolution in affordable parts.

    Dan

    How are we supposed to achieved the resolution of 3ns using the items u suggested?..what i understand from the DS1124 is actually a delay device up to the accuracy of .25ns..and for the clock I can just use a crystal clock with frequency 20 MHz right?

    Thanks in advance..
    Last edited by ealee264; 1st December 2008 at 02:02 PM.

  13. #13
    Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent
    Join Date
    Apr 2008
    Posts
    1,275

    Default

    Quote Originally Posted by ealee264 View Post
    How are we supposed to achieved the resolution of 3ns using the items u suggested?..what i understand from the DS1124 is actually a delay device up to the accuracy of .25ns..and for the clock I can just use a crystal clock with frequency 20 MHz right?

    Thanks in advance..
    not a problem.

    Technically yes... I am just to used to looking at smaller numbers. A 100PPM/C crystal will only vary around 0.01%/C

    Dan

  14. #14
    ealee264 Newbie
    Join Date
    Nov 2008
    Posts
    19

    Default

    Quote Originally Posted by ealee264 View Post
    How are we supposed to achieved the resolution of 3ns using the items u suggested?
    Quote Originally Posted by Ubergeek63 View Post
    not a problem.
    Dan
    Can u further elaborate on this? Kinda lost.. Do u have any example schematic using this device as counter?

    Thanks
    Last edited by ealee264; 1st December 2008 at 11:55 PM.

  15. #15
    Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent Ubergeek63 Excellent
    Join Date
    Apr 2008
    Posts
    1,275

    Default

    Quote Originally Posted by ealee264 View Post
    Can u further elaborate on this? Kinda lost.. Do u have any example schematic using this device as counter?

    Thanks
    You reverse the process. Instead of directly measuring time of flight, compare it to a standard, in this case the sum of the counter and the programmable delay line.

    The counter overflow goes out to the delay line and the echo from the remote stops the counter and is compared to the output of the programable delay. Since you know what you put into the system, when it matches the echo time you have found the distance to the target.

+ Reply to Thread
Page 1 of 2
1 2 Last

Similar Threads

  1. Calculating a point a specified distance away from another poin
    By HerbertMunch in forum Math and Physics
    Replies: 15
    Latest: 18th April 2008, 01:05 PM
  2. Calculating Resistors
    By ScuzZ in forum General Electronics Chat
    Replies: 8
    Latest: 29th January 2007, 05:26 PM
  3. min. distance in ultrasonic distance meter
    By Maryam in forum Micro Controllers
    Replies: 2
    Latest: 9th August 2004, 10:18 AM
  4. calculating inductance
    By Gaston in forum General Electronics Chat
    Replies: 2
    Latest: 10th July 2004, 02:02 PM
  5. Calculating Resistance
    By geraldh in forum General Electronics Chat
    Replies: 9
    Latest: 4th March 2004, 09:05 AM

Tags for this Thread