SunFounder PiCrawler Kit
4.6 Obstacle Avoidance
In this project, picrawler will use an ultrasonic module to detect obstacles in front. When PiCrawler detects an obstacle,
it will send a signal and look for another direction to move forward.
Program
Note:
• You can write the program according to the following picture, please refer to the tutorial: How to Create a New
Project?.
4.6. Obstacle Avoidance 103