Troubleshooting
These steps should get you up and running if you have any problems:
- If the robot complains about importing modules, ensure you have uploaded the code and libraries for this chapter and previous ones.
- If the robot is getting too close before turning, try increasing the
too_close
variable. - With any behavior using motors, ensure the batteries are fresh. Low power can cause stalling motors and malfunctioning sensors.
- The sensors will not detect obstacles that are above or below them. This limitation means the robot will drive into and get stuck on low obstacles or under high ones.
Your robot now avoids walls and objects.