Bathroom cabinet light intelligent control method and system based on distance and light induction
By combining microwave sensors and light sensors in an intelligent control method, the problem of the single function of traditional bathroom cabinet lighting systems has been solved, realizing personalized lighting and energy-saving management, and improving user experience and intelligence level.
Patent Information
- Application Number
- CN202511114933.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-11
- Publication Date
- 2025-09-19
AI Technical Summary
Traditional bathroom vanity lighting systems are limited in function and cannot be intelligently adjusted according to user behavior and changes in ambient light, resulting in inconvenience and energy waste.
Employing a distance- and light-sensing-based intelligent control method, combined with microwave sensors and light sensors, it achieves multi-dimensional perception of user behavior and ambient lighting conditions. Through intelligent linkage control of the lower cabinet light strips, mirror cabinet lights, and display screens, it provides personalized lighting and energy-saving management.
It achieves rapid response and precise control of the bathroom cabinet lighting system, adapts to various usage scenarios, optimizes user experience, reduces energy consumption, and enhances the level of intelligence.
Smart Images

Figure CN120676509A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of bathroom cabinet lighting control, and more specifically, to a bathroom cabinet lighting intelligent control method and system based on distance and light sensing. Background Art
[0002] With the continuous development and popularization of smart home technology, users are increasingly demanding smarter, more user-friendly, and more energy-efficient home environments. This is especially true in bathrooms, where bathroom cabinets are a core functional component, and the intelligence of their lighting systems directly impacts the user experience. Traditional bathroom cabinet lighting often relies on manual switches, which are not only inconvenient to operate, such as the risk of wet hands and the difficulty of finding the switch in the dark, but also prone to unnecessary energy waste due to forgetting to turn off the lights, which contradicts the modern concept of green and energy-saving living.
[0003] To improve this situation, some improvement solutions have emerged in the existing technology, such as using a single human infrared sensor to control the on and off of lights, or achieving simple linkage through door-controlled switches. However, such solutions often have relatively simple functions and relatively extensive control logic. For example, simple human body sensing cannot distinguish whether the user is simply entering the bathroom or needs to approach the mirror cabinet to perform specific operations such as dressing and shaving, which require better lighting conditions. It also cannot adaptively adjust according to the intensity of ambient light. This may cause the lights to remain on during bright daytime, or the brightness to be insufficient when the user needs brighter lighting, thereby affecting user comfort and energy efficiency. These solutions fail to fully consider the detailed needs of users in different scenarios and the dynamic changes in environmental factors, making it difficult to provide a truly intelligent and personalized lighting experience.
[0004] Therefore, in order to overcome the deficiencies of the prior art, the present application provides a bathroom cabinet lighting intelligent control solution based on distance and light sensing. Summary of the Invention
[0005] To address the aforementioned technical issues, the present application proposes a method and system for intelligently controlling bathroom cabinet lighting based on distance and light sensing. This system introduces an intelligent control method based on a combination of distance and light sensing, aiming to perceive user behavior and environmental conditions through multiple dimensions.
[0006] According to one aspect of the present application, a method for intelligently controlling bathroom cabinet lights based on distance and light sensing is provided, comprising: when the bathroom cabinet lighting system is in a standby state, the lower cabinet light strip is turned off, the mirror cabinet light is turned off, and all icons on the display screen except the power button are turned off; in response to the microwave sensor detecting that a human body has entered a preset range, the lower cabinet light is turned on, the display screen is turned on, and the mirror cabinet light is intelligently linked; in response to a user clicking a daylight or indoor light touch button, the corresponding mode light of the mirror cabinet light is turned on, and the initial light brightness is intelligently set based on light adaptive logic; when the mirror cabinet light is already on, in response to the user clicking a brightness adjustment button, the light brightness of the mirror cabinet light is adjusted based on the preset logic of the brightness adjustment button; when the mirror cabinet light is already on, in response to the microwave distance sensor detecting that a human body is close to the mirror surface at a distance less than or equal to a preset distance threshold and the residence time is greater than or equal to a preset time threshold, the light brightness of the mirror cabinet light is automatically increased to 100%; in response to the microwave sensor failing to detect a human body for a predetermined period of time, the bathroom cabinet lighting system enters a standby state.
[0007] In the above-mentioned intelligent control method for bathroom cabinet lights based on distance and light sensing, in response to the microwave sensor detecting that a human body enters a preset range, the lower cabinet lights are lit, the display screen is lit, and the mirror cabinet lights are intelligently linked, including: in response to detecting the night mode, the mirror cabinet lights are automatically lit with neutral light and the light brightness is 20%; in response to not detecting the night mode, the mirror cabinet lights are not automatically lit.
[0008] In the above-mentioned bathroom cabinet lighting intelligent control method based on distance and light sensing, the triggering condition of the night mode is: the photoresistor detects that the ambient light intensity is less than or equal to the preset threshold and the system time is between 20:00 in the evening and 6:00 in the morning of the next day.
[0009] In the above-mentioned distance- and light-sensing-based intelligent control method for bathroom cabinet lighting, in response to a user clicking a daylight or indoor light touch button, the corresponding mode light of the mirror cabinet light is illuminated and the initial brightness of the light is intelligently set based on light adaptive logic, including: in response to a user clicking a daylight touch button, the corresponding mode light of the mirror cabinet light is neutral light; in response to a user clicking a indoor light touch button, the corresponding mode light of the mirror cabinet light is warm light.
[0010] In the above-mentioned intelligent control method for bathroom cabinet lights based on distance and light sensing, in response to the user clicking the daylight or indoor light touch button, the corresponding mode light of the mirror cabinet light is illuminated and the initial brightness of the light is intelligently set based on the light adaptive logic, and also includes: in response to the photoresistor detection result of "indoor environment with windows in clear daytime weather", the light brightness is 50%; in response to the photoresistor detection result of "when there is indoor light at night", the light brightness is 80%; in response to the photoresistor detection result of "when there is no lighting at night", the light brightness is 20%.
[0011] In the above-mentioned intelligent control method for bathroom cabinet lighting based on distance and light sensing, when the resistance value of the photoresistor is 0-500 ohms, the photoresistor detection result is "indoor environment with windows in sunny daytime"; when the resistance value of the photoresistor is 500-1M ohms, the photoresistor detection result is "indoor light illumination at night"; when the resistance value of the photoresistor is greater than 1M ohms, the photoresistor detection result is "no lighting at night".
[0012] In the above-mentioned intelligent control method for bathroom cabinet lighting based on distance and light sensing, the brightness of the mirror cabinet light is adjusted based on the preset logic of the brightness adjustment button, and the preset logic is 10% each time.
[0013] In the above-mentioned bathroom cabinet lighting intelligent control method based on distance and light sensing, the preset distance threshold is 250 mm, and the preset time threshold is 3 seconds.
[0014] In the above-mentioned bathroom cabinet lighting intelligent control method based on distance and light sensing, in response to the microwave sensor not detecting a human body for a predetermined period of time, the bathroom cabinet lighting system enters a standby state, including: in response to the microwave sensor not detecting a human body for 30 seconds, the bathroom cabinet lighting system enters a standby state.
[0015] According to another aspect of the present application, a bathroom cabinet lighting intelligent control system based on distance and light sensing is also provided. The bathroom cabinet lighting intelligent control system based on distance and light sensing includes a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor implements the steps of the aforementioned bathroom cabinet lighting intelligent control method based on distance and light sensing when executing the computer program.
[0016] Compared to existing technologies, the present invention provides a method and system for intelligent bathroom cabinet lighting control based on distance and light sensing. By integrating microwave sensors and light sensors, the system achieves real-time, multi-dimensional sensing of user behavior and ambient lighting conditions, and intelligently controls the lower cabinet light strip, mirror cabinet lighting, and display screen in the bathroom cabinet accordingly. Specifically, the system maintains low power consumption in standby mode, retaining only the necessary display. When the microwave sensor detects a person entering a preset range, the system immediately responds by illuminating the lower cabinet light strip and activating the display screen, while also intelligently controlling the mirror cabinet lighting to provide the user with a preliminary illumination and operation interface. Furthermore, the user can select daylight or indoor light mode at the touch of a button. The initial brightness of the mirror cabinet lighting is then intelligently set based on light-adaptive logic, ensuring comfortable and energy-efficient lighting. Once the mirror cabinet lighting is on, the user can fine-tune the brightness using the brightness adjustment buttons to meet their individual needs. More importantly, when the microwave distance sensor detects a person approaching the mirror surface and remaining there for a predetermined period, the mirror cabinet lighting automatically increases to 100%, providing ample illumination for delicate tasks such as applying makeup or shaving. Finally, if the microwave sensors detect no human activity for a predetermined period of time, the system automatically returns to standby mode, effectively managing energy. This multi-sensor fusion control approach ensures a fast and precise response time for the bathroom cabinet lighting system, adapting to various usage scenarios, optimizing the user experience, reducing energy consumption, and enhancing the overall intelligence of the bathroom space. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other purposes, features, and advantages of the present application will become more apparent through a more detailed description of the embodiments of the present application in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the present application and do not constitute a limitation of the present application.
[0018] Figure 1 The figure shows a schematic flow chart of a method for intelligently controlling bathroom cabinet lighting based on distance and light sensing according to an embodiment of the present application.
[0019] Figure 2 The figure shows a schematic flow chart of S2 in the bathroom cabinet lighting intelligent control method based on distance and light sensing according to an embodiment of the present application.
[0020] Figure 3 The figure shows a schematic flow chart of S3 in the bathroom cabinet lighting intelligent control method based on distance and light sensing according to an embodiment of the present application.
[0021] Figure 4 The figure illustrates another schematic flow chart of S3 in the bathroom cabinet lighting intelligent control method based on distance and light sensing according to an embodiment of the present application.
[0022] Figure 5 The figure shows a schematic structural diagram of a bathroom cabinet lighting intelligent control system based on distance and light sensing according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described herein.
[0024] Based on this, this application provides a bathroom cabinet lighting intelligent control method based on distance and light sensing. Figure 1 The figure shows a schematic flow chart of a bathroom cabinet lighting intelligent control method based on distance and light sensing according to an embodiment of the present application. Figure 1 As shown, the distance and light sensing-based intelligent control method for bathroom cabinet lights includes: S1, when the bathroom cabinet lighting system is in a standby state, the lower cabinet light strip is turned off, the mirror cabinet light is turned off, and all icons on the display screen except the power button are turned off; S2, in response to the microwave sensor detecting that a human body enters a preset range, the lower cabinet light is turned on, the display screen is turned on, and the mirror cabinet light is intelligently linked; S3, in response to the user clicking the daylight or indoor light touch button, the corresponding mode light of the mirror cabinet light is turned on and the initial light brightness is intelligently set based on the light adaptive logic; S4, when the mirror cabinet light is turned on, in response to the user clicking the brightness adjustment button, the brightness of the mirror cabinet light is adjusted based on the preset logic of the brightness adjustment button; S5, when the mirror cabinet light is turned on, in response to the microwave distance sensor detecting that a human body is close to the mirror surface at a distance less than or equal to a preset distance threshold and the residence time is greater than or equal to a preset time threshold, the brightness of the mirror cabinet light is automatically increased to 100%; S6, in response to the microwave sensor not detecting a human body for a continuous predetermined time, the bathroom cabinet lighting system enters a standby state.
[0025] For example, in step S1, when the bathroom cabinet lighting system is in standby mode, the lower cabinet light strip and mirror cabinet lights are off, and all icons on the display screen, except for the power button, are off. It should be understood that when the user is not using the bathroom cabinet, the bathroom cabinet lighting system enters a low-power standby state, in which power consumption is reduced to an extremely low level. Furthermore, being in standby mode helps enhance the user experience by avoiding unnecessary light pollution during non-use periods and keeping the bathroom space clean and quiet. Furthermore, the bathroom cabinet lighting system maintains its ability to monitor the environment while in standby mode, ensuring that it can quickly respond and activate the lighting function when needed, providing immediate service.
[0026] Specifically, when the smart bathroom cabinet is first connected to the mains, the central controller module starts up, and all function icons on the display screen will be highlighted for 3 seconds and then go out. Only the time display area and the power button remain lit. If the bathroom cabinet lighting system does not detect human activity within 30 seconds after startup, the bathroom cabinet lighting system will automatically enter full standby mode. At this time, the lower cabinet light strips and mirror cabinet lights will remain off, and all icons on the display screen except the power button will go out. The screen will be completely black, and only the power button will remain lit. In addition, if no user is detected for a long time, the bathroom cabinet lighting system will also enter standby mode. At this time, the lower cabinet lights will go out, the mirror cabinet lights will go out, and all icons on the central controller display screen except the power button will go out. The screen will return to a completely black state, and the power button will remain lit.
[0027] For example, in step S2, in response to the microwave sensor detecting a human body entering a preset range, the lower cabinet lights, the display screen, and the mirror cabinet lights are intelligently linked. It should be understood that by continuously monitoring the presence of a human body through the microwave sensor and triggering the corresponding lighting and display linkage based on the detection results, the bathroom cabinet lighting system can respond instantly and intelligently when a user enters the bathroom space. This avoids the inconvenience of manually searching for and operating switches when entering the bathroom, especially in low-light environments, thereby improving the smoothness and safety of the user experience. At the same time, by illuminating the lower cabinet light strips and display screen, users can be provided with preliminary guiding lighting and an operating interface, paving the way for refined lighting control.
[0028] Specifically, a microwave sensor, which uses the Doppler effect to detect the movement and presence of a target object (such as a human body) by emitting and receiving microwave signals, has the advantages of strong penetration, being unaffected by environmental factors such as temperature and humidity, and having a wide detection range. In one specific embodiment of the present application, the microwave sensor is a 24GHz millimeter-wave radar with a 3-meter detection capability, making it a key component for implementing distance sensing control. When the bathroom cabinet lighting system is in standby mode, the microwave distance sensor continuously operates in the background, detecting whether a person in the bathroom space enters its preset detection range, for example, within 1.5 meters of the bathroom cabinet. Once the microwave distance sensor detects a person entering this preset range, the bathroom cabinet lighting system immediately triggers a series of linked operations: the lower cabinet light strip located at the bottom of the bathroom cabinet will immediately illuminate, providing basic ambient lighting or auxiliary lighting; at the same time, the central controller display will also immediately illuminate, displaying information such as the time, providing an operational interface for the user. After illuminating, the display will return to its state before the person leaves, or display a default message.
[0029] Furthermore, the mirror cabinet lights will be intelligently linked, which means that turning on the mirror cabinet lights is not a simple switch action, but is based on a comprehensive judgment of the environment (such as light intensity) and time (such as night time), to achieve an automated response that better meets user needs. Figure 2 As shown, in response to the microwave sensor detecting a person entering a preset range, the lower cabinet lights are illuminated, the display screen is illuminated, and the mirror cabinet lights are intelligently linked, including: S21, in response to detecting night mode, the mirror cabinet lights are automatically illuminated with neutral light and the light brightness is 20%; S22, in response to not detecting night mode, the mirror cabinet lights are not automatically illuminated. The trigger condition for the night mode is: the photoresistor detects that the ambient light intensity is less than or equal to a preset threshold. For example, if the resistance detected by the photoresistor is greater than 1M ohm (indicating extremely low ambient light, i.e., no lighting at night), and the system time is between 8:00 PM and 6:00 AM the next day. In this way, the microwave sensor senses the entry of a person and intelligently determines the initial state of the mirror cabinet lights based on whether it is in night mode, thereby providing an appropriate lighting response.
[0030] For example, in step S3, in response to a user clicking the daylight or indoor light touch button, the corresponding mode of the mirror cabinet lighting is illuminated, and the initial brightness of the light is intelligently set based on the light adaptive logic. It should be understood that in daily life, people's lighting preferences vary depending on the time of day, the content of their activities, and even their personal moods. For example, in the early morning or during the day, users may prefer the daylight mode that simulates natural light to achieve a clearer and more refreshing visual experience, which is conducive to delicate dressing or shaving. At night or when creating a warm atmosphere, users may prefer the soft indoor light mode to provide a more relaxing and comfortable lighting environment. Therefore, in this application, two lighting modes are provided to meet users' personalized needs for lighting with different color temperatures.
[0031] In one embodiment, Figure 3 As shown, in response to a user clicking the Daylight or Room Light touch button, the corresponding mode light of the mirror cabinet lighting is illuminated, and the initial light brightness is intelligently set based on the light adaptive logic, including: S31, in response to the user clicking the Daylight touch button, the corresponding mode light of the mirror cabinet lighting is neutral light; S32, in response to the user clicking the Room Light touch button, the corresponding mode light of the mirror cabinet lighting is warm light. This setting ensures that the light color temperature mode selected by the user is accurately implemented. Neutral light generally refers to a color temperature between 4000K and 5000K, close to natural white light, and can provide clear and realistic color reproduction; while warm light refers to a color temperature between 2700K and 3500K, with a yellowish tint, creating a warm and relaxing atmosphere.
[0032] After determining the lighting mode, the bathroom cabinet lighting system doesn't simply illuminate the lights at a fixed brightness. Instead, it intelligently sets the initial brightness based on adaptive light logic. This adaptive light logic prevents overly bright lighting in bright conditions, which could cause glare and energy waste; it also prevents overly dim lighting in low light conditions, which could affect user convenience and comfort. This combination of user-selected lighting and intelligent system adjustments significantly enhances the intelligence and user-friendliness of the bathroom cabinet lighting system, ensuring efficient energy management while providing an optimal visual experience.
[0033] In one embodiment, Figure 4 As shown, in response to the user clicking the daylight or indoor light touch button, the corresponding mode light of the mirror cabinet light is lit and the initial brightness of the light is intelligently set based on the light adaptive logic, and also includes: S33, in response to the photoresistor detection result of "indoor environment with windows in clear daytime weather", the light brightness is 50%; S34, in response to the photoresistor detection result of "when there is indoor light at night", the light brightness is 80%; S35, in response to the photoresistor detection result of "when there is no lighting at night", the light brightness is 20%.
[0034] Specifically, a photoresistor is used to accurately detect ambient light intensity in real time. A photoresistor is an electronic component whose resistance changes with ambient light intensity. When the ambient light is stronger, the resistance of the photoresistor decreases; conversely, when the ambient light is weaker, the resistance increases. In this application, the photoresistor is specifically used to detect ambient light intensity. It continuously monitors the ambient light conditions in the bathroom and transmits the detected resistance data to a central controller for processing. In one embodiment, when the resistance of the photoresistor is 0-5K ohms, the photoresistor detection result is "indoor environment with windows in clear daytime weather," and the initial brightness of the mirror cabinet light is set to 50%; when the resistance of the photoresistor is 5K-0.5M ohms, the photoresistor detection result is "indoor environment with lights at night," and the initial brightness of the light is set to 80%; when the resistance of the photoresistor is greater than 0.5M ohms, the photoresistor detection result is "unlit at night," and the initial brightness of the light is set to 20%. This mechanism of dynamically adjusting the initial brightness based on ambient lighting conditions ensures that the light can provide the most appropriate lighting effect when it is first turned on, without the need for the user to manually adjust it again.
[0035] It's worth noting that in other examples of this application, the photoresistor resistance threshold range can also be set based on the user's personal needs. For example, if the user determines that the current scene is "indoor environment with windows in sunny daytime weather," the threshold adaptation instruction can be activated to include the photoresistor value at that time in the new resistance threshold range. This can improve scene adaptability and meet the user's personal needs.
[0036] It is worth mentioning that in other examples of the present application, when a photoresistor is used to detect ambient light modes (such as natural light during the day, indoor light at night, or no indoor light at night), taking into account the composite mode of the ambient light (day-night, natural light-indoor light), it is expected to be able to respond to this composite mode based on the photoresistor resistance threshold interval setting in the composite mode, so that the critical resistance of the photoresistor can also correspond to the turning point of the light intensity mode as accurately as possible.
[0037] That is, in a preferred embodiment, the setting of the photoresistor resistance threshold interval based on the composite mode includes: in the threshold interval setting process, in order to avoid uncontrolled fluctuation of the light intensity-resistance feedback function due to a sudden change in the ambient light mode, firstly performing threshold interval feedback closed-loop control on the first threshold and the second threshold to determine the feedback coefficient, that is, assuming that the first threshold is R1 and the second threshold is R2, for example, in the above example, R1 = 5K ohms and R2 = 0.5M ohms, let:
[0038]
[0039] The feedback coefficient ρ is used to simulate the feedback response of the light intensity mode change and its second-order mode transition based on the threshold difference, thereby achieving stable threshold setting. For example, in the above example, ρ=1.01.
[0040] Then, based on the first threshold, the second threshold, and the feedback coefficient, the possible mode transition out of control is calculated to determine the error distribution value, which is represented by the interval instability of the photoresistor value response mode (that is, the resistance value may erroneously jump when it is near the threshold, which is reflected in the error distribution for the above feedback response), that is:
[0041] τ=(R2-ρR1)(ρR2-R1)
[0042] Wherein, R1 represents the first threshold, R2 represents the second threshold, ρ represents the feedback coefficient, and τ represents the error distribution value.
[0043] The threshold turning point is determined based on the feedback coefficient and the error distribution value, namely:
[0044]
[0045]
[0046] Among them, ω1 represents the first dimension adjustment coefficient, ω2 represents the second dimension adjustment coefficient, ω1,ω2∈10 n , n is an integer used to adjust the decimal dimension, R'1 represents the middle value of the turning point of the first light intensity mode, R'2 represents the middle value of the turning point of the second light intensity mode, R v Indicates the threshold turning point.
[0047] The turning point is used as the feedback directional sensitivity representation, and the first threshold and the second threshold are adjusted to obtain the adjusted first threshold and the adjusted second threshold, that is:
[0048]
[0049] Here, R"1 represents the adjusted first threshold, and R"2 represents the adjusted second threshold.
[0050] In other words, the threshold turning point described here essentially pushes the error distribution of the feedback response toward the actual threshold interval distribution, ensuring directional sensitivity to the threshold interval during the turning feedback. Calibration is then performed using the threshold turning point as a key directional representation to stabilize the threshold interval response. Thus, since the threshold interval itself represents a composite response under different illumination modes, assigning a turning distribution pattern based on nonlinear feedback prevents threshold simplification caused by linear responses while also ensuring interval stability under the intensity mode transition.
[0051] For example, in step S4, when the mirror cabinet light is already on, in response to the user clicking the brightness adjustment button, the mirror cabinet light's brightness is adjusted based on the preset logic of the brightness adjustment button. It should be understood that although the bathroom cabinet lighting system can intelligently set the initial brightness based on light adaptive logic, the user's visual preferences and lighting brightness requirements for specific tasks (such as applying makeup, shaving, and wearing contact lenses) may vary from person to person, and may change over time and with mood. Therefore, providing a manual adjustment function can ensure that users always receive the most comfortable and appropriate lighting experience, thereby greatly improving the user-friendliness and practicality of the product. This manual adjustment capability allows the intelligent lighting system to provide convenience while maintaining personalization and flexibility.
[0052] Specifically, when the mirror cabinet lights are on, users can adjust the brightness by clicking the brightness adjustment buttons on the central controller's display. These buttons typically display increasing or decreasing icons, such as left and right arrows, allowing the user to adjust the brightness. The display simultaneously displays the current brightness percentage, typically ranging from 20% to 99%. Upon receiving the user's instruction to click the brightness adjustment buttons, the bathroom cabinet lighting system adjusts the mirror cabinet light brightness according to a pre-set adjustment logic. In one embodiment, the mirror cabinet light brightness is adjusted based on the pre-set logic of the brightness adjustment buttons, with the pre-set logic being 10% increments. For example, if the current brightness is 50%, clicking the increase button will increase the brightness to 60%, while clicking the decrease button will increase the brightness to 40%. Throughout the brightness adjustment process, the display simultaneously displays the current brightness percentage, providing intuitive feedback to the user. Notably, once the user manually adjusts the brightness, the bathroom cabinet lighting system prioritizes and maintains that setting until the end of the current light usage cycle or the user adjusts it again, thus ensuring the priority and durability of manual adjustments.
[0053] For example, in step S5, when the mirror cabinet lights are already on, the brightness of the mirror cabinet lights automatically increases to 100% in response to the microwave distance sensor detecting that a person is within a preset distance threshold and has been in close proximity to the mirror for a time period greater than or equal to a preset threshold. It should be understood that adequate lighting is crucial when a user approaches the mirror for tasks requiring high concentration and clear vision, such as applying makeup, shaving, inserting contact lenses, or cleansing their face. Although the bathroom cabinet lighting system may have an initial brightness set based on ambient light, this brightness may not be sufficient for delicate operations. By automatically increasing the brightness to 100%, the user eliminates the tedious manual adjustment required, ensuring optimal lighting at critical moments, thereby improving operational precision and comfort. This intelligent brightness enhancement feature demonstrates the bathroom cabinet lighting system's deep understanding of user behavior and proactive service.
[0054] Specifically, this application uses a microwave distance sensor to continuously and accurately monitor the distance between the user and the mirror surface, and makes a judgment based on the user's residence time within this distance. Of course, the above premise is that the mirror cabinet light must be turned on, whether it is automatically lit by human body sensing, manually activated by the user selecting daylight or indoor light mode, or adjusted via the brightness adjustment button. The microwave distance sensor used in this application is specifically a 24G millimeter-wave radar with a 5V power supply and a 3-meter distance detection capability, indicating that the sensor has high-precision and fast-response distance detection capabilities. The bathroom cabinet lighting system will continuously use this microwave distance sensor to detect the distance between the human body and the mirror surface. Once the sensor detects that the human body is approaching the mirror surface, so that the distance is less than or equal to the preset distance threshold, and the user's residence time in this position reaches or exceeds the preset time threshold, the bathroom cabinet lighting system will trigger the logic to automatically increase the brightness. In one embodiment, the preset distance threshold is 250mm, and the preset time threshold is 3 seconds. This means that only when the user is very close to the mirror (for example, less than or equal to 250 mm) and remains in this position for at least 3 seconds, the bathroom cabinet lighting system will determine that the user needs to perform delicate operations and immediately increase the brightness of the mirror cabinet lights to 100%. This judgment logic effectively avoids false triggering caused by users passing by briefly or unintentionally approaching, ensuring the accuracy and practicality of the function.
[0055] For example, in step S6, in response to the microwave sensor failing to detect a human body for a predetermined period of time, the bathroom cabinet lighting system enters a standby state. It should be understood that if the lighting system remains on after the user leaves the bathroom, unnecessary power consumption will result. By introducing an automatic standby mechanism, the bathroom cabinet lighting system can intelligently determine whether the user has left and promptly shut down non-essential lighting and display functions, thereby significantly reducing energy consumption and meeting modern society's pursuit of energy conservation and environmental protection. Secondly, this move also improves the convenience of the user experience. The user does not need to manually turn off the lights; the bathroom cabinet lighting system automatically completes this operation, reducing the user's operational burden, especially in the event of a hasty departure or forgetting to turn off the lights, thereby avoiding energy waste.
[0056] Specifically, the present application continuously monitors the presence of human bodies in the bathroom space through microwave sensors, and determines whether the conditions for entering the standby state are met based on the monitoring results. The microwave sensor, as a sensor that can effectively detect the presence and movement of human bodies, continues to work in the background during the operation of the bathroom cabinet lighting system to sense whether there is human activity in the bathroom space. Once the microwave sensor fails to detect any human activity for a continuous predetermined period of time, the system will determine that the user has left and trigger an instruction to enter the standby state. In one embodiment, in response to the microwave sensor failing to detect a human body for a continuous predetermined period of time, the bathroom cabinet lighting system enters the standby state, including: in response to the microwave sensor failing to detect a human body for 30 consecutive seconds, the bathroom cabinet lighting system enters the standby state. This means that the bathroom cabinet lighting system will continue to monitor, and if the microwave sensor does not detect a signal of human presence or movement for up to 30 seconds, it is considered that the bathroom is no longer in use. At this point, the bathroom cabinet lighting system enters standby mode by performing the following operations: the lower cabinet light strips turn off, ceasing illumination; the mirror cabinet lights also turn off, discontinuing facial illumination; and all icons on the central controller display, except for the power button, turn off, returning the screen to a completely black state. Only the power button remains illuminated, allowing the user to manually activate the system the next time. This logic ensures that the system automatically turns off most displays and lighting when no one is present, thus saving energy.
[0057] In summary, the present application provides a distance- and light-sensing-based intelligent bathroom cabinet lighting control method. By integrating microwave sensors and light sensors, it achieves real-time, multi-dimensional sensing of user behavior and ambient lighting conditions, and intelligently controls the lower cabinet light strip, mirror cabinet lighting, and display screen in the bathroom cabinet accordingly. Specifically, the system maintains low power consumption in standby mode, retaining only essential display functions. When the microwave sensor detects a person entering a preset range, the system immediately responds by illuminating the lower cabinet light strip and activating the display screen. Simultaneously, the mirror cabinet lighting is intelligently linked to provide the user with initial lighting and an operational interface. Furthermore, the user can select daylight or indoor light mode at the touch of a button. The initial brightness of the mirror cabinet lighting is then intelligently set based on light-adaptive logic, ensuring comfortable and energy-efficient lighting. Once the mirror cabinet lighting is on, the user can fine-tune the brightness using the brightness adjustment buttons to meet their individual needs. More importantly, when the microwave distance sensor detects a person approaching the mirror surface and remaining there for a predetermined period, the mirror cabinet lighting automatically increases to 100%, providing ample illumination for delicate tasks such as applying makeup or shaving. Finally, if the microwave sensors detect no human activity for a predetermined period of time, the system automatically returns to standby mode, effectively managing energy. This multi-sensor fusion control approach ensures a fast and precise response time for the bathroom cabinet lighting system, adapting to various usage scenarios, optimizing the user experience, reducing energy consumption, and enhancing the overall intelligence of the bathroom space.
[0058] This application also provides a bathroom cabinet lighting intelligent control system based on distance and light sensing, such as Figure 5 As shown, the bathroom cabinet lighting intelligent control system 600 based on distance and light sensing includes a memory 610, a processor 620, and a computer program 630 stored in the memory and executable on the processor. It is characterized in that when the processor 620 executes the computer program 630, the steps of the bathroom cabinet lighting intelligent control method based on distance and light sensing are implemented as described above.
[0059] An embodiment of the present application also provides a computer-readable storage medium, which stores computer program code. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement a bathroom cabinet lighting intelligent control method based on distance and light sensing provided in the above embodiment.
[0060] An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the above-mentioned related steps to implement a bathroom cabinet lighting intelligent control method based on distance and light sensing provided in the above embodiment.
[0061] Among them, the system, computer-readable storage medium or computer program product provided in the embodiments of the present application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0062] It should be noted that the order of the above embodiments of the present application is only for description and does not represent the advantages or disadvantages of the embodiments.
[0063] The processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous. The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referenced to each other. Each embodiment focuses on the differences from other embodiments.
Claims
1. A bathroom cabinet lighting intelligent control method based on distance and light sensing, characterized in that: include: When the bathroom cabinet lighting system is in standby mode, the lower cabinet light strip is off, the mirror cabinet light is off, and all icons on the display except the power button are off; In response to the microwave sensor detecting that a person has entered the preset range, the lower cabinet lights, the display screen and the mirror cabinet lights are intelligently linked; In response to the user clicking the daylight or indoor light touch button, the corresponding mode light of the mirror cabinet light is illuminated and the initial brightness of the light is intelligently set based on the light adaptive logic; When the mirror cabinet light is on, in response to the user clicking the brightness adjustment button, the brightness of the mirror cabinet light is adjusted based on the preset logic of the brightness adjustment button; When the mirror cabinet light is on, in response to the microwave distance sensor detecting that a person approaches the mirror surface at a distance less than or equal to a preset distance threshold and the stay time is greater than or equal to a preset time threshold, the brightness of the mirror cabinet light is automatically increased to 100%; In response to the microwave sensor not detecting a human body for a continuous predetermined time, the bathroom cabinet lighting system enters a standby state.
2. The bathroom cabinet lighting intelligent control method based on distance and light sensing according to claim 1 is characterized in that: In response to the microwave sensor detecting that a person has entered the preset range, the lower cabinet lights, the display screen, and the mirror cabinet lights are intelligently linked, including: In response to detecting the night mode, the mirror cabinet light automatically lights up with neutral light and the light brightness is 20%; In response to not detecting the night mode, the mirror cabinet light is not automatically illuminated.
3. The method for intelligently controlling bathroom cabinet lighting based on distance and light sensing according to claim 2, characterized in that: The triggering condition of the night mode is: the photoresistor detects that the ambient light intensity is less than or equal to a preset threshold and the system time is between 20:00 in the evening and 6:00 in the morning of the next day.
4. The method for intelligently controlling bathroom cabinet lighting based on distance and light sensing according to claim 1, characterized in that: In response to the user clicking the daylight or indoor light touch button, the corresponding mode light of the mirror cabinet light is illuminated and the initial brightness of the light is intelligently set based on the light adaptive logic, including: In response to the user clicking the daylight touch button, the corresponding mode light of the mirror cabinet light is neutral light; In response to the user clicking the indoor light touch button, the corresponding mode light of the mirror cabinet light is warm light.
5. The method for intelligently controlling bathroom cabinet lighting based on distance and light sensing according to claim 4, characterized in that: In response to the user clicking the daylight or indoor light touch button, the corresponding mode light of the mirror cabinet light is illuminated and the initial brightness of the light is intelligently set based on the light adaptive logic, further comprising: In response to the photoresistor detection result being "indoor environment with windows in sunny daytime", the light brightness is 50%; In response to the photoresistor detection result being "when there is indoor light at night", the light brightness is 80%; In response to the photoresistor detecting result being "no lighting at night", the light brightness is 20%.
6. The method for intelligently controlling bathroom cabinet lighting based on distance and light sensing according to claim 5, characterized in that: When the resistance value of the photoresistor is 0-5K ohms, the photoresistor detection result is "indoor environment with windows in sunny daytime"; when the resistance value of the photoresistor is 5K-0.5M ohms, the photoresistor detection result is "indoor light illuminated at night"; when the resistance value of the photoresistor is greater than 0.5M ohms, the photoresistor detection result is "no light at night".
7. The bathroom cabinet lighting intelligent control method based on distance and light sensing according to claim 1 is characterized in that: The brightness of the mirror cabinet light is adjusted based on the preset logic of the brightness adjustment button, and the preset logic is 10% each time.
8. The method for intelligently controlling bathroom cabinet lighting based on distance and light sensing according to claim 1, characterized in that: The preset distance threshold is 250 mm, and the preset time threshold is 3 seconds.
9. The method for intelligently controlling bathroom cabinet lighting based on distance and light sensing according to claim 1, characterized in that: In response to the microwave sensor not detecting a human body for a continuous predetermined time, the bathroom cabinet lighting system enters a standby state, including: in response to the microwave sensor not detecting a human body for 30 consecutive seconds, the bathroom cabinet lighting system enters a standby state.
10. A bathroom cabinet lighting intelligent control system based on distance and light sensing, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the bathroom cabinet lighting intelligent control method based on distance and light sensing as described in any one of claims 1 to 9 are implemented.