Hello there
I just got my mBot and after a few hours of trial&error I managed to write a wall avoidance program. I did this because the default wall avoidance mode activated via the IR remote didn’t really work for some reason - the robot just spins in circles .I even managed to upload it to the robot where it would immediately start to execute. The ultrasonic sensor only worked every now and then but - much worse imo - the program just didn’t stop and I couldn’t find a way to stop neither i the program nor on the bot other than just switchig the bot off. BUT whenever I switch it on again the program would keep executing on and on and on, and the robot neither reacts to the remote nor the reset button (when I press it it stops only to start again a second later
. )
I also would love to know where to get live readings of sensors if that is even possible.
So far I have to say this looked really prmising but at the moment the experience isn’t too great especially compared to my Ev3 which is much much more inuitive and stable. I can’t really imagine a classrom of kids trying to work with this.
Maybe my mBot’s ultrasonic sensor is also broken - which would explain all this a bit.
I would really appreciate if anyone could help me with these many problems.
Thank you in advance.
Program execution and other issues Mbot (BT version)
Hi buddy, hang in there- makeblock is so much better than lego. I am in the process of developing teaching resources for educators using makeblock and mbots- this is my website: www.steminabox.com.au
The easiest way to see the live sensor values is via bluetooth and an app on android or IOS- i use this all the time with my students and I have about 15 makeblock robots in my class plus dozens more out in primary schools that I support.
The next easiest way is by making a variable in your scratch code with the scratch start flag- throw your sensor value into that variable and it will come up live in the scratch animation window- keep the robot tethered - be warned though- it is extremely fussy with the serial connection -so often you have to close the programme down and reconnect serial port and check it with the uppgrade firmware option.
I’ll be doing some videos and powerpoints on these topics soon- just a bit snowed under with my job right now.
Hope this helps.
Best Regards
Tony G. (Steminabox)