# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.pakronics.com.au/primary/mbot/preset-modes.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
