Triangulation

In aviation, pilots can use two non-directional beacons to triangulate their position. The instrument that tells us the heading of the beacons on an airplane is called the Automatic Direction Finder (ADF). If you have two IR beacons, you can do a similar thing with just one IR sensor mounted on your robot. One disadvantage of the heading indicator from the beacon is that the values are not in the degrees that the Gyro Sensor uses. Still, with some effort you can use two beacons to do some basic triangulation.

In the following program, we use two IR beacons. Each beacon is set to a different channel. Set the first beacon to channel 1. Set the second beacon to channel 2. The IR sensor should be on the front of your robot. Choose a ...

Get Learning LEGO MINDSTORMS EV3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.