# Basics

## 0. Intro

## Navigation technology is an essential ability for the survival, development, and organisation of both animals and humans. Aweigh combines a biomimetic hardware mechanism with an algorithm inspired by obsolete technologies to calculate the latitude and longitude of the user. This technology is currently being developed and performance tested as a novel insect-inspired optical compass sensor for applications, such as a hexapod walking robot.

## See:

## Doi: 10.1038/srep09725

## Doi: 10.1016/S0921-8890(99)00064-0

## DOI: 10.1109/IROS.2017.8206183

## 1. Working principle

## a. Rayleigh scattering model

## Aweigh begins by placing its user within the Rayleigh scattering model, which is an approximation of the sky that takes into account the interactions between light and matter. It explains the optical phenomenon that causes the sky to appear blue. Researchers much smarter than ourselves have come up with a mathematical model, which is described by the scary looking relationships below:

## These relationships enable us to take into account the polarization pattern of skylight, caused by the scattering phenomenon within the Earth’s atmosphere. The scattering interactions with atmospheric constituents induce a partially linear polarization of skylight, which means that the direction of the linear polarization of skylight at the zenith point is always perpendicular to the solar meridian. The figure below shows how patterns of polarisation change for a viewer at position O.

## The other significant property in the Rayleigh scattering light model is that the degree of polarization is related to the scattering angle. In other words, the scattering angle increases from 0 degrees to 90 degrees and will decrease when the scattering angle increases from 90 degrees to 180 degrees. In the figure below, the angle of polarization for an arbitrary scattered beam of light was defined.

## This means that if we can somehow measure the angle of polarization of sunlight from a viewer’s position, we can understand the general pattern of light scattering in the sky. The goal is to determine the position of the sun, which will then enable us to calculate latitude and longitude.

## b. Celestial sphere approximation

## In astronomy and celestial navigation, the relationship between the observer’s position and solar angles are given by a number of different variables, each relating to celestial bodies and changing over time. If you go online, you’ll be able to find an entire range of different relationships and values, which have been used in the past for different applications.

## Aweigh’s algorithm is interested in two specific variables that describe the user’s position relative to the sun:

## h = solar altitude

## Φ = solar azimuth

## The solar altitude is the angle of the sun relative to the Earth’s horizon. This angle varies based on the time, the day, and it related to the latitude of the viewer. The solar azimuth angle is the horizontal angle that defines the sun’s relative direction along the local horizon. These two values are calculated from readings taken by the polarization sensors and allow Aweigh to calculate the “coordinates” of the Sun. Once you are able to locate the exact position of the sun, you can also locate yourself by using trigonometric relations within the celestial sphere approximation.

## 3. Calculations Explained

## The following explanation describes each step of Aweigh’s technology, which combines principles from the Rayleigh scattering model and the celestial sphere approximation.

## Aweigh first takes readings from a hardware system composed of a pair of polarized light sensors, followed by log-ratio amplifiers. Each polarization sensor models the configuration of desert-ant eyes: if a continuous amount of data points are taken, a three-dimensional representation of the polarization pattern of the sky would appear. The log-ratio amplifiers allow light measurements from the sky to be normalised and enable us to perform a comparison of polarised light values at different angles.

## The output of the polarization sensors is described by the following equation:

(2)