Measuring distance between 2 arduinos

Hello there!
I came here for help. I want make project to school where i have autonomout car that start on place A and go to place B and the place B will be some kind of signal source. I want make it throught measuring distance between these 2 arduinos. I found few discusions of this kind of topic but they are 5,6 even 10 years old. So maybe the technology is beter now.
Can any one give me some tips?

what signal source ?

BT, Wifi, RF, GPS..maybe
Idk whats better for this kind of project here u have distance A-B 10m max. I want make measuring of distance accurete to 5-10cm. Maybe less cm if its possible

...and how far apart are A and B?

10meters max

And what's the budget?
Any other constraints? (i.e. no fiducials,...)

I dont have any but it would be great for lowest budget possible.
What do u mean constraints but if i understand correctly no there no limits

can the 2 arduino discuss together (wirelessly)?

Could you use fiducials fixed to parts of the environment and, say, openCV to estimate distances based on size?

The fact that you haven't found any simple solutions should have set alarm bells ringing.

I dont think so thats reason why i want use measuring of distance between them

Can u simplify that question please? :sweat_smile:

there is no easy answer to this that I know that would give you a few cm precision at an affordable budget.

you could look into Ultra Wideband technology but it does not come cheap

I see. So is there another option how to do this project?
Basically what i want is that car will know where is place B and go there

image recognition could work if you can use fiducial markers as suggested by @anon73444976

not straightforward though

for UWB you can read that Ultra-WideBand Feather for Localization in Robotics projects

First solution is to expansive for me

But with second solution it seems its possible but it will be "fun" to make that component if i decide to do this way

No matter what method you use to coordinate the two Arduinos, except a wire between them, the communications latency will be variable and totally screw with any kind of accuracy.

That’s a bit of an extreme statement (10m apart, line of sight, 5cm precision expected). It’s also more random jitter than latency that might impact the system.

I could imagine some sort of beacon on the base so that the moving arduino identifies globally where it is (directional sensor) and then use a LiDAR or similar for distance ranging (assuming there is a some sort of wall at the base of the beacon)

These ESP32-UWB ranging modules work very well: ESP32 UWB(Ultra Wideband) | Makerfabs

You will need two, and one needs to be calibrated, as described here GitHub - jremington/UWB-Indoor-Localization_Arduino: Open source Indoor localization using Arduino and ESP32_UWB tags + anchors

Thank you
Your advice give me hope again, that my project is possible to do

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.