In one embodiment, an integrated magnetometer has a deformable,
electrically conducting beam that is mounted on a substrate and adapted
to oscillate with respect to the substrate. When the oscillating beam is
exposed to a magnetic field, the magnetic field induces an oscillating
electromotive force that generates an oscillating electrical signal along
the beam. The magnetometer has a detection circuit that detects this
oscillating electrical signal and, based on the results of this
detection, determines the magnetic-field strength and/or the
magnetic-field gradient.