AFM controllor