A control device of a motor, comprising a first input terminal and a second input terminal, wherein a DC voltage for driving the motor is input to the first input terminal and/or the second input terminal; and a control unit configured to control the motor, wherein the control unit executes first input confirmation processing of confirming first input of the DC voltage to the first input terminal or the second input terminal, rotation direction setting processing of, when the first input to one input terminal of the first input terminal and the second input terminal is confirmed by the first input confirmation processing, setting a rotation direction of the motor based on which input terminal receives the DC voltage, operation processing of operating the motor at a first rotation speed in the rotation direction set by the rotation direction setting processing, second input confirmation processing of confirming second input of the DC voltage to the other input terminal of the first input terminal and the second input terminal, speed change processing of, when the second input to the other input terminal is confirmed by the second input confirmation processing, changing the rotation speed of the motor from the first rotation speed to a second rotation speed, wherein in the first input confirmation processing, when the input of the DC voltage to one terminal of the first input terminal and the second input terminal is continuing for a predetermined time, it is confirmed that the first input is performed, and in the second input confirmation processing, when the input of the DC voltage to both the first input terminal and the second input terminal is continuing for a predetermined time, it is confirmed that the second input is performed. a first input terminal and a second input terminal, wherein a DC voltage for driving the motor is input to the first input terminal and/or the second input terminal; and a control unit configured to control the motor, wherein the control unit executes first input confirmation processing of confirming first input of the DC voltage to the first input terminal or the second input terminal, rotation direction setting processing of, when the first input to one input terminal of the first input terminal and the second input terminal is confirmed by the first input confirmation processing, setting a rotation direction of the motor based on which input terminal receives the DC voltage, operation processing of operating the motor at a first rotation speed in the rotation direction set by the rotation direction setting processing, second input confirmation processing of confirming second input of the DC voltage to the other input terminal of the first input terminal and the second input terminal, speed change processing of, when the second input to the other input terminal is confirmed by the second input confirmation processing, changing the rotation speed of the motor from the first rotation speed to a second rotation speed, wherein in the first input confirmation processing, when the input of the DC voltage to one terminal of the first input terminal and the second input terminal is continuing for a predetermined time, it is confirmed that the first input is performed, and in the second input confirmation processing, when the input of the DC voltage to both the first input terminal and the second input terminal is continuing for a predetermined time, it is confirmed that the second input is performed.