The following exercise is intended to help to understand the measurement of the orientation of linear and planar structures in the field, using the magnetometer and the gyroscope of the smartphone. We will carry out a large number of repeated measurement, not possible with a traditional compass in a reasonable time. These repeated measurements will be statistically evaluated and interpreted with regard to their accuracy and precision.