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
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
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.
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.
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.