STM32 has an inbuilt gyroscope that can be used to collect data on the angular velocity along x, y and z axis.