A motor, including: a body, including a housing, a stator, and a rotor; and a controller, including a control box, and a control board. The body is disposed at the top of the motor. The controller is disposed at the bottom of the motor. The control board is disposed in the control box. A debug window is disposed on side wall or at the bottom of the control box. A sealing cover is disposed on the debug window. The sealing cover can be opened. The control board can be exposed for wire connection, adjustment of parameters of electronic components, and fixation of a rotating shaft according to requirements of users for installation and use.