Pages: [1]   Go Down
Author Topic: Calculating Distance between two RFM12B boards  (Read 722 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Basically, I have two RFM12B boards set up on an Arduino UNO, they're both configured and are able to communicate.

However, I am unsure how I would be able to calculate the distance between the two boards. I was thinking of using microseconds to measure the time spent traveling back and forth, which would allow me to calculate the distance between the two boards.

Does anyone have any suggestions, hints or information that might be useful?

Thanks in advance!

~Longstreet
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24462
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

micros has a minimum resolution of 4 microseconds.
A radio signal travels about 1200 metres in that time.
What is the range of your radios?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The RFM12B modules are on a 868Mhz frequency.

Aside from that, the boards will only be 10 metres away from each other on maximum (In the same room).
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 240
Posts: 24462
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A radio signal does a 20 metre round trip in about the same time as it takes an Arduino to execute a single instruction.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: [1]   Go Up
Jump to: