“…If not, then the robot will carry out the process of walking straight ahead until the sensor detects an uneven surface. After that, it goes into the research of controlling the movement of the hexapod robot for uneven surfaces, moving the leg positions 0,2,4 to the top and forward positions together, then moving the leg positions 0,2,4 to the bottom and forward positions together, movement foot position 0,2,4 to the back position, Move the foot position 1,3,5 to the top and forward position together, Then move the foot position 1,3,5 to the bottom and forward position together, Move the foot position 1, 3.5 to the rear position then the process is repeated until the process is complete [18]. Algorithm flow chart is shown in Fig.…”