Snake-like robots can imitate the movement patterns of animals in nature and enter the space that traditional robots cannot enter, which adapt to environments that humans cannot reach, and expand the field of human exploration. However, it is often challenging to realize autonomous navigation and simultaneously avoid obstacles under an unknown environment, that is, active SLAM (Simultaneous Localization and Mapping). This paper proposes an autonomous obstacle avoidance method combined with SLAM based on deep reinforcement learning for a wheeled snake robot by using a multi-sensor. Firstly, we design a modular wheeled snake robot structure with lightweight materials based on orthogonal joints and build a three-dimensional model of a snake robot in Gazebo. Secondly, the SLAM based on two-dimensional LiDAR and IMU is used to realize autonomous navigation under an unknown environment and detect obstacles. At the same time, a Deep Q-Learning-based path planning method of the snake robot is proposed to realize obstacles avoidance during navigation. Finally, simulation studies and experiments show that the designed snake-like robot can realize effective path planning and environmental mapping in environments with obstacles. The proposed active SLAM algorithm improves the success rate of snake-like robot path planning, has better obstacle avoidance ability for obstacles, and reduces the number of collisions compared with the traditional A* and the sampling-based RRT* algorithms.