An intelligent mixing system and control method for a hair care formulation

CN122923699APending Publication Date: 2026-10-16SHENZHEN UDREAM TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611038542.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-13
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

然而,该方案中设备端采用单芯片架构,网络通讯与机械驱动控制共用处理资源,在复杂电磁环境下仍存在控制精度不足的问题;且该方案未公开网络断连时的容灾机制,无法保障沙龙业务的连续性

Benefits of technology

[0028] (1) The present invention adopts a dual-core heterogeneous chip architecture, with the communication collaboration chip configured to be dedicated to wireless network communication and MQTT protocol parsing, and the high-performance main control chip configured to be dedicated to touch screen driving and precise motor pulse control. At the hardware level, the network communication that is susceptible to external interference is completely isolated from the mechanical drive that requires absolute precision, so that the high-performance main control chip can use computing resources for precise motor pulse control, eliminating the problem of microsecond-level jitter of motor pulse caused by CPU resource contention in the traditional single-chip solution, and solving the problem of hair color difference caused by insufficient precision of high viscosity dye paste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122923699A_ABST
    Figure CN122923699A_ABST
Patent Text Reader

Abstract

The application discloses a kind of hair formula intelligent mixing system and control method.System includes mobile client application program, cloud server and intelligent toning equipment.Heterogeneous integration communication coordination chip and high-performance main control chip are integrated on the PCBA mainboard of intelligent toning equipment, and the two are connected by local high-speed bus.Communication coordination chip is responsible for Wi-Fi / Bluetooth network communication and MQTT protocol analysis, and high-performance main control chip is responsible for local interactive touch screen driving and the precision pulse control of material conveying mechanism;High-precision weighing sensor real-time acquisition weight data and feedback through hardware interrupt, execute deceleration approach and reverse suction compensation control, so as to realize milligram level mixing precision.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of intelligent hair styling equipment, Internet of Things control, and precision fluid mixing technology, and particularly to an intelligent mixing system and control method for hair styling formulas. Background Technology

[0002] In hair salons, achieving personalized hair coloring results typically requires mixing various dyes and hydrogen peroxide in precise proportions. Existing hair coloring equipment usually employs a single-chip control scheme. When simultaneously handling touch display, network communication, and motor drive, CPU resource contention leads to unstable motor pulse signals, resulting in insufficient precision in dispensing high-viscosity formulations and easily causing color discrepancies. Furthermore, the complex electromagnetic environment in hair salons, with multiple devices sharing a network, means that traditional equipment relying on real-time cloud-based dispensing often experiences coloring interruptions due to network instability, leading to material waste. Simultaneously, stylists may issue coloring commands through multiple methods, and existing systems lack an effective command arbitration mechanism, easily causing system crashes or formula data corruption.

[0003] A Chinese patent with publication number CN 112380247 A discloses a business model for a cloud-based intelligent hair dyeing and color-matching device. This solution uses a camera to acquire the base hair color, transmits the target color data and base color data to a cloud-based data computing center for formula calculation, and then transmits the formula to the intelligent color-matching device for color matching. However, this solution uses a single-chip architecture on the device side, with network communication and mechanical drive control sharing processing resources, resulting in insufficient control precision in complex electromagnetic environments. Furthermore, the solution does not disclose a disaster recovery mechanism in case of network disconnection, failing to guarantee the continuity of salon operations. Summary of the Invention

[0004] To address the problems existing in the prior art, embodiments of the present invention provide an intelligent mixing system for hair care formulas, comprising:

[0005] A mobile client for generating encrypted data packets containing recipe parameters and verification information;

[0006] A cloud server is used to manage the recipe database and to achieve long-term communication with intelligent color mixing devices via the MQTT protocol to distribute the encrypted data packets;

[0007] Intelligent color matching equipment includes PCBA motherboard, high-precision weighing sensor and material conveying mechanism;

[0008] The PCBA motherboard integrates a communication and coordination chip and a high-performance main control chip. The communication and coordination chip and the high-performance main control chip are connected via a local high-speed bus. The communication and coordination chip receives far-field MQTT commands or near-field Bluetooth commands, verifies the received commands, and converts them into standard formula data frames containing feeding parameters for each material channel. The high-performance main control chip receives the standard formula data frames, drives the local interactive touch screen, and controls the material conveying mechanism to perform feeding operations.

[0009] The high-precision weighing sensor is used to collect weight data in real time and feed it back to the high-performance main control chip.

[0010] The high-performance main control chip performs deceleration approximation control and reverse suction compensation control based on the difference between the weight data and the target value of the formula.

[0011] As a further improvement to the above solution, the communication collaboration chip is ESP32-C5, and the high-performance main control chip is ESP32-P4. The communication collaboration chip ESP32-C5 asynchronously transmits the verified standard recipe data frame to the local cache of the high-performance main control chip ESP32-P4 through the local high-speed bus.

[0012] Furthermore, the material conveying mechanism includes at least two peristaltic pumps with independently controllable channels. The high-performance main control chip drives the peristaltic pumps of the corresponding channels to feed materials according to the formula parameters in the standard formula data frame, and performs deceleration approximation control and reverse suction compensation control according to the real-time weight data fed back by the high-precision weighing sensor.

[0013] Furthermore, after the material feeding is completed, the high-performance main control chip feeds back the actual feeding error data and material consumption status recorded by the high-precision weighing sensor to the communication and collaboration chip. The communication and collaboration chip reports the data to the cloud server through the communication protocol. The cloud server adjusts the formula parameters according to the actual feeding error and updates the material inventory of the mobile client synchronously.

[0014] Furthermore, the deceleration approximation control and reverse suction compensation control are configured as follows: when the difference between the current weight data collected by the high-precision weighing sensor and the formula target value is less than a set value 'a', the high-performance main control chip controls the drive motor of the peristaltic pump to decelerate and switch to using micro-step pulses of a certain pulse frequency for slow titration; and when the current weight data reaches the formula target value, the high-performance main control chip controls the peristaltic pump to reverse suction to prevent the material from continuing to drip.

[0015] Furthermore, the intelligent hair care formula mixing system supports three feeding methods: far-field cloud MQTT feeding, near-field mobile Bluetooth feeding, and local touch screen feeding. The communication collaboration chip determines the network connection status by monitoring the Wi-Fi signal strength and data packet loss rate. When the Wi-Fi network connection is abnormal, the intelligent hair care formula mixing system automatically switches to Bluetooth near-field mode to receive formula data.

[0016] Furthermore, the intelligent color matching device also includes a full-color interactive touch screen, which is driven by the high-performance main control chip through a MIPI-DSI interface or an RGB interface, and is used to locally fine-tune the formula parameters and trigger the feeding.

[0017] Furthermore, embodiments of the present invention also provide a control method for intelligent mixing of hair care formulas, comprising the following steps:

[0018] Generate an encrypted data packet containing the target hair color formula parameters through a mobile client application;

[0019] The encrypted data packets are distributed to the communication collaboration chip by the cloud server via the MQTT protocol;

[0020] After receiving the formula data, the communication collaboration chip receives and verifies the encrypted data packet, and converts it into a standard formula data frame after completing the data verification.

[0021] The standard recipe data frame is transmitted through the local high-speed bus to the local cache of the high-performance main control chip by the communication collaboration chip.

[0022] The high-performance main control chip parses the standard formula data frame and drives the material conveying mechanism to perform the feeding operation;

[0023] Weight data is collected in real time by a high-precision weighing sensor and fed back to the high-performance main control chip.

[0024] The high-performance main control chip performs deceleration approximation control and reverse suction compensation control based on the difference between the weight data and the target value of the formula to achieve closed-loop precision mixing.

[0025] As a further improvement to the above solution, the communication collaboration chip determines the network connection status by monitoring the Wi-Fi signal strength and data packet loss rate. When an abnormal Wi-Fi network connection is detected, the system automatically switches to Bluetooth near-field mode, and the mobile client application sends the encrypted data packet directly to the communication collaboration chip.

[0026] Furthermore, after the material feeding is completed, the high-performance main control chip reports the actual feeding error data and material consumption status recorded by the high-precision weighing sensor to the cloud server via the communication and collaboration chip. The cloud server adjusts the formula parameters according to the actual feeding error and updates the material inventory of the mobile client application simultaneously.

[0027] Compared with the prior art, the present invention has the following beneficial effects:

[0028] (1) The present invention adopts a dual-core heterogeneous chip architecture, with the communication collaboration chip configured to be dedicated to wireless network communication and MQTT protocol parsing, and the high-performance main control chip configured to be dedicated to touch screen driving and precise motor pulse control. At the hardware level, the network communication that is susceptible to external interference is completely isolated from the mechanical drive that requires absolute precision, so that the high-performance main control chip can use computing resources for precise motor pulse control, eliminating the problem of microsecond-level jitter of motor pulse caused by CPU resource contention in the traditional single-chip solution, and solving the problem of hair color difference caused by insufficient precision of high viscosity dye paste.

[0029] (2) By integrating a high-precision weighing sensor into the base of the color mixing container, the milligram-level weight change is collected in real time at a high frequency and fed back to the high-performance main control chip through hardware interrupt. Combined with the deceleration approximation algorithm and reverse suction compensation control executed by the main control chip, when the weighing data is close to the target value of the formula, the motor is immediately controlled to decelerate and switch to micro-step pulse slow titration. After the target is reached, the peristaltic pump is immediately controlled to reverse suction to eliminate wall dripping, thus achieving milligram-level mixing accuracy and solving the problems of dripping and formula color difference.

[0030] (3) By supporting three media feeding methods—far-field cloud MQTT, near-field mobile Bluetooth, and local touch screen—and integrating network status monitoring function in the communication collaboration chip, the system automatically switches to Bluetooth near-field mode to receive formula data when the Wi-Fi network connection is abnormal, bypassing the external network to directly send the formula. At the same time, an instruction queue buffer is set up in the high-performance main control chip to execute multi-media concurrent instructions in the order of timestamps. In complex electromagnetic environments and unstable network conditions, it can automatically and seamlessly degrade to local or near-field operation, avoiding color matching interruption and waste of expensive dye raw materials. At the same time, it effectively solves the problem of instruction conflict and system crash when feeding multiple media concurrently.

[0031] (4) By designing two material delivery methods, namely the peristaltic pump liquid channel and the linear guide rod paste channel, under the unified dual-chip control center, the peristaltic pump achieves milligram-level closed-loop control of low-viscosity liquids, and the software algorithm and interface are compatible with the control of high-viscosity pastes. Both methods are finely adjusted in real time by a unified high-precision weighing sensor, realizing the system-level scalability of liquid and paste hair care preparations and improving the applicability of the products.

[0032] Therefore, the technical solution claimed in this invention has broad application prospects. Attached Figure Description

[0033] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.

[0034] Figure 1 This is a schematic diagram of a hair care formula intelligent mixing system according to an embodiment of the present invention.

[0035] Figure 2 This is a flowchart illustrating a control method for intelligent mixing of hair care formulas.

[0036] Explanation of reference numerals in the attached figures:

[0037] 1: Mobile client;

[0038] 2: Cloud server;

[0039] 31: PCBA (Printed Circuit Board Assembly) motherboard;

[0040] 311: Communication and collaboration chip;

[0041] 312: High-performance main control chip;

[0042] 32: High-precision weighing sensor;

[0043] 33: Material conveying mechanism;

[0044] 34: Full-color interactive touchscreen;

[0045] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0046] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0047] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a specific posture. If the specific posture changes, the directional indication will also change accordingly.

[0048] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean abutting; it can mean the internal communication of two elements or the interaction between two elements, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0049] Furthermore, if the embodiments of this invention involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the meaning of "and / or" throughout the text includes three parallel solutions; for example, "A and / or B" includes solution A, solution B, or a solution where both A and B are satisfied simultaneously. Furthermore, the technical solutions of the various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

[0050] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0051] This invention provides an intelligent mixing system and control method for hair care formulas. The invention will be further described in detail below with reference to the accompanying drawings.

[0052] This embodiment provides an intelligent collaborative system for precise mixing of hair care formulas. The system adopts a dual-core heterogeneous chip architecture, which realizes hardware-level physical isolation between network communication and precision drive control.

[0053] like Figure 1As shown, the system comprises a self-developed mobile client application, a self-developed cloud server, and intelligent color mixing equipment. The self-developed mobile client application and cloud server interact with each other in a high-concurrency, low-latency manner via the standard MQTT protocol and RESTful API. The self-developed mobile client application, deployed on smartphones or salon tablets, generates encrypted data packets containing recipe parameters and verification information.

[0054] The core invention of this self-developed software system (cloud and APP) lies in its ability to digitally deconstruct tens of thousands of personalized trend hair color formulas into a linear combination of eight standard basic color shades of hair dye, hydrogen peroxide, and conditioning agents in minute quantities. The device, based on dual-chip hardware with high real-time performance, ensures milligram-level precision in the output of these eight basic materials, thereby completely replacing the traditional reliance on heavy inventory stockpiling of specific finished hair dye shades in hair salons, both technically and commercially.

[0055] The core functional modules of the self-developed mobile client (APP / Mini Program) include:

[0056] Hairstyle parameter input and acquisition module:

[0057] Function: Provides a graphical interactive interface for hairstylists to select or input multi-dimensional original characteristics of consumers, including: target hair color, original hair color base color level (1-10 degrees), hair damage and coarseness, proportion of gray hair, and past history of chemical perming and dyeing.

[0058] Core color matrix calculation module:

[0059] Function: Runs local lightweight logic, and based on the collected multi-dimensional hair parameters, initially matches the color base matrix downloaded from the cloud, and calculates the chemical offset ratio and target color volume required to achieve the target hair color.

[0060] Recipe generation and fine-tuning module:

[0061] Function: Translates color calculation results into milligram-level quality matrix parameters for eight basic hair dyes, hydrogen peroxide, and conditioning aids. Simultaneously, it allows hairstylists to fine-tune the proportions of the eight base colors on the interface based on visual observation and personal experience at the salon, automatically reconstructing the digital formula data package after each adjustment.

[0062] Near Field Bluetooth (BLE) control module:

[0063] Function: Automatically activated when the salon is offline or the Wi-Fi channel is extremely congested. This module compresses the generated recipe data packet into a compact byte stream that supports Bluetooth broadcasting, bypassing the internet to establish a near-field direct connection with the ESP32-C5 chip of the color mixing device and issue feeding commands.

[0064] Core functional modules of self-developed cloud service platform:

[0065] Big Data Engine for Ten Thousand Color Formulas:

[0066] Features: Stores and dynamically maintains a digital standard algorithm for tens of thousands of popular shades derived from 8 basic hair dyes (such as matte cool brown, sophisticated dirty orange, aurora misty blue, etc.). Supports high-frequency online updates of formulas, AI formula recommendations, and formula synchronization with chain salons.

[0067] Device dynamic routing and high-concurrency queue management module:

[0068] Function: This module manages all active color mixing instrument terminals across the network. Since large salons often have multiple devices and numerous stylists submitting recipes concurrently, this module uses a message queue to asynchronously queue and dynamically route color mixing requests, preventing devices from crashing due to concurrent command conflicts.

[0069] Closed-loop reverse error compensation module:

[0070] Function: Receives milligram-level absolute error values ​​between the actual feed weight and the theoretical weight of the formula from the physical device (collected by a weighing sensor, parsed by an ESP32-P4, and reported via C5). The cloud platform uses this module to mathematically model the feed deviation of the device. When subsequently sending formulas to the device, it automatically performs "adaptive micro-incremental compensation" for each channel in the cloud, achieving a deep closed loop of software-defined hardware.

[0071] Consumables Sensing and Intelligent Inventory Module:

[0072] Functions: Real-time cumulative calculation of material consumption for each device across 8 basic material channels, establishing a digital consumables flow log. When the remaining amount of a basic color dye paste falls below a safety threshold (e.g., 15% remaining), an automatic low-level alert is sent to the app, and one-click supply chain replenishment is supported.

[0073] The internal data flow and time-series closed loop of the system are manifested as follows: the hairstylist operates the APP, the cloud adjusts the formulas of tens of thousands, the communication chip receives and verifies the signature, the internal bus main control chip feeds materials, the sensor feedback and reverse MQTT back transmission, and the cloud big data adaptive error compensation and other steps form a periodic closed loop.

[0074] The interdependence and synergy between functional modules are manifested in the coupling of "algorithm derivation" and "high-precision hardware": the color matrix on the APP simplifies "tens of thousands of colors" to "8 basic colors," giving the front-end software a high degree of freedom; however, this model relies on the underlying cloud-based reverse error compensation module and the hardware's ESP32-P4 maintaining milligram-level mixing accuracy. Without software-based adaptive error compensation, the 8-primary-color formula will accumulate errors after multiple batches, leading to color deviation and the failure of the tens of thousands of formula library. The mutual backup and interlocking of "multi-media channels" and "high-concurrency queues": when multiple hairstylists operate concurrently, the dynamic routing and queue management module establishes a serial queue in the cloud, forcing the color-matching device into a "busy-time locked" state, blocking unnecessary screen interruptions. When a network anomaly is detected, the near-field Bluetooth control module is forcibly activated locally on the client, bypassing cloud routing, and the local state machine takes over device operation, thus constructing a technical disaster recovery backup in a salon's high-interference environment at the software level. "Data reverse feedback" drives "software-defined hardware": Traditional equipment software is only responsible for issuing one-way instructions, while the reverse error compensation module in this ecosystem relies on the reverse data flow from physical weighing feedback. This mechanism of dynamically updating the equipment deviation model makes the software's control over the hardware more precise as the frequency of use increases.

[0075] It is understandable that the aforementioned self-developed mobile client applications are not limited to native apps, but can also be in the form of WeChat mini programs, Alipay mini programs, H5 web applications, etc., as long as they can generate standard recipe data packages.

[0076] Specifically, a hair styling formula intelligent mixing system includes: a mobile client 1 for generating encrypted data packets containing formula parameters and verification information; a cloud server 2 for managing a formula database and distributing the encrypted data packets via a long-term connection communication with an intelligent color-mixing device through the MQTT protocol; and an intelligent color-mixing device including a PCBA motherboard 31, a high-precision weighing sensor 32, and a material conveying mechanism 33; wherein the PCBA motherboard 31 integrates a communication collaboration chip 311 and a high-performance main control chip 312, and the communication collaboration chip 311 and the high-performance main control chip 312 communicate via a local high-speed bus. Data connection; the communication collaboration chip 311 is used to receive far-field MQTT commands or near-field Bluetooth commands, and after verifying the received commands, convert them into standard formula data frames containing feeding parameters of each material channel; the high-performance main control chip 312 is used to receive the standard formula data frames, drive the local interactive touch screen, and control the material conveying mechanism 33 to perform feeding operations; the high-precision weighing sensor 32 is used to collect weight data in real time and feed it back to the high-performance main control chip 312; the high-performance main control chip 312 performs deceleration approximation control and reverse suction compensation control according to the difference between the weight data and the formula target value.

[0077] It is understood that the local high-speed bus in the above embodiments is not limited to the SPI bus, but may also be a UART bus, I2C bus, CAN bus or dedicated parallel bus, etc.

[0078] According to one embodiment of the present invention, cloud server 2 is deployed in the cloud and includes a recipe database and a device routing management module for managing the recipe database and for distributing the encrypted data packets through long-term connection communication with the intelligent color matching device via the MQTT protocol.

[0079] According to one embodiment of the present invention, the communication collaboration chip 311 adopts an ESP32-C5 chip, which integrates a 2.4GHz / 5GHz dual-band Wi-Fi 6 module and a Bluetooth 5.0 module. This communication collaboration chip 311 is dedicated to wireless network communication and MQTT protocol parsing, maintaining a long MQTT connection with the cloud server 2, or receiving near-field Bluetooth commands from the mobile client. The high-performance main control chip 312 adopts an ESP32-P4 chip, which is a RISC-V high-performance processor with hardware graphics acceleration. This high-performance main control chip 312 is dedicated to driving the local full-color interactive touchscreen, providing smooth local UI interaction, and simultaneously implementing precise pulse control of the material conveying mechanism through a dedicated hardware counter and multiple high-frequency serial ports.

[0080] This invention addresses the unique industrial scenario of hair salons with strong interference and micro-mixing of high-viscosity fluids by inventing a new PCBA circuit topology with "dual-core physical isolation, asynchronous cascading, and data reverse closed loop".

[0081] In this PCBA hardware structure, the ESP32-C5 (communication) and ESP32-P4 (master controller) achieve complete "physical boundary isolation between power and signal". Both cores use completely independent LDO / DC-DC regulated power rails, and the digital signal lines between the two cores are cascaded with high-speed, low-impedance physical isolation / impedance matching resistor arrays. High-frequency digital noise from the external network is completely intercepted within the hardware boundary of the ESP32-C5, ensuring the purity of power and signals on the ESP32-P4 driver side. This invention configures the ESP32-C5 and ESP32-P4 in a "hardware cache-based asynchronous cascaded structure" in terms of hardware topology. The high-speed SPI pin of the ESP32-P4 is directly connected to an external SRAM buffer. When the ESP32-P4 receives data from the cloud, the data is directly written into this physical buffer; the entire process does not occupy any interrupts or clock cycles of the ESP32-P4 core processor. Only when a dose of the formula has completely fallen into the buffer and the machine is currently idle will the ESP32-P4 be notified to read it once via a single hardware interrupt line.

[0082] This invention features a specific design in its physical routing: the Data Ready hardware interrupt pin of the high-precision weighing sensor's analog-to-digital converter chip (such as a 24-bit ADC chip) is directly and exclusively connected to the dedicated low-latency hardware counter pin of the main control chip ESP32-P4. Meanwhile, the weighing data bus also has a physical branch directly connected to the ESP32-C5. This allows the ESP32-P4 to respond to weight changes and trigger the "braking algorithm" within microseconds, while the ESP32-C5 can read data and send it back to the cloud in parallel without interfering with the ESP32-P4's calculations. To support the concurrent driving of the "8 basic dye channels," this invention utilizes the ESP32-P4's IO matrix to design a multi-channel independent hardware timer pulse output bus. The enable and pulse terminals of the 8 peristaltic pump drivers are directly bound to the physical pins of the high-priority hardware PWM (MCPWM) register inside the ESP32-P4, ensuring from the hardware level that the 8 channels can achieve milligram-level "parallel operation, independent deceleration, and independent closed-loop control."

[0083] According to one embodiment of the present invention, the communication collaboration chip 311 and the high-performance main control chip 312 are connected via a local high-speed bus. In this embodiment, the local high-speed bus adopts the SPI bus. After receiving a far-field MQTT command or a near-field Bluetooth command, the communication collaboration chip 311 decrypts and verifies the received command. After verification, the communication collaboration chip 311 converts the formula data into a standard formula data frame containing the feeding parameters of each material channel. The standard formula data frame adopts a custom hair care formula standard frame format, containing parameters such as material type, target weight, and feeding speed of each channel. The communication collaboration chip 311 asynchronously transmits the verified standard formula data frame to the local buffer of the high-performance main control chip 312 via the SPI bus. This asynchronous transmission method avoids any real-time interference to the main control chip's motor control during network communication. After receiving the standard formula data frame, the high-performance main control chip 312 parses the formula parameters, drives the local interactive touch screen to display the formula information, and controls the material conveying mechanism 33 to perform the feeding operation.

[0084] It should be noted that, to prevent momentary signal jitter caused by strong electromagnetic interference in hair salons, this invention establishes a 'serial locking mechanism' in the algorithm: once the ESP32-P4 responds to a feeding request for the local screen or via C5 through either Bluetooth or MQTT, the main control chip P4 will immediately monopolize the 8-channel drive register and temporarily disable or shield the interrupt receivers of the remaining communication buses at the hardware level. The hardware lock is only released after the current 8-primary-color closed-loop feeding is completely completed and the data is reverse-synchronized back to the cloud. This structure reconstructs an anti-collision firewall at both the software and hardware levels.

[0085] In this embodiment, the material conveying mechanism 33 includes at least two independently controlled peristaltic pumps and a liquid storage silo for storing different types of liquid materials. The liquid storage silo is used to store low-viscosity liquid materials, such as hydrogen peroxide and scalp protectants. Each peristaltic pump channel is independently controlled and driven by a high-performance main control chip 312 sending PWM pulse signals through an independent serial port. Based on the formula parameters in the standard formula data frame, the high-performance main control chip 312 sends pulse signals to the peristaltic pump drive motor of the corresponding channel to control the peristaltic pump to perform quantitative material extraction. The peristaltic pump achieves liquid delivery by squeezing a flexible tube, featuring high precision and no liquid contamination.

[0086] According to one embodiment of the present invention, a high-precision weighing sensor 32 is disposed on the base of the color mixing container for real-time acquisition of weight data. In this embodiment, for example, the high-precision weighing sensor 32 can acquire weight changes with an accuracy of 0.01g in real time at a frequency of 100Hz. The high-precision weighing sensor 32 feeds back the weight data to the high-performance main control chip 312 via a hardware interrupt. The hardware interrupt method ensures the real-time nature of the weight data feedback, enabling the high-performance main control chip 312 to respond to weight changes within microseconds and adjust the feeding speed in a timely manner.

[0087] The high-performance main control chip 312 performs deceleration approximation control and reverse suction compensation control based on the difference between the weight data and the formula target value. The specific control process is as follows: For example, when the difference between the current weight data collected by the high-precision weighing sensor and the formula target value is greater than 0.5g, the high-performance main control chip controls the peristaltic pump drive motor to feed material using pulse signals at a normal frequency. When the difference between the current weight data and the formula target value is less than 0.5g, the high-performance main control chip 312 immediately controls the peristaltic pump drive motor to decelerate and uses micro-step pulses with a pulse frequency lower than the normal frequency for slow titration, achieving slow and precise feeding. When the current weight data reaches the formula target value, the high-performance main control chip 312 immediately controls the peristaltic pump to stop forward rotation and controls the peristaltic pump to reverse suction, causing the peristaltic pump to rotate in reverse for 0.5 to 1 second to prevent material from continuing to drip and eliminate wall-hanging leakage. Through the aforementioned deceleration approach control and reverse suction compensation control, this embodiment achieves milligram-level mixing accuracy, and the feeding accuracy deviation can be controlled within ±0.05g, ensuring the absolute accuracy of the hair dye formula.

[0088] This embodiment of the system supports three feeding methods: far-field cloud MQTT feeding, near-field mobile Bluetooth feeding, and local touchscreen feeding. The communication collaboration chip 311 determines the network connection status by monitoring Wi-Fi signal strength and packet loss rate. When the Wi-Fi signal strength is below a preset threshold or the packet loss rate exceeds a preset threshold, the communication collaboration chip determines that the Wi-Fi network connection is abnormal, and the system automatically switches to Bluetooth near-field mode to receive formula data. During the switching process, the system maintains the integrity and consistency of the formula data. In Bluetooth near-field mode, the mobile client 1 application sends encrypted data packets directly to the communication collaboration chip 311 via the Bluetooth protocol, bypassing the external cloud server, achieving direct near-field feeding and avoiding color matching interruptions and raw material waste. The high-performance main control chip 312 has an instruction queue buffer for storing and executing multi-media concurrent feeding instructions in timestamp order. When instruction conflicts from different media are detected, the instruction queue buffer executes the most recently received instruction in timestamp order, ensuring system stability. After material feeding is completed, the high-performance main control chip 312 feeds back the actual feeding error data and material consumption status recorded by the high-precision weighing sensor 32 to the communication and collaboration chip 311. The communication and collaboration chip 311 reports the data to the cloud server 2 via the MQTT protocol. The cloud server 2 adjusts the formula parameters according to the actual feeding error and synchronously updates the material inventory in the mobile client application 1.

[0089] Specifically, when using MQTT for color mixing: The hairstylist selects the cloud-based formula in the app. The cloud service platform generates a JSON message with a timestamp and a unique verification code, which is asynchronously pushed to the ESP32-C5 via MQTT. The ESP32-C5 decrypts and verifies the formula before sending it to the ESP32-P4 cache for execution via the local bus. When using Bluetooth for color mixing (with network outage protection): When the salon's Wi-Fi is congested or disconnected, the app automatically switches to near-field mode and sends the formula directly to the ESP32-C5 via Bluetooth (skipping the external network), ensuring accurate color mixing even when the salon is offline. When using screen-based color mixing: The hairstylist manually fine-tunes the proportions of each channel and triggers color mixing directly on the local screen driven by the ESP32-P4, based on the customer's hair texture and base color.

[0090] In addition, this system also supports reverse status tracing: after the material is fed out, the ESP32-P4 feeds back the actual feeding error data recorded by the weighing sensor and the material consumption status to the ESP32-C5. The ESP32-C5 then reports the data to the self-developed cloud via MQTT. The cloud updates the material inventory on the APP in real time, realizing adaptive correction of the formula.

[0091] Based on Embodiment 1, this second embodiment further includes a linear guide rail positioning assembly and a linear electric extrusion pusher for extruding and feeding high-viscosity tube-packaged paste. Furthermore, this embodiment achieves system-level scalability with full compatibility for both liquid and paste-based hair care preparations.

[0092] refer to Figure 1 The linear guide positioning assembly includes a one-dimensional linear guide and a guide stepper motor. The linear guide has a slide rail structure, and the guide stepper motor drives the extrusion mechanism to make precise displacements along the slide rail. A linear electric extrusion push rod is mounted on the linear guide and is used to mechanically extrude the tube-packaged paste. The tube-packaged paste, containing materials such as high-viscosity dye paste, is stored in a tube-packaged storage hopper.

[0093] According to another embodiment of the present invention, when the formulation contains a high-viscosity paste material, the high-performance main control chip 312 first controls the guide rail stepper motor of the linear guide rail positioning assembly to precisely displace the extrusion mechanism to align with the designated dye tube compartment. The guide rail stepper motor receives pulse signals sent by the high-performance main control chip 312 and drives the extrusion mechanism to move along the slide rail. Positioning feedback is achieved through photoelectric sensors or encoders to ensure that the extrusion mechanism is precisely aligned with the designated dye tube compartment. For example, the positioning accuracy can be controlled within ±0.5mm. After the extrusion mechanism is aligned, the high-performance main control chip 312 controls the linear electric extrusion push rod to extend and retract forward to mechanically extrude the tube-packaged dye paste. The linear electric extrusion push rod is driven by a motor-driven screw or rack mechanism to realize the forward and backward movement of the push rod. When the push rod advances forward, it extrudes the tube-packaged dye paste, causing the dye paste to be squeezed out from the tube opening.

[0094] According to another embodiment of the present invention, the total amount of material fed is finely adjusted in real time using a high-precision weighing sensor 32. The high-precision weighing sensor 32 collects the weight changes of the color mixing container in real time at a certain frequency and feeds them back to the high-performance main control chip 312 via hardware interrupt. The high-performance main control chip 312 dynamically adjusts the advancing speed of the linear electric extrusion pusher based on the difference between the weight data and the formula target value. When the current weight data is close to the formula target value, the high-performance main control chip 312 controls the pusher to decelerate and push slowly. When the current weight data reaches the formula target value, the high-performance main control chip 312 controls the pusher to stop advancing and return to the initial position, completing the feeding.

[0095] By combining the linear guide positioning assembly and the linear electric extrusion push rod, this embodiment achieves precise extrusion feeding of high-viscosity tube-packaged pastes, expanding the system's applicable material range.

[0096] Obviously, the sampling frequency of the high-precision weighing sensor 32 in the above embodiments is not limited to a fixed frequency, such as 100Hz. It can also be set to 50Hz, 200Hz or higher frequencies according to the actual mixing accuracy requirements. The higher the sampling frequency, the faster the closed-loop control response. Furthermore, the material conveying mechanism 33 in the above embodiments is not limited to peristaltic pumps and guide rail push rods. It can also use other fluid conveying devices such as gear pumps, plunger pumps, and pneumatic valve control, as long as they can accept the pulse signal control of the high-performance main control chip 312.

[0097] In addition, the present invention also provides a control method for intelligent mixing of hair care formulas.

[0098] Specifically, such as Figure 2 As shown, a control method for intelligent mixing of hair color formulas includes the following steps: S10: An encrypted data packet containing target hair color formula parameters is generated through a mobile client application; S20: The encrypted data packet is distributed to a communication collaboration chip via the MQTT protocol by a cloud server; S30: After receiving the formula data, the communication collaboration chip receives and verifies the encrypted data packet, and converts it into a standard formula data frame after data verification; S40: The communication collaboration chip transmits the standard formula data frame to the local cache of a high-performance main control chip via a local high-speed bus; S50: The high-performance main control chip parses the standard formula data frame and drives the material conveying mechanism to perform a feeding operation; S60: Weight data is collected in real time by a high-precision weighing sensor and fed back to the high-performance main control chip; S70: The high-performance main control chip performs deceleration approximation control and reverse suction compensation control based on the difference between the weight data and the formula target value to achieve closed-loop precision mixing.

[0099] In this embodiment, the communication collaboration chip determines the network connection status by monitoring the Wi-Fi signal strength and data packet loss rate. When an abnormal Wi-Fi network connection is detected, the system automatically switches to Bluetooth near-field mode, and the mobile client application sends the encrypted data packet directly to the communication collaboration chip.

[0100] In this embodiment, after the material feeding is completed, the high-performance main control chip reports the actual feeding error data and material consumption status recorded by the high-precision weighing sensor to the cloud server via the communication and collaboration chip. The cloud server adjusts the formula parameters according to the actual feeding error and updates the material inventory of the mobile client application synchronously.

[0101] Through the above technical solutions, the present invention can achieve the following objectives: (1) Hardware-level physical isolation of "communication and mixing drive" to eliminate hair dyeing color difference: The high-energy-consuming, high-latency, and uncertain Internet of Things network protocol stack (MQTT / Wi-Fi 6 / BLE) is completely isolated in a dedicated communication chip ESP32-C5, so that the main control chip ESP32-P4 can use its overall computing resources for local interaction and precise pulse control of the motor. It completely solves the industry problem of motor pulse jitter caused by network data throughput of traditional equipment, which in turn leads to inaccurate extrusion of high-viscosity dye paste. (2) Dynamic arbitration and network outage disaster recovery mechanism of "end-cloud-thing" integrated hardware and software: Through the deep cooperation of self-developed APP, cloud middle platform and dual chips, not only is the queue management of high-concurrency formula requests realized, but also the dynamic switching of Wi-Fi 6 MQTT far field and Bluetooth near field is designed. In the complex electromagnetic interference and network outage environment of the salon, the system can automatically and seamlessly degrade to local / near field operation, ensuring the absolute continuity of hair salon business. (3) High physical property compatibility and forward-looking mechanical expansion design: Under the unified dual-chip (ESP32-C5 / P4) control center, the system not only realizes milligram-level closed-loop control of peristaltic pump liquid delivery through the core implementation, but also forward-lookingly integrates the paste extrusion system of linear guide rail and electric push rod through software algorithms and interfaces, realizing the system-level scalability of "full compatibility of liquid / paste hair care preparations".

[0102] The above are merely optional embodiments of the present invention and do not limit the patent scope of the present invention. All equivalent structural transformations made using the contents of the present invention specification and drawings under the inventive concept of the present invention, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.

Claims

1. A hair styling formula intelligent mixing system, characterized in that, include: Mobile client (1) is used to generate encrypted data packets containing recipe parameters and verification information; The cloud server (2) is used to manage the recipe database and to implement long-term connection communication with the smart color matching device via the MQTT protocol to distribute the encrypted data packets; The intelligent color matching device includes a PCBA motherboard (31), a high-precision weighing sensor (32), and a material conveying mechanism (33). The PCBA motherboard (31) integrates a communication collaboration chip (311) and a high-performance main control chip (312). The communication collaboration chip (311) and the high-performance main control chip (312) are connected via a local high-speed bus. The communication collaboration chip (311) is used to receive far-field MQTT commands or near-field Bluetooth commands, and after verifying the received commands, converts them into standard formula data frames containing material feeding parameters for each material channel. The high-performance main control chip (312) is used to receive the standard formula data frame, drive the local interactive touch screen, and control the material conveying mechanism (33) to perform the feeding operation; The high-precision weighing sensor (32) is used to collect weight data in real time and feed it back to the high-performance main control chip (312). The high-performance main control chip (312) performs deceleration approximation control and reverse suction compensation control based on the difference between the weight data and the formula target value.

2. The intelligent mixing system for hair styling formulas according to claim 1, characterized in that, The communication collaboration chip (311) is ESP32-C5, and the high-performance main control chip (312) is ESP32-P4. The communication collaboration chip (311) ESP32-C5 asynchronously transmits the verified standard recipe data frame to the local cache of the high-performance main control chip (312) ESP32-P4 through the local high-speed bus.

3. The intelligent mixing system for hair styling formulas according to claim 2, characterized in that, The material conveying mechanism (33) includes at least two peristaltic pumps with independently controllable channels. The high-performance main control chip (312) drives the peristaltic pumps of the corresponding channels to feed materials according to the formula parameters in the standard formula data frame, and performs deceleration approximation control and reverse suction compensation control according to the real-time weight data fed back by the high-precision weighing sensor (32).

4. The intelligent mixing system for hair styling formulas according to claim 3, characterized in that, After the material is fed out, the high-performance main control chip (312) feeds back the actual feeding error data and material consumption status recorded by the high-precision weighing sensor (32) to the communication and collaboration chip (311). The communication and collaboration chip (311) reports the data to the cloud server (2) through the communication protocol. The cloud server (2) adjusts the formula parameters according to the actual feeding error and updates the material inventory of the mobile client (1) in a synchronous manner.

5. The intelligent mixing system for hair styling formulas according to claim 1 or 3, characterized in that, The deceleration approximation control and reverse suction compensation control are configured as follows: When the difference between the current weight data collected by the high-precision weighing sensor (32) and the target value of the formula is less than the set value a, the high-performance main control chip (312) controls the drive motor of the peristaltic pump to decelerate and switch to slow titration using micro-step pulses of a certain pulse frequency; and When the current weight data reaches the target value of the formula, the high-performance main control chip (312) controls the peristaltic pump to reverse the suction to prevent the material from continuing to drip.

6. The intelligent mixing system for hair styling formulas according to claim 1, characterized in that, The intelligent mixing system for hair care formulas supports three feeding methods: far-field cloud MQTT feeding, near-field mobile Bluetooth feeding, and local touch screen feeding. The communication collaboration chip (311) judges the network connection status by monitoring the Wi-Fi signal strength and data packet loss rate. When the Wi-Fi network connection is abnormal, the intelligent mixing system for hair care formulas automatically switches to Bluetooth near-field mode to receive formula data.

7. The intelligent mixing system for hair styling formulas according to claim 1, characterized in that, The intelligent color matching device also includes a full-color interactive touch screen (34), which is driven by the high-performance main control chip (312) through the MIPI-DSI interface or the RGB interface, and is used to fine-tune the formula parameters locally and trigger the feeding.

8. A control method for intelligent mixing of hair care formulas, characterized in that, Includes the following steps: Generate an encrypted data packet containing the target hair color formula parameters through a mobile client application; The encrypted data packets are distributed to the communication collaboration chip by the cloud server via the MQTT protocol; After receiving the formula data, the communication collaboration chip receives and verifies the encrypted data packet, and converts it into a standard formula data frame after completing the data verification. The standard recipe data frame is transmitted through the local high-speed bus to the local cache of the high-performance main control chip by the communication collaboration chip. The high-performance main control chip parses the standard formula data frame and drives the material conveying mechanism to perform the feeding operation; Weight data is collected in real time by a high-precision weighing sensor and fed back to the high-performance main control chip. The high-performance main control chip performs deceleration approximation control and reverse suction compensation control based on the difference between the weight data and the target value of the formula to achieve closed-loop precision mixing.

9. The control method for intelligent mixing of hair care formulas according to claim 8, characterized in that, The communication collaboration chip determines the network connection status by monitoring the Wi-Fi signal strength and data packet loss rate. When an abnormal Wi-Fi network connection is detected, the system automatically switches to Bluetooth near-field mode, and the mobile client application sends the encrypted data packet directly to the communication collaboration chip.

10. The control method for intelligent mixing of hair care formulas according to claim 8, characterized in that, After the material feeding is completed, the high-performance main control chip reports the actual feeding error data and material consumption status recorded by the high-precision weighing sensor to the cloud server via the communication and collaboration chip. The cloud server adjusts the formula parameters according to the actual feeding error and updates the material inventory of the mobile client application in a synchronous manner.

Citation Information

Patent Citations

  • Cloud communication intelligent hair dyeing and color mixing equipment business model

    CN112380247A