Lighting control method of shower room, shower room and storage medium
Through the combination of human body sensor and light intensity sensor, intelligent lighting control in the shower room is realized, which solves the problem of cumbersome lighting control in the existing technology and improves user experience and battery life.
Patent Information
- Application Number
- CN202311399589.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-25
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2043-10-25
AI Technical Summary
The lighting control of the existing shower room requires manual operation, which is cumbersome and inconvenient for users. In particular, users who are short in height have difficulty touching the switch, which reduces the user experience.
Adopt an intelligent control method that combines human body sensors and light intensity sensors to automatically adjust the light brightness in the shower room by detecting the human body and ambient light intensity, including setting a human body sensor and at least two light intensity sensors. The main controller The light intensity change amplitude and the preset reference value verify the ambient light intensity, adjust the light source brightness, and provide a charging prompt when the battery power is low.
It realizes intelligent lighting control in the shower room, improves user experience, reduces the tediousness of manual operations, adapts to different ambient light intensities, and extends battery life.
Smart Images

Figure CN117500122B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of shower equipment, and in particular to a lighting control method for a shower room, a shower room, and a storage medium. Background Art
[0002] With the improvement of people's living standards, shower rooms have emerged to separate wet and dry areas in the bathroom. At the same time, in order to make the lighting in the shower room more independent, a light source is set in the shower room so that users can enjoy the comfort brought by the light while taking a shower. However, the lighting control of the shower room is single, and the lighting or brightness switching can only be realized by manual opening. However, the manual switching of the light brightness is complicated, which reduces the user experience. Summary of the invention
[0003] The main purpose of the embodiments of the present application is to provide a lighting control method for a shower room, a shower room, and a storage medium, aiming to realize automatic and accurate control of the lighting effect of the shower room.
[0004] To achieve the above-mentioned purpose, the first aspect of the embodiment of the present application proposes a light control method for a shower room, the shower room comprising: a door body, a light source, a human body sensor, a main controller and at least two light intensity sensors, the light source is installed on the door body, the human body sensor is installed on the door body, and the light intensity sensor is installed on both sides of the door body; the method is applied to the main controller, and the method comprises:
[0005] Collecting a candidate light intensity set output by each light intensity sensor according to a first preset time period; wherein the candidate light intensity set includes ambient light intensity;
[0006] Extracting a maximum light intensity and a minimum light intensity from the ambient light intensity;
[0007] Calculating the difference between the maximum light intensity and the minimum light intensity to obtain the light intensity variation amplitude of each light intensity sensor;
[0008] Calculating the difference between the light intensity variation amplitudes of at least two of the light intensity sensors to obtain an amplitude difference;
[0009] Effectively verify the ambient light intensity according to the amplitude difference and a preset reference value to obtain a data validity verification result;
[0010] If the data validity verification result indicates that it is valid and the human body sensor senses a human body, the brightness of the light source is adjusted according to the ambient light intensity and a preset threshold.
[0011] In some embodiments, the step of validating the ambient light intensity according to the amplitude difference and a preset reference value to obtain a data validity verification result includes:
[0012] Comparing the amplitude difference with the preset reference value;
[0013] If the amplitude difference is greater than or equal to the preset reference value, the data validity verification result is invalid;
[0014] If the amplitude difference is less than the preset reference value, the data validity verification result is obtained to indicate validity.
[0015] In some embodiments, if the data validity verification result indicates validity and the human body sensor senses a human body, adjusting the brightness of the light source according to the ambient light intensity and a preset threshold value includes:
[0016] If the data validity verification result indicates that it is valid and the human body sensor senses a human body, comparing the ambient light intensity with the preset threshold;
[0017] If the ambient light intensity is greater than or equal to the preset threshold, output a first PWM signal to the light source to adjust the light source to display at a first brightness;
[0018] If the ambient light intensity is less than the preset threshold, a second PWM signal is output to the light source to adjust the light source to display at a second brightness; wherein the first brightness is higher than the second brightness, and the first brightness and the second brightness are determined by the ambient light intensity, the preset threshold and the light intensity change amplitude.
[0019] In some embodiments, the main controller is electrically connected to a battery and an ADC power circuit, the ADC power circuit is electrically connected to the battery and is used to detect the power of the battery, and the method further includes:
[0020] Collecting the remaining power output by the ADC power circuit according to a second preset time period to obtain the remaining power of the battery;
[0021] If the remaining power of the battery is lower than a preset power threshold, the light source is controlled to be turned off and a charging reminder message is output.
[0022] In some embodiments, the main controller is further electrically connected to a charging circuit, and the charging circuit is electrically connected to the battery. The method further includes:
[0023] Receive charging instructions;
[0024] The charging circuit is controlled to charge the battery according to the charging instruction.
[0025] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides a shower room, the shower room comprising:
[0026] A door body, wherein the door body is provided with an upper guide rail and a lower guide rail;
[0027] A light source, the light source is arranged on both sides of the door body, the light source comprises a light strip body and a light strip sleeve, the light strip body is sleeved into the light strip sleeve, and the light-emitting side of the light strip body faces the door body;
[0028] A human body sensor is arranged in the middle of the upper guide rail:
[0029] Light intensity sensors, two of which are respectively disposed at two ends of the upper guide rail;
[0030] A main controller is arranged in the upper guide rail and is used to execute the lighting control method of the shower room described in the first aspect.
[0031] In some embodiments, the shower room further comprises a solid glass edge material, the solid glass edge material is provided with a groove, the light source is inserted into the groove, the door body comprises glass, the glass is inserted into the groove, the glass is close to the light source, and adhesive strips are provided on both sides of the groove to fix the light source.
[0032] In some embodiments, the two light intensity sensors are respectively defined as a first light intensity sensor and a second light intensity sensor, wherein the first light intensity sensor is disposed at one end of the upper guide rail close to the light source, and the second light intensity sensor is disposed at one end of the upper guide rail away from the light source.
[0033] In some embodiments, a silicone strip is disposed on the light strip body, and light emitted by the light strip body is emitted after being aggregated along the silicone strip.
[0034] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0035] The lighting control method of the shower room, the shower room, and the storage medium proposed in the present application detect the human body by setting a human body sensor, and the light sensor detects the ambient light intensity. When the human body is detected and the ambient light intensity is effective, the brightness of the light source is adjusted based on the ambient light intensity to realize intelligent lighting control without the need for manual opening by the user, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a structural schematic diagram of a shower room provided in an embodiment of the present application;
[0037] Figure 2 is a flow chart of a lighting control method for a shower room provided in an embodiment of the present application;
[0038] Figure 3 yes Figure 2 Flow chart of step S205 in FIG.
[0039] Figure 4 yes Figure 2 Flow chart of step S206 in FIG.
[0040] Figure 5 is a schematic diagram of PWM signals corresponding to different ambient light intensities provided in an embodiment of the present application;
[0041] Figure 6 is a schematic diagram of output voltages in different time periods provided by an embodiment of the present application;
[0042] Figure 7 is a system structure diagram of a shower room provided in an embodiment of the present application;
[0043] Figure 8 is a flow chart of a shower room lighting control method provided by another embodiment of the present application;
[0044] Fig. 9 is a flow chart of a shower room lighting control method provided by another embodiment of the present application;
[0045] Fig.10 It is a structural schematic diagram of a shower room provided in another embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0049] First, some nouns involved in this application are analyzed:
[0050] Shower room: A separate shower cubicle. The shower room makes full use of a corner of the room and uses fences to clearly divide the shower area to form a relatively independent bathing space.
[0051] Human proximity sensor: It is a sensor based on the microwave Doppler principle, with a planar antenna as the sensing system and a microprocessor as the control system. The human proximity sensor transmits and receives at a microwave frequency of 10.525GHz. The key components of the whole machine are all imported components. The design and selection of components ensure the reliability of the product.
[0052] Light sensor: It works based on the principle of photoelectric effect. The so-called photoelectric effect refers to the phenomenon that certain special substances can convert light energy into electrical energy after absorbing light.
[0053] As people's living standards improve, shower rooms are added to bathrooms, and shower rooms are used to divide the bathroom into dry and wet areas. At present, the few shower rooms that are equipped with lights use the lights in the bathroom. In the related art, a lighting function is added to the shower room, and a light strip is inserted inside the aluminum alloy profile of the shower room, and a switch is installed on the outside of the aluminum alloy profile against the wall. The switch needs to be turned on manually, and then the light is directly emitted to achieve the lighting effect. However, it is inconvenient to turn on and off the light manually, and it is difficult for users with insufficient height to touch the switch, which reduces the user's experience of using the shower room.
[0054] Based on this, the embodiments of the present application provide a lighting control method for a shower room, a shower room, and a storage medium, which aims to detect the human body by setting a human body sensor, and a light sensor to detect the ambient light intensity, so as to detect the human body and when the ambient light intensity is effective, adjust the brightness of the light source based on the ambient light intensity to achieve intelligent lighting control, without the need for users to manually turn it on, thereby improving the user experience.
[0055] The lighting control method of the shower room, the shower room, and the storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the lighting control method of the shower room in the embodiments of the present application is described.
[0056] It should be noted that in each specific implementation of the present application, when it comes to the need to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0057] Please refer to Figure 1 , Figure 1 A schematic diagram of a shower room is disclosed, the shower room comprises: a door body 101, a light source 102, a human body sensor 103, at least two light intensity sensors and a main controller ( Figure 1 (not shown), a light source is mounted on the door body 101, a human body sensor 103 is mounted on the door body 101, and light intensity sensors are mounted on both sides of the door body 101. An upper guide rail 106 and a lower guide rail 107 are provided on the door body 101, the upper guide rail 106 is mounted on the top of the door body 101, and the lower guide rail 107 is mounted on the bottom of the door body 101, and the door body 101 slides open along the upper guide rail 106 and the lower guide rail 107. The human body sensor 103 is mounted in the middle of the upper guide rail 106. In this embodiment, two light intensity sensors are provided, and the two light intensity sensors are respectively defined as a first light intensity sensor 104 and a second light intensity sensor 105, and the first light intensity sensor 104 and the second light intensity sensor 105 are mounted on both sides of the upper guide rail 106, and the main controller is mounted in the upper guide rail 106. The upper rail 106 is provided with a buffer pulley 108 and a hanging clip 109, and the door body 101 and the upper rail 106 are connected by the buffer pulley 108 and the hanging clip 109. By setting the shower room with a human body sensor 103 and a light intensity sensor, the human body and the ambient light intensity can be detected to automatically control the light source 102 to light up or extinguish. At the same time, the light source 102 is installed on both sides of the door body to create a lighting atmosphere for the shower room, thereby improving the user's experience of using the shower room.
[0058] Figure 2 is an optional flow chart of the shower room lighting control method provided in the embodiment of the present application. Figure 2 The method may include but is not limited to steps S201 to S206.
[0059] Step S201, collecting a candidate light intensity set output by each light intensity sensor according to a first preset time period; wherein the candidate light intensity set includes ambient light intensity;
[0060] Step S202, extracting the maximum light intensity and the minimum light intensity from the ambient light intensity;
[0061] Step S203, calculating the difference between the maximum light intensity and the minimum light intensity to obtain the light intensity variation amplitude of each light intensity sensor;
[0062] Step S204, performing difference calculation on the light intensity variation amplitudes of at least two light intensity sensors to obtain an amplitude difference;
[0063] Step S205, validly verifying the ambient light intensity according to the amplitude difference and the preset reference value to obtain a data validity verification result;
[0064] Step S206 , if the data validity verification result indicates validity and the human body sensor senses a human body, the brightness of the light source is adjusted according to the ambient light intensity and a preset threshold.
[0065] In steps S201 to S206 shown in the embodiment of the present application, the ambient light intensity is sensed in real time by a light intensity sensor, and then the light intensity output by each light intensity sensor is collected according to a first preset time period to form a candidate light intensity set. The maximum ambient light intensity is extracted from the candidate light intensity set to obtain the maximum light intensity, and the minimum ambient light intensity is extracted from the candidate light intensity set to obtain the minimum light intensity. The light intensity variation amplitude of each light intensity sensor is calculated by performing a difference calculation on the maximum light intensity and the minimum light intensity. In order to determine whether the ambient light intensity of at least two light intensity sensors is valid, the difference calculation of multiple light intensity variation amplitudes is performed to obtain an amplitude difference, and the amplitude difference indicates whether the ambient light intensity collected by the light intensity sensor is accurate. It should be noted that if a light intensity sensor is set to detect the ambient light intensity, if the light intensity sensor fails, it is impossible to determine whether the collected ambient light intensity is valid. Even if two light intensity sensors are set, if one of them fails, it is difficult to determine which light intensity sensor is faulty. If at least two light intensity sensors collect ambient light intensity effectively, then the light intensity change amplitudes of the two light intensity sensors will not differ too much. If the difference in the light intensity change amplitude is too large, it indicates that one of the light intensity sensors is faulty. Therefore, the ambient light intensity is effectively verified based on the amplitude difference and the preset reference value to obtain the data validity verification result. If the data validity verification result is characterized as valid, it means that the ambient light intensity collected by the light intensity sensor is valid, and it is further determined whether the human body sensor detects a human body. If the human body sensor detects a human body, the brightness of the light source is adjusted based on the effective ambient light intensity and the preset threshold, so as to accurately and in accordance with the ambient brightness, adjust the brightness in the shower room, and realize intelligent brightness adjustment. There is no need to manually start or adjust the brightness of the light source, which improves the user's experience when using the shower room and increases the utilization rate of the shower room.
[0066] In step S201 of some embodiments, if two light intensity sensors are provided, the ambient light intensity output by the two light intensity sensors is collected respectively according to the first preset time period, and the light intensity sensor detects the ambient light intensity when the light source is turned off, so as to collect the change of the ambient light intensity within the first preset time period. In this embodiment, it is necessary to judge the change of the ambient light intensity within a day, so the first preset time period is 24 hours, and the ambient light intensity output by the light intensity sensor is collected according to 24 hours, and then the ambient light intensity collected in 24 hours is combined to form a candidate light intensity set. Therefore, the light intensity of sunlight from sunrise to sunset can be understood through the candidate light intensity set. Specifically, after the collection of the candidate light intensity set is completed, the collected candidate light intensity set is stored in the memory unit of the main controller, and each candidate light intensity set is characterized as (VbrH1, VbrH2, ..., VbrHn).
[0067] In this embodiment, the light source is preferably a rubber-covered light strip, and there is no specific restriction on the specific light source device used. In this embodiment, the rubber-covered light strip can emit light evenly, giving users a better light experience.
[0068] In step S202 of some embodiments, after completing the collection of the candidate light intensity set of each light intensity sensor, the maximum ambient light intensity is extracted from each candidate light intensity set as the maximum light intensity, and the minimum ambient light intensity is extracted from the candidate light intensity set as the minimum light intensity. Specifically, the maximum light intensity is determined as shown in formula (1), and the minimum light intensity is determined as shown in formula (2):
[0069] VbrMax=MAX(VbrH1,VbrH2...VbrHn) (1)
[0070] VbrMin=Min(VbrH1,VbrH2...VbrHn) (2)
[0071] Where VbrMax is the maximum light intensity and VbrMin is the minimum light intensity.
[0072] In step S203 of some embodiments, the maximum light intensity and the minimum light intensity are calculated to obtain the light intensity variation range by calculating the variation range of the same light intensity sensor within a first preset time period. Specifically, the light intensity variation range is obtained as shown in formula (3):
[0073] VbrRan=VbrMax-VbrMin (3)
[0074] Where VbrRan is the amplitude of light intensity variation.
[0075] In step S204 of some embodiments, in order to determine whether at least two light intensity sensors output valid ambient light intensities, if one of the light intensity sensors always outputs invalid ambient light intensities, it is difficult to determine whether the light intensity sensor is faulty only by the amplitude of light change. It is necessary to perform a difference calculation on the light intensity change amplitudes between any two light intensity sensors to obtain an amplitude difference, and determine whether the ambient light intensities output by at least two light intensity sensors are valid based on the amplitude difference. It should be noted that because the light intensity sensors are arranged on both sides of the upper guide rail, the difference in ambient light intensities output by the light intensity sensors will not be too large, that is, within one day, the difference in the light intensity change amplitudes of the two light intensity sensors is not large. If the amplitude difference is too large, it means that the light intensity sensor is faulty and the output ambient light intensity is invalid.
[0076] Specifically, if two light intensity sensors are provided, and the light intensity variation amplitude of the first light intensity sensor is Vbr1Ran, and the light intensity variation amplitude of the second light intensity sensor is Vbr2Rran, then the amplitude difference is VbrAbs=|Vbr1Ran-Vbr2Rran|.
[0077] See also Figure 3 In some embodiments, step S205 may include but is not limited to steps S301 to S303:
[0078] Step S301, comparing the amplitude difference with a preset reference value;
[0079] Step S302, if the amplitude difference is greater than or equal to a preset reference value, the data validity verification result is obtained to indicate invalidity;
[0080] Step S303: If the amplitude difference is less than a preset reference value, the data validity verification result is obtained to indicate validity.
[0081] In step S301 of some embodiments, a preset reference value is set and compared with the amplitude difference value to determine whether the ambient light intensity outputted by the two light intensity sensors is valid. It should be noted that the preset reference value is set in advance and can be manually adjusted.
[0082] In step S302 of some embodiments, if the amplitude difference is greater than or equal to a preset reference value, that is, VbrAbs>=VbrTo l, VbrTo l is the preset reference value, then the ambient light intensity output by the light intensity sensor is determined to be invalid, and a data validity verification result indicating invalidity is output.
[0083] In step S303 of some embodiments, if the amplitude difference is less than a preset reference value, that is, VbrAbs < VbrTo l, then it is determined that the ambient light intensity output by the light intensity sensor is valid, that is, at least two light intensity sensors can collect the ambient light intensity normally and accurately. Therefore, a data validity verification result characterized as valid is output.
[0084] In steps S301 to S303 illustrated in this embodiment, by comparing the amplitude difference with the preset reference value, when the amplitude difference is less than the preset reference value, it indicates that the light intensity sensor can effectively collect the ambient light intensity, and a data validity verification result characterized as valid is output. When the amplitude difference is greater than or equal to the preset reference value, it indicates that there is invalid ambient light intensity collection, so a data validity verification result characterized as invalid is output. Therefore, when controlling the brightness of the light source, first determine whether the ambient light intensity output by the light intensity sensor is valid and then adjust the brightness of the light source to improve the accuracy of light source brightness adjustment.
[0085] Please refer to Figure 4 , in some embodiments, step S206 may include but is not limited to steps S401 to S403:
[0086] Step S401, if the data validity verification result is characterized as valid and the human body sensor senses a human body, compare the ambient light intensity with a preset threshold;
[0087] Step S402, if the ambient light intensity is greater than or equal to the preset threshold, output a first PWM signal to the light source to adjust the light source to display at a first brightness;
[0088] Step S403, if the ambient light intensity is less than the preset threshold, output a second PWM signal to the light source to adjust the light source to display at a second brightness; wherein, the first brightness is higher than the second brightness, and the first brightness and the second brightness are determined by the ambient light intensity, the preset threshold, and the light intensity change amplitude.
[0089] In step S401 of some embodiments, if the data validity verification result is characterized as valid, it means that the ambient light intensity output by the light intensity sensor is valid, and at the same time the human body sensor senses a human body, then it is necessary to compare the ambient light intensity with the preset threshold to determine the brightness of the current environment.
[0090] It should be noted that if the data validity verification result is characterized as invalid, continue to collect the ambient light intensity through the light intensity sensor until the amplitude difference is less than the preset reference value, and then adjust the brightness of the light source based on the valid ambient light intensity to ensure accurate adjustment of the light source brightness.
[0091] In step S402 of some embodiments, if the ambient light intensity is greater than or equal to the preset threshold, that is, Vbr1 >= VbrRef and Vbr2 >= VbrRef, it means that the current ambient light intensity is high enough. Therefore, the first PWM signal is output to the light source to control the light strip to display at the set first brightness according to the first PWM signal, and the first brightness is higher than the second brightness. It should be noted that if two light intensity sensors are set, the generated first PWM signal is determined by the preset threshold and the light intensity change amplitude. The specific calculation is shown in formula (4):
[0092]
[0093] In the formula, T Ledon is the voltage of the first PWM signal, Ton is the maximum on-time within a PWM period. For example: when the PWM frequency f = 1KHZ, Ton = 1 / f(s), and the corresponding time is 1ms.
[0094] In step S403 of some embodiments, if the ambient light intensity is less than the preset threshold, it means that the current ambient brightness is not high, that is, when Vbr1 < VbrRef or Vbr2 < VbrRef, and VbrRef is the preset threshold, the second PWM signal is output to the light source to control the light source to display at the lowest brightness. It should be noted that the generation of the second PWM signal is mainly determined based on the ambient light intensity and the light intensity change amplitude. For example, if two light intensity sensors are set, the second PWM signal is determined as shown in formula (5):
[0095]
[0096] It should be noted that please refer to Figure 5 , Figure 5 which represents the PWM signals corresponding to different ambient light intensities, that is, the voltage of the light source is controlled according to different ambient light intensities to adjust the brightness of the light source. Further, please refer to Figure 6 , Figure 6 which represents the output voltages at different time periods. Since the brightness is different at different time periods, the corresponding output voltages at different time periods are different. It can be seen from Figure 6 that a higher voltage needs to be output to the light source at noon to adjust the light source to the highest brightness to create a lighting atmosphere and improve the user experience of using the shower room.
[0097] In steps S401 to S403 shown in the embodiments of the present invention, by judging whether the ambient light intensity is greater than the preset threshold, it is judged whether the light intensity of the current environment is high enough, and the brightness of the light source is controlled according to different ambient light intensities.
[0098] Please refer to Figure 7 , Figure 7This is the system architecture diagram of the shower room. Figure 7 It can be seen that the main controller 701 is electrically connected to the battery 702 and the ADC power circuit 703, and the ADC power circuit 703 is electrically connected to the battery 702. By setting the ADC power circuit 703, the remaining power of the battery 702 can be detected to know the current remaining power of the battery 702, so as to charge it in time and ensure that the light of the shower room can be used for a long time.
[0099] See also Figure 8 In some embodiments, the shower room lighting control method may also include but is not limited to steps S801 to S802:
[0100] Step S801, collecting the remaining power output by the ADC power circuit according to a second preset time period to obtain the remaining power of the battery;
[0101] Step S802: If the remaining battery power is lower than a preset power threshold, the light source is controlled to be turned off and a charging reminder message is output.
[0102] In step S801 of some embodiments, the main controller collects the remaining power output by the ADC power circuit according to a second preset time period to obtain the remaining power of the battery, so as to determine whether the current power of the battery is too low according to the remaining power of the battery.
[0103] In step S802 of some embodiments, the remaining battery power is compared with a preset battery threshold. If the remaining battery power is lower than the preset battery threshold, it indicates that the current remaining battery power is too low. Figure 7 As shown, the main controller 701 controls the light source 102 to turn off through the electronic control switch 706 to reduce the damage to the battery 702 caused by low power. At the same time, a charging reminder message is generated to prompt the user to charge the battery 702 in time through the charging reminder message to prevent the battery 702 from being over-discharged and to increase the battery life.
[0104] In steps S801 to S802 shown in this embodiment, when the remaining battery power is lower than the preset power threshold, the light source is turned off and a charging reminder message is output simultaneously to reduce the over-discharge of the battery, protect the battery, and increase the battery life.
[0105] pass Figure 7 It can be seen that the battery 702 is electrically connected to the charging circuit 704, and the charging circuit 704 is connected to the charging interface 705. The charging interface 705 is configured as a waterproof interface, and the voltage input to the charging interface 705 is a safe voltage.
[0106] See also Fig. 9 In some embodiments, the shower room lighting control method may also include but is not limited to steps S901 to S902:
[0107] Step S901, receive a charging instruction;
[0108] Step S902, control the charging circuit to charge the battery according to the charging instruction.
[0109] In steps S901 to S902 illustrated in this embodiment, when a charging instruction is received, control the charging circuit to charge the battery according to the charging instruction, so as to ensure the automation of the battery charging operation without manual charging.
[0110] In the embodiment of the present application, two light intensity sensors are set to detect the ambient light intensity. The ambient light intensity output by the light intensity sensors is collected according to 24 hours, and then the ambient light intensities collected in 24 hours are combined to form a candidate light intensity set, and each candidate light intensity set is characterized as (VbrH1, VbrH2,..., VbrHn). The maximum ambient light intensity is extracted from each candidate light intensity set as the maximum light intensity, and the minimum ambient light intensity is extracted from the candidate light intensity set as the minimum light intensity. Calculate the difference between the maximum light intensity and the minimum light intensity to calculate the change amplitude of the same light intensity sensor within a first preset time period to obtain the light intensity change amplitude. Calculate the difference between the light intensity change amplitudes between any two light intensity sensors to obtain the amplitude difference, and judge whether the ambient light intensities output by at least two light intensity sensors are valid according to the amplitude difference. If the amplitude difference is greater than or equal to a preset reference value, that is, VbrAbs >= VbrTol, where VbrTol is the preset reference value, then it is judged that the ambient light intensity output by the light intensity sensor is invalid, and a data validity verification result characterized as invalid is output. If the amplitude difference is less than the preset reference value, that is, VbrAbs < VbrTol, then it is judged that the ambient light intensity output by the light intensity sensor is valid, that is, at least two light intensity sensors can collect the ambient light intensity normally and accurately. Therefore, a data validity verification result characterized as valid is output. If the data validity verification result is characterized as valid, indicating that the ambient light intensity output by the light intensity sensor is valid, and at the same time a human body sensor senses a human body, then the ambient light intensity needs to be compared with a preset threshold. If the ambient light intensity is greater than or equal to the preset threshold, that is, Vbr1 >= VbrRef and Vbr2 >= VbrRef, a first PWM signal is output to the light source to control the light strip to display at a set first brightness according to the first PWM signal. If the ambient light intensity is less than the preset threshold, that is, Vbr1 < VbrRef or Vbr2 < VbrRef, and VbrRef is the preset threshold, a second PWM signal is output to the light source to control the light source to display at the lowest brightness. Therefore, based on the valid ambient light intensity and the preset threshold, the brightness of the light source is adjusted to accurately and conform to the ambient brightness to adjust the brightness in the shower room, realizing intelligent brightness adjustment, without manual start or adjustment of the brightness of the light source, improving the user experience when using the shower room, and increasing the utilization rate of the shower room.
[0111] See also Figure 1 and Figure 7 The embodiment of the present application further provides a shower room, the shower room comprising:
[0112] The door body 101 is provided with an upper guide rail 106 and a lower guide rail 107;
[0113] Light source 102, which is disposed on both sides of the door body 101. The light source 102 includes a light strip body (not shown in the figure) and a light strip sleeve (not shown in the figure). The light strip body is sleeved into the light strip sleeve, and the light-emitting side of the light strip body faces the door body;
[0114] Human body sensor 103, the human body sensor 103 is arranged in the middle of the upper guide rail 106:
[0115] Light intensity sensors: two light intensity sensors are provided, and the two light intensity sensors are respectively provided at two ends of the upper guide rail 106;
[0116] The main controller 701 is arranged in the upper guide rail 106 and is used to implement the above-mentioned shower room lighting control method.
[0117] The specific implementation of the main controller is basically the same as the specific implementation of the lighting control method of the shower room mentioned above, and will not be repeated here.
[0118] By setting up a shower room with a light intensity sensor and a human body sensor 103, the light source 102 is automatically started according to the ambient light intensity and human body sensed by the light intensity sensor and the human body sensor 103, so that the control of the shower room is automated and the user experience is improved.
[0119] In some embodiments, Fig.10 As shown, the door body 101 is also provided with a solid glass edge material 111, and a groove 1111 is provided on the solid glass edge material 111, and the groove 1111 is a solid glass edge material groove. The light source 102 is inserted into the solid glass edge material groove, and the door body 101 includes glass, and the glass is inserted into the solid glass edge material groove. The glass is close to the light source 102, and adhesive strips are provided on both sides of the groove 1111 to fix the light source 102, so that the glass and the light source 102 are closely connected, so that the light emitted by the light source 102 is irradiated on the glass to create a lighting atmosphere and improve the user's experience during the shower process.
[0120] It should be noted that in this embodiment, the glass is preferably laser engraved glass, and various glasses such as ultra-white glass, laminated glass, gradient glass, color-sprayed glass, and atomized glass can also be used. The light source 102 uses a rubber-coated light strip. By setting the laser engraved glass, the light emitted by the rubber-coated light strip irradiates the laser engraved glass and is conducted inside it, making the laser engraved glass look more transparent, and the laser engraved glass refracts the light to produce a pattern self-luminous effect, which adds more fun to the user's shower, thereby enhancing the user's experience.
[0121] In some embodiments, the two light intensity sensors are defined as a first light intensity sensor 104 and a second light intensity sensor 105, respectively. The first light intensity sensor 104 is disposed at one end of the upper rail 106 close to the light source 102, and the second light intensity sensor 105 is disposed at one end of the upper rail 106 away from the light source 102. By disposing the first light intensity sensor 104 and the second light intensity sensor 105 at both ends of the light source 102, the first light intensity sensor 104 mainly detects the brightness emitted by the light source 102, while the second light intensity sensor 105 detects the accurate ambient light intensity, so that the brightness of the shower room can be more accurately adjusted according to the ambient light intensity and the brightness emitted by the light source.
[0122] In some embodiments, a silicone strip 110 is provided on the light strip body, and the light emitted by the light strip body is emitted after being aggregated along the silicone strip 110. By attaching the silicone strip 110 to the light strip body, the light emitted by the light strip body is evenly emitted, so that the light shining on the glass is more beautiful, thereby improving the user experience.
[0123] The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned shower room lighting control method is implemented.
[0124] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0125] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0126] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0127] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0128] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0129] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0130] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0131] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0132] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0133] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0134] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0135] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A method for controlling the lighting of a shower room, characterized in that: The shower room comprises: a door body, a light source, a human body sensor, a main controller and at least two light intensity sensors, wherein the light source is installed on the door body, the human body sensor is installed on the door body, and the light intensity sensors are installed on both sides of the door body; the method is applied to the main controller, and the method comprises: Collecting a candidate light intensity set output by each light intensity sensor according to a first preset time period; wherein the candidate light intensity set includes ambient light intensity; Extracting a maximum light intensity and a minimum light intensity from the ambient light intensity; Calculating the difference between the maximum light intensity and the minimum light intensity to obtain the light intensity variation amplitude of each light intensity sensor; Calculating the difference between the light intensity variation amplitudes of at least two of the light intensity sensors to obtain an amplitude difference; Effectively verify the ambient light intensity according to the amplitude difference and a preset reference value to obtain a data validity verification result; If the data validity verification result indicates that it is valid and the human body sensor senses a human body, adjusting the brightness of the light source according to the ambient light intensity and a preset threshold; The step of effectively verifying the ambient light intensity according to the amplitude difference and the preset reference value to obtain a data validity verification result includes: Comparing the amplitude difference with the preset reference value; If the amplitude difference is greater than or equal to the preset reference value, the data validity verification result is invalid; If the amplitude difference is less than the preset reference value, the data validity verification result is obtained to indicate validity.
2. The method according to claim 1, characterized in that If the data validity verification result indicates that the data validity verification result is valid and the human body sensor senses a human body, adjusting the brightness of the light source according to the ambient light intensity and a preset threshold value includes: If the data validity verification result indicates that it is valid and the human body sensor senses a human body, comparing the ambient light intensity with the preset threshold; If the ambient light intensity is greater than or equal to the preset threshold, output a first PWM signal to the light source to adjust the light source to display at a first brightness; If the ambient light intensity is less than the preset threshold, a second PWM signal is output to the light source to adjust the light source to display at a second brightness; wherein the first brightness is higher than the second brightness, and the first brightness and the second brightness are determined by the ambient light intensity, the preset threshold and the light intensity change amplitude.
3. The method according to any one of claims 1 to 2, characterized in that: The main controller is electrically connected to a battery and an ADC power circuit, the ADC power circuit is electrically connected to the battery and is used to detect the power of the battery. The method also includes: Collecting the remaining power output by the ADC power circuit according to a second preset time period to obtain the remaining power of the battery; If the remaining power of the battery is lower than a preset power threshold, the light source is controlled to be turned off and a charging reminder message is output.
4. The method according to claim 3, characterized in that The main controller is also electrically connected to a charging circuit, and the charging circuit is electrically connected to the battery. The method further includes: Receive charging instructions; The charging circuit is controlled to charge the battery according to the charging instruction.
5. A shower room, characterized in that: The shower room comprises: A door body, wherein the door body is provided with an upper guide rail and a lower guide rail; A light source, the light source is arranged on both sides of the door body, the light source comprises a light strip body and a light strip sleeve, the light strip body is sleeved into the light strip sleeve, and the light-emitting side of the light strip body faces the door body; A human body sensor is arranged in the middle of the upper guide rail: Light intensity sensors, two of which are respectively disposed at two ends of the upper guide rail; A main controller is arranged in the upper guide rail and is used to execute the lighting control method of the shower room as claimed in any one of claims 1 to 4.
6. The shower room according to claim 5, characterized in that: The shower room also includes a solid glass edge material, which is provided with a groove, the light source is inserted into the groove, the door body includes glass, the glass is inserted into the groove, the glass is close to the light source, and adhesive strips are provided on both sides of the groove to fix the light source.
7. The shower room according to claim 5, characterized in that: The two light intensity sensors are respectively defined as a first light intensity sensor and a second light intensity sensor. The first light intensity sensor is disposed at one end of the upper guide rail close to the light source, and the second light intensity sensor is disposed at one end of the upper guide rail away from the light source.
8. The shower room according to claim 6, characterized in that: A silicone strip is arranged on the light strip body, and the light emitted by the light strip body is emitted after being aggregated along the silicone strip.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the lighting control method for a shower room according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Control method and device for infrared proximity sensor and mobile terminal
CN105959492A
Image sensor, image processing method and electronic devices
CN109151348A
Backlight brightness adjusting method and device
CN109451171A
Calibration method and device for proximity sensor, electronic device and storage medium
CN109738004A
Processing method and device
CN111176601A
