Skip to content

EduardoGFilho/Project-Arduino-Trilateration

Repository files navigation

Project-Arduino-Trilateration

Eduardo Guedes and Rémy Pourtier

This repo contains code for a project at ESISAR which consisted in:

  • Using trilateration and an ultrassonic sensor to locate a "robot" (which doesn't move) within a grid surrounded by beacons in known positions.
  • Study the arduino sensor and how the project behaves with it
  • Design a custom "homebrew" sensor and evaluate it (Not finished due to problems with the hardware)

Some other ideas which were not implemented:

  • Using more beacons

  • Live streaming the data instead of loading from a file

  • Moving the "robot" around

    Trilateration

    Trilateration consists in estimating a position given the distance to a set of known distances, which contrast to triangulation that uses a set of angles.

    Bellow is an image made with mock data to test the equations Trilateration

    Arduino sensor

    The sensor was mounted on fixed position and two types of measurements were done. One in which the beacon was at a fixed 50cm which was use to estimate the mean, variance and a histogram of the data.

    Histogram

    The second type of measurements were done with a varying distance and fewer samples, used to estimate how the mean and variance vary with distance

    Mean Variance

    Data processing

For actually applying trilateration we have to identify the beacons, which appear as multiple diferent points captured by the sensor. In order to deal with that we have though of an algorithm to cluster points together and consider them a beacon if a cluster is big enough.

Clustering Best Result

How the grid looked like

How the grid looked like

Homebrew sensor

The board was heavily inspired by Homemade ultrasonic distance sensor. The biggest problem encountered was adjusting the gain of the AmpOps, since the triple aplification meant very small changes would cause the output to saturate. We couldn't fix this problem by the end of the project.

Squematic Homebrew sensor

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published