'Obstacle Detected' does not work on IPAD mblocky app for mBot bluetooth


#1

Hi All,

I just bought my mBot Kit(Bluetooth Version). I was successfully install ‘mblocky’ app on IPAD and connected it to mBot. I was able to make mBot to move forward / backward. However, when I use ‘Obstacle Detected’ block, the mBot just go to ‘DO’ block even there’s no obstacle in front of mBot (it run backward no matter any distinct of not having obstacle in front). The ultrasonic sensor is connected as light is on. What else should I do to solve this issue?

My program is below.

When Go
if – obstacle detected
do – run ‘backward’ at speed '100’
wait ‘1’ s
else – run ‘forward’ at speed ‘100’


#2

Hi dchan2

The mBlockly App will be offline since we have developed a new App (Makeblock App).
I may suggest that you try Makeblock APP.
If there is still issue, you may attach the screenshoot of your program.


#3

Hi tec_support

I even try mBlock App (download from http://www.mblock.cc/download/) on my desktop (Window 10). I cannot get mBot to detect any obstacle, it could not go into ‘IF’ block even I placed object just in front of mBot. Below is my program:
I wonder if I need to install any special program to get Ultrasonic sensor working? Or if the sensor in the package has manufacture failure and should return / replace it? Please let me know any advise.

mBot Program
if ultrasonic sensor ‘Port 3’ distance < ‘10’ then
– play tone on note ‘C4’ beat ‘Half’


#4

Hi dchan2

You can refer to this document to test if the Ultrasonic sensor works.14. The example program to test if the Ultrasonic module is working properly.docx.zip (20.1 KB)


#5

Does your test program run in a forever loop? Otherwise it will run once only very quickly before you even have a chance to put your hand in front of the bot.


#6

Hi tec_support,

Thanks for the reply. After I switched the cables used from Line sensor into Ultrasonic sensor. I was able to use your test code to check Utlrasonic sensor and it worked. I wonder if it is the cable itself has a problem. Would you advise how to test Line Sensor? Second, I am still unable to use ‘mBlocky’ app on IPAD to detect obstacle. You mentioned mBlocky App will be offline, but why the existing app of the ‘Obstacle Detected’ block does not work? Is it some setting need in the program? I like ‘mBlocky’ because it is a simple interface to teach Elementary school kids to build logic and blocks on IPAD which most schools use it nowadays; on the other hand, ‘Makeblock’ app seems to be just another fancy version of remote control! So, please let me know any advise to make ‘mBlocky’ - ‘Obstacle Detected’ work.


#7

Hi dchan2,

Glad to the Ultrasonic sensor is ok, as for the cable, I suspect it was not plugged in tight instead of faulty, but you may double check.
And you can test the line follower sensor by the following way:
There are two sensors on the Line follower module to detect the white or black color. You can put the Line follower sensor module on a white paper, if the LED corresponding to each sensor lit up, means the line follower sensor is OK.

Actually, the Makeblock App has both control and program function for robot. The program function on Makeblock App is same with the mBlockly.
As for the issue when you use the Makeblock App, you may take a video to show the problem.
Besides, on the running panel, there is a Ultrasonic part which can show the obstacle distance to the Ultrasonic sensor, you can test if it wroks.


#8