2-in-1 MBot: Line Follower and Object Avoidance
by Makeblock Robotics in Circuits > Robots
23586 Views, 33 Favorites, 0 Comments
2-in-1 MBot: Line Follower and Object Avoidance
![1.jpg](/proxy/?url=https://content.instructables.com/FXQ/9W4X/IU807KSR/FXQ9W4XIU807KSR.jpg&filename=1.jpg)
![2-in-1 mBot: Line Follower and Object Avoidance](/proxy/?url=https://content.instructables.com/FKX/6IO5/IU807KTQ/FKX6IO5IU807KTQ.jpg&filename=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/
Part List
1 x mBot
Assemble the MBot
![2.jpg](/proxy/?url=https://content.instructables.com/F50/S1LE/IU807L41/F50S1LEIU807L41.jpg&filename=2.jpg)
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/
Programming
![QQ截图20161013154357.jpg](/proxy/?url=https://content.instructables.com/FWU/K1Q0/IU807L75/FWUK1Q0IU807L75.jpg&filename=QQ截图20161013154357.jpg)
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/
Downloads
Play and Have Fun
![2-in-1 mBot: Line Follower and Object Avoidance](/proxy/?url=https://content.instructables.com/FMS/7C7K/IU807LC2/FMS7C7KIU807LC2.jpg&filename=2-in-1 mBot: Line Follower and Object Avoidance)
Upload program to mBot. Your mBot is ready to go.
More tutorials please visit http://www.makeblock.com/
Our community: http://openlab.makeblock.com/