Mblock Example Program to avoid falling off table


#1

Anyone here made a program for mbot to avoid falling off a table. I assume you would use the line sensor but have yet to figure out the scratch 2.0 programing for it.

I am using the ipad version of mBlock

If anyone has done this a screenshot of the completed program would be amazing

Thanks

Rob


#2

Test_Obstacle_avoidance_Ultrasound_Plus_floor_detection-Two sides-Fast.sb2 (74,3

You can try that I find it on the web


#3

Here is a C++ program I wrote for table edge avoidance…pushing the ‘D’ button on the remote initiates the mode:

http://somedisassemblyrequired.com/index.php/2017/01/01/mbot-example-program/


#4