In one embodiment, an atomic force microscope comprises a frame, a beam coupled to the frame at a first end and a second end, a probe mounted to the beam, means for inducing relative motion between the beam and an underlying surface, and means for detecting a characteristic of the beam.