Analog I-O to microprocessor to set switch moment for next step