# Preset Modes

There are three preset modes of mBot:

* [Obstacle avoidance](http://docs.makeblock.com/mbot/en/tutorials/preset-modes.html#obstacle-avoidance-mode)
* [Infrared remote control](http://docs.makeblock.com/mbot/en/tutorials/preset-modes.html#infrared-remote-control-mode)
* [line-following](http://docs.makeblock.com/mbot/en/tutorials/preset-modes.html#line-following-mode)

Switch modes using the **infrared remote controller or the on-board button**.

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lr3P7cSyZ6XnRQv1DsI%2F-Lr3Q9G00oDaXtg-xo_E%2F0.png?generation=1570958517725189\&alt=media)

The color of the LED on the main board indicates the current mode:\
![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lr3P7cSyZ6XnRQv1DsI%2F-Lr3Q9G1T_HJ4l_dD1_h%2F1.png?generation=1570958517694389\&alt=media) White: infrared remote control mode\
![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lr3P7cSyZ6XnRQv1DsI%2F-Lr3Q9G20AIqmiiVX3Gq%2F2.png?generation=1570958517698370\&alt=media) Green: obstacle avoidace mode\
![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lr3P7cSyZ6XnRQv1DsI%2F-Lr3Q9G3Ej0UZU9LUAtu%2F3.png?generation=1570958517697502\&alt=media) Blue: line-following mode

**Obstacle avoidance mode**

In obstacle avoidance mode, mBot moves and avoids obstacles autonomously.

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lr3P7cSyZ6XnRQv1DsI%2F-Lr3Q9G4ha1snwTIDJ3S%2F4.png?generation=1570958517721959\&alt=media)

**Infrared remote control mode**

A special infrared remote controller is included in the package. You can use the controller to control mBot, such as speed, direction, and others.

**Note: place your mBot on a piece of smooth and flat ground.**

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lr3P7cSyZ6XnRQv1DsI%2F-Lr3Q9G5Bf3HB0UwM5sr%2F5.png?generation=1570958517729723\&alt=media)

**Line-following mode**

In line-following mode, mBot moves autonomously along the black lines on the map.

![](https://2169521322-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fpakronics-education%2F-Lr3P7cSyZ6XnRQv1DsI%2F-Lr3Q9G6keASFI9gSRPs%2F6.png?generation=1570958517685142\&alt=media)
