Adjustable lighting equipment for endowment mechanism and control method thereof

文档序号:291865 发布日期:2021-11-23 浏览:5次 中文

阅读说明:本技术 面向养老机构的可调节照明设备及其控制方法 (Adjustable lighting equipment for endowment mechanism and control method thereof ) 是由 于洋 刘祥志 陈然 张锋 梁俊龙 于 2021-08-25 设计创作,主要内容包括:本发明公开了面向养老机构的可调节照明设备及其控制方法,包括:主控电路;主控电路分别与输入模块、无线通信电路、LED驱动电路和电源电路连接;无线通信电路与无线模块连接;LED驱动电路与光源电路连接;利用主控电路输出两路占空比不同的脉冲宽度调制波PWM控制LED驱动电路,从而控制光源电路的LED灯珠,进行混光,从而实现可调节照明设备的色温调节。能够解决养老照明设备同时调节色温与照度的问题。(The invention discloses an adjustable lighting device for an old-age care mechanism and a control method thereof, wherein the adjustable lighting device comprises: a master control circuit; the master control circuit is respectively connected with the input module, the wireless communication circuit, the LED drive circuit and the power circuit; the wireless communication circuit is connected with the wireless module; the LED driving circuit is connected with the light source circuit; the main control circuit is used for outputting two paths of pulse width modulation waves PWM with different duty ratios to control the LED driving circuit, so that the LED lamp beads of the light source circuit are controlled, light mixing is carried out, and color temperature adjustment of the adjustable lighting equipment is achieved. The problem of endowment lighting apparatus adjust colour temperature and illuminance simultaneously can be solved.)

1. Towards adjustable lighting apparatus of endowment mechanism, characterized by includes: a master control circuit;

the master control circuit is respectively connected with the input module, the wireless communication circuit, the LED drive circuit and the power circuit;

the wireless communication circuit is connected with the wireless module; the LED driving circuit is connected with the light source circuit;

the main control circuit is used for outputting two paths of pulse width modulation waves PWM with different duty ratios to control the LED driving circuit, so that the LED lamp beads of the light source circuit are controlled, light mixing is carried out, and color temperature adjustment of the adjustable lighting equipment is achieved.

2. The adjustable lighting device for the endowment facility as claimed in claim 1, wherein the power circuit is used for connecting a DC12V power supply, then converting the DC5V and DC3.3V power supply to supply power for other modules; and the main control circuit is responsible for interaction among the independent modules, information acquisition, data analysis and output control.

3. The adjustable lighting device for the nursing home as claimed in claim 1, wherein the LED driving circuit amplifies the signal outputted from the main control circuit; wireless communications circuitry, comprising: one or more of bluetooth communication circuit, WIFI communication circuit and remote controller signal receiving circuit passes to master control circuit's singlechip with the signal that illuminance sensor in the input module received, realizes corresponding action.

4. The adjustable lighting device for elderly people care facilities of claim 1, wherein the input module comprises an infrared sensor, a microphone, and a light intensity sensor for collecting infrared information, voice information, and light intensity detection information.

5. The adjustable lighting device for a nursing home as in claim 1, wherein the light source circuit comprises: two luminous LED lamp pearls adopt two at least luminous lamp pearls that the colour temperature is different, and the different luminous group of control goes on and goes out to play the effect of mixing of colors.

6. The control method of the adjustable lighting equipment facing the old-age care organization is characterized by comprising the following steps:

acquiring a light-on signal, and selecting light color temperature and illumination data corresponding to the longest working time value from a plurality of parameter storage areas to a current parameter buffer area;

judging whether the data of the current parameter buffer area is effective or not, if so, adjusting the color temperature and the illumination of the light according to the data of the current data buffer area, and starting the service time of the current color temperature and the illumination for timing; judging whether a color temperature or illumination adjusting event instruction is received; if not, adjusting the color temperature and the illumination of the light according to the parameters set by the factory equipment, and starting the service time of the current color temperature and illumination for timing;

judging whether a color temperature or illumination adjusting event instruction is received; if yes, entering the next step; if not, judging whether a light-off event instruction is received or not;

stopping timing of the current color temperature and illumination, and storing timing results into corresponding color temperature and illumination buffer areas; adjusting the color temperature and the illumination according to the input event, and starting the use duration timing of the new color temperature and illumination; returning to judge whether a color temperature or illumination adjusting event instruction is received;

judging whether a light-off event instruction is received or not, if so, stopping the timing of the current color temperature and illumination, and writing the timing result into a corresponding color temperature and illumination buffer area; finding out a color temperature and illumination buffer area with the longest recording time, and storing the color temperature and the illumination corresponding to the buffer area into a parameter storage area and a current parameter buffer area for use when the equipment is started next time; if not, whether a color temperature or illumination adjustment event instruction is received is judged.

7. The method as claimed in claim 6, wherein the step of determining whether the data of the current parameter buffer is valid; the specific judgment principle is as follows:

and if the color temperature of the current parameter buffer area is within the set range and the illumination is within the set range, judging that the data of the current parameter buffer area is valid data.

8. The method as claimed in claim 6, wherein the color temperature and the illumination of the light are adjusted according to the current data buffer area data, and the color temperature and the illumination of the light are adjusted according to the factory-set parameters of the equipment; the specific adjustment steps are consistent;

adjusting the color temperature and the illumination of the light according to the data of the current data buffer area; the method specifically comprises the following steps:

outputting two paths of pulse width modulation wave PWM with different duty ratios through a main control circuit, and respectively controlling at least one group of lamp beads by respectively adjusting the duty ratios of the two paths of pulse width modulation wave PWM, wherein the group of lamp beads at least comprises a positive white lamp bead with reference color temperature of 6500K and a warm white lamp bead with reference color temperature of 3500K; the main control circuit is used for outputting two paths of pulse width modulation waves PWM with different duty ratios to control the LED driving circuit, so that the LED lamp beads of the light source circuit are controlled, light mixing is carried out, and color temperature adjustment is achieved.

9. The method as claimed in claim 6, wherein the method for controlling the adjustable lighting device for the nursing home organization comprises adjusting the color temperature and the illumination of the light according to the data of the current data buffer area; the method specifically comprises the following steps:

and under the condition that the illumination is kept constant, performing color temperature adjustment:

two paths of PWM waves with ten times of period difference are generated through a main control circuit, and after the two PWM waves are subjected to AND operation, the two PWM waves are used for controlling the white light lamp beads of the light source circuit through an LED driving circuit;

after the PWM wave with the small period is subjected to 'not' operation, the PWM wave with the long period is subjected to 'AND' operation, and then the LED drive circuit controls a warm white light lamp bead of the light source circuit;

the brightness of the lighting equipment is adjusted by adjusting the duty ratio of the PWM wave with a large period;

and the color temperature of the lighting equipment is adjusted by adjusting the duty ratio of the PWM wave with a small period.

10. The method as claimed in claim 6, wherein the lamp color temperature and illumination data corresponding to the longest working time is selected from the plurality of parameter storage areas and is transmitted to the current parameter buffer area; the method specifically comprises the following steps:

at least two parameter storage areas, a current parameter buffer area and at least two color temperature and illumination buffer areas are distributed in a microprocessor of a main control circuit, and the number of the parameter storage areas is the same as that of the color temperature and illumination buffer areas and corresponds to that of the color temperature and illumination buffer areas one by one; the current parameter buffer area is connected with all the parameter storage areas; each parameter storage area is connected with a corresponding color temperature and illumination buffer area;

a data structure of a color temperature illumination buffer k, comprising: color temperature pkIlluminance qkAnd a color temperature pkAnd the illuminance qkThe current working time of the mobile terminal; k is a positive integer; k ranges from 2 to N;

the data structure of the parameter storage area k comprises: color temperature pkIlluminance qkColor temperature pkAnd the illuminance qkN operation time period tNColor temperature pkAnd the illuminance qkN-1 th operation time period tN-1Color temperature pkAnd the illuminance qkN-2 th operation time period tN-2… … color temperature pkAnd the illuminance qk1 st operation time period t1

The data structure of the parameter storage area is N-1 storage areas for storing working time length more than the data structure of the color temperature and illumination buffer area, all working time length parameters of the parameter buffer area are firstly moved to the Nth working time length direction by 1 area before the parameters in the color temperature and illumination buffer area are written into the parameter storage area, and then the working time length of the time in the color temperature and illumination buffer area is written into the 1 st working time length area;

wherein, the length T of the working k of the parameter storage areakThe calculation method is as follows:

and selecting the color temperature and the illumination corresponding to the maximum value from the working time of the N parameter storage areas, and writing the color temperature and the illumination into the current parameter buffer area.

Technical Field

The invention relates to the technical field of illumination, in particular to adjustable illumination equipment for an old-age care mechanism and a control method thereof.

Background

The statements in this section merely provide background information related to the present disclosure and may not constitute prior art.

The health and practical light source is needed in the nursing institution or nursing home, so the indoor illumination problem needs to be considered, and the illumination has direct relation to the sleep and daily life of the old. With the continuous development and breakthrough of the LED lighting technology, the LED luminous efficiency is gradually improved. Especially for the elderly, due to their different working and living experiences, the habits of the lighting are also different, and in order to improve the comfort of the nursing home, an adjustable lighting device is needed.

The existing adjustable lamp mostly only simply adjusts the illumination of the lamp, and a small part of the existing adjustable lamp directly adjusts the current to control the brightness of the LED lamp, so that the color temperature lamp remains unchanged. In addition, since the eyesight and the mobility of the old people are relatively poor and the difficulty in operating and adjusting the light is high in the ordinary old people living in the nursing home, an adjustable lamp and an adjusting method capable of memorizing the preference of the light of the old people are urgently needed.

Disclosure of Invention

In order to solve the defects of the prior art, the invention provides adjustable lighting equipment for an aged care mechanism and a control method thereof; the lamp and the adjusting method solve the problems that the old people have poor eyesight and inconvenient movement at night and flicker when adjusting the light, and improve the comfort of the old people.

In a first aspect, the present invention provides an adjustable illumination device for an elderly care facility;

adjustable lighting device towards endowment mechanism, includes: a master control circuit;

the master control circuit is respectively connected with the input module, the wireless communication circuit, the LED drive circuit and the power circuit;

the wireless communication circuit is connected with the wireless module; the LED driving circuit is connected with the light source circuit;

the main control circuit is used for outputting two paths of pulse width modulation waves PWM with different duty ratios to control the LED driving circuit, so that the LED lamp beads of the light source circuit are controlled, light mixing is carried out, and color temperature adjustment of the adjustable lighting equipment is achieved.

In a second aspect, the invention provides a control method for an adjustable lighting device for an elderly care institution;

the control method of the adjustable lighting equipment facing the old-age care institution comprises the following steps:

acquiring a light-on signal, and selecting light color temperature and illumination data corresponding to the longest working time value from a plurality of parameter storage areas to a current parameter buffer area;

judging whether the data of the current parameter buffer area is effective or not, if so, adjusting the color temperature and the illumination of the light according to the data of the current data buffer area, and starting the service time of the current color temperature and the illumination for timing; judging whether a color temperature or illumination adjusting event instruction is received; if not, adjusting the color temperature and the illumination of the light according to the parameters set by the factory equipment, and starting the service time of the current color temperature and illumination for timing;

judging whether a color temperature or illumination adjusting event instruction is received; if yes, entering the next step; if not, judging whether a light-off event instruction is received or not;

stopping timing of the current color temperature and illumination, and storing timing results into corresponding color temperature and illumination buffer areas; adjusting the color temperature and the illumination according to the input event, and starting the use duration timing of the new color temperature and illumination; returning to judge whether a color temperature or illumination adjusting event instruction is received;

judging whether a light-off event instruction is received or not, if so, stopping the timing of the current color temperature and illumination, and writing the timing result into a corresponding color temperature and illumination buffer area; finding out a color temperature and illumination buffer area with the longest recording time, and storing the color temperature and the illumination corresponding to the buffer area into a parameter storage area and a current parameter buffer area for use when the equipment is started next time; if not, whether a color temperature or illumination adjustment event instruction is received is judged.

Compared with the prior art, the invention has the beneficial effects that:

1. the problem that the old-age lighting equipment can simultaneously adjust the color temperature and the illumination intensity can be solved;

2. the lamp and the adjusting method can constantly memorize the preference of the old on the light;

3. the problem that the old man looks bad at night, moves inconveniently and twinkles when adjusting light can be solved, old man's comfort is improved.

Advantages of additional aspects of the invention will be set forth in part in the description which follows, or may be learned by practice of the invention.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate exemplary embodiments of the invention and together with the description serve to explain the invention and not to limit the invention.

Fig. 1 is a block diagram of an adjustable lighting device based on a nursing home according to a first embodiment of the present invention;

FIG. 2 is a diagram illustrating a relationship between a data buffer and a parameter storage area according to a first embodiment of the present invention;

fig. 3 is a flowchart of an adjusting method of an adjustable lighting device based on a nursing home according to a first embodiment of the present invention;

fig. 4 is a data structure diagram of a color temperature and illumination buffer area and a current parameter buffer area according to a first embodiment of the present invention;

FIG. 5 is a diagram of a data structure of a parameter storage area according to an embodiment of the present invention;

FIG. 6 is a schematic diagram of a power circuit according to a first embodiment of the present invention;

FIG. 7 is a schematic diagram of a master control circuit according to a first embodiment of the invention;

fig. 8 is a schematic diagram of an LED driving circuit according to a first embodiment of the invention;

fig. 9 is a schematic diagram of a wireless communication circuit according to a first embodiment of the invention;

fig. 10 is a schematic diagram of an input module according to a first embodiment of the invention.

Detailed Description

It is to be understood that the following detailed description is exemplary and is intended to provide further explanation of the invention as claimed. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of exemplary embodiments according to the invention. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, and it should be understood that the terms "comprises" and "comprising", and any variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

All data are obtained according to the embodiment and are legally applied on the data on the basis of compliance with laws and regulations and user consent.

Example one

The present embodiment provides an adjustable illumination device for an elderly care facility;

as shown in fig. 1, the adjustable illumination apparatus facing the endowment facility includes: a master control circuit;

the master control circuit is respectively connected with the input module, the wireless communication circuit, the LED drive circuit and the power circuit;

the wireless communication circuit is connected with the wireless module; the LED driving circuit is connected with the light source circuit;

the main control circuit is used for outputting two paths of pulse width modulation waves PWM with different duty ratios to control the LED driving circuit, so that the LED lamp beads of the light source circuit are controlled, light mixing is carried out, and color temperature adjustment of the adjustable lighting equipment is achieved.

The power supply circuit is used for accessing a DC12V power supply, then converting the power supply into DC5V and DC3.3V power supplies and supplying power to other modules;

the main control circuit is responsible for interaction among the independent modules, information acquisition, data analysis and output control;

the LED driving circuit amplifies the signal output by the main control circuit, so that the reliability of the system is improved;

wireless communications circuitry, comprising: one or more of a Bluetooth communication circuit, a WIFI communication circuit and a remote controller signal receiving circuit transmits signals received by a light intensity sensor in the input module to a single chip of the main control circuit to realize corresponding actions;

the input module comprises an infrared sensor, a microphone and a light intensity sensor and is used for acquiring infrared information, voice information and light intensity detection information;

a light source circuit, comprising: two luminous LED lamp pearls adopt two at least luminous lamp pearls that the colour temperature is different, and the different luminous group of control goes on and goes out to play the effect of mixing of colors.

A wireless module, comprising: WIFI module, bluetooth module.

The lighting equipment solves the problems that the color temperature and illumination self-adaptive LED light source cannot be adjusted according to user requirements at present and the old people cannot be controlled conveniently under the specific condition of an entity switch, can not only solve the problem that the old-aged lighting equipment adjusts the color temperature and the illumination simultaneously, but also can remember the lamp and the adjusting method of the old people for the preference of the light. The problem that the old man looks bad at night, moves inconveniently and twinkles when adjusting light can be solved more, old man's comfort is improved.

The light source circuit comprises two light-emitting LED lamp beads, at least two light-emitting lamp beads with different color temperatures are adopted, and different light-emitting groups are controlled to be turned on and off so as to play a role in color mixing.

The wireless module comprises a WIFI module and a Bluetooth module.

A scene type adjustable lighting device of an asylum for the aged comprises a power supply circuit, a main control circuit, an LED driving circuit, a wireless communication circuit, an input module, a light source circuit and a wireless module.

As shown in fig. 6, the power supply circuit: the power supply is used for accessing a DC12V power supply, then converting the power supply into DC5V and DC3.3V power supplies, and supplying power to other modules; the whole control panel adopts DC12V power supply, and the power is connected through DC socket (DC1), and positive pole series connection schottky diode (D6) is as the input of LM2596 voltage conversion chip (U10) through filter capacitor (C18), and LM2596 voltage conversion chip (U10) converts DC5V voltage, and DC5V voltage that the output waveform is more stable through filter capacitor (C16, C17) supplies the control panel to use. The DC5V voltage enters an AMS1117 voltage reduction chip (U9) through filter capacitors (C14 and C15), the voltage of DC3.3V is output by the chip, and the voltage is output by the filter capacitors (C12 and C13) and used by a control board. DC3.3V the power indicator (LED2) is connected via a current limiting resistor (R34) to indicate whether the power supply is working normally. The DC12V is used for supplying power to the LED constant current driving chip, the DC5V is mainly used for supplying power to the Bluetooth module, the logic circuit chip, the optical coupling isolation chip and the illumination intensity sensor, and the DC3.3V is mainly used for supplying power to the main chip and the peripheral circuit of the STM32 single chip microcomputer;

as shown in fig. 7, the master control circuit: the power supply voltage stabilizing circuit is connected with the power supply voltage stabilizing circuit and is responsible for interaction among the independent modules, and the power supply voltage stabilizing circuit can collect information, analyze data and output control; the main control chip (U8) is controlled by a single chip microcomputer. The most basic peripheral circuits are added, such as crystal oscillator circuits (C1, C2, X1 and R1), reset circuits (C3, R18 and SW1), program debugging download circuits (R13, R14, R15 and R16), indicator light circuits (LED1 and R19) and the like. Meanwhile, capacitors are added around the chip for filtering (C6, C7, C8 and C9), so that the stability of system operation is improved;

as shown in fig. 8, the LED driving circuit: the intermediate circuit is connected with the main control circuit and can amplify the signal output by the main control circuit, so that the system reliability can be improved; the controller writes the PWM pulses (T2C1, T1C1, T4C1 and T1C4) output by the program, passes through the NAND gate (U4 and U5), and outputs PWM signals (PWM1, PWM2, PWM4 and PWM5) with equal periods and complementary periods, as shown in FIG. 1. The PWM signal controls the light sources through PT4115LED constant current driving chips (U2, U3, U6 and U7), the light sources are driven by special chips at the moment, and the two light sources are controlled in a correlation manner;

as shown in fig. 9, the wireless communication circuit: the single chip microcomputer is connected with the main control circuit, comprises a Bluetooth communication circuit, a WIFI communication circuit and a remote controller signal receiving circuit, and can transmit signals received by the sensor to the main control circuit to realize corresponding actions; the remote controller comprises a Bluetooth communication circuit interface (H1), a WIFI communication circuit interface (U1) and a remote controller signal receiving circuit, wherein signals are output to the interface (H2) through an optical coupling isolator (U11);

as shown in fig. 10, the input module: the main control circuit is connected with the infrared information acquisition circuit and is used for acquiring infrared information, voice information and light detection information; the system comprises an infrared module, a voice module, an illumination intensity sensor module, an infrared receiving circuit (CN8), a voice receiving circuit (CN9) and a light detection circuit interface (CN 3); the human body induction switch is made through an infrared sensor interface; realizing voice control through a voice recognition sensor; and designing an IIC communication interface, accessing an illumination intensity sensor module, and collecting the current illumination intensity.

The light source circuit comprises two light-emitting LED lamp beads, and at least two light-emitting lamp beads with different color temperatures are adopted to control different light-emitting groups to be turned on and off so as to play a role in color mixing.

The wireless module comprises a WIFI module and a Bluetooth module, and the WIFI module, the Bluetooth module, the remote controller and the serial port communication interface are connected into the LED dimming and color-mixing lighting circuit based on wireless. Designing a WIFI module interface, and connecting the WIFI module interface with a serial port 3 of a main control chip; an interface of the low-power consumption Bluetooth module is arranged and connected with a serial port 2 of the main control chip; a remote controller receiving module is designed, and the main chip is connected through an optical coupling isolation module, so that isolation is increased, and the main chip is protected.

Example two

The embodiment provides a control method of an adjustable lighting device facing an old-age care organization;

as shown in fig. 3, the method for controlling an adjustable lighting device facing an aged care institution includes:

s201: acquiring a light-on signal, and selecting light color temperature and illumination data corresponding to the longest working time value from a plurality of parameter storage areas to a current parameter buffer area;

s202: judging whether the data of the current parameter buffer area is effective or not, if so, adjusting the color temperature and the illumination of the light according to the data of the current data buffer area, and starting the service time of the current color temperature and the illumination for timing; entering S203; if not, adjusting the color temperature and the illumination of the light according to the parameters set by the factory equipment, and starting the service time of the current color temperature and illumination for timing;

s203: judging whether a color temperature or illumination adjusting event instruction is received; if yes, go to S204; if not, go to S205;

s204: stopping timing of the current color temperature and illumination, and storing timing results into corresponding color temperature and illumination buffer areas; adjusting the color temperature and the illumination according to the input event, and starting the use duration timing of the new color temperature and illumination; returning to S203;

s205: judging whether a light-off event instruction is received or not, if so, stopping the timing of the current color temperature and illumination, and writing the timing result into a corresponding color temperature and illumination buffer area; finding out a color temperature and illumination buffer area with the longest recording time, and storing the color temperature and the illumination corresponding to the buffer area into a parameter storage area and a current parameter buffer area for use when the equipment is started next time; if not, return to S203.

Further, judging whether the data of the current parameter buffer area is valid; the specific judgment principle is as follows:

and if the color temperature of the current parameter buffer area is within the set range and the illumination is within the set range, judging that the data of the current parameter buffer area is valid data. The setting range of the color temperature is 2500K-7000K; setting range of illuminance: 50 LUX-1500 LUX.

Further, the color temperature and the illumination of the light are adjusted according to the data of the current data buffer area, and the color temperature and the illumination of the light are adjusted according to parameters set by equipment leaving a factory; the specific adjustment steps are consistent;

adjusting the color temperature and the illumination of the light according to the data of the current data buffer area; the method specifically comprises the following steps:

outputting two paths of pulse width modulation wave PWM with different duty ratios through a main control circuit, and respectively controlling at least one group of lamp beads by respectively adjusting the duty ratios of the two paths of pulse width modulation wave PWM, wherein the group of lamp beads at least comprises a positive white lamp bead with reference color temperature of 6500K and a warm white lamp bead with reference color temperature of 3500K; the main control circuit is used for outputting two paths of pulse width modulation waves PWM with different duty ratios to control the LED driving circuit, so that the LED lamp beads of the light source circuit are controlled, light mixing is carried out, and color temperature adjustment is achieved.

Further, adjusting the color temperature and the illumination of the light according to the data of the current data buffer area; the method specifically comprises the following steps:

and under the condition that the illumination is kept constant, performing color temperature adjustment:

two paths of PWM waves with ten times of period difference are generated through a main control circuit, and after the two PWM waves are subjected to AND operation, the two PWM waves are used for controlling the white light lamp beads of the light source circuit through an LED driving circuit;

after the PWM wave with a small period is subjected to 'NOT' operation, the PWM wave with a long period is subjected to 'AND' operation, and then the LED drive circuit controls the warm white light lamp bead of the light source circuit.

The brightness of the lighting equipment is adjusted by adjusting the duty ratio of the PWM wave with a large period;

and the color temperature of the lighting equipment is adjusted by adjusting the duty ratio of the PWM wave with a small period.

The color temperature adjustment is realized under the condition that the illumination is kept constant. The illumination adjustment can be realized under the condition that the color temperature is kept constant.

Further, the lamplight color temperature and illumination data corresponding to the longest working time value are selected from the parameter storage areas and sent to the current parameter buffer area; the method specifically comprises the following steps:

as shown in fig. 2, at least two parameter storage areas, a current parameter buffer area and at least two color temperature and illumination buffer areas are allocated in the microprocessor of the main control circuit, and the number of the parameter storage areas is the same as that of the color temperature and illumination buffer areas and corresponds to that of the color temperature and illumination buffer areas one by one; the current parameter buffer area is connected with all the parameter storage areas; each parameter storage area is connected with a corresponding color temperature and illumination buffer area;

as shown in fig. 4, the data structure of the color temperature and luminance buffer k includes: color temperature pkIlluminance qkAnd a color temperature pkAnd the illuminance qkThe current working time of the mobile terminal; k is a positive integer; k ranges from 2 to N;

as shown in fig. 5, the data structure of the parameter storage area k includes: color temperature pkIlluminance qkColor temperature pkAnd the illuminance qkN operation time period tNColor temperature pkAnd the illuminance qkN-1 th operation time period tN-1Color temperature pkAnd the illuminance qkN-2 th operation time period tN-2… … color temperature pkAnd the illuminance qk1 st operation time period t1

The data structure of the parameter storage area is N-1 storage areas for storing working time length more than the data structure of the color temperature and illumination buffer area, all working time length parameters of the parameter buffer area are firstly moved to the Nth working time length direction by 1 area before the parameters in the color temperature and illumination buffer area are written into the parameter storage area, and then the working time length of the time in the color temperature and illumination buffer area is written into the 1 st working time length area;

wherein, the length T of the working k of the parameter storage areakThe calculation method is as follows:

and selecting the color temperature and the illumination corresponding to the maximum value from the working time of the N parameter storage areas, and writing the color temperature and the illumination into the current parameter buffer area.

The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种微波警示驱动电路及灯具

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!