How Xiaomi Robot Cleaner Builds a Room Map: From LiDAR to LiDAR SLAM-algorithm

Ever wonder how Xiaomi's little round assistant unmistakably walks around the legs of a chair, remembers the location of the sofa and returns to base, even if you rearranged the chair? Behind this "magic" is a complex indoor mapping system combining laser sensors, cameras and advanced algorithms. In this article, we'll look at how Xiaomi's robot vacuum cleaners build maps, what technologies are responsible for this, and why they sometimes "glut" - for example, draw walls where they are not, or forget part of the room.

The current Xiaomi Mi Robot Vacuum, Dreame or Viomi models use three basic navigation methods: LiDAR (laser scanner), visual SLAM (cameras + algorithms), and hybrid systems. Each has its pros and cons. For example, LiDAR works more accurately in the dark, but can blind on mirrored surfaces, and cameras better recognize textures but require lighting. We will analyze how these technologies interact, which Xiaomi models support them, and what to do if the robot begins to confuse rooms after rearranging furniture.

We will focus on the hidden settings in the Mi Home app, which allow you to manually adjust maps, merge zones or prohibit cleaning in certain areas, which are often ignored, although they can radically improve navigation accuracy, and also analyze the typical user errors that cause the robot to “lost” – for example, too often reboot or ignore firmware updates.

1.Mapping technologies in Xiaomi robot vacuum cleaners: LiDAR vs SLAM

Xiaomi’s main difference is the type of navigation system: Budget options (such as the Mi Robot Vacuum-Mop Essential) do without a laser, relying on gyroscopes and collision sensors, such robots move chaotically (“drunk sailor method”) and do not build a map as usual. Xiaomi Robot Vacuum-Mop 2 Ultra or DreameBot X30 Ultra is equipped with full-fledged LiDAR scanners or visual SLAM-system.

Let's see how they work:

  • 🔦 LiDAR (Light Detection and Ranging): Laser module rotates at speed ~300 revolutions per minute, emitting invisible rays, and by the time it bounces back from obstacles, the robot calculates the distance and builds it. 2D-Advantages: works in the dark, high accuracy (inaccuracy) ~Disadvantages: does not recognize colors/textures, may be mistaken on transparent or reflective surfaces (mirrors, glass).
  • 📷 Visually SLAM (Simultaneous Localization and Mapping: The camera captures the surrounding space, and algorithms compare frames by highlighting key points (furniture corners, wallpaper drawings). 3D-Cons: lighting required, sensitive to monochromatic walls.
  • 🤖 Hybrid Systems: Combination of LiDAR + SLAM (Like in DreameBot. Z10 The laser is responsible for the accurate map, and the camera helps to recognize objects (for example, shoes on the floor).

Xiaomi robots with LiDAR often “see” through thin curtains or mesh partitions, while the SLAM-And this explains why some users complain that the robot has "ignored" part of the room -- it just didn't recognize the obstacle as such.

📊 What navigation technology do you prefer in robot vacuum cleaners?
LiDAR (laser)
Visual SLAM (camera)
Hybrid system (LiDAR + SLAM)
I don't care.

2.How Xiaomi robot builds a map: a step-by-step process

When you first turn on the Xiaomi robot vacuum cleaner, it triggers the process of initializing the map. This is what happens behind the scenes:

  1. Room scanning: The robot slowly circles the perimeter of the room, simultaneously rotating LiDAR or shooting with the camera. the scanning speed depends on the model - for example, the Xiaomi S7 spends ~ 5 minutes for a room of 20 m2, and the DreameBot D9 copes in 3 minutes.
  2. Building a raw map: Algorithms combine sensor data into a rough map, and at this point, artifacts may appear, such as a robot mistaking a shadow for an obstacle.
  3. Optimization and saving: It removes noise, smooths corners, and stores the map as a memory, and in the Mi Home app, it is displayed as a diagram of walls, furniture, and areas.
  4. Update for re-cleaning: The robot compares the current data to the stored map and makes edits, for example, if you move a chair, it will update its position.

Important: the first card is always the most inaccurate. The robot needs 2-3 cleanings to get used to the room. If you notice that the map in the Mi Home app has curves or a room has split, do not panic — this is normal for the initial stage. However, if errors persist after 5-7 cleanings, it is worth checking the settings or updating the firmware.

💡

To speed up the construction of an accurate map, run the robot in maximum suction power mode (Settings → Cleanup modes → Turbo), which will make it move slower and scan the room more carefully.

3. Typical cartography errors and how to fix them

Even the most advanced Xiaomi robots are sometimes wrong, and here are the most common problems and solutions:

Problem.Possible causeDecision
Robot 'can't see' part of roomToo dark (for SLAM) or reflective surfaces (for LiDAR)Turn on the lights or cover the mirrors with a cloth. For LiDAR models, check the cleanness of the scanner lens.
The map has "twined" or shiftedThe robot lost orientation due to base movement or strong vibration.Reset the card in the app (Settings → Map → Reset the card) and restart the scan
Walls on the map are curved or intermittentLow scanning speed or interference from other devices (Wi-Fi, microwaves)Run manual cleaning in quiet mode (Mode → Quiet) and make sure there are no sources of interference nearby.
Robot 'forgets' map after updateFirmware reset or cloud sync errorUpdate the Mi Home app and reconnect the robot to Wi-Fi. If it doesn't work, recreate the map.

Note that if the robot is constantly “lost” in the same place (for example, near a staircase or near a glass table), try installing a virtual wall in the application.

  1. Open the map at Mi Home.
  2. Click on the “+” icon → “Virtual Wall” icon.
  3. Draw a line in the problem area.
Why can a robot forget a map after moving?
If you move a robot to another room (like a cottage), it may not recognize the new environment and start building a map from scratch. Some models (like the Xiaomi S7 MaxV) support saving multiple maps, but most need to retrain. To speed up the process, temporarily install a base in the center of the room, which will help the robot navigate faster.

4 Hidden map settings in Mi Home: what you can configure

Many users don't know that the Mi Home app has advanced mapping tools that allow you to not only edit the cleaning areas, but also optimize the robot's routes.

  • 📍 Room separation: Automatic or manual division of space into zones, useful if the robot has combined the kitchen and the corridor into one room. → «Edit» → «Separate rooms».
  • 🚫 No-go zones: You can block cleaning under the carpet or near a pet bowl. → «Add a zone» → «The no-go zone».
  • 🔄 Combining maps: If the robot created two maps for the same floor (for example, after rebooting), they can be merged. → Map. → Combine the cards.
  • 📏 Scaling: If the map doesn't match the actual size, you can adjust it to the apartment plan. Use the Calibration option in the map editing.

Lifehack: If the robot is constantly stuck in a narrow passageway (for example, between the legs of the table), draw a virtual corridor on the map.

  1. Open the map at Mi Home.
  2. Select "Add Zone» → «Virtual corridor».
  3. Draw the line along the desired route.

The robot will follow this path, avoiding collisions.

Make sure the base is on a flat surface.|Close the doors to untidy rooms|Remove small objects (wires, toys) from the floor)|Check the lighting (for the SLAM-model)|Update the firmware of the robot and the application

-->

5. Comparison of Xiaomi models on mapping accuracy

Not all Xiaomi robot vacuum cleaners are equally good at map construction. We analyzed popular models and evaluated them according to five criteria: scan accuracy, map construction speed, working in the dark, recognizing obstacles and supporting multi-card floors.

ModelType of navigationMap accuracyWorking in the darkMulti-cart floorsPrice (roughly)
Xiaomi Mi Robot Vacuum-Mop 2 LiteLiDAR4/5Yes.No.15 000 ₽
Xiaomi Robot Vacuum-Mop 2 ProLiDAR + 3D-ToF5/5Yes.Yes (up to 3 floors)30 000 ₽
DreameBot D9LiDAR4/5Yes.Yes (up to 2 floors)22 000 ₽
Xiaomi S7 MaxVSLAM (camera) + LiDAR5/5Partially (needs IR lighting)Yes (up to 4 floors)45 000 ₽
Viomi V3LiDAR3/5Yes.No.18 000 ₽

Note the Xiaomi S7 MaxV is the only model in the lineup with a hybrid system (LiDAR + SLAM), which allows it to recognize not only walls but also small objects (such as slippers or children's toys). However, it comes at a cost: the price is almost 3 times higher than the budget options. If you want maximum accuracy but the budget is limited, look at the DreameBot D9 - it offers LiDAR and support for multi-card floors for a reasonable money.

💡

Models with SLAM (camera) are better at recognizing objects but require good lighting. LiDAR models are more versatile, but can make mistakes on transparent or reflective surfaces.

6. Impact of firmware and updates on mapping

Many users don't know that the accuracy of mapping depends on the firmware version. The manufacturer regularly releases updates that improve the algorithms. SLAM, add support for new features (such as carpet recognition) or fix bugs. 3.5.8_004026 Xiaomi S7 A bug was fixed that caused the robot to “lost” the map after the reboot.

How to check and update the firmware:

  1. Open the Mi Home app.
  2. Choose your robot vacuum cleaner.
  3. Go to Settings → About the device → Update firmware.
  4. If a new version is available, click “Update”.

Important: don't interrupt the upgrade process. If the robot turns off during the firmware installation, it can cause mapping failure. In the worst case, you'll have to reset the device to factory settings. The average refresh time is 10-15 minutes. If the robot starts to glitches after the update, try:

  • Reboot the robot (hold the power button for 5 seconds).
  • Reset the card (Settings → Map → Reset the card).
  • Reconnect the device to Wi-Fi.
What if the robot “forgot” all the saved cards after the update?
This is a well-known problem with some models (e.g. Xiaomi Mi Robot Vacuum 1S). You can’t restore old cards, but you can speed up the creation of new ones: 1. Set the base in the same place where it was before. 2. Start cleaning in Room mode (not complete cleaning). 3. After the first scan, manually adjust the map in the application.

7.The future of mapping: what to expect from the new Xiaomi models

In 2026, Xiaomi announced several innovations in the field of robot vacuum navigation.

  • 🤖 3D-Cartography: Instead of flat 2D-Robots will build three-dimensional models of the room, which will allow you to avoid obstacles more accurately and even clean under furniture (for example, under the sofa.
  • 🧠 AI object recognition: Cameras will not only build maps, but also identify objects (e.g., distinguish socks from wires) to help avoid chewing on small things.
  • 🌐 Cloud sync maps: Maps will be saved in the Mi Cloud, allowing you to transfer them between devices or recover them after a reset.
  • 📱 Smart home integration: The robot will be able to interact with other Xiaomi devices. For example, if a motion sensor detects a person in a room, the vacuum cleaner will suspend cleaning.

It is expected that in 2026 there will be models with autonomous charging and continuing cleaning, so the robot will return to the base to recharge, and then continue cleaning from the same place where it left off. Now this feature is supported only by flagships like the DreameBot X30 Ultra, but the Sun it will become the standard for the entire lineup.

💡

Xiaomi’s new models will use neural networks to analyze maps, allowing robots to optimize their own cleaning routes, avoiding “useless” passageways through already clean areas.

FAQ: Frequent questions about mapping Xiaomi robot vacuum cleaners

My Xiaomi robot doesn't build a map, it just drives randomly. What do you do?
You probably have a model without LiDAR or SLAM (So, for example, Mi Robot Vacuum-Mop Essential, which is a robot that can't build maps, it moves randomly, but if you have a model with a laser, like Xiaomi. S6), Check: LiDAR lens clean (wipe it with soft cloth) App settings: mapping mode may be disabled (Settings are switched off) → Map. → Enable save map. Firmware version (update it). If nothing helps, reset the robot to factory settings (Settings) → About the device → Resetting settings).
Can I transfer the map from one Xiaomi robot to another?
No, it's impossible. Maps are tied to a particular device by its serial number. However, some models (such as the Xiaomi S7 MaxV) support exporting the card in JSON format for backup. To save the card: Connect to the robot using SSH (technical skills are required). Copy the file /mnt/default/rockrobo/map/. Save it to the computer. But even then transferring the card to another robot will not work - it will only be used for recovery on the same device.
Why does Xiaomi’s robot paint walls where there are none?
This is a typical problem for LiDAR models. Reasons: Laser bounces off glass, mirrors or glossy surfaces, creating "ghost" obstacles. There's too much dust or smoke in the room (laser dissipates); Incorrect calibration of sensors (resolved by resetting the map); Solution: Close the mirrors with a cloth during the first cleaning. Ventilate the room. Manually edit the map in the application by removing the extra walls.
How to get a Xiaomi robot to remember several floors?
Multi-card floors are only available in models that support this option (e.g., Xiaomi S7, DreameBot D9). To add a new floor: Move the base to another floor. Start cleaning, the robot will start building a new map. The Mi Home app will request the second floor to be saved. Confirm. Note: the robot will automatically switch between maps if the base is on another floor. If you move the base back, it will return to the first map.
Can you use a Xiaomi robot without Wi-Fi and an app?
Yes, but with limitations: The robot will clean randomly (no mapping). You can't set up cleaning areas or restricted areas. Functions like schedules or voice control (via Alice) will be unavailable. For models with LiDAR, the map will be built, but not saved. That is, every time you turn on, the robot will scan the room again. To save the map, you need to connect to Mi Home.