The invention discloses a TDOF (Three Degrees of Freedom) passive ball joint with attitude detection and applicable to a ball motor. The ball motor consists of a stator assembly, a rotor assembly, a passive ball joint and a base. The passive ball joint assembly consists of an upper turntable, a lower turntable, a spider, a hanger plate A, a hanger plate B, a support plate, a double-shaft tilt sensor, an encoder and a Z-direction shaft, wherein the support plate is connected with the upper turntable through the hanger plates A and B, the spider is respectively connected with the upper turntable and the lower turntable through four ball bearings, the double-shaft tilt sensor is installed on the support plate, and the encoder is installed at the other end of the Z-direction shaft. When the passive ball joint with attitude detection is applied to the ball motor and the ball motor with the passive ball joint is applied to shoulder joints and wrist joints of robot arms, the quantity of joints on the robot arms can be reduced, the elastic deformation of a transmission mechanism and the defect of low movement precision caused by movement dead zones can be avoided under the condition of reduced joint quantity, the structure of the robot arms can be simplified, and the effects of small size, light weight, fast response speed and the like can be achieved.