CN108882473A - A kind of Light Controlling Street Lamp Controller and its control method - Google Patents

A kind of Light Controlling Street Lamp Controller and its control method Download PDF

Info

Publication number
CN108882473A
CN108882473A CN201710322628.7A CN201710322628A CN108882473A CN 108882473 A CN108882473 A CN 108882473A CN 201710322628 A CN201710322628 A CN 201710322628A CN 108882473 A CN108882473 A CN 108882473A
Authority
CN
China
Prior art keywords
value
gradient value
intensity
light
illumination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710322628.7A
Other languages
Chinese (zh)
Inventor
李晓帆
尹胜
廖欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huaihua University
Original Assignee
Huaihua University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huaihua University filed Critical Huaihua University
Priority to CN201710322628.7A priority Critical patent/CN108882473A/en
Publication of CN108882473A publication Critical patent/CN108882473A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

一种光控路灯控制器及其控制方法。光控路灯控制器包括光敏元件、信号调理电路、微处理器、驱动电路、继电器电路、电源电路。在微处理器中分别设置开启和关闭时光照强度的设定值以及开启和关闭时光照强度的梯度的设定值存贮单元,设置初始值,微处理器能将采集的外界光照强度信号进行处理,通过计算光照强度的梯度来区分自然光和其他外界灯光,避免灯光控制器产生误判,通过不同时间的光照强度的比较,避免灯光在开启和关闭时的设定点周围闪烁,节省人力成本。

A light-controlled street lamp controller and a control method thereof. The light-controlled street lamp controller includes a photosensitive element, a signal conditioning circuit, a microprocessor, a drive circuit, a relay circuit, and a power supply circuit. In the microprocessor, set the set value of the light intensity when it is turned on and off and the set value storage unit of the gradient of the light intensity when it is turned on and off, set the initial value, and the microprocessor can carry out the collected external light intensity signal Processing, by calculating the gradient of light intensity to distinguish between natural light and other external lights, to avoid misjudgment by the light controller, through the comparison of light intensity at different times, to avoid flickering around the set point when the light is turned on and off, saving labor costs .

Description

一种光控路灯控制器及其控制方法Light-controlled street lamp controller and control method thereof

技术领域technical field

本发明属于路灯控制技术领域,具体涉及一种光控路灯控制器及其控制方法。The invention belongs to the technical field of street lamp control, and in particular relates to a light-controlled street lamp controller and a control method thereof.

背景技术Background technique

光控路灯控制器指在路灯控制器中安装有光敏电阻等光敏元件的控制装置,通过光敏元件,感受外部光照强度,人为区分白天和黑夜,自动关闭或开启路灯,节省人力成本。专利号为201610167069 .2,专利名称为“光控路灯控制器”公开了光控路灯控制器的设计方案,该方案在路灯和电源之间,设计了由光敏元件控制的控制电路,实现对路灯的控制。专利号为201410520378.4,专利名称为“基于时间、照度和能见度的太阳能路灯控制系统及方法”和专利号为201210546454.X,专利名称为“一种独立智能路灯控制系统的控制方法”的发明专利分别通过采集的图像的灰度值和图像的亮度相关度,即以光的能见度来确定路灯控制器的开启和关闭;专利号为200710200126.3,专利名称为“自然光亮度全自动控制路灯开关中防止误动作方法及装置”和专利号为201210232482.4,专利名称为“路灯控制开关自保持装置及实现方法”的发明专利分别通过延时采样、计算光照强度的平均值和一段时间内(3分钟)光照强度的平均值,确定路灯控制器的开启和关闭。光控路灯控制器通过电路参数或计算机程序设置路灯开启和关闭时光照强度的设定值,将外界光照强度与路灯开启或者关闭时的设定值进行比较,确定路灯的工作状态。但是,外界光照强度不会单调上升或单调下降,有时,受外界因素的影响,外界的光照强度会在设定值上漂浮不定,导致路灯控制器会在设定值周围频繁启动,路灯出现闪烁,路灯控制器因频繁启动而受损。雷雨天闪电的光照等影响,会使灯光控制器产生误判。Light-controlled street lamp controller refers to the control device installed with photosensitive elements such as photoresistors in the street lamp controller. Through the photosensitive element, it senses the intensity of external light, artificially distinguishes day from night, and automatically turns off or turns on street lights, saving labor costs. The patent number is 201610167069 .2, and the patent name is "light-controlled street lamp controller". The design scheme of the light-controlled street lamp controller is disclosed. The scheme is between the street lamp and the power supply. A control circuit controlled by a photosensitive element is designed to realize the control of the street lamp. control. The patent number is 201410520378.4, the patent name is "solar street lamp control system and method based on time, illuminance and visibility" and the patent number is 201210546454.X, the patent name is "a control method for an independent intelligent street lamp control system". Through the gray value of the collected image and the brightness correlation of the image, that is, the visibility of the light is used to determine the opening and closing of the street light controller; the patent number is 200710200126.3, and the patent name is "Preventing misoperation in automatic control of natural light brightness in street light switches Method and device" and the patent number is 201210232482.4, and the patent name is "street lamp control switch self-maintaining device and realization method" through delay sampling, calculating the average value of light intensity and the light intensity within a period of time (3 minutes). Average value, to determine the switching on and off of the street light controller. The light-controlled street lamp controller sets the set value of the light intensity when the street light is turned on and off through circuit parameters or computer programs, compares the external light intensity with the set value when the street light is turned on or off, and determines the working status of the street light. However, the external light intensity will not increase or decrease monotonically. Sometimes, due to the influence of external factors, the external light intensity will fluctuate on the set value, causing the street lamp controller to start frequently around the set value, and the street lamps will flicker , The street lamp controller is damaged due to frequent startup. Lightning and other influences such as thunderstorms and lightning will cause misjudgment of the lighting controller.

另外,因地理纬度不同,不同场所的需求不同,开启和关闭时光照强度也不一样,将不同的光照强度的设定值输入到路灯控制器,需要花费很多的人力成本。In addition, due to different geographical latitudes and different needs of different places, the light intensity is also different when it is turned on and off. It takes a lot of labor costs to input the set values of different light intensities into the street light controller.

发明内容Contents of the invention

为了避免灯光控制器因雷电产生误判,消除灯光在开启和关闭的设置点上的闪烁,减少人力成本,本发明提供了一种光控灯光控制器及其控制方法。In order to avoid misjudgment of the lighting controller due to lightning, eliminate the flickering of the lighting at the on and off setting points, and reduce labor costs, the present invention provides a light-controlled lighting controller and a control method thereof.

本发明解决其技术问题所采用的技术方案是:在灯光和输入电源间,光控路灯控制器包括:The technical solution adopted by the present invention to solve the technical problem is: between the light and the input power supply, the light-controlled street lamp controller includes:

电源电路,将输入电源进行转换,分别为信号调理电路、微处理器、驱动电路和继电器电路提供所需电源;The power circuit converts the input power to provide the required power for the signal conditioning circuit, microprocessor, drive circuit and relay circuit respectively;

光敏元件,用于采集外界的光照强度;The photosensitive element is used to collect the light intensity of the outside world;

信号调理电路,一端与光敏元件相连,一端与微处理器相连,用于将光敏元件采集的光照强度信号转变为电信号,放大后输送到微处理器中处理;Signal conditioning circuit, one end is connected to the photosensitive element, and the other end is connected to the microprocessor, which is used to convert the light intensity signal collected by the photosensitive element into an electrical signal, which is amplified and sent to the microprocessor for processing;

微处理器,分别与信号调理电路和驱动电路相连,将采集的外部的光照强度信号进行处理,并将处理后的控制信号输入到驱动电路中;The microprocessor is connected with the signal conditioning circuit and the driving circuit respectively, processes the collected external light intensity signal, and inputs the processed control signal into the driving circuit;

驱动电路,一端与微处理器相连,一端与继电器电路相连,用于放大由微处理器输出的控制信号;A driving circuit, one end is connected with the microprocessor, and the other end is connected with the relay circuit, which is used to amplify the control signal output by the microprocessor;

继电器电路,一端与驱动器电路相连,一端连接到灯光的电源线上,用于控制灯光的开启和关闭。The relay circuit, one end is connected to the driver circuit, and the other end is connected to the power line of the light, which is used to control the turning on and off of the light.

所述的光敏元件为光敏电阻。The photosensitive element is a photoresistor.

所述的微处理器为89S52。Described microprocessor is 89S52.

光敏元件采集外界的光照强度,经信号调理电路进行放大后输送到微处理器中处理,处理后输出控制信号,经驱动电路放大后,作用到继电器电路,开启或关闭灯光。The photosensitive element collects the light intensity of the outside world, which is amplified by the signal conditioning circuit and sent to the microprocessor for processing. After processing, the control signal is output. After being amplified by the drive circuit, it acts on the relay circuit to turn on or off the light.

其中,微处理器处理过程如下:Among them, the microprocessor processing is as follows:

微处理器通过程序设置开启和关闭灯光的光照强度设定值,贮存在微处理器的存贮单元内,将开启和关闭灯光时光照强度的梯度值分配存贮单元,并设置初始值为零;The microprocessor sets the light intensity setting value for turning on and off the light through the program, and stores it in the storage unit of the microprocessor. The gradient value of the light intensity when the light is turned on and off is allocated to the storage unit, and the initial value is set to zero. ;

微处理器接收光照强度信号,与微处理器中存贮的开关和关闭时的设定值进行比较,光照强度达到开启灯光的设定值,微处理器开始计时,并记录当前的光照强度的数值U0The microprocessor receives the light intensity signal and compares it with the switch stored in the microprocessor and the set value when it is turned off. When the light intensity reaches the set value for turning on the light, the microprocessor starts timing and records the current light intensity. Value U 0 ;

每隔10秒后采集光照强度信号,重复5次,并记录当时光照强度的数值U1,U2,U3,U4,U5Collect the light intensity signal every 10 seconds, repeat 5 times, and record the values U 1 , U 2 , U 3 , U 4 , U 5 of the light intensity at that time;

用︱U1-U0︱,︱U2-U1︱,︱U3-U2︱,︱U4-U3︱,︱U5-U4︱计算光照强度的梯度值;Use ︱U 1 -U 0 ︱, ︱U 2 -U 1 ︱, ︱U 3 -U 2 ︱, ︱U 4 -U 3 ︱, ︱U 5 -U 4 ︱ to calculate the gradient value of the light intensity;

计算的梯度值和5个梯度值的平均值,如果存贮的开启时光照强度的梯度值为零,将计算的梯度值中的最大值的两倍数值存贮在微处理器的开启时光照强度的梯度的存贮单元内,重新采集一组光照强度值;The calculated gradient value and the average value of the 5 gradient values, if the stored gradient value of the light intensity at the time of opening is zero, store twice the value of the maximum value in the calculated gradient value in the light intensity at the time of opening of the microprocessor. In the storage unit of the intensity gradient, re-acquire a set of light intensity values;

如果开启时光照强度的梯度值不为零,将计算的梯度值和5个梯度值的平均值与存贮的开启时的梯度值比较,计算的梯度值大于存贮的开启时的梯度值或者平均梯度值大于存贮的开启时的梯度值,将平均梯度值和存贮的开启时的梯度值取平均,将结果重新存贮在开启时梯度值的存贮单元内,重新采集一组光照强度;If the gradient value of the light intensity when it is turned on is not zero, compare the calculated gradient value and the average value of the 5 gradient values with the stored gradient value when it is turned on, and the calculated gradient value is greater than the stored gradient value when it is turned on or The average gradient value is greater than the stored gradient value at the time of opening, average the average gradient value and the stored gradient value at the time of opening, store the result again in the storage unit of the gradient value at the time of opening, and collect a group of illumination again strength;

相反,计算的梯度值不大于存贮的开启时的梯度值,且平均梯度值不大于存贮的开启时的梯度值,将平均梯度值和存贮的开启时的梯度值取平均,将结果重新存贮在开启时梯度值的存贮单元内,开启灯光;On the contrary, the calculated gradient value is not greater than the stored gradient value at the time of opening, and the average gradient value is not greater than the stored gradient value at the time of opening, the average gradient value and the stored gradient value at the time of opening are averaged, and the result Re-store in the storage unit of the gradient value when it is turned on, and turn on the light;

微处理器接收光照强度信号,与微处理器中存贮的开关和关闭时的设定值进行比较,光照强度达到关闭灯光的设定值,微处理器开始计时,并记录当前的光照强度的数值U0The microprocessor receives the light intensity signal and compares it with the switch stored in the microprocessor and the set value when it is turned off. When the light intensity reaches the set value for turning off the light, the microprocessor starts timing and records the current light intensity. Value U 0 ;

每隔10秒后采集光照强度信号,重复5次,并记录当时光照强度的数值U1,U2,U3,U4,U5Collect the light intensity signal every 10 seconds, repeat 5 times, and record the values U 1 , U 2 , U 3 , U 4 , U 5 of the light intensity at that time;

用︱U1-U0︱,︱U2-U1︱,︱U3-U2︱,︱U4-U3︱,︱U5-U4︱计算光照强度的梯度值;Use ︱U 1 -U 0 ︱, ︱U 2 -U 1 ︱, ︱U 3 -U 2 ︱, ︱U 4 -U 3 ︱, ︱U 5 -U 4 ︱ to calculate the gradient value of the light intensity;

将计算的梯度值和5个梯度值的平均值,如果关闭时光照强度的梯度值为零,将计算的梯度值中的最大值的两倍数值存贮在微处理器的关闭时光照强度的梯度的存贮单元内,重新采集一组光照强度值;The calculated gradient value and the average value of 5 gradient values, if the gradient value of the light intensity is zero when it is turned off, store the double value of the maximum value in the calculated gradient value in the value of the light intensity when the microprocessor is turned off In the storage unit of the gradient, re-acquire a set of light intensity values;

如果关闭时光照强度的梯度值不为零,将计算的梯度值和5个梯度值的平均值与存贮的关闭时的梯度值比较,计算的梯度值大于存贮的关闭时的梯度值或者平均梯度值大于存贮的关闭时的梯度值,将平均梯度值和存贮的关闭时的梯度值取平均,将结果重新存贮在关闭时梯度值的存贮单元内,重新采集一组光照强度;If the gradient value of the light intensity is not zero when it is turned off, compare the calculated gradient value and the average value of the 5 gradient values with the stored gradient value when it is turned off, and the calculated gradient value is greater than the stored gradient value when it is turned off or If the average gradient value is greater than the stored off-time gradient value, average the average gradient value and the stored off-time gradient value, re-store the result in the storage unit of the off-time gradient value, and re-acquire a group of illumination strength;

相反,计算的梯度值不大于存贮的关闭时的梯度值,且平均梯度值不大于存贮的关闭时的梯度值,将平均梯度值和存贮的关闭时的梯度值取平均,将结果重新存贮在关闭时梯度值的存贮单元内,关闭灯光。On the contrary, the calculated gradient value is not greater than the stored gradient value at closing time, and the average gradient value is not greater than the stored closing gradient value, the average gradient value and the stored closing gradient value are averaged, and the result Re-store in the storage unit of the gradient value at the time of shutdown, and turn off the light.

自然光的光照变化是缓慢的,与雷电天气下闪电的光照变化是显然不同的,通过计算光照强度的梯度来区分自然光和其他外界灯光,避免灯光控制器产生误判,通过不同时间的光照强度的比较,避免灯光在开启和关闭时的设定点周围闪烁。The illumination change of natural light is slow, which is obviously different from the illumination change of lightning in thunder and lightning weather. By calculating the gradient of illumination intensity to distinguish between natural light and other external lights, avoiding misjudgment by the lighting controller, and by adjusting the intensity of illumination at different times Compare, to avoid lights flickering around the set point when turning on and off.

本发明的有益效果是,通过计算光照强度的梯度来区分自然光和其他外界灯光,避免灯光控制器产生误判,通过不同时间的光照强度的比较,避免灯光在开启和关闭时的设定点周围闪烁。The beneficial effect of the present invention is that by calculating the gradient of light intensity to distinguish natural light from other external lights, avoiding misjudgment by the light controller, and by comparing light intensity at different times, it is possible to prevent the light from being around the set point when it is turned on and off. flashing.

附图说明Description of drawings

下面结合附图和实施例对本发明进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

图1是本发明的结构示意图。Fig. 1 is a structural schematic diagram of the present invention.

图1中,1.电源电路,2.微处理器,3.光敏元件,4.信号调理电路,5.驱动电路,6.继电器电路。In Fig. 1, 1. Power supply circuit, 2. Microprocessor, 3. Photosensitive element, 4. Signal conditioning circuit, 5. Driving circuit, 6. Relay circuit.

具体实施方式Detailed ways

图1中,光控路灯控制器包括:In Figure 1, the light-controlled street lamp controller includes:

在灯光和输入电源间,光控路灯控制器包括:Between lights and input power, light-controlled street light controllers include:

电源电路(1),将输入电源进行转换,分别为信号调理电路(4)、微处理器(2)、驱动电路(5)和继电器电路(6)提供所需电源;The power circuit (1) converts the input power to provide the required power for the signal conditioning circuit (4), the microprocessor (2), the drive circuit (5) and the relay circuit (6);

光敏元件(3),用于采集外界的光照强度;The photosensitive element (3) is used to collect the light intensity of the outside world;

信号调理电路(4),一端与光敏元件(3)相连,一端与微处理器(2)相连,用于将光敏元件采集的光照强度信号转变为电信号,放大后输送到微处理器中处理;Signal conditioning circuit (4), one end is connected to the photosensitive element (3) and the other end is connected to the microprocessor (2), which is used to convert the light intensity signal collected by the photosensitive element into an electrical signal, which is amplified and sent to the microprocessor for processing ;

微处理器(2),分别与信号调理电路(4)和驱动电路(5)相连,将采集的外部的光照强度信号进行处理,并将处理后的控制信号输入到驱动电路中;The microprocessor (2) is respectively connected with the signal conditioning circuit (4) and the driving circuit (5), processes the collected external light intensity signal, and inputs the processed control signal into the driving circuit;

驱动电路(5),一端与微处理器(2)相连,一端与继电器电路(6)相连,用于放大由微处理器输出的控制信号;The drive circuit (5), one end is connected to the microprocessor (2), and the other end is connected to the relay circuit (6), for amplifying the control signal output by the microprocessor;

继电器电路(6),一端与驱动器电路(5)相连,一端连接到灯光的电源线上,用于控制灯光的开启和关闭。One end of the relay circuit (6) is connected to the driver circuit (5), and the other end is connected to the power line of the light, for controlling the light to be turned on and off.

所述的光敏元件为光敏电阻。The photosensitive element is a photoresistor.

所述的微处理器为89S52。Described microprocessor is 89S52.

光敏元件采集外界的光照强度,经信号调理电路进行放大后输送到微处理器中处理,处理后输出控制信号,经驱动电路放大后,作用到继电器电路,开启或关闭灯光。The photosensitive element collects the light intensity of the outside world, which is amplified by the signal conditioning circuit and sent to the microprocessor for processing. After processing, the control signal is output. After being amplified by the drive circuit, it acts on the relay circuit to turn on or off the light.

其中,微处理器处理过程如下:Among them, the microprocessor processing is as follows:

微处理器通过程序设置开启和关闭灯光时的光照强度设定值,贮存在微处理器的存贮单元内,将开启和关闭灯光时光照强度的梯度值分配存贮单元,并设置初始值为零;The microprocessor sets the light intensity setting value when turning on and off the light through the program, and stores it in the storage unit of the microprocessor, assigns the gradient value of the light intensity when turning on and off the light to the storage unit, and sets the initial value as zero;

微处理器接收光照强度信号,与微处理器中存贮的开关和关闭灯光时的设定值进行比较,光照强度达到开启灯光的设定值,微处理器开始计时,并记录当前的光照强度的数值U0The microprocessor receives the light intensity signal and compares it with the switch stored in the microprocessor and the set value when the light is turned off. When the light intensity reaches the set value for turning on the light, the microprocessor starts timing and records the current light intensity The value of U 0 ;

每隔10秒后采集光照强度信号,重复5次,并记录当时光照强度的数值U1,U2,U3,U4,U5Collect the light intensity signal every 10 seconds, repeat 5 times, and record the values U 1 , U 2 , U 3 , U 4 , U 5 of the light intensity at that time;

用︱U1-U0︱,︱U2-U1︱,︱U3-U2︱,︱U4-U3︱,︱U5-U4︱计算光照强度的梯度值;Use ︱U 1 -U 0 ︱, ︱U 2 -U 1 ︱, ︱U 3 -U 2 ︱, ︱U 4 -U 3 ︱, ︱U 5 -U 4 ︱ to calculate the gradient value of the light intensity;

计算的梯度值和5个梯度值的平均值,如果存贮的开启时光照强度的梯度值为零,将计算的梯度值中的最大值的两倍数值存贮在微处理器的开启时光照强度的梯度的存贮单元内,重新采集一组光照强度值;The calculated gradient value and the average value of the 5 gradient values, if the stored gradient value of the light intensity at the time of opening is zero, store twice the value of the maximum value in the calculated gradient value in the light intensity at the time of opening of the microprocessor. In the storage unit of the intensity gradient, re-acquire a set of light intensity values;

如果开启时光照强度的梯度值不为零,将计算的梯度值和5个梯度值的平均值与存贮的开启时的梯度值比较,计算的梯度值大于存贮的开启时的梯度值或者平均梯度值大于存贮的开启时的梯度值,将平均梯度值和存贮的开启时的梯度值取平均,将结果重新存贮在开启时梯度值的存贮单元内,重新采集一组光照强度;If the gradient value of the light intensity when it is turned on is not zero, compare the calculated gradient value and the average value of the 5 gradient values with the stored gradient value when it is turned on, and the calculated gradient value is greater than the stored gradient value when it is turned on or The average gradient value is greater than the stored gradient value at the time of opening, average the average gradient value and the stored gradient value at the time of opening, store the result again in the storage unit of the gradient value at the time of opening, and collect a group of illumination again strength;

相反,计算的梯度值不大于存贮的开启时的梯度值,且平均梯度值不大于存贮的开启时的梯度值,将平均梯度值和存贮的开启时的梯度值取平均,将结果重新存贮在开启时梯度值的存贮单元内,开启灯光;On the contrary, the calculated gradient value is not greater than the stored gradient value at the time of opening, and the average gradient value is not greater than the stored gradient value at the time of opening, the average gradient value and the stored gradient value at the time of opening are averaged, and the result Re-store in the storage unit of the gradient value when it is turned on, and turn on the light;

微处理器接收光照强度信号,与微处理器中存贮的开关和关闭时的设定值进行比较,光照强度达到关闭灯光的设定值,微处理器开始计时,并记录当前的光照强度的数值U0The microprocessor receives the light intensity signal and compares it with the switch stored in the microprocessor and the set value when it is turned off. When the light intensity reaches the set value for turning off the light, the microprocessor starts timing and records the current light intensity. Value U 0 ;

每隔10秒后采集光照强度信号,重复5次,并记录当时光照强度的数值U1,U2,U3,U4,U5Collect the light intensity signal every 10 seconds, repeat 5 times, and record the values U 1 , U 2 , U 3 , U 4 , U 5 of the light intensity at that time;

用︱U1-U0︱,︱U2-U1︱,︱U3-U2︱,︱U4-U3︱,︱U5-U4︱计算光照强度的梯度值;Use ︱U 1 -U 0 ︱, ︱U 2 -U 1 ︱, ︱U 3 -U 2 ︱, ︱U 4 -U 3 ︱, ︱U 5 -U 4 ︱ to calculate the gradient value of the light intensity;

将计算的梯度值和5个梯度值的平均值,如果关闭时光照强度的梯度值为零,将计算的梯度值中的最大值的两倍数值存贮在微处理器的关闭时光照强度的梯度的存贮单元内,重新采集一组光照强度值;The calculated gradient value and the average value of 5 gradient values, if the gradient value of the light intensity is zero when it is turned off, store the double value of the maximum value in the calculated gradient value in the value of the light intensity when the microprocessor is turned off In the storage unit of the gradient, re-acquire a set of light intensity values;

如果关闭时光照强度的梯度值不为零,将计算的梯度值和5个梯度值的平均值与存贮的关闭时的梯度值比较,计算的梯度值大于存贮的关闭时的梯度值或者平均梯度值大于存贮的关闭时的梯度值,将平均梯度值和存贮的关闭时的梯度值取平均,将结果重新存贮在关闭时梯度值的存贮单元内,重新采集一组光照强度;If the gradient value of the light intensity is not zero when it is turned off, compare the calculated gradient value and the average value of the 5 gradient values with the stored gradient value when it is turned off, and the calculated gradient value is greater than the stored gradient value when it is turned off or If the average gradient value is greater than the stored off-time gradient value, average the average gradient value and the stored off-time gradient value, re-store the result in the storage unit of the off-time gradient value, and re-acquire a group of illumination strength;

相反,计算的梯度值不大于存贮的关闭时的梯度值,且平均梯度值不大于存贮的关闭时的梯度值,将平均梯度值和存贮的关闭时的梯度值取平均,将结果重新存贮在关闭时梯度值的存贮单元内,关闭灯光。On the contrary, the calculated gradient value is not greater than the stored gradient value at closing time, and the average gradient value is not greater than the stored closing gradient value, the average gradient value and the stored closing gradient value are averaged, and the result Re-store in the storage unit of the gradient value at the time of shutdown, and turn off the light.

存贮在微处理器中灯光开启和关闭时的光照强度设定值为20流明。The light intensity setpoint for turning on and off the lights is stored in the microprocessor at 20 lumens.

Claims (4)

1. a kind of Light Controlling Street Lamp Controller, including input power, it is characterized in that:Further include
Power circuit converts input power, respectively signal conditioning circuit, microprocessor, driving circuit and relay Power supply needed for circuit provides;
Light-sensitive element, for acquiring extraneous intensity of illumination;
Signal conditioning circuit, one end are connected with light-sensitive element, and one end is connected with microprocessor, the light for acquiring light-sensitive element It is changed into electric signal according to strength signal, is transported in microprocessor and handles after amplification;
Microprocessor is connected with signal conditioning circuit and driving circuit respectively, and the intensity of illumination signal of the outside of acquisition is carried out Processing, and control signal is input in driving circuit by treated;
Driving circuit, one end are connected with microprocessor, and one end is connected with relay circuit, for amplifying by microprocessor output Control signal;
Relay circuit, one end are connected with drive circuit, and one end is connected on the power supply line of light, for controlling opening for light It opens and closes.
2. Light Controlling Street Lamp Controller according to claim 1, it is characterized in that:The light-sensitive element is photo resistance.
3. Light Controlling Street Lamp Controller according to claim 1, it is characterized in that:The microprocessor is 89S52.
4. being used for the control method of Light Controlling Street Lamp Controller described in claim 1, characterized in that comprise the following steps:
The intensity of illumination setting value for opening and closing light is arranged by program for microprocessor, is stored in the storage list of microprocessor In member, the gradient value of intensity of illumination when opening and closing light is distributed to memory cell, and it is zero that initial value, which is arranged,;
Microprocessor receives intensity of illumination signal, is compared with the setting value when switch stored in microprocessor and closing, Intensity of illumination reaches the setting value for opening light, and microprocessor starts timing, and records the numerical value U of current intensity of illumination0
Intensity of illumination signal is acquired after 10 seconds, is repeated 5 times, and records the numerical value U of intensity of illumination at that time1, U2, U3, U4, U5
With ︱ U1-U0︱, ︱ U2-U1︱, ︱ U3-U2︱, ︱ U4-U3︱, ︱ U5-U4The gradient value of ︱ calculating intensity of illumination;
The average value of the gradient value of calculating and 5 gradient values will be counted if the gradient value of intensity of illumination is zero when the unlatching of storage The memory cell of the gradient of intensity of illumination when two multiple values of the maximum value in the gradient value of calculation are stored in the unlatching of microprocessor It is interior, resurvey one group of illumination intensity value;
If the gradient value of intensity of illumination is not zero when opening, by the average value and storage of the gradient value of calculating and 5 gradient values Unlatching when gradient value compare, the gradient value or average gradient value when the gradient value of calculating is greater than the unlatching of storage, which are greater than, deposits The gradient value when unlatching of storage, gradient value when by the unlatching of average gradient value and storage are averaged, and result is stored in again When unlatching in the memory cell of gradient value, one group of intensity of illumination is resurveyed;
On the contrary, the gradient value when gradient value calculated is no more than the unlatching stored, and average gradient value is no more than the unlatching of storage When gradient value, gradient value when by the unlatching of average gradient value and storage is averaged, ladder when result to be stored in unlatching again In the memory cell of angle value, light is opened;
Microprocessor receives intensity of illumination signal, is compared with the setting value when switch stored in microprocessor and closing, Intensity of illumination reaches the setting value for closing light, and microprocessor starts timing, and records the numerical value U of current intensity of illumination0
Intensity of illumination signal is acquired after 10 seconds, is repeated 5 times, and records the numerical value U of intensity of illumination at that time1, U2, U3, U4, U5
With ︱ U1-U0︱, ︱ U2-U1︱, ︱ U3-U2︱, ︱ U4-U3︱, ︱ U5-U4The gradient value of ︱ calculating intensity of illumination;
By the average value of the gradient value of calculating and 5 gradient values, if the gradient value of intensity of illumination is zero when closing, by calculating When two multiple values of the maximum value in gradient value are stored in the closing of microprocessor in the memory cell of the gradient of intensity of illumination, weight Newly one group of illumination intensity value of acquisition;
If the gradient value of intensity of illumination is not zero when closing, by the average value and storage of the gradient value of calculating and 5 gradient values Closing when gradient value compare, the gradient value or average gradient value when the gradient value of calculating is greater than the closing of storage, which are greater than, deposits The gradient value when closing of storage, gradient value when by the closing of average gradient value and storage are averaged, and result is stored in again When closing in the memory cell of gradient value, one group of intensity of illumination is resurveyed;
On the contrary, the gradient value when gradient value calculated is no more than the closing stored, and average gradient value is no more than the closing of storage When gradient value, gradient value when by the closing of average gradient value and storage is averaged, and result is stored again terraced when closed In the memory cell of angle value, light is closed.
CN201710322628.7A 2017-05-09 2017-05-09 A kind of Light Controlling Street Lamp Controller and its control method Pending CN108882473A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710322628.7A CN108882473A (en) 2017-05-09 2017-05-09 A kind of Light Controlling Street Lamp Controller and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710322628.7A CN108882473A (en) 2017-05-09 2017-05-09 A kind of Light Controlling Street Lamp Controller and its control method

Publications (1)

Publication Number Publication Date
CN108882473A true CN108882473A (en) 2018-11-23

Family

ID=64287838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710322628.7A Pending CN108882473A (en) 2017-05-09 2017-05-09 A kind of Light Controlling Street Lamp Controller and its control method

Country Status (1)

Country Link
CN (1) CN108882473A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004111483A (en) * 2002-09-13 2004-04-08 Furukawa Electric Co Ltd:The Light emission control method and device
US20050264498A1 (en) * 2004-05-28 2005-12-01 Sony Corporation Pixel circuit and display device
WO2008157772A1 (en) * 2007-06-20 2008-12-24 Eveready Battery Company, Inc. Lighting device having light intensity control
CN101437343A (en) * 2008-12-18 2009-05-20 重庆交通科研设计院 Fuzzy control method for highway tunnel illumination
CN103298221A (en) * 2013-07-01 2013-09-11 湖南工业大学 Dimming circuit and method of LED (Light Emitting Diode) lighting lamp
JP2015106478A (en) * 2013-11-29 2015-06-08 セイコーエプソン株式会社 Discharge lamp driving device, light source device, projector, and discharge lamp driving method
CN105792414A (en) * 2016-03-17 2016-07-20 广东钇圆光电科技有限公司 A light automatic control method for a light-controlled bulb lamp
CN105934042A (en) * 2016-06-25 2016-09-07 湖南师范大学 LED street lamp intelligent controller and control method
CN106447136A (en) * 2016-11-07 2017-02-22 电子科技大学 Illumination energy-saving control method based on variable-amplitude and variable-gain gradient extreme value searching algorithm
CN206674278U (en) * 2017-05-08 2017-11-24 怀化学院 A kind of Light Controlling Street Lamp Controller
CN206674279U (en) * 2017-05-09 2017-11-24 怀化学院 A kind of Light Controlling Street Lamp Controller
CN108882472A (en) * 2017-05-08 2018-11-23 怀化学院 A kind of Light Controlling Street Lamp Controller and its control method

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004111483A (en) * 2002-09-13 2004-04-08 Furukawa Electric Co Ltd:The Light emission control method and device
US20050264498A1 (en) * 2004-05-28 2005-12-01 Sony Corporation Pixel circuit and display device
WO2008157772A1 (en) * 2007-06-20 2008-12-24 Eveready Battery Company, Inc. Lighting device having light intensity control
CN101437343A (en) * 2008-12-18 2009-05-20 重庆交通科研设计院 Fuzzy control method for highway tunnel illumination
CN103298221A (en) * 2013-07-01 2013-09-11 湖南工业大学 Dimming circuit and method of LED (Light Emitting Diode) lighting lamp
JP2015106478A (en) * 2013-11-29 2015-06-08 セイコーエプソン株式会社 Discharge lamp driving device, light source device, projector, and discharge lamp driving method
CN105792414A (en) * 2016-03-17 2016-07-20 广东钇圆光电科技有限公司 A light automatic control method for a light-controlled bulb lamp
CN105934042A (en) * 2016-06-25 2016-09-07 湖南师范大学 LED street lamp intelligent controller and control method
CN106447136A (en) * 2016-11-07 2017-02-22 电子科技大学 Illumination energy-saving control method based on variable-amplitude and variable-gain gradient extreme value searching algorithm
CN206674278U (en) * 2017-05-08 2017-11-24 怀化学院 A kind of Light Controlling Street Lamp Controller
CN108882472A (en) * 2017-05-08 2018-11-23 怀化学院 A kind of Light Controlling Street Lamp Controller and its control method
CN206674279U (en) * 2017-05-09 2017-11-24 怀化学院 A kind of Light Controlling Street Lamp Controller

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
D. KLIEN: "A sensing and regulation concept for high end dimming ballasts", 《38TH IAS ANNUAL MEETING ON CONFERENCE RECORD OF THE INDUSTRY APPLICATIONS CONFERENCE, 2003》, 7 January 2004 (2004-01-07) *
晋会杰: "发光亮度随环境改变的LED照明", 《万方数据库》, 17 July 2008 (2008-07-17) *
陈双龙: "基于定时阳光跟踪的LED照明系统", 《照明工程学报》, 31 August 2011 (2011-08-31) *

Similar Documents

Publication Publication Date Title
CN111654961A (en) Street lamp brightness monitoring method for street lamp system
CN103607818A (en) A light-adjustable LED lamp and a light adjusting method
CN107087325B (en) Intelligent method for controlling street lamps
CN206674278U (en) A kind of Light Controlling Street Lamp Controller
WO2015176380A1 (en) Lamp control method, device and control system
CN206674279U (en) A kind of Light Controlling Street Lamp Controller
CN101252799A (en) Energy-saving road lamp intelligent control method
CN201352865Y (en) Solar street light controller
CN102032523B (en) An energy-saving LED street lamp
CN201174803Y (en) Energy-saving street lamp intelligent control system
CN108882472A (en) A kind of Light Controlling Street Lamp Controller and its control method
CN108882473A (en) A kind of Light Controlling Street Lamp Controller and its control method
CN209165230U (en) An energy-saving street lamp with adjustable brightness
CN201967193U (en) Economize on electricity illumination control device
CN206650902U (en) A kind of building energy-saving intelligent control system
CN111654957A (en) Intelligent street light control method
CN105792412B (en) Solar energy intelligent illuminating system and its control method based on fuzzy control
US8410728B2 (en) Method of and device for controlling shed lighting
CN202178892U (en) LED lamp with network and infrared induction for controlling and adjusting illumination output power
CN208609234U (en) A LED constant current control circuit and LED lamp
CN208365395U (en) A kind of automatic control street lamp of the Parameter adjustable of solar power generation
CN204721674U (en) Based on the building lighting controller of SCADA
CN103167712A (en) Light-adjusting drive circuit of high-pressure gas discharge lamp
CN108386810A (en) A kind of automatic control street lamp of solar power generation
CN204518181U (en) A kind of intelligent light control system based on CCD location

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20181123