Luminous environment control method and system for indoor bathroom

文档序号:1843714 发布日期:2021-11-16 浏览:18次 中文

阅读说明:本技术 一种室内卫浴的光环境控制方法及系统 (Luminous environment control method and system for indoor bathroom ) 是由 李科 于 2021-07-12 设计创作,主要内容包括:本发明涉及光环境控制技术领域,具体涉及一种室内卫浴的光环境控制方法及系统,所述方法包括:当确定出水口阀门开启后,控制温度传感器检测出水口的水温;对温度传感器检测到的水温进行采样,根据采样得到的水温确定室内卫浴的用水温度;基于用水温度确定室内光源的照明参数;所述系统包括:所述系统包括:控制器、温度传感器、以及水流量计;所述温度传感器设置于出水口,用于检测出水口的温度;所述水流量计设置于出水口所在的出水管道,用于检测出水口的水流量;所述控制器分别与所述温度传感器和水流量计连接;本发明能够提高对室内卫浴的光环境进行控制的准确度。(The invention relates to the technical field of luminous environment control, in particular to a luminous environment control method and a luminous environment control system for indoor bathroom, wherein the method comprises the following steps: when the opening of the water gap valve is determined, controlling a temperature sensor to detect the water temperature of the water outlet; sampling the water temperature detected by the temperature sensor, and determining the water temperature of the indoor bathroom according to the sampled water temperature; determining an illumination parameter of the indoor light source based on the water temperature; the system comprises: the system comprises: a controller, a temperature sensor, and a water flow meter; the temperature sensor is arranged at the water outlet and used for detecting the temperature of the water outlet; the water flow meter is arranged on a water outlet pipeline where the water outlet is located and used for detecting the water flow of the water outlet; the controller is respectively connected with the temperature sensor and the water flow meter; the invention can improve the accuracy of controlling the light environment of the indoor bathroom.)

1. A light environment control method for indoor bathroom is characterized by comprising the following steps:

when the opening of the water gap valve is determined, controlling a temperature sensor to detect the water temperature of the water outlet;

sampling the water temperature detected by the temperature sensor, and determining the water temperature of the indoor bathroom according to the sampled water temperature;

determining an illumination parameter of the indoor light source based on the water temperature;

wherein the lighting parameters comprise a color temperature of the light source and a luminous flux output rate, the luminous flux output rate being a ratio of a luminous flux output by the light source to a maximum luminous flux of the light source.

2. The method as claimed in claim 1, wherein the controlling the temperature sensor to detect the temperature of the water at the water outlet after the opening of the water outlet valve is determined comprises:

if the water outlet valve is determined to be opened, recording the opening time point of the valve, and acquiring the water flow detected by a water flow meter of the valve in real time;

sampling the water flow every first sampling time period to obtain the water flow of a plurality of time points;

if the water flow at n continuous time points is larger than a first flow threshold value, determining that the water flow is stable;

after the water flow is determined to be stable, calculating the opening duration of the valve according to the opening time point of the valve;

and if the duration time is determined to be greater than the first time threshold value, controlling the temperature sensor to detect the water temperature at the water outlet.

3. The method as claimed in claim 2, wherein the step of sampling the water temperature detected by the temperature sensor and determining the water temperature for the indoor bathroom according to the sampled water temperature comprises:

sampling the water temperature detected by the temperature sensor every second sampling time period until the water flow is 0 to obtain m water temperature values;

and taking the average value of the m water temperature values as the water temperature of the indoor bathroom.

4. The method for controlling the light environment of indoor bathroom facilities as claimed in claim 1, wherein the determining the lighting parameters of the indoor light source based on the water temperature comprises:

acquiring a corresponding relation table, wherein the corresponding relation table comprises a water temperature range and illumination parameter ranges respectively corresponding to the water temperature ranges;

determining the water temperature range of the water temperature, and inquiring from the corresponding relation table according to the water temperature range to obtain a corresponding illumination parameter range; taking the maximum value in the range of the lighting parameters obtained by query as a first lighting parameter, and taking the minimum value in the range of the lighting parameters as a second lighting parameter;

acquiring a current illumination parameter, taking an absolute difference value between the current illumination parameter and a first illumination parameter as a first difference value, and taking an absolute difference value between the current illumination parameter and a second illumination parameter as a second difference value;

comparing the first difference value with the second difference value, and selecting the larger value as the adjustment quantity;

gradually adjusting the illumination parameters of the indoor light source according to the adjustment amount until the illumination parameters of the indoor light source are adjusted to the illumination parameters corresponding to the larger value;

if the illumination duration time of the indoor light source according to the illumination parameter corresponding to the larger value is larger than a second time threshold value, controlling the illumination parameter of the indoor light source to be gradually adjusted to the target illumination parameter; wherein the target lighting parameter is an average of the first lighting parameter and the second lighting parameter.

5. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program realizes the steps of the method for controlling light environment of indoor bathroom facilities according to any one of claims 1 to 4.

6. A light environment control system for indoor bathroom facilities, the system comprising: a controller, a temperature sensor, and a water flow meter;

the temperature sensor is arranged at the water outlet and used for detecting the temperature of the water outlet;

the water flow meter is arranged on a water outlet pipeline where the water outlet is positioned and used for detecting the water flow of the water outlet;

the controller is respectively connected with the temperature sensor and the water flow meter;

the controller comprises;

at least one processor;

at least one memory for storing at least one program;

when the at least one program is executed by the at least one processor, the at least one processor implements the light environment control method for indoor bathroom of any one of claims 1 to 4.

Technical Field

The invention relates to the technical field of luminous environment control, in particular to a luminous environment control method and a luminous environment control system for indoor bathroom.

Background

With the rapid development of science and technology, the life concept and life style of people are changed greatly, and the requirements of people on the quality of life are continuously improved. In the field of home lighting, people gradually get rid of the simple design idea that the illumination design is only limited to visual functions and single brightness pursuit, and pay more attention to brand-new definition and understanding of the illumination design from multiple angles such as human visual mechanisms, bathroom experiences and the like. On the basis of meeting basic functionality, the requirements of health, comfort and aesthetic feeling are emphasized, a scientific and comfortable light environment is created in an intelligent illumination mode, the mood of people is relaxed, and the interweaving of technology and art is realized.

Under the background of rapid development of intelligent lamp and sensor technologies, based on a specific application scene of indoor bathroom, the light environment of the indoor bathroom needs to be adapted to the water condition of a user, so that the experience of the user in bathroom is improved;

therefore, it is necessary to effectively control the light environment of the indoor bathroom, and to improve the accuracy of controlling the light environment of the indoor bathroom, which is a problem to be solved urgently.

Disclosure of Invention

The present invention is directed to a method and a system for controlling a light environment of an indoor bathroom, so as to solve one or more technical problems in the prior art and provide at least one useful choice or creation condition.

In order to achieve the purpose, the invention provides the following technical scheme:

a light environment control method for indoor bathroom comprises the following steps:

when the opening of the water gap valve is determined, controlling a temperature sensor to detect the water temperature of the water outlet;

sampling the water temperature detected by the temperature sensor, and determining the water temperature of the indoor bathroom according to the sampled water temperature;

determining an illumination parameter of the indoor light source based on the water temperature;

wherein the lighting parameters comprise a color temperature of the light source and a luminous flux output rate, the luminous flux output rate being a ratio of a luminous flux output by the light source to a maximum luminous flux of the light source.

Further, when determining the mouth of a river valve and opening the back, control temperature sensor detects the temperature of delivery port, include:

if the water outlet valve is determined to be opened, recording the opening time point of the valve, and acquiring the water flow detected by a water flow meter of the valve in real time;

sampling the water flow every first sampling time period to obtain the water flow of a plurality of time points;

if the water flow at n continuous time points is larger than a first flow threshold value, determining that the water flow is stable;

after the water flow is determined to be stable, calculating the opening duration of the valve according to the opening time point of the valve;

and if the duration time is determined to be greater than the first time threshold value, controlling the temperature sensor to detect the water temperature at the water outlet.

Further, the sampling is carried out to the temperature that temperature sensor detected, and the temperature of the water of indoor bathroom is confirmed according to the temperature that obtains of sampling, includes:

sampling the water temperature detected by the temperature sensor every second sampling time period until the water flow is 0 to obtain m water temperature values;

and taking the average value of the m water temperature values as the water temperature of the indoor bathroom.

Further, the determining the illumination parameter of the indoor light source based on the water temperature comprises:

acquiring a corresponding relation table, wherein the corresponding relation table comprises a water temperature range and illumination parameter ranges respectively corresponding to the water temperature ranges;

determining the water temperature range of the water temperature, and inquiring from the corresponding relation table according to the water temperature range to obtain a corresponding illumination parameter range; taking the maximum value in the range of the lighting parameters obtained by query as a first lighting parameter, and taking the minimum value in the range of the lighting parameters as a second lighting parameter;

acquiring a current illumination parameter, taking an absolute difference value between the current illumination parameter and a first illumination parameter as a first difference value, and taking an absolute difference value between the current illumination parameter and a second illumination parameter as a second difference value;

comparing the first difference value with the second difference value, and selecting the larger value as the adjustment quantity;

gradually adjusting the illumination parameters of the indoor light source according to the adjustment amount until the illumination parameters of the indoor light source are adjusted to the illumination parameters corresponding to the larger value;

if the illumination duration time of the indoor light source according to the illumination parameter corresponding to the larger value is larger than a second time threshold value, controlling the illumination parameter of the indoor light source to be gradually adjusted to the target illumination parameter; wherein the target lighting parameter is an average of the first lighting parameter and the second lighting parameter.

A computer readable storage medium having stored thereon a computer program which, when being executed by a processor, realizes the steps of the method for controlling light environment of indoor bathroom as in any one of the above.

A light environment control system for indoor bathroom fixtures, the system comprising: a controller, a temperature sensor, and a water flow meter;

the temperature sensor is arranged at the water outlet and used for detecting the temperature of the water outlet;

the water flow meter is arranged on a water outlet pipeline where the water outlet is positioned and used for detecting the water flow of the water outlet;

the controller is respectively connected with the temperature sensor and the water flow meter;

the controller comprises;

at least one processor;

at least one memory for storing at least one program;

when the at least one program is executed by the at least one processor, the at least one processor is enabled to implement any one of the light environment control methods for indoor bathroom facilities.

The invention has the beneficial effects that: the invention discloses a method and a system for controlling the light environment of indoor bathroom, which controls a temperature sensor to detect the water temperature of a water outlet after determining that a water outlet valve is opened; thereby obtaining the determining factor of the control light environment; then sampling the water temperature detected by the temperature sensor, and determining the water temperature of the indoor bathroom according to the sampled water temperature; the water temperature obtained by sampling can comprehensively reflect the water temperature condition, so that the accurate water temperature can be obtained; and finally, determining the illumination parameters of the indoor light source based on the water temperature, realizing the adaptation of the light environment of the indoor bathroom to the water condition of the user, and improving the experience of the user in the bathroom. The invention improves the accuracy of controlling the light environment of the indoor bathroom based on the specific application scene of the indoor bathroom.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.

FIG. 1 is a schematic flow chart of a method for controlling the light environment of indoor bathroom facilities according to an embodiment of the present invention;

fig. 2 is a connection block diagram of the light environment control system of the indoor bathroom in the embodiment of the invention.

Detailed Description

The conception, specific structure and technical effects of the present application will be described clearly and completely with reference to the following embodiments and the accompanying drawings, so that the purpose, scheme and effects of the present application can be fully understood. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.

Referring to fig. 1, fig. 1 shows a method for controlling a light environment of an indoor bathroom, the method includes the following steps:

s100, controlling a temperature sensor to detect the water temperature of a water outlet after the water outlet valve is opened;

s200, sampling the water temperature detected by a temperature sensor, and determining the water temperature of the indoor bathroom according to the sampled water temperature;

step S300, determining the illumination parameters of the indoor light source based on the water temperature;

wherein the lighting parameters comprise a color temperature of the light source and a luminous flux output rate, the luminous flux output rate being a ratio of a luminous flux output by the light source to a maximum luminous flux of the light source.

In a preferred embodiment, the step S100 includes:

step S110, if the water outlet valve is determined to be opened, recording the opening time point of the valve, and acquiring the water flow detected by a water flowmeter of the valve in real time;

step S120, sampling the water flow at intervals of a first sampling time period to obtain the water flow at a plurality of time points;

wherein, the value range of the first sampling time interval is [1, 5] s (second).

Step S130, if the water flow at n continuous time points is larger than a first flow threshold value, determining that the water flow is stable;

wherein the value range of n is [1, 12 ].

Step S140, after the water flow is determined to be stable, calculating the opening duration of the valve according to the opening time point of the valve;

step S150, if the duration time is determined to be greater than a first time threshold value, controlling a temperature sensor to detect the water temperature at a water outlet;

wherein, the value range of the first time threshold is [20, 120] s (second).

It should be noted that the stable water flow can basically determine that the water use regulating action of the user is stopped, and the water use requirement is basically not changed; therefore, the detected water temperature at the water outlet has certain effectiveness, the accuracy of the lighting parameters is improved, the water temperature at the water outlet is detected after the valve is opened for a period of time, and the detected water temperature can be ensured to be more accurate.

In a preferred embodiment, the step S200 includes:

step S210, sampling the water temperature detected by the temperature sensor at intervals of a second sampling time period until the water flow is 0, and obtaining m water temperature values;

wherein, the value range of the second sampling time period is [1, 5] s (second), and m is more than or equal to 2.

And S220, taking the average value of the m water temperature values as the water temperature of the indoor bathroom.

It should be noted that, during the water outlet process, there may be a case that the user adjusts the water temperature, and in this embodiment, the average value of the m water temperature values is taken into consideration as the final temperature of all the outlet water, that is, the water temperature of the indoor bathroom.

In a preferred embodiment, the step S300 includes:

step S310, acquiring a corresponding relation table, wherein the corresponding relation table comprises water temperature ranges and illumination parameter ranges respectively corresponding to the water temperature ranges;

step S320, determining a water temperature range of the water temperature, and inquiring from the corresponding relation table according to the water temperature range to obtain a corresponding illumination parameter range; taking the maximum value in the range of the lighting parameters obtained by query as a first lighting parameter, and taking the minimum value in the range of the lighting parameters as a second lighting parameter;

step S330, acquiring a current illumination parameter, taking an absolute difference value between the current illumination parameter and the first illumination parameter as a first difference value, and taking an absolute difference value between the current illumination parameter and the second illumination parameter as a second difference value;

step S340, comparing the first difference value with the second difference value, and selecting the larger value as the adjustment quantity;

step S350, gradually adjusting the illumination parameters of the indoor light source according to the adjustment quantity until the illumination parameters of the indoor light source are adjusted to the illumination parameters corresponding to the larger value;

step S360, if the illumination duration time of the indoor light source according to the illumination parameter corresponding to the larger value is determined to be larger than a second time threshold value, controlling the illumination parameter of the indoor light source to be gradually adjusted to a target illumination parameter; wherein the target lighting parameter is an average of the first lighting parameter and the second lighting parameter.

In one embodiment, the correspondence table is shown in table 1 below:

table 1: corresponding relation table

Water temperature range (. degree. C.) Light source color temperature (K) Luminous flux output rate
<30 <3000 60-100%
30-40 3000-5000 10-60%
>40 >5000 0-10%

It should be noted that, according to the lighting parameters in table 1, the obtained user experience effect is shown in table 2 below;

TABLE 2 illumination parameter effect mapping table

Light source color temperature (K) Luminous flux output rate Colour(s) Type of experience
<3000 60-100% Reddish white Steady weight and warmth
3000-5000 10-60% White colour Refreshing and fast-food
>5000 0-10% White with blue Cold and cool

As can be seen from tables 1 and 2, when the water temperature is higher, it indicates that the user needs a warmer feeling; when the water temperature meets the bottom, a user needs to feel cooler, the user can adapt to the water using condition of the user by adjusting the light environment of the indoor bathroom, and the light environment more meeting the mind of the user is created.

Corresponding to the method shown in fig. 1, an embodiment of the present invention further provides a computer-readable storage medium, where a light environment control program of indoor bathroom is stored on the computer-readable storage medium, and when the light environment control program of indoor bathroom is executed by a processor, the steps of the light environment control method of indoor bathroom as described in any one of the above embodiments are implemented.

Corresponding to the method in fig. 1, referring to fig. 2, an embodiment of the present invention further provides a light environment control system for indoor bathroom, the system including: a controller, a temperature sensor, and a water flow meter;

the temperature sensor is arranged at the water outlet and used for detecting the temperature of the water outlet;

the water flow meter is arranged on a water outlet pipeline where the water outlet is positioned and used for detecting the water flow of the water outlet;

the controller is respectively connected with the temperature sensor and the water flow meter;

the controller comprises;

at least one processor;

at least one memory for storing at least one program;

when the at least one program is executed by the at least one processor, the at least one processor is enabled to implement the light environment control method for indoor bathroom facilities according to any of the above embodiments.

The contents in the above method embodiments are all applicable to the present system embodiment, the functions specifically implemented by the present system embodiment are the same as those in the above method embodiment, and the beneficial effects achieved by the present system embodiment are also the same as those achieved by the above method embodiment.

The Processor may be a Central-Processing Unit (CPU), other general-purpose Processor, a Digital Signal Processor (DSP), an Application-Specific-Integrated-Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. The general processor can be a microprocessor or the processor can be any conventional processor and the like, the processor is a control center of the light environment control system of the indoor bathroom, and various interfaces and lines are utilized to connect all parts of the light environment control system operable device of the whole indoor bathroom.

The memory can be used for storing the computer programs and/or modules, and the processor can realize various functions of the light environment control system of the indoor bathroom by running or executing the computer programs and/or modules stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart-Media-Card (SMC), a Secure-Digital (SD) Card, a Flash-memory Card (Flash-Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.

While the description of the present application has been made in considerable detail and with particular reference to a few illustrated embodiments, it is not intended to be limited to any such details or embodiments or any particular embodiments, but it is to be construed that the present application effectively covers the intended scope of the application by reference to the appended claims, which are interpreted in view of the broad potential of the prior art. Further, the foregoing describes the present application in terms of embodiments foreseen by the inventor for which an enabling description was available, notwithstanding that insubstantial changes from the present application, not presently foreseen, may nonetheless represent equivalents thereto.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种热水器的控制方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!