Running program on Mbot


#1

Yea! We finally have remote functions working AND have connected our Mbot to a laptop via Bluetooth. Scratch says the Bluetooth is connected. I have the Board set on Mbot and the Extension on Makeblock.
I have written a short program. When I click on green flag, I can see program is running on Scratch, but Mbot is not doing anything. What step have I missed? I am following the manual “MBock kids maker rocks…”


#2

@Lily,

Please show us the program.

Mike


#3

I feel kinda silly, but I do not know how to copy the scratch program. Should I just type it in?

When flag clicked
forever
set motor M1 speed 50
wait 1 second
set motor M1 speed 0
wait 1 second
etc.


#4

Make sure that no other bluetooth devices are connected to your computer. If you are connected to mBot, the “Connected” status will show in the title bar.
Also, the motors will typically not start at Speed = 50. Try a higher number like 150 or even 255.
Good luck.


#5

This is a bit of fun to try.

Adding some choices when the sensor shows an obstacle nearby would be a good addition to this.


#6

BTW, that is just a screen capture of the code. I don’t know how to capture code longer than on screen length.
Does anybody know if you can print a long program to a printer or file?


#7

Nope, you have to do screenshots. Made life “interesting” when I was writing the eBook for the mBot.


#8

I am pretty sure no others were connected. I have not had any luck pairing with my ipad; If I had the ipad turned off, could it be connected anyway?
I tried a program to control the LED colors. It did not work either.
I will try the faster speeds to see if that will work.


#9

What is the status in the Title Bar? Does it say CONNECTED or NOT CONNECTED?


#10

It says Bluetooth connected


#11

I think that it helps to disable Bluetooth on all other devices which were paired with the bot to avoid trouble with your current device.


#12

Bluetooth Connected - Not saved


#13

ok. Ipad is no longer (never was really) connected.


#14

my program looks just like the one posted above.


#15

No it doesn’t. I don’t have the orange blocks. They are not available on Scratch for MBot.


#16

That should not matter now. The rest of the code should work.


#17

Is there a driver I need to install? My program runs on Scratch, but the Mbot does not respond. I know it is running scratch because it lights up and if I incorporate a sprite, it responds.


#18

Now it really should work.
Does it run if you connect through USB cable?


#19

I will try.


#20

It worked with USB! Now to figure out Bluetooth…