Self-adjusting lamp box illumination control method

文档序号:1835219 发布日期:2021-11-12 浏览:8次 中文

阅读说明:本技术 一种自调节灯箱照明控制方法 (Self-adjusting lamp box illumination control method ) 是由 狄震 于 2021-09-01 设计创作,主要内容包括:本发明涉及灯牌控制的技术领域,特别是涉及一种自调节灯箱照明控制方法,其在经过灯箱前的人流或车流数量较少时,能够自动关闭,并在经过灯箱前的人流或车流数量较多时继续打开,提高开关方式的自动化;包括:S2:开启灯箱;S3:进行第一倒计时;S4:通过微波雷达获取来往车辆以及行人的流量;S6:对车流和人流总和进行计数,并将其与固定值进行数值对比,判定流量值是否小于固定值;S7:判定第一倒计时是否结束;S8:关闭灯箱;S10:接收到微波雷达的触发反馈信号,进行第二倒计时;S12:对车流和人流总和进行计数,并将其与固定值进行数值对比,判定流量值是否小于固定值;S13:判定第二倒计时是否结束;S14:返回至步骤S9。(The invention relates to the technical field of lamp board control, in particular to a self-adjusting lamp box lighting control method which can be automatically closed when the number of people or traffic flow passing through the lamp box is small, and can be continuously opened when the number of people or traffic flow passing through the lamp box is large, so that the automation of a switching mode is improved; the method comprises the following steps: s2: opening a lamp box; s3: performing a first countdown; s4: acquiring the flow of vehicles and pedestrians through a microwave radar; s6: counting the sum of the traffic flow and the people flow, comparing the sum with a fixed value, and judging whether the flow value is smaller than the fixed value; s7: judging whether the first countdown is finished or not; s8: closing the lamp box; s10: receiving a trigger feedback signal of the microwave radar, and performing second countdown; s12: counting the sum of the traffic flow and the people flow, comparing the sum with a fixed value, and judging whether the flow value is smaller than the fixed value; s13: judging whether the second countdown is finished or not; s14: return to step S9.)

1. A self-adjusting light box lighting control method, comprising:

s1: acquiring a feedback signal of the light sensor, and judging whether the value of the feedback signal is smaller than a set threshold value of the light sensor;

s2: judging that the ambient light is lower than a set threshold of the light sensor, and starting a light box;

s3: presetting first fixed time, acquiring first starting time and performing first countdown according to the first fixed time;

s4: continuing the first countdown, and acquiring the flow of vehicles and pedestrians by using a microwave radar;

s5: continuing the first countdown, and presetting a fixed value;

s6: continuing the first countdown, counting the sum of the traffic flow and the people flow, comparing the count with a fixed value, and judging whether the flow value is smaller than the fixed value;

s7: continuing the first countdown, judging whether the flow value is smaller than a fixed value, and judging whether the first countdown is finished;

s8: judging that the first countdown is finished, clearing counting data and closing the lamp box;

s9: the microwave radar is in a standby state;

s10: receiving a trigger feedback signal of the microwave radar, presetting second fixed time, acquiring second starting time and performing second countdown according to the second fixed time;

s11: continuing the second countdown, and acquiring the flow of vehicles and pedestrians by the microwave radar;

s12: the second countdown is continued, the sum of the traffic flow and the people flow is counted, the count is compared with a fixed value, and whether the flow value is smaller than the fixed value or not is judged;

s13: continuing the second countdown, judging whether the flow value is smaller than the fixed value, and judging whether the second countdown is finished;

s14: the end of the second countdown is determined, the count data is cleared, and the process returns to step S9.

2. The method as claimed in claim 1, wherein in step S1, the feedback signal value is determined to be greater than or equal to the light sensor threshold, and step S1 is repeated until the feedback signal value is determined to be less than the light sensor threshold, and the process proceeds to step S2.

3. The self-adjusting light box lighting control method of claim 1, wherein in step S2, a first time when the light box is turned on is set as a first start time.

4. The method as claimed in claim 1, wherein the flow value is equal to or greater than a fixed value in step S6, the count data is cleared and the first countdown is ended and the process returns to step S1.

5. The method as claimed in claim 1, wherein in step S7, it is determined that the first countdown is not over, and the data is retained and returned to step S6.

6. The method as claimed in claim 1, wherein in step S9, if the trigger signal of the microwave radar is not received, the method stays in step S9 and does not proceed to step S10.

7. A self-adjusting light box lighting control method as claimed in claim 1, wherein in step S10, the first time when the trigger signal of the microwave radar is received is set as the second start time.

8. The method as claimed in claim 1, wherein the flow value is equal to or greater than a fixed value in step S12, the count data is cleared and the second countdown is ended and the process returns to step S1.

9. The method as claimed in claim 1, wherein in step S13, it is determined that the second countdown is not over, and the data is retained and returned to step S12.

Technical Field

The invention relates to the technical field of lamp box control, in particular to a self-adjusting lamp box lighting control method.

Background

When the environment is dim, signboards such as roadside station boards or advertisements need to cooperate the lamp house to carry out auxiliary lighting so that better carry out the advertisement and promote, current signboards are mostly used in public areas such as roadside or roof, when people flow or traffic flow quantity before the lamp house is less, mostly need manual closing or regularly close the lamp house, the on-off mode is comparatively troublesome to it causes the unnecessary loss to the energy relatively, the on-off mode is automatic inadequately.

Disclosure of Invention

In order to solve the technical problems, the invention provides a self-adjusting lamp box lighting control method which can be automatically turned off when the number of people or traffic flows passing through the lamp box is small, and can be continuously turned on when the number of people or traffic flows passing through the lamp box is large, so that unnecessary loss to energy sources is reduced while the switch is convenient, and the automation of a switch mode is improved.

The invention discloses a self-adjusting lamp box lighting control method, which comprises the following steps:

s1: acquiring a feedback signal of the light sensor, and judging whether the value of the feedback signal is smaller than a set threshold value of the light sensor;

s2: judging that the ambient light is lower than a set threshold of the light sensor, and starting a light box;

s3: presetting first fixed time, acquiring first starting time and performing first countdown according to the first fixed time;

s4: continuing the first countdown, and acquiring the flow of vehicles and pedestrians by using a microwave radar;

s5: continuing the first countdown, and presetting a fixed value;

s6: continuing the first countdown, counting the sum of the traffic flow and the people flow, comparing the count with a fixed value, and judging whether the flow value is smaller than the fixed value;

s7: continuing the first countdown, judging whether the flow value is smaller than a fixed value, and judging whether the first countdown is finished;

s8: judging that the first countdown is finished, clearing counting data and closing the lamp box;

s9: the microwave radar is in a standby state;

s10: receiving a trigger feedback signal of the microwave radar, presetting second fixed time, acquiring second starting time and performing second countdown according to the second fixed time;

s11: continuing the second countdown, and acquiring the flow of vehicles and pedestrians by the microwave radar;

s12: the second countdown is continued, the sum of the traffic flow and the people flow is counted, the count is compared with a fixed value, and whether the flow value is smaller than the fixed value or not is judged;

s13: continuing the second countdown, judging whether the flow value is smaller than the fixed value, and judging whether the second countdown is finished;

s14: the end of the second countdown is determined, the count data is cleared, and the process returns to step S9.

Preferably, in step S1, the acquired feedback signal value is determined to be equal to or greater than the light sensor set threshold value, step S1 is repeated until the acquired feedback signal value is determined to be less than the light sensor set threshold value, and the process proceeds to step S2.

Preferably, in step S2, a first time when the light box is turned on is set as a first start time.

Preferably, in step S6, the flow rate value is equal to or greater than a fixed value, the count data is cleared, the first countdown is ended, and the process returns to step S1.

Preferably, in step S7, it is determined that the first countdown is not completed, and the data is retained and the process returns to step S6.

Preferably, if the trigger signal of the microwave radar is not received in step S9, the process stays in step S9, and the process does not proceed to step S10.

Preferably, in step S10, the first time when the trigger signal of the microwave radar is received is set as the second start time.

Preferably, in step S12, the flow rate value is equal to or greater than a fixed value, the count data is cleared, the second countdown is ended, and the process returns to step S1.

Preferably, in step S13, it is determined that the second countdown is not completed, and the data is retained and the process returns to step S12.

Compared with the prior art, the invention has the beneficial effects that: it can be through the statistics to the traffic flow and the flow of people through the signboard to with light sensor dual control, the signboard is when the flow of people or traffic flow quantity before the lamp house is less, the lamp house can self-closing, when closing comparatively convenient, can carry out the lamp house again and open under many just dim environment of people, can conveniently carry out on-off control according to having or not coming and going personnel, improve the convenience of use.

Drawings

FIG. 1 is a flow chart of the operation of the present invention.

Detailed Description

The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.

As shown in fig. 1, a self-adjusting light box lighting control method of the present invention comprises:

s1: acquiring a feedback signal of the light sensor, and judging whether the value of the feedback signal is smaller than a set threshold value of the light sensor;

in the embodiment of the present invention, it is determined that the obtained feedback signal value is greater than or equal to the set threshold of the light sensor, step S1 is repeated until the obtained feedback signal value is less than the set threshold of the light sensor, and the process proceeds to step S2;

for example, in a specific embodiment, when the night is approaching or the environment is dim, the acquired feedback signal of the light sensor is analyzed, and when the value is determined to be smaller than the set threshold of the light sensor after the analysis, which indicates that the ambient environment is dim enough, the process proceeds to step S2, and when the value is determined to be greater than or equal to the set threshold of the light sensor after the analysis, which indicates that the ambient environment is bright, the feedback signal of the light sensor is repeatedly acquired, and whether the value is smaller than the set threshold of the light sensor is determined.

S2: judging that the ambient light is lower than a set threshold of the light sensor, and starting a light box;

in the embodiment of the invention, the first time for starting the lamp box is set as the first starting time;

for example, in one specific embodiment, when it is determined after the analysis that the value of the feedback signal of the light sensor is smaller than the set threshold of the light sensor, which indicates that the surrounding environment is dim enough, the light box is turned on, and the first time when the light box is turned on is set as the first start time, and then the process proceeds to step S3.

S3: presetting first fixed time, acquiring first starting time and performing first countdown according to the first fixed time;

in the embodiment of the present invention, for example, in a specific embodiment, the preset first fixed time is 10min, a first countdown is performed for 10min from the first start time, and then the process proceeds to step S4.

S4: continuing the first countdown, and acquiring the flow of vehicles and pedestrians by using a microwave radar;

in one specific embodiment of the present invention, for example, the traffic of the vehicle and the pedestrian is obtained by the microwave radar, and then the first countdown is continued for 10min, and then the process proceeds to step S5.

S5: continuing the first countdown, and presetting a fixed value;

in the embodiment of the present invention, for example, in a specific embodiment, the preset fixed value is 10, and the first countdown is continued for 10min, and then the process proceeds to step S6.

S6: continuing the first countdown, counting the sum of the traffic flow and the people flow, comparing the count with a fixed value, and judging whether the flow value is smaller than the fixed value;

in the embodiment of the invention, the flow value is greater than or equal to the fixed value, the counting data is cleared, the first countdown is ended, and the step S1 is returned;

for example, in one embodiment, the sum of traffic and people flow is counted, the sum is compared with a fixed value of 10, when the sum is determined to be greater than or equal to 10, the first countdown for 10min is ended and the counting data is cleared, and the process returns to step S1, and when the sum is determined to be less than 10, the first countdown for 10min is continued, and the process proceeds to step S7.

S7: continuing the first countdown, judging whether the flow value is smaller than a fixed value, and judging whether the first countdown is finished;

in the embodiment of the present invention, it is determined that the first countdown is not finished, the data is retained, and the process returns to step S6;

for example, in a specific embodiment, it is determined whether the first countdown period of 10min is over when the sum value is less than 10, if the first countdown period is not over, the sum value data is retained and the step S6 is returned to continue the overlay counting on the sum value data; if the first countdown is finished, go to step S8;

in steps S4 to S7, if the first countdown is finished, the first countdown continues to indicate that the first countdown data is reserved but is not counting any more.

S8: judging that the first countdown is finished, clearing counting data and closing the lamp box;

in the embodiment of the present invention, for example, in a specific embodiment, it is determined that the first countdown is finished, the count data is cleared, and the lamp box is closed, and then the process proceeds to step S9.

S9: the microwave radar is in a standby state;

in the embodiment of the present invention, if the trigger signal of the microwave radar is not received, the process still stays in step S9, and the process does not proceed to step S10;

for example, in one specific embodiment, after the light box is turned off, the microwave radar is in a standby state, and the process proceeds to step S10 only when the microwave radar is triggered by a pedestrian or a vehicle, and stays in step S9 when the microwave radar is not triggered all the time.

S10: receiving a trigger feedback signal of the microwave radar, presetting second fixed time, acquiring second starting time and performing second countdown according to the second fixed time;

in the embodiment of the invention, the first time for receiving the trigger signal of the microwave radar is set as the second starting time;

for example, in a specific embodiment, the first time when the trigger signal of the microwave radar is received is set as the second start time, the second fixed time is preset to be 10min, the second countdown is started from the second start time for 10min, and then the step S11 is proceeded to.

S11: continuing the second countdown, and acquiring the flow of vehicles and pedestrians by the microwave radar;

in one specific embodiment of the present invention, for example, the traffic of the vehicle and the pedestrian is obtained by the microwave radar, and then the second countdown is continued for 10min, and then the process proceeds to step S12.

S12: the second countdown is continued, the sum of the traffic flow and the people flow is counted, the count is compared with a fixed value, and whether the flow value is smaller than the fixed value or not is judged;

in the embodiment of the invention, the flow value is greater than or equal to the fixed value, the counting data is cleared, the second countdown is ended, and the step S1 is returned;

for example, in one specific embodiment, the sum of traffic and people flow is counted, the sum value is compared with a fixed value of 10, when the sum value is determined to be greater than or equal to 10, the second countdown for 10min is ended and the counting data is cleared, the process returns to step S1, when the sum value is determined to be less than 10, the second countdown for 10min is continued, and the process proceeds to step S13.

S13: continuing the second countdown, judging whether the flow value is smaller than the fixed value, and judging whether the second countdown is finished;

in the embodiment of the present invention, it is determined that the second countdown is not finished, and the data is retained and returned to step S12;

for example, in a specific embodiment, it is determined whether the second countdown with the period of 10min is ended when the total number is less than 10, if the second countdown is not ended, the total number data is retained and the step S12 is returned to continue the overlay counting on the total number data; if the second countdown is finished, the process proceeds to step S14;

in steps S11 to S13, if the second countdown is finished, the second countdown continues to indicate that the second countdown data is reserved but is not counted again.

S14: judging that the second countdown is finished, clearing the count data and returning to step S9;

in the embodiment of the present invention, for example, in a specific embodiment, it is determined that the second countdown is finished, and then it returns to step S9.

The self-adjusting light box lighting control method of the present invention, the numerical terms "first", "second" and "third", etc. do not denote any particular quantity or order, but are used merely for name differentiation, and the terms "include", "include" or any other variations thereof are intended to cover non-exclusive inclusions, such that a process, method, article, or apparatus that includes a list of elements does not include only those elements but also other elements not expressly listed or inherent to such process, method, article, or apparatus.

The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种自成靶中子管用含氚气体密封存储装置及安装方法

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!