This lesson will show you how to program the mBot to avoid obstacles. It will then show you how test your program on the mBot.
The parts below are required to complete this lesson. Note that all parts except the styrofoam blocks are included in the mBot kit that can be purchased on Amazon.
You can download the mBlock app from mBlock Download if it isn't already installed
Follow the steps below to test out the program you just created
What should change in your program to make the mBot turn left when it senses an obstacle? Make that change and see if it works
When you're ready to try out changes to your program, repeat steps 16 through 19 above
How could you change the program so that you can tell the mBot to stop moving instead of picking it up when you're done? Make that change and see if it works
How can you make the mBot start the obstacle avoidance using the infrared remote control like it did in Lesson 1? Make that change and see if it works