This paper proposes a sensing system of the Halbach array permanent magnet spherical motor(PMSM). The rotor position can be obtained by solving three rotation angles, which revolves around 3 reference axes of the stator. With the development of 3-D hall sensor, the position identification problem of the Halbach array PMSM based on rotor magnetic field is studied in this paper. A nonlinear and serious coupling relationship between the rotation angles and the measured magnetic flux density is established on the basis of the rotation transformation theory and the magnetic field model. In order to get rid of the influence on position detection caused by the harmonics of rotor magnetic field and the stator coil magnetic field, a sensor location combination scheme is proposed. In order to solve the nonlinear equation fast and accurately, a new position solution algorithm which combines the merits of gradient projection and particle swarm optimization(PSO) is presented. Then the rotation angles are obtained and the rotor position is identified. The validity of the sensing system is verified through the simulation.