How to draw a map of a robot vacuum cleaner Xiaomi: step-by-step instructions

Modern robot vacuum cleaners are no longer just randomly running devices. Smart models from Xiaomi and Roborock are able to build an accurate navigation map of the room, remember the location of furniture and even distinguish floors in the house. However, it often happens that automatic scanning is not correct, or the user wants to prevent the gadget from entering certain areas in advance.

How to draw a map for a Xiaomi robot vacuum cleaner is a topical question when you move, change layouts, or buy a used device. The Mi Home app provides powerful tools for manually editing a map, creating virtual walls, and zoning rooms. Understanding these processes allows you to turn simple cleaning into a fully automated process that does not require your intervention.

In this article, we will discuss in detail why the robot may not see the map, how to calibrate the sensors correctly and what nuances exist when working with a laser rangefinder (LDS).

Why a Robot Vacuum Can't See a Map or Is Building It Wrong

Before you start drawing manually, you need to understand the cause of the failure of automatic construction. Often the problem is not the software, but the physical conditions of operation. The laser rangefinder installed on the top of the device should have a seamless view of 360 degrees. If the tower gets stuck, contaminated or closed by a foreign object, navigation becomes impossible.

Another common cause is insufficient lighting or, conversely, glare from mirrors and glass surfaces. LDS-They rely on laser light to reflect the light, and black glossy surfaces can absorb the signal, and mirrors can create false reflections, which distort or not save the map.

It's also worth checking the software settings, and sometimes Mi Home resets access rights or de-synchronizes between the server and the device, and in such cases, simply restarting the module or reinstalling the application helps.

⚠️ Warning: Never lift a working robot vacuum cleaner behind the top cover with a rotating laser.This can damage the sensitive motor of the rangefinder tower, and the device will stop building a map forever.

If the automatic scan was successful, but the map "got" or shifted, perhaps the robot did not have enough space to turn.

Preparation of premises and devices for the construction of the map

To create a map successfully, you need to get the environment right, and it's not just a recommendation, it's a technical requirement for SLAM (Simultaneous Localization and Mapping) algorithms to work, and remove all the small objects, wires, socks and toys from the floor, and the fewer obstacles, the more accurate the final layout of the room will be.

Provide good lighting. Although the laser rangefinder works in the dark, optical sensors (if you have them in your model, such as the Xiaomi Vacuum-Mop) need light to correctly detect elevation differences. Open the curtains and turn on the lights in all rooms where cleaning is planned.

Charge the battery to 100%. The mapping process can take anywhere from 20 minutes to an hour, depending on the area of the home. If the battery sits down in the process, the map will have to be rebuilt. Make sure the dock is mounted against the wall and there is a free space of one and a half meters in each direction around it.

☑️ Preparation for map construction

Done: 0 / 4

Before you start, make sure to wipe your sensors. Use dry microfiber to clean the windows of elevation sensors and side impact sensors. Dust on the sensors can lead to false positives and errors in the geometry of the map.

Step-by-step: how to save and edit the map

The manual map editing process is only available once the robot has successfully cleaned and saved the layout of the room at least once, go to the Mi Home app, select your device and go to map view mode, usually a map icon or the map settings item in the upper right corner.

To edit, click on the Edit button (often looks like a pencil or three dots on the menu). Here you can combine rooms, divide them, assign names and types of rooms. This is critical for zoned cleaning, when you only need to clean the kitchen or living room.

To draw a no-go zone or a virtual wall, select a tool that you can draw a rectangle (no-go zone) or a line (virtual wall), and the robot will perceive these drawn boundaries as real physical obstacles.

📊 What is the card problem you most often have?
Robot loses card after cleaning up
Divide rooms incorrectly
Can't see sofas and chairs
The map is constantly flipping.

Once you make changes, be sure to click Save. If you just close the app, all changes will be lost. Some models require confirmation of actions, especially if the changes are related to the global map structure.

Configuring virtual walls and forbidden areas

The virtual wall feature is one of the most useful features of Xiaomi’s ecosystem, which allows you to limit the robot’s access to certain areas without installing physical magnetic tapes, especially for protecting long-pile carpets, areas with scattered toys or places where there is a bowl of water for animals.

The virtual wall acts as an invisible barrier, and the robot sees it with its sensors and turns around before it reaches the line that's drawn, and the forbidden zone (square) causes the device to ignore the area inside the perimeter, even if it's in the middle of the room.

To set up, go to the map menu and select the drawing tool. You can create up to 10 virtual walls and 10 no-go zones on a single map. This is usually enough for a standard apartment. The drawing accuracy is high, but try to step back from the real objects in 5-10 cm so that the robot doesn't get stuck.

Difference Between Wall and Zone
A virtual wall is a line that a robot cannot cross, and a forbidden zone is an area that a robot ignores, but can circle around if the path is through it.

If you move the sofa or change the arrangement of furniture, you may need to redraw the restrictions. Regularly check the relevance of the settings after the general cleaning of the house.

Multi-storey map management and data retention

The flagship models Xiaomi and Roborock (S5 Max, S6, S7, S8 and later) allow you to save up to 4 different maps, which eliminates the need to scan the floor again each time.

To save the second floor map, simply take the robot vacuum cleaner to the next level, put it on the base (or turn it on manually) and start building the map. Once you finish cleaning, the system will suggest saving the new circuit as Map 2.

But there's a caveat: if the robot moves to another floor (e.g., rolls into an elevator or carries it in its arms), it can lose orientation, so when changing floors, it's better to manually select the desired map in the application before launching.

FunctionDescriptionLimits
Virtual wallLinear restriction of movementUp to 10 pcs per card.
The no-go zoneRectangular area of disregardUp to 10 pcs per card.
Preservation of mapsNumber of floorsUp to 4 cards (depending on model)
ZoningRoom divisionNo restrictions.

When working with multiple cards, it is important to keep an eye on firmware updates, and older versions of the software may not handle transitions between cards correctly, leading to a reset of cleaning settings.

Solution: the map has disappeared or shifted

The situation where a map suddenly disappears or shifts 90 degrees is familiar to many users, often because the robot has been raised and moved while it's running, and the gyroscope and accelerometer get confused, and the device loses its reference point.

If the card is missing, try resetting the card completely in your device settings and start building again. Make sure the room hasn't changed since the last successful cleanup. Sometimes cleaning the Mi Home app cache helps.

💡

If the robot loses the card, don't try to reconfigure it right away. Send it to base, wait for full charging, and then start Map mode or quick cleaning for re-scanning.

In some cases, the problem lies in the regional settings of the server. If you are using the Chinese version of the device with a European region in the application, the card functions may not work stable.

⚠️ NOTE: Do not use a robot vacuum cleaner on high-pile surfaces (more than 2 cm) or on black glossy floors without prior testing.This may cause the device to fall or navigation errors.

The stability of the card depends on the technical condition of the wheels and sensors, regularly check whether the hair on the axle of the wheels is wound, and clean the main brush shaft.

Frequently Asked Questions (FAQ)

Can two cards be combined into one?
You can't directly combine two different maps in the Mi Home app, but if the robot loses a piece of the map, it can automatically finish it the next time it cleans, if the lighting and furniture conditions are the same, and in some cases, cleaning the map and starting a full scan of the entire floor without stopping helps.
Why doesn't a robot go under the couch when it's clean?
You're probably below the minimum height threshold that the height sensor detects, or the robot thinks it's a dangerous area, and you can also check if there's a virtual wall in there, and you can try to change the cleaning mode to "Quiet" or "Maximum," which sometimes changes the obstacle-bypassing algorithm.
How to reset the card to factory settings?
To do this, go to the device settings in the app, select “Maps settings” (or “Maps management”), and find “Reset card” or “Clear map”, and then the robot will assume that it is in a new, unknown room, and will start building the map from scratch on the next run.
Does the card work without the internet?
Cleaning a saved card is possible without the Internet if you run it with a button on the case, but editing the map, creating virtual walls and managing via the phone require active connection to the Wi-Fi network and Xiaomi servers.
What if the card is turned 180 degrees?
This is a common calibration error. In map editing mode, you have a "Turn the map" function, and use it to position the map correctly. If this happens all the time, check if the base is on an uneven surface or near a powerful source of interference.