Skip to content

Repository files navigation

mbot-control

Motivation

The mBot from the company Makeblock is an entry level educational robot kit. The mBot can be programmed to perform autonomous tasks such as line following or collission detection. However it is not possible to control the mBot non-autonomously, e.g via bluetooth or WiFi. Therefore I created this program to enable controlling the mBot remotely via a bluetooth connection.

Installation

First, download or clone this repo. Download and install mBlock version 3 from here. The newest version of mBlock (version 5) cannot be used since the serial block is not available anymore. After installation, connect your mBot via USB cable to your PC and select your mBot via Connect -> Serial Port -> mBot. Click on File -> Load Project and open the file bluetest_arduino.sb2. Then click on Upload to Arduino to flash your mBot with this program. Turn on your mBot. If everything worked correctly, your mBot should blink red and green alternately.

Run it

Make sure that your mBot is visible in Windows. Navigate to the bin/Release folder and execute mBotController.exe. The following window should pop up:

image

Click on Update. You should get a list of available bluetooth devices in the dropdown, including your mBot. Select your mBot. If the connection was successful, the label should change to connected. Furthermore, the blue blinking LED on your mBot should stop blinking. Click on any of the Forward, Backward, Left and Right buttons. The mBot should start moving. If not, select another characteristic from the second dropdown and click again on any of the 4 buttons.

Note that this program was written in C# and runs under Windows.

References:

About

Bluetooth controller for mBot

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages