Principle of operation and setting up the soap dispenser Xiaomi

Automation of household processes is no longer a fantasy, and even simple things like hand washing can now be technologically advanced. Xiaomi’s smart soap dispenser has become a popular element of the smart home ecosystem thanks to its minimalist design and functionality. Many users purchase this gadget without fully understanding the physical and software principles underlying its work.

The device is based on precise mechanics combined with optical sensors, which allows you to dispense a strictly dosed portion of the product without physical contact. Understanding how the infrared sensor interacts with the microprocessor will help avoid typical operating errors and extend the life of the device. In this article, we will discuss in detail the internal device, algorithms, and nuances of maintenance of the popular gadget.

It's a sealed system where the electronics are protected from moisture, which is a critical parameter for the bathroom, and it's based on the pressure difference and the operation of a miniature electric motor that's triggered by the sensor. Let's look at what components make this mechanism work.

Main components and structure of the mechanism

Xiaomi's internal dispenser can be divided into three key modules: a sensor-based control unit, a pump system, and a liquid tank. The upper part of the casing, where the infrared transceiver is located, is responsible for detecting the object. When you put your hands in, the sensor detects the change in the reflected signal and sends a command to start the motor.

The centerpiece is a peristaltic or piston pump (depending on the model, for example, Xiaomi Mijia Auto Induction or MiniJ).It is this assembly that creates the necessary pressure to lift the fluid through the tube. The motor is powered by a battery, which is usually located at the bottom of the body for the correct centering of gravity.

This sealing is achieved by using high-precision silicone seals and threaded connections, which prevents moisture from entering the electronic board that governs the logic of operation, and it is important to understand that the failure of the seals when self-repaired can lead to the failure of the device.

⚠️ Warning: When disassembling a battery replacement dispenser or cleaning, make sure the silicone pads are installed evenly.The soapy water hitting the board contacts causes instant corrosion and irreversible damage.

A key element of the feed system is a tube that sinks into the tank, and its diameter is tailored to minimize hydraulic resistance while allowing for rapid lifting of the viscous fluid, and some models have a filter mesh at the end of the tube to prevent large particles from entering the pump mechanism.

Technical details of the sensor
Inside the plastic window, there's an IR LED and a photodetector. The LED emits an invisible beam that bounces off the hands and hits the receiver. The microcontroller analyzes the intensity of the reflected signal and, if it exceeds the threshold, triggers a dosing cycle.

Algorithm of work and sensory control

The soap dispensing process is done using a strict algorithm written in the device's microcontroller, and the system is in standby mode, consuming minimal energy, in which the proximity sensor is questioned several times per second, and as soon as an object appears in the range (usually 5-7 cm), activation occurs.

Then the motor is started for a pre-programmed period of time, usually 0.5-1 second, which is enough time to release about 0.25 ml of funds. After the cycle is completed, the motor stops, and the system goes back to sleep to save battery power.

  • πŸ–οΈ Detection: Sensor fixes hand at a distance of up to 7 cm.
  • βš™οΈ Activation: The microprocessor applies voltage to the motor.
  • πŸ’§ Dosing: The pump gives a portion of the funds for 0.5-1 second-second.
  • πŸ”‹ Energy Saving: The device goes into deep sleep immediately after a cycle.

There's also a mode to prevent accidental alarms. If the sensor "sees" an object constantly (for example, you left a cloth next to the dispenser), it can lock up for a while. This is implemented in firmware to protect the battery from rapid discharge. In models that support Bluetooth or Zigbee, the algorithm can be more complex, including usage statistics.

πŸ“Š What type of dispenser do you have?
Ordinary mechanical, Automatic Xiaomi, Other brand, No dispenser yet

Types of soap used and viscosity of liquid

One of the most important aspects of operation is choosing the right filler: pump mechanics are designed to work with liquids of a certain viscosity. Using too thick soap can lead to overloading of the motor and rapid discharge of the battery, and too liquid means will flow out by gravity or drip.

The ideal choice is a special foam filler or medium-density liquid soap. If you use a concentrated product, it is often recommended to dilute it with water in a ratio of 1: 3 or 1: 4, as indicated in the instructions for the Xiaomi Mijia model. This not only saves consumables, but also optimizes the operation of the foaming agent (if it is provided by the design).

Type of instrumentRecommendationImpact on the pump
Foamy soapRecommendedOptimal load, easy cleaning
Liquid soap (thick)It requires dilution.High load, risk of blockage
Disinfectant (alcohol)Carefully.May damage plastic seals
Oily emulsionsNot recommendedHigh risk of valve sticking

It is worth noting that aggressive chemicals such as chlorine-containing solutions or high-concentration pure alcohol can adversely affect internal materials. Plastic and rubber seals can lose elasticity or become cloudy. For disinfection, it is better to use special formulations certified for automatic dispensers.

πŸ’‘

If you use a thick soap, try to warm the bottle slightly before refueling (up to 30-35 degrees), which will reduce the viscosity and facilitate the initial intake of liquid with the pump.

Instructions for first start and refueling

The right initial installation ensures that the device will last a long time. Start by opening the tank: most models unscrew the top counterclockwise. Don't put too much effort into not breaking the thread on the plastic case.

Put the product in the tank. If you're using the concentrate, pour the water first, then add the soap to make it mix better. Twistle the pump lid back to the end. At this point, it's important not to press the dispenser, because there's no pressure inside yet to supply.

β˜‘οΈ Initial start of the dispenser

Done: 0 / 1

It may take several activation cycles to get the system pumped first, hold your hand to the sensor and wait for the first batch to be delivered. If the soap doesn't go, there may be air in the tube, in which case you can gently turn the device upside down for a couple of seconds (only if it's sealed!) so that the liquid comes to the pump, and try again.

Once successfully launched, check the tightness of the joints, wipe the body with dry cloth and make sure that the joints are not exposed to moisture, and regularly checking these nodes will help to avoid corrosion of contacts in the future.

Setting sensitivity and intervals

Some advanced Xiaomi dispensers, especially those that connect to the hub via Zigbee or Bluetooth Mesh, allow you to customize the settings through the Mijia app. In standard standalone versions, the setting is often limited to a mechanical switch or a combination of buttons.

If your model supports adjustment, you can change the sensor response distance, which is useful if the dispenser is in a niche or there are reflective surfaces nearby that can cause false positives, and you can also adjust the amount of portions you give, which saves consumables.

⚠️ Attention: The sensitivity setting in the application requires a stable connection. If the dispenser does not respond, bring it closer to the gateway or check the battery power before trying to update the settings.

For models without an application, there is often a hidden calibration mode. For example, triple pressing a button or holding the sensor for 5 seconds can put the device in a setting mode. In this state, the LED indicator changes the color or frequency of the blink, signaling readiness to change parameters.

πŸ’‘

Optimal sensitivity setting is a balance between usability and battery saving. Too high sensitivity will lead to frequent false switching.

Typical malfunctions and methods of their elimination

In the process of operation, users can face a number of typical problems, the most common of which is the device buzzes, but the soap does not give out, which almost always indicates suffocation of the system or clogging the exit hole with dried soap.

If the indicator flashes red or makes intermittent sounds, it is a signal of low battery charge. Xiaomi dispensers often use standard AA batteries or built-in batteries. Use of poor-quality batteries can lead to leakage and damage to the contact group.

  • πŸ”‹ Batteries: Check the polarity and charge of the batteries.
  • 🚿 Blockage: Wash the tube and nose with warm water.
  • 🌑️ Temperature: In the cold, the viscosity of the soap grows, making it difficult to work.
  • πŸ“‘ Sensor: Wipe the sensor window from contamination and plaque.

Another common problem is spontaneous activation, which can be caused by direct sunlight hitting the sensor, having IR sources nearby, or contaminating the sensor lens, and regular wiping of the sensor area with soft tissue solves most of these problems.

In the event of a complete failure, when the indicators are not burning and the sound of the motor is not heard, it is worth checking the integrity of the contacts inside the battery compartment. Contact oxidation is a common cause of failure even of serviceable electronics.

How to clean a clogged nose
Remove the top, wash the tube and the outlet with warm water. To remove persistent contaminants, you can use a thin wire or needle, but act extremely carefully so as not to damage the calibrated hole.
Can I use regular liquid soap instead of foam?
Yes, you can, but the result will be different: ordinary liquid soap will be given out with a trickle or a gel-like mass, not foam. To obtain foam from ordinary soap, you need a special foam blower built into some models of dispensers, or pre-dilution and whipping.
How often should I change the batteries in the Xiaomi dispenser?
Battery life depends on the intensity of use and quality of the batteries. On average, a set of 4 AA batteries lasts 3-5 months when used by a family of 3-4 people. Using rechargeable batteries can reduce this period due to less voltage.
Why did the meter stop responding to the hands?
There are several reasons: the batteries have gone down, the IR sensor has become contaminated, or the pump has become a traffic jam, and it is also worth checking whether the dispenser is too close to the mirror or sink, which can knock down the distance sensor.
Is it safe to leave the dispenser under direct sunlight?
No, it's not recommended. The plastic in the case can burn out and become brittle, and heating the contents can change its properties or lead to leakage due to the expansion of the liquid, and the sun can (interfer) with the infrared sensor.