This paper introduces an angle sensor based on STM32 microprocessor. Firstly, it introduces the power circuit module. Then it analyzes the angle acquisition principle and signal output type of MPU9250, then analyzes the CAN transceiver module, and finally introduces the software architecture. The sensor has a CAN output interface that can be directly applied to the CAN network architecture. The experimental results show that the sensor measurement accuracy reaches ±0.1°, which can meet the needs of industrial angular position measurement.