Introduction: 2-in-1 MBot: Line Follower and Object Avoidance

Picture of 2-in-1 MBot: Line Follower and Object Avoidance

mBot has line follower and object avoidance modes under default program setting. This project shows you how to combine them together.

More tutorials please visit http://www.makeblock.com

/Our community: http://openlab.makeblock.com/

Step 1: Part List

1 x mBot

BUY NOW

Step 2: Assemble the MBot

Picture of Assemble the MBot

Follow the instruction of user manual to assemble the mBot. You can design your own map with black tape.

More tutorials please visit http://www.makeblock.com/

Our community: http://openlab.makeblock.com/

Step 3: Programming

Picture of Programming

If you want to program mBot from browser, you need to install the codebender plugin, select board type Makeblock>mCore and correct port and click Run on Arduino. Then sketch will be uploaded to your board. If you prefer to program mBot with Arduino IDE, you need to download the latest Makeblock library and copy it to Arduino libraries folder. You also need to replace the first two lines(#define MeMCore_H #include ) with #include "MeMCore.h" .

More tutorials please visit http://www.makeblock.com/

Our community: http://openlab.makeblock.com/

Step 4: Play and Have Fun

Upload program to mBot. Your mBot is ready to go.

More tutorials please visit http://www.makeblock.com/

Our community: http://openlab.makeblock.com/

Comments

About This Instructable

3,782views

18favorites

License:

Bio: Makeblock was founded in 2012 as the world's first open-source robot and programing platform. With more than 400 mechanical components, electronic modules, and software ... More »
More by Makeblock Robotics:How to Use Scratch or Arduino to Program a MBot 3D Capture B by Makeblock How to do a cartoon project with Airblock and paper cups
Add instructable to: