mBot Protocol Windows Library protocol


#1

Is there a Windows library to communicate from a Windows program to an mBot robot? We’re trying to have a “battle bot” competition with mBots at an upcoming event but we don’t want the kids changing the mBlock/Scratch program?

Thanks,
Aram


#2

Anything which can read / write through the serial interface will work. I don’t have a Windows implementation, but you can have a look at this sample program at least to see how the mBot part works:


#3

Hi Andreas,

Thanks for the link. I’ll take a look and see if I can use it.

/Aram


#4

Hi Andreas,

I’ve loaded your program “bluetest_arduino.sb2” and I’m getting an “Undefined” in your “clear buffer” block. I’m running mBlock v3.4.6. Any ideas why I’m getting the error?

Thanks,
Aram


#5

You need to enable the Communications extension in the Extensions menue in mBlock.

Thanks for the hint, I’ll fix that in the project description.


#6

Hi Andreas,

I’ve looked at your code and I’m afraid that it does not help me. You are still running mBlock to talk to the mBot. Someone who has access to the PC can change the mBlock code. I want to prevent that. I want to write my own program that talks to the mBot over the 2.4G wireless interface. So I need to “open” the 2.4G USB dongle and send it data to control the mBot. Hence, I did to know what the protocol is. I know it’s based on Firmata, but I’d like some more details.

Thanks,
Aram


#7