> For the complete documentation index, see [llms.txt](https://learn.pakronics.com.au/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.pakronics.com.au/primary/mbot/preset-modes.md).

# 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**.

![](/files/-Lr3Q9G00oDaXtg-xo_E)

The color of the LED on the main board indicates the current mode:\
![](/files/-Lr3Q9G1T_HJ4l_dD1_h) White: infrared remote control mode\
![](/files/-Lr3Q9G20AIqmiiVX3Gq) Green: obstacle avoidace mode\
![](/files/-Lr3Q9G3Ej0UZU9LUAtu) Blue: line-following mode

**Obstacle avoidance mode**

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

![](/files/-Lr3Q9G4ha1snwTIDJ3S)

**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.**

![](/files/-Lr3Q9G5Bf3HB0UwM5sr)

**Line-following mode**

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

![](/files/-Lr3Q9G6keASFI9gSRPs)
