A drive device in which a controller includes a detection determiner, a high threshold that is initially set and a low threshold are switchably set in the detection determiner as thresholds for determining whether or not to capture detection signals, the controller performs: when the detection determiner makes a capture determination before drive processing, low-switching processing to switch the threshold from the high threshold to the low threshold before the drive processing is started based on the determination results; and perform drive cancellation processing to cancel driving of a driver when the detection determiner makes a capture determination after the low-switching processing.