### Author Topic: Approximate distance from RF  (Read 10066 times)

0 Members and 1 Guest are viewing this topic.

#### airman00

• Contest Winner
• Supreme Robot
• Posts: 3,650
• narobo.com
##### Re: Approximate distance from RF
« Reply #30 on: December 27, 2008, 08:38:10 PM »
I guess my idea of sending multiple signals at different power levels was correct.
I emailed Wild Planet , those makers of the Spy Tracker Toy - http://www.amazon.com/Wild-Planet-Gear%C2%AE-Agent-Tracker/dp/B0007V62XQ

They replied with the following:
Quote
Dear Eric,
I can offer you this, from our engineer:
The transmitter sends out 3 different RF signals; Close, Medium and Far. Each signal has a maximum distance that it can be detected by the receiver unit. The receiver picks up each of these signals and filters out all but the signal that corresponds to the closest distance. It then indicates this distance by activating a light and sound.
I hope that helps. -Kim

I'll be trying out this method of RF approximation very soon
Check out the Roboduino, Arduino-compatible board!

www.Narobo.com

#### airman00

• Contest Winner
• Supreme Robot
• Posts: 3,650
• narobo.com
##### Re: Approximate distance from RF
« Reply #31 on: December 28, 2008, 02:45:39 PM »
Heres a schematic of the power selector for the transmitter power
There are transistors which are all connected to pins on the microcontroller. The microcontroller can control each switch individually .

There are diodes on top with a voltage drop of 2V. Therefore after each diode the voltage is lowered by 2V. Microcontroller switches the transistors to select voltage at transmitter.

Using this pseudo code on the transmitter :
Set to 12V
Send Byte (12)
Set to 10V
Send Byte (10)
and on and on until 2V

Then the receiver just checks to see which bytes it gets and can therefore determine range.

Check out the Roboduino, Arduino-compatible board!

www.Narobo.com

• Supreme Robot
• Posts: 11,696
##### Re: Approximate distance from RF
« Reply #32 on: January 26, 2009, 02:46:07 AM »
I think your idea will work . . . but you'll probably have an accuracy of about +/- 15 feet. Not very useful for an inside robot.

For an outdoors flying robot, I might actually try this myself!

#### airman00

• Contest Winner
• Supreme Robot
• Posts: 3,650
• narobo.com
##### Re: Approximate distance from RF
« Reply #33 on: January 26, 2009, 06:46:46 AM »
I think your idea will work . . . but you'll probably have an accuracy of about +/- 15 feet. Not very useful for an inside robot.

For an outdoors flying robot, I might actually try this myself!
I did some tests and it worked fine. I did outdoor tests but haven't really checked the accuracy of it., just checked to see if it more or less worked.

In the end I used RSSI-equipped RF modules instead of this method.
Check out the Roboduino, Arduino-compatible board!

www.Narobo.com

#### Asellith

• Contest Winner
• Supreme Robot
• Posts: 648
• "I'm a leaf on the wind. Watch how I soar"
##### Re: Approximate distance from RF
« Reply #34 on: January 29, 2009, 10:18:45 AM »