The vehicle-borne radar is widely used in civilian and military fields, and its cabin has good protection for the radar. The problems existing in the open-close system of the traditional vehicle-borne radar antenna cabin controlled by relay are described in this paper, and a new kind of low-cost and high-reliability vehicle-borne radar antenna cabin roof open-close system based on the STM32 microcontroller, PID algorithm and the linear displacementSsensor was designed to solve the faults of the traditional vehicle-borne radar antenna cabin open-close system, which is easy to get damaged. The open-close system of the new vehicle-mounted radar antenna module is stable in operation, and the left and right electric actuator stroke error is less than 1mm.