China is rich in coal resources, but the complex hydrogeological conditions lead to difficulties in coal mining, such as coal mine collapse, roof and water damage, and other accidents that occur frequently, resulting in many casualties and property losses. The use of coal mine hole detection technology to detect and analyze the internal environment of the coal mine in advance helps to reduce safety hazards and prevent coal mine accidents, for the existing coal mine hole detection technology operation is cumbersome, not easy to control, and insufficient depth of jacking prob-lems, this paper designs a new type of mine hole detection small robot. Firstly, this paper ana-lyzes the function and structural design of the mine hole detection robot, designs the variable diameter function according to the characteristics of narrow and uneven mine holes in coal mines, and analyzes the mechanics of the critical parts through theoretical calculations; secondly, based on the three-dimensional modeling software, established the structural model of the small robot for mine hole detection; after that, designed the robot's hardware circuits and control pro-grams for the presence of water and gas inside the mine hole, highlighting the need to carry out a new type of mine hole detection small robot. After that, we designed the robot's hardware circuit and control program, giving particular emphasis to the safety design of the circuit for the pres-ence of water and gas inside the mine hole of the coal mine. Finally, to verify the feasibility of the design program, the basic parameters and function tests of the mine hole detection small robot are carried out. The experimental results show that the mine hole inspection small robot realized by this design can adapt to the working hole diameter from 65 mm to 100 mm, the maximum working power is only 12 W, and the maximum crawling speed is 3.96 m/min. The maximum crawling slope reaches 90°, which can meet the actual mine hole inspection needs. The research can provide theoretical and design guidance for developing the mine hole detection robot with substantial engineering practical reference value.