摘要 |
The present invention discloses a method for detecting an orientation of a device (1) with respect to a direction of an acceleration force and a device (1) comprising an optical device (10) comprising a first liquid (A) and a second liquid (B), said liquids (A; B) being immiscible, having different refractive indices and different densities and being in contact with each other via an interface (14), a sensor (20) comprising a grid of pixels (22), the sensor (20) being arranged to sense an image captured by the optical device (10) on a subset (24, 24') of the grid of pixels (22); and calculating means (30) for calculating an orientation of the device (1) with respect to a direction of an acceleration force from the position of the subset (24, 24') on the grid (22). Consequently, the orientation of the device (1) with respect to the direction of an acceleration force such as gravity can be obtained without mechanically moving parts. |