How to set up a map on a Xiaomi robot vacuum cleaner: from scanning to saving zones

Xiaomi laser scanning (LDS) or ToF sensor-enabled robot vacuum cleaners can create accurate maps of spaces, but properly configuring them requires understanding nuances. Without properly calibrating the map, the device can skip zones, move around randomly, or waste time cleaning the same areas again. In this article, we will discuss how to configure the map from scratch, from the first turn on to fine-tuning virtual walls and cleaning areas, and solve typical problems, such as when the robot β€œloses” a stored map after updating the firmware.

Features of mapping depend on the model: for example, Xiaomi Mi Robot Vacuum-Mop 2 Pro uses hybrid navigation (laser) + The camera is also available in the Xiaomi Mi Robot Vacuum. 4C We're going to look at the universal steps that are relevant for most Mi devices. Home/Xiaomi Home, and also point out the key differences for specific models. If your vacuum cleaner does not save the card after turning off, it is not always a breakdown: perhaps just disabled the function Save the map in the cloud.

Preparation of the premises before the first scan

The quality of the card depends on the conditions in the room at the time of the first launch, 70%.

  • πŸͺŸ Lighting is uniform – avoid sharp shadows from furniture or direct sunlight (especially critical for models with cameras, such as Xiaomi). S7).
  • πŸšͺ Doors open to all rooms that need scanning (the robot will not pass through closed openings).
  • 🧹 The floor is cleared of small objects (wires, toys, shoes) – they can block sensors or distort the map.
  • πŸ›‹οΈ Furniture does not cover the corners of the room (the robot uses corners to calibrate the space).

For models with a laser scanner (Xiaomi Roborock S6/S7), the lack of reflective surfaces (mirrors, glass tables) at a height of 10–30 cm from the floor is critical - they can create "false" obstacles. If there is a ladder in the room, temporarily block it with a barrier: the robot can try to go down, which will lead to a fall and reset the map.

⚠️ Warning: Do not run the first scan in an empty room (for example, after repairs). Lack of furniture will lead to the fact that the robot will not be able to fix the reference points, and the map will be distorted. Add at least 2-3 large objects (chair, box) for proper binding.

πŸ“Š What model of Xiaomi robot vacuum cleaner you use?
Xiaomi Mi Robot Vacuum-Mop 2 Pro
Xiaomi Roborock S7
Xiaomi Mi Robot Vacuum 4C
Another model
I haven't bought it yet.

2. First Scanning Enablement and Startup

After unpacking the robot, follow the following steps:

  1. Connect the vacuum cleaner to the charging station and wait for full charging (the indicator will light up in blue).
  2. Install the Mi Home app (for older models) or Xiaomi Home (for newer ones, for example, Roborock Q7 Max+).
  3. Add the device to the application through Add the device β†’ Household appliances β†’ Vacuum cleaner.
  4. Select the region of China (Mainland China) – this will give you access to the advanced map settings (in other regions, some functions may be blocked).

To start the scan:

  1. Put the robot in the charging station.
  2. In the app, click Map β†’ Start scanning (or Clean β†’ Complete cleaning to automatically create the map).
  3. Wait for the robot to go around the room, and it takes 10 to 30 minutes depending on the area.

If the robot stops and signals an error (e.g. flashes red), check:

  • πŸ”‹ Charge level (should be) >20%).
  • πŸ“‘ Wi-Fi stability (robot loses communication when signal is weak).
  • 🚫 Lack of sensor-blocking objects (for example, dark carpets can knock down a laser).

πŸ’‘

If the robot is thinking about it in one place for a long time, help it by moving it 1 to 2 meters forward by hand, which often solves the problem of freezing during scanning.

3. Save and edit the map

Once the scan is complete, the map will appear in the App Map section to save it:

  1. Click on the Save Card icon (usually in the upper right corner).
  2. Assign a name (for example, "Apartment - 1 floor").
  3. Activate the Save the Card in the Cloud option (not available for all models).

For editing:

  • πŸ“ Changing the boundaries of the rooms: click Edit β†’ Separate rooms and draw lines along the contour of the premises.
  • 🚫 Virtual Walls: Use the Add Virtual Wall Tool to block areas (such as a baby cot).
  • 🧹 Cleaning Zones: Select Cleaning Only or Exclude.
FunctionDescriptionSupported models
Multi-card navigationKeeping separate maps for each floorRoborock S7, Xiaomi Mop 2 Pro, Q7 Max+
3D-mappingScanning of furniture for bypass routesRoborock S7 MaxV (with camera)
Auto-saving mapThe card is saved after each scan.All models with LDS/ToF
Cloud backupsMaps synced with Xiaomi servers2021 and newer models

⚠️ Note: If after updating the firmware card reset, check the version of the software in Settings β†’ About the device. S5/S6 known firmware error 3.5.8_003021, Solution: Reverse to the version. 3.3.9_002914 hand-stitched.

β˜‘οΈ Preparation for map editing

Done: 0 / 4

4. Optimization of cleaning routes

By default, the robot uses a Z-shaped cleaning algorithm, but it can be changed:

  • πŸ”„ Spiral mode: suitable for large open spaces (included in Cleaning Settings) β†’ Type of cleaning).
  • πŸ“ Priority Zones: Designate frequently contaminated areas (such as near the front door) as High Priority Areas.
  • ⏱️ Rooms Schedule: Set up kitchen cleaning daily, and bedrooms 2 times a week.

For supported models AI-navigation (Roborock) S7 MaxV) is available for Object Recognition, where the robot will automatically traverse shoes, wires or feed bowls to activate it:

  1. Go to Settings β†’ Laboratory β†’ Object Recognition.
  2. Turn on the option and tick the types of objects (for example, β€œShoes”, β€œCables”).

A critical firmware error before version 4.0.0: When you activate the Object Recognition feature, the robot can ignore virtual walls. The solution is to update the software or disable the lab functions.

5. Solving card problems

If the robot:

  • πŸ—ΊοΈ Does not save the card: check if the option Save the card after cleaning is enabled in the settings. for Mi Robot Vacuum models 1S This function is missing – the map is created anew each time it is turned on.
  • πŸ”„ Chaotic moves: reset the card manually (Map settings) β†’ Reset the map) and restart the scan.
  • 🚫 Does not see virtual walls: Update the Mi Home app to version 6.1.400 or later (older versions have bugs with zone displays).

To diagnose scanning errors:

  1. Check the cleaning log in History β†’ Last cleaning β†’ Map.
  2. If the robot is often β€œlost” in one place, inspect the area for interference (metal objects, thick carpets).
  3. For models with ToF sensors (Xiaomi Mop 2 Ultra), the lack of dust on the sensors is critical - wipe them with a dry wipe.
How to reset the card to factory settings?
1. Turn the robot over and press the Reset button (near the Wi-Fi module) hold for 5 seconds. 2. In the app, remove the device and add again. 3. Launch a new scan. ⚠️ After the reset, all the saved areas and virtual walls will be lost!

6. Advanced settings for experienced users

Alternative firmware (such as Valetudo) or Xiaomi APIs can be used to fine-tune the mapping.

  • πŸ“Š Export the card in.svg format for analysis on PC.
  • πŸ”§ Customize scanning parameters (for example, laser pitch or sensor sensitivity).
  • πŸ€– Integrate the robot with Home Assistant for automation over geofences.

To access hidden settings via Mi Home:

  1. Go to the Device Settings β†’ About the device.
  2. Click 5 times on the firmware version and the developer menu will open.
  3. Activate Debugging Mode and Logging Map.

⚠️ Attention: Changing hidden parameters can lead to unstable navigation. For example, increasing the power of the laser above 80% reduces battery life by 15-20%. β†’ Backup.

πŸ’‘

The use of alternative firmware voids Xiaomi’s warranty, and for most tasks, standard tools in the official app are sufficient.

7. Update of firmware and compatibility of maps

After updating the firmware, the card can:

  • πŸ”„ Reset: This is normal for major updates (e.g., with version) 3.x on 4.x). Rescan the premises.
  • πŸ—ΊοΈ If the robot begins to β€œsee” walls where they are not, perform the calibration of the sensors (Settings) β†’ Sizing).
  • 🚫 Stop saving: check if the Mi Home app permissions have reset in your phone settings.

To avoid problems:

  1. Before upgrading, export the card manually (if the feature is supported).
  2. Use stable update channels (no beta versions).
  3. After the update, wait for the robot to fully charge before the first scan.

For the Roborock S7 and later, Cloud Map Backup is available to enable:

  1. Go to Settings β†’ Cloud β†’ Backup maps.
  2. Sign in to your Xiaomi account (be sure to attach your phone number).
  3. Turn on the option and wait for sync (it can take up to 10 minutes).

Frequently asked questions

Why doesn’t the robot save the card after it’s turned off?
The reasons may be: The model does not support saving (for example, Mi Robot Vacuum 1); Save the card in settings is disabled; firmware failure - try updating the software; Solution: check the model in the compatibility table above.
How to transfer the map to a new robot?
It is not officially supported to transfer cards between devices, but you can: Take screenshots of the map and manually restore the zones on the new robot, use Valetudo to export/import.svg files (technical skills required).
The robot gets lost in the same room all the time.
The problem is typical of rooms with: Large glass/mirrors; dark floors (absorb laser beam); metal objects (distort sensor signal); Solution: add a virtual wall to the problem area and split the room in two in the map editor.
Can I use one card for several floors?
No, Xiaomi robots don't support multi-storey maps in a single file. Each floor requires: Create a separate map. Rename it (e.g., "Floor 1", "Floor 2"). Manually switch cards before cleaning. Except: Roborock S7 MaxV with firmware 4.1.0 and above supports up to 4 cards in one profile.
How to calibrate sensors if the map is distorted?
Follow these steps: Place the robot on a flat surface (like a table). Calibrate through Settings β†’ Calibration of sensors. Wait until it is completed (the robot will rotate in place for 1-2 minutes); Restart the scanning of the room. If distortion remains, check the sensors for dust or damage.