Ride on a table without worry
It has probably already happened to you. mBot is riding on a table and it almost falls to the ground!
You can program mBot so that it automatically rides on the table without falling. You can use the line tracking sensor for this. We already got to know these in this exercise about sensors.
Now try it out for yourself! To make it more difficult for yourself, you can also make the mBot avoid obstacles.
As long as your mBot is moving across the table, the value of the line tracking sensor will be 3. You can also see this by the lights: they will both light up in blue. When mBot gets to the edge of the table, the value will change.
Other mBot to follow
Can you program the mBot to follow another mBot? You can only do this with straight driving, curves are too difficult.
If you want to make it more difficult for yourself, you can also slow down your mBot as soon as it gets closer to the other mBot.