This robot was designed to help and lead blind to their lives,just like guide dogs.The most we concentrated on was how to keep blind safe and avoid danger or accident .Seeing guide dogs' information, we found guide dogs' main mission are "go across obstacle" and "give blind a following direction". According to these two, we could more clearly understand our way to focus.
If the scanner detects that stairs or fault in front of blind,then it would warn the blind with alarm and avoid accident happen.
This function can let blind stay in a safety and broad place so that keep them not to walk some place which may not suitable for them,like dead end.
Of course,pass through obstacles is basic necessary for blind to walk easily.The robot would change the road it should move before,then turn other direction that no obstacles to be detected to move.
With graphical programming, we accomplished most of code of project. But it seemed that we could not use statement "break" alone in this mode. So we turned to Arduino mode instead in order to replace _delay(30); with break; to stop our mbot.
To use Arduino IDE, you can click the button on right side of mblock IDE. After open it, we need to change some setting so as to upload Arduino code to mbot without getting error. The key point here is the type of microcontroller which mbot featured. Basically, it based on Arduino Uno so it use ATMega328 too. Click tool -> board, choose Ardiono/Genuino Uno, and choose COM3. Now you are able to use the knowledge of C code. Enjoy it!