Building a map for the robot vacuum cleaner Xiaomi: from preparation to fine-tuning

Why the map is so important to a robot vacuum cleaner – and what happens if it is not configured correctly

Xiaomi’s robot vacuum cleaners (including Mi Robot Vacuum, Roborock S7, Xiaomi Mop 2 Pro, and others) use laser rangefinders (LDS) or cameras to scan the room. Without an accurate map, the device moves chaoticly, spends more time cleaning and skips contaminated areas. A properly constructed map allows:

Optimize the route: the robot bypasses the room on the shortest path, saving battery power.

Separate rooms: You can set different cleaning settings for the kitchen, bedroom or corridor.

Avoid obstacles: the device remembers the location of furniture, rapids and forbidden areas.

However, many users face problems: the map is not fully built, rooms are not defined correctly, or the robot is β€œlost” after rearranging the furniture. In this article, we will analyze the step-by-step algorithm for building a map, typical errors and ways to correct them, from basic configuration to advanced features like Zone Cleaning and Multi-Card Plans.

πŸ“Š What kind of robot vacuum cleaner Xiaomi you have?
Mi Robot Vacuum (First Generation)
Roborock S5/S6/S7
Xiaomi Mop 2/2 Pro
Another Xiaomi
Not Xiaomi.

Preparation of the room: what to do before the first launch

Before turning on the robot, check the room for compliance with three key conditions:

  • πŸ”Œ Lighting: LDS-The robot sensor doesn't work well in the dark. Turn on the lights or provide natural light (especially important for models with cameras, such as Roborock). S7 MaxV).
  • πŸšͺ Free passage: remove wires, small objects (socks, toys), lift curtains and fringed mats from the floor - they can block sensors.
  • πŸ›‹οΈ Furniture: Do not move large objects (sofas, tables) during the first scan - this knocks the algorithm of map construction.

Pay attention to the floor covering:

  • βœ… Suitable: laminate, tiles, linoleum, short-tail carpets.
  • ❌ Problems will cause: high pile (robot will get stuck), black or mirrored surfaces (sensors do not recognize them as gender).

⚠️ Warning: If there are glass partitions in the room (such as a shower cabin), paste them with paint tape while scanning.

Remove small objects from the floor |

Close the doors to untidy rooms |

Turn on the lights (if dark) |

Check the battery power of the robot (minimum 50%) |

Install a docking station in the corner (distance to the walls - 0.5 m)-->

Step-by-step: how to build a map in the Mi application Home/Roborock

The process of building a map is the same for most Xiaomi/Roborock models, but there are nuances depending on the firmware.Using the official Mi Home app (for older models) or Roborock (for newer ones).

  1. Connect the robot to Wi-Fi: Launch the app, add the device via Add (+) β†’ Robot vacuum cleaner. Make sure the network is running at 2.4 GHz (5 GHz not supported!).
  2. Run the first scan: Place the robot on the dock, click Start Cleaning in the app. Select Full Cleanup (not Zone or Point!) mode.
  3. Wait until it's finished: The robot will spiral around the room and then perimeter. Don't interrupt the process and don't carry the robot manually, which will lead to an error. Incomplete map. Scan time: 15-40 minutes (depending on the area).
  4. Save the card: Once you have finished cleaning, the Map tab will appear in the app. Click Save (in Mi Home) or Save as a new plan (in Roborock).

If the map is curved (rooms are not separated, walls are wavey), run a re-scan in Map mode (available in Roborock via Settings β†’ Map β†’ Edit β†’ Remodel the map).

Problem.Reason.Decision
The map is not saved.Weak Wi-Fi signal, low battery chargeReboot the robot, check the network connection
Rooms are not sharedThere are no doors or thresholdsAdd virtual walls to the map editor
Robot 'lost' after rebootFailure of the gyroscope or LDS-sensorUpdate the firmware, perform calibration (see section below)

πŸ’‘

If the robot is constantly "stuck" in one place during the scan, check the height of the thresholds. the maximum height overcome for most models is 2 cm.

Map Editing: Rooms Separation, Virtual Walls and No-Go Zones

Once you've built the base card, you need to optimize it. In the Roborock or Mi Home app, open the Map tab and use the tools:

  • πŸ“ Rooms separation: click Edit β†’ Separate rooms. Line doorways, which will allow you to set different cleaning settings for each area (e.g., enhanced cleaning in the kitchen).
  • 🚫 No-go zones: circle areas where the robot cannot enter (animal food, children's toys), Roborock has no-cleaning zones and wash-only zones (for models with wet cleaning function).
  • πŸ”„ Virtual Walls: If the robot tries to drive into narrow passages (for example, between the legs of a chair), add a Virtual Wall via Add β†’ Line.

For multi-card models (such as the Roborock S7):

  1. Create separate maps for each floor.
  2. In the robot settings, select Multi-Card Plans β†’ Add a new floor.
  3. When moving the robot to another floor, it will automatically switch to the corresponding map.

⚠️ Attention: Virtual walls and no-go zones are not saved when you reset the robot to the factory settings. Take a screenshot of the map in the application or export it through Settings β†’ Map. β†’ Exports (available at Roborock).

How to import a card after resetting?
1. Export the card in.map format before reset. 2. After reset, connect the robot to the account and import the file through Settings β†’ Map β†’ Import. 3. Adjust the zones manually if necessary.

Calibration of sensors: what to do if the robot β€œfloats” or builds a map of the curve

If the robot is not accurately positioned (e.g., it is displaced 10 to 20 cm from the actual route), the problem may be:

  • πŸ”‹ Battery discharge (below 20% charge sensors are unstable).
  • πŸŒ€ Contaminated. LDS-sensor (dust on the lens distorts the laser beam).
  • πŸ“‘ External interference (sunlight, mirror reflections).

How to perform calibration:

  1. Clean it up. LDS-soft brush sensor (do not use wet wipes!).
  2. Place the robot on a flat surface (for example, on a table).
  3. In the app, go to Settings β†’ General β†’ Calibration of the gyroscope.
  4. Follow the instructions on the screen (the robot will rotate in place).

For models with cameras (Roborock S7 MaxV):

  • Check the cleanliness of the lens (wipe with a dry microfiber).
  • Calibrate the camera through Settings β†’ Camera β†’ Calibration.

πŸ’‘

Calibration of sensors is recommended after updating the firmware or if the robot began to β€œlose” after moving to a new place.

Advanced features: Zone cleaning, schedule and smart home integration

After setting up the basic map, you can use advanced features:

  • πŸ“ Area cleaning: in the app circle the desired area and select Area cleaning. Useful for local cleaning (for example, under the dining table).
  • πŸ•’ Schedule: set up automatic day-of-week cleaning. To save battery, select a time when you're not home.
  • πŸ€– Integration with Google Assistant/Alice: Connect the robot to the voice assistant via Settings β†’ Voice assistant. Teams: "Start cleaning," "Go back to baseΒ».

For models with a function of floor washing (Roborock S7, Xiaomi Mop 2 Pro):

  • Set up the washing intensity for different rooms (e.g., increased washing in the kitchen).
  • Use the Mop Raise for carpets (the robot will automatically lift the rag on the pile surfaces).

⚠️ Warning: When setting your schedule, consider charging times. If the robot doesn't have time to return to base before the next cleaning, it will start with the current charge, which will reduce the cleaning area.

Typical mistakes and their solutions: from β€œinvisible” walls to map failures

Even after you set it up properly, you can have problems.

Symptoms.Probable causeDecision
Map is built with "teared" linesMud on LDS-sensor or rapid movement of the robotClean the sensor, start a re-scan in Quiet Cleaning mode
Robot can't see the wallToo dark or shiny surfacesPlug light tape on the walls (5-10 cm wide) at the sensor level
The card is reset after the updateFirmware failure or conflict with Xiaomi serversRoll back the firmware to the previous version or wait for the patch
Robot gets stuck in one placeLow charge or obstacle not visible by sensorsCheck the battery, add a virtual wall in the problem area

If the robot loses the card after returning to the base:

  1. Check the location of the dock: it should stand in the corner, at a distance of at least 0.5 m from the walls and 1.5 m from large objects.
  2. Update the firmware through Settings β†’ Software update.
  3. Reset the card settings: Settings β†’ Map β†’ Reset the card (data will be lost!).

πŸ’‘

If the robot has become worse to build a map after updating the firmware, try to roll back to the previous version. To do this, download the old firmware from the Roborock forum and manually stitch through Settings β†’ Update β†’ Local file.

FAQ: answers to frequent questions about maps for robot vacuum cleaners Xiaomi

Can I transfer the map from one robot to another?
No, the cards are serially numbered to a specific device, but you can export the zone settings (no-go areas, virtual walls) through a screenshot and manually restore them to a new robot.
Why doesn’t the robot save the map after cleaning?
Reasons: Weak Wi-Fi (the robot can't sync with the server); low battery (less than 15%); application failure (reinstall Mi Home/Roborock); Solution: check the Internet connection, charge the robot to 100% and re-wire.
How to build a map for a two-storey house?
Multi-card models (Roborock S6/S7, Xiaomi Mop 2 Pro): Build a first-floor map, save it. Move the robot to the second floor, start cleaning. In the app, select Add a new floor and save a second map. For older models (such as Mi Robot Vacuum 1S), you will have to manually switch maps through Settings β†’ Map β†’ Download another map.
What if the robot can’t see the dock?
Check: Station location: it should stand in an open space, without obstacles within a radius of 1 m. Lighting: in the dark, the station's infrared sensor may not work. Clean contacts: wipe the metal plates at the station and the robot with an alcohol napkin.
Can I use a robot without a map?
Yeah, but the cleaning efficiency will drop dramatically: βœ… Pros: does not require customization, suitable for small rooms. ❌ Cons: skips zones, spends more time and charge, more often encounters obstacles. To enable random mode, go to Settings β†’ Cleaning regimes β†’ Accidental.