This page will show you application of the mbot, and the application is from the 11th chapter of the '' Mbot Introduction ''. This chapter introduces the patrol sensor of the mbot.
The sensor can make the robot move along the black line. There're two sensors in the front of it. Through the reflected light projected by the LED, it detect the offsets of the module against the black line.
We set 3 variables, liner, speed 1 and speed 2, and we set "liner" as the output of the line-patrolling detected. Speed 1 and speed 2 represent two kinds of speed.