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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
