An ultrasonic module is installed on the robot, so it can detect obstacles ahead and measure the distance, at last avoiding the obstacles in front.
1.Open the code file Avoidance.ino under the path Rollflash Bionic Robot Turtle for Arduino/Code/ 3. Avoidance and upload to the RollFlash.
2.Construct a building for the robot to play. You can see it can avoid obstacles independently. Or just put some barriers for it and observe whether it can bypass. It really does you’ll find. Interesting, isn’t it?