RSSI-urgent help

Hi guys. I'm using two arduino unos, libelium xbee shields (link is below) and xbee series1(AP set to transparent) modules. One is sender ,the other is receiver. How can i take RSSI value and approximate distance?Can u send arduino sketch for this function?I look forward to your reply.Please help

http://www.cooking-hacks.com/shop/arduino/arduino-xbee-802-15-4

Experiment for a bit with your setup and examine the RSSI values. Then you will understand why RSSI is nearly useless to estimate distance between modules.

jremington:
Experiment for a bit with your setup and examine the RSSI values. Then you will understand why RSSI is nearly useless to estimate distance between modules.

I guess you are right, but please if you have sketch please send it.it is necesseray for my final project

fbg25:

jremington:
Experiment for a bit with your setup and examine the RSSI values. Then you will understand why RSSI is nearly useless to estimate distance between modules.

I guess you are right, but please if you have sketch please send it.it is necesseray for my final project

Assuming it makes sense to show that something doesn't work, if it's for a project you should surely be writing it yourself not asking someone to "send it" to you.

JimboZA:

fbg25:

jremington:
Experiment for a bit with your setup and examine the RSSI values. Then you will understand why RSSI is nearly useless to estimate distance between modules.

I guess you are right, but please if you have sketch please send it.it is necesseray for my final project

Assuming it makes sense to show that something doesn't work, if it's for a project you should surely be writing it yourself not asking someone to "send it" to you.

I solved many parts in my project, but i'll be so pleased if anyone helps in this matter.

Google found me all kinds of interesting stuff, including this: http://forum.arduino.cc/index.php/topic,59992.0.html

Thank you for reply.Guys can you suggest any other more accurate way or sketch for system which i abovementioned.

It is not yet possible (at least for hobbyists) to use radio to accurately determine the distance between two objects.

I know but i dont want exact distance at this point,if you could help id be so pleased.

Did you look at the other thread I mentioned and get the code for obtaining the RSSI figure from your XBee?
Is it working and giving you a value?

Assuming so, take your XBees outside and go for a walk. Measure -- maybe in paces -- the distance and record the RSSI figures. Record a lot of data -- like 100 observations at different distances. Stick the data into excel or something and create a scatter plot.

Is there a useful correlation? If so, you can fit a curve to the data and use that as a distance measurement.

Do the same thing indoors -- maybe in a long school hallway.
Then again, in a row of offices, moving one office farther each time.

It will make an interesting experiment, but you will discover that RSSI figures are only partly correlated to distance. They will vary by the relative orientation of the two antennas and by the surrounding materials just as much as by distance.