Looking for distance measuring tools

Hey,

I am looking for distance measuring tool that I can use with Arduino.
I have a game in Unity that get values from Arduino about position of the person in the room. My game gonna place a player on coordinates according to the values he got from Arduino. The "matrix" looks like in the attached png. Player can only move on lines. So far I was testing Ultrasonic Distance Sensor - HC-SR04, but they weren't good enough. On distances bigger than one meter some sensors had problems with giving right results (I think it was due to angle that this sensor has during measurement). The other problem was fact, that too many sensors were interferencing eachother (I had delays between every measuerement, but problem still occured).
I also tested TOF10120 ToF Laser Range Sensor, but it has too low max distance and he has big problems with measuring distance over 80cm.
I know that I can buy better laser range sensors, but I will need 11 of them, so it will be over 1000$. I hope I can find something cheaper and more precise. Hope You guys help me!

laser distance sensor modules ? ... like, TOF4000 goes til 4 meters, others also better ...

Divide the floor in squares; put pressure sensor (can be as simple as a cheap FSR) under those squares.

Alternative: two sensors that can reach the other end, each placed in a corner, scanning (like radar). Position can be triangulated based on the distance measured by the two sensors at the various angles. I'm assuming no more than one person in the room so they can't hide behind one another (which for your matrix would also be an issue).

Sorry, i noticed i typed bad the part number, it's TOF400F

In your draw the peoples are on the cross of lines or on the squares ? ... if on squares, wvmarle suggestion about pressure sensors or switches is probably the cheaper one ...

I want to force people to move only on lines.
Thanks for the link, I've just bought two of these TOF400F sensors. Gonna check them if they work like I need them to.

Pressure sensors is like my last option that I consider, but that causes some problems within the game, cause I have to change movement from lines to squares. Hiding pressure sensors in the floor will be a lot more time consuming, but if I have to then I will do this. I also bought Pressure-Sensitive Conductive Sheet (Velostat/Linqstat) from Adafruit. Might work fine in this case, but I'm not sure if it's as good as shown in videos.

How much peoples are on the field at the same time ? ... asking cause if they are 2, no problems, but if they are 3 or more, some configurations can easily hide one player from both the detection lines ...

With two people you need three sensors to be sure at least two sensors can see any one person, or be prepared in software for the two being on one line and have one sensor picking up two and the other only one.

Yes, but it can be solved if only 2 person ... let's say, if horizontal sensor 2 on, and vertical 2 and 3 on, you know there are 2 peoples aligned on column 2 and row 2 and 3 ... the problem starts with 3 or more peoples ...

If, example, horizontal 2 and 3 on, and vertical 2 and 3 on, you know that one is on row 2 column 3 and another is on row 3 column 2, OR one on row 2 column 2 and one on row 3 column 3, but cannot discriminate what combination is the right one, nor know if in any of the other 2 corners of the square there is a third people ...

The only sure way with more than 2 peoples can be to place sensors on ground, or as alternative, laser sensors on ceiling (detecting differences from ground and person height), but this requires one sensor for each cross of the grid ...

Only one person can play at the same time, if anyone else enter the matrix then I just display "game over" in unity game.

I've just tested two VL53L1X (TOF400F) sensors, looks like they will be exactly what I need. Gonna test 11 of them, but I think amount won't matter and it won't change anything. Thanks you very much for advice!

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