An optimal controller for high-precision spiral positioning of a piezoelectric tube scanner used in an atomic force microscope (AFM) is proposed in this paper In the proposed control scheme  a second-order vibration compensator is incorporated with the piezoelectric tube scanner (PTS) to suppress the vibration of the PTS at the resonant frequency