Currently, the obstacle avoidance control of patrol robots based on intelligent vision lacks professional controller module assistance. Therefore, this paper proposes a design method of intelligent controller for obstacle avoidance and navigation of electrical inspection mobile robot based on PLC control. The controller designs a laser range finder to determine the required position of electrical patrol inspection. Use PLC as the core controller, and combine sensors, actuators, communication module and PLC selection module in the process of hardware design to achieve autonomous navigation and obstacle avoidance functions of the robot. Then design the software including the PLC compiler system and the virtual machine module. Based on the above steps, design the control module of obstacle avoidance navigation, which realizes the key link of robot autonomous navigation. The test results show that the controller can successfully avoid obstacles, improve the efficiency and quality of inspection, and achieve accurate and fast obstacle avoidance navigation for the electrical inspection mobile robot.