With the rapid development of digital economy era, robot will become an important part of the future social development. At present, many researchers at home and abroad are also engaged in the field of robotics. Humanoid robot is one of the most active research hotspots in the field of intelligent robot because of its unique walking mode. Based on the above background, the purpose of this paper is to study the motion planning and design of humanoid robot based on sports analysis. In this study, the motion mode of the robot is generated based on the analysis of human sports movement, and the stability of its gait is controlled based on the ZMP control strategy, and the stable walking of the robot is realized. Firstly, the stable walking conditions of humanoid robot are analyzed, and the ZMP position of multi particle and single particle humanoid robot model is solved; secondly, the real-time ZMP measurement of robot is completed based on the pressure sensor of robot sole, and the algorithm optimization solution of robot hip joint angle is carried out based on ZMP control strategy, The dynamic simulation experiments in webots show that the ZMP point of the robot is always in the stable region during the walking process, which proves the validity of the gait pattern generated based on ZMP. Finally, the humanoid evaluation of the robot walking process is completed. The results of similarity function show that the gait similarity between robot and human body is more than 70% in most of the time, It can meet the human requirements of robot gait.