Compass

A compass is a navigational instrument that operates by detecting the Earth's magnetic field. It consists of a magnetized piece, typically a needle, mounted on a pivot within a casing. When exposed to the planet's ambient magnetic field, the magnetized element naturally aligns itself parallel to the local lines of magnetic flux. This alignment allows the device to indicate the direction of magnetic north and south, providing a reliable reference for cardinal directions (north, south, east, and west). The principle of operation relies on the differential magnetic force exerted by the Earth, allowing for directional measurement independent of visibility or celestial markers.