Disclosure of Invention
One of the objects of the present invention is: aiming at the defects of the prior art, the intelligent lighting control method for the classroom is provided, and can be used for intelligently controlling all lamps in the classroom by combining real-time meteorological data and classroom course arrangement conditions, so that the effects of energy conservation and environmental protection are improved.
In order to achieve the purpose, the invention adopts the following technical scheme:
a classroom intelligent lighting control method, comprising:
selecting a target building, acquiring regional meteorological data of a region where the target building is located, wherein the meteorological data at least comprise longitude and latitude, normal direct radiation intensity and horizontal plane scattered radiation intensity of the region where the target building is located and a timestamp corresponding to a time point for collecting the meteorological data, and sending the meteorological data to a computer program;
establishing a natural lighting calculation model of a target building and measuring an illumination influence matrix of a lamp of the target building;
based on the meteorological data of the area where the target building is located and a natural lighting calculation model, natural lighting illumination calculation is carried out by using building light environment simulation software Radiance to obtain natural lighting illumination values and lamp illumination influence matrixes of each classroom calculation point of the target building;
inputting the natural illumination data of the calculation points into an illumination decision model based on the calculation point positions of all classrooms of the target building, the lamp positions and the illumination influence matrix, and obtaining an illumination control strategy of all areas of all classrooms of the target building by the model by using a proximity principle algorithm;
and generating an illumination adjusting instruction and sending the illumination adjusting instruction to an illumination control terminal of the target building.
The regional meteorological data transmission mode is wireless local area network transmission, the transmission frequency is once every 30min, the longitude and latitude, the normal direction direct radiation intensity, the horizontal plane scattered radiation intensity and the time information corresponding to the meteorological data of the target region are extracted, and the data are written into a weather file required by lighting calculation.
As an improvement of the intelligent classroom lighting control method, the natural lighting calculation model comprises building shape information, building envelope material information, position information of classroom calculation points in the building and meteorological information of the area where the building is located.
As an improvement of the classroom intelligent lighting control method, the classroom calculation points of the target building are grid central points with the density of 1m x 1m, the calculation frequency of the natural illuminance of each classroom of the target building is once every 30min except the calculation points of the personnel activity area, and the target building is not calculated during the non-use period.
The invention relates to an improvement of a classroom intelligent lighting control method, which utilizes a proximity principle algorithm to perform decision analysis and comprises the following steps:
a) acquiring a natural lighting illumination value, a lamp coordinate value, a lamp state and a lamp influence matrix at each calculation point in each classroom of the target building, wherein the lamp influence matrix is an increased value of the illumination of each calculation point in each classroom after a certain lamp in the classroom of the target building is switched from off to on in the state of the certain lamp;
b) acquiring computing points which do not meet the illumination requirement in the target classroom;
c) obtaining a calculation point with the maximum difference with the illumination requirement value in the points which do not meet the illumination requirement;
d) acquiring a lamp which is closed in a state closest to a calculation point with the largest difference with the illumination requirement value, and changing the state of the lamp into an open state;
e) adding the original illumination value and the illumination matrix of the lamp to obtain the illumination value of each calculation point after the lamp is started;
f) and re-checking whether the calculated points which do not meet the illumination requirement exist, and repeating the steps b) to e) until all the calculated point illumination values in each classroom of the target building meet the requirement.
Another object of the present invention is to provide a classroom intelligent lighting control system, comprising:
the data acquisition module is used for receiving and processing the regional meteorological data of the target building;
the lighting calculation module is used for importing the regional meteorological data into building luminous environment simulation software Radiance to carry out natural illuminance calculation to obtain natural illuminance parameters of each classroom calculation point in the target building based on the regional meteorological data and the lighting calculation model of the target building;
the lighting decision module is used for inputting the natural illumination data of the calculation points into a corresponding lighting decision model based on the calculation point positions, the lamp states and the illumination influence matrix of each classroom of the target building to obtain a lighting control strategy corresponding to a target area;
and the illumination adjusting module is used for generating an illumination adjusting instruction based on the illumination control strategy and sending the illumination adjusting instruction to the illumination control terminal corresponding to the target area.
It is a further object of the present invention to provide an apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor executing the computer program to perform the steps of the intelligent lighting control method as described above.
It is a fourth object of the present invention to provide a storage medium storing a computer program which, when executed by a processor, performs the steps of the intelligent lighting control method as described above.
The method has the advantages that a target building is selected, regional meteorological data of the area where the target building is located are obtained, the meteorological data at least comprise longitude and latitude, normal direction direct radiation intensity and horizontal plane scattered radiation intensity of the area where the target building is located and a timestamp corresponding to a time point for collecting the meteorological data, and the meteorological data are sent to a computer program; establishing a natural lighting calculation model of a target building and measuring an illumination influence matrix of a lamp of the target building; based on the meteorological data of the area where the target building is located and a natural lighting calculation model, natural lighting illumination calculation is carried out by using building light environment simulation software Radiance to obtain natural lighting illumination values and lamp illumination influence matrixes of each classroom calculation point of the target building; inputting the natural illumination data of the calculation points into an illumination decision model based on the calculation point positions of all classrooms of the target building, the lamp positions and the illumination influence matrix, and obtaining an illumination control strategy of all areas of all classrooms of the target building by the model by using a proximity principle algorithm; and generating an illumination adjusting instruction and sending the illumination adjusting instruction to an illumination control terminal of the target building. According to the method, the natural lighting illumination in the classroom is calculated by utilizing the meteorological data of the area where the target building is located, the natural lighting illumination data of each classroom is input into the corresponding lighting adjustment model, the lighting on-off decision of each classroom lamp is carried out, the actual condition of each target area is analyzed, then the lighting control strategy is output, and based on the lighting control strategy, the lighting adjustment instruction is generated and sent to the lighting control terminal of the corresponding target area, so that the lighting condition of each classroom of the target building is intelligently adjusted, and energy conservation and environmental protection are promoted. The intelligent control system can intelligently control all lamps in the classroom by combining real-time meteorological data and classroom course arrangement conditions, and is beneficial to improving the effects of energy conservation and environmental protection.
Detailed Description
As used in the specification and in the claims, certain terms are used to refer to particular components. As one skilled in the art will appreciate, manufacturers may refer to a component by different names. This specification and claims do not intend to distinguish between components that differ in name but not function. In the following description and in the claims, the terms "include" and "comprise" are used in an open-ended fashion, and thus should be interpreted to mean "include, but not limited to. "substantially" means within an acceptable error range, and a person skilled in the art can solve the technical problem within a certain error range to substantially achieve the technical effect.
Furthermore, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
The present invention will be described in further detail with reference to fig. 1 to 5, but the present invention is not limited thereto.
Embodiments an educational building in a certain area is used as a target building, and it is apparent that the embodiments described below are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
Referring to fig. 1, 2 and 3, the classroom intelligent lighting control method of the present invention includes the following steps:
s1, collecting data, and transmitting weather data of the area where the target is located through a wireless local area network, wherein the weather data at least comprises longitude and latitude, normal direction direct radiation intensity, horizontal plane scattered radiation intensity of the target area and a timestamp corresponding to a time point for collecting the meteorological data, the transmission file format is xlsx, and the transmission frequency is once every 30 min;
s2, screening weather parameters required by natural lighting calculation from regional weather data, wherein the weather parameters comprise longitude and latitude, normal direct radiation intensity, horizontal plane scattered radiation intensity of a target region and a timestamp corresponding to a time point for collecting the weather data;
writing the weather parameters into a weather file required by lighting calculation, wherein the file format is a. epw file;
s3, checking whether the weather file is successfully generated or not, and if so, calculating the natural lighting illumination of each classroom in the target building;
as shown in fig. 2, the grid density of the computation points in each classroom of the building is 1m by 1m, while the computation points in the non-human activity area are excluded, as shown by the computation points B1-B7 in the dashed box in fig. 2;
importing a weather file into building light environment simulation software Radiance to perform natural illumination calculation, and combining the calculation points and a calculation model to obtain natural lighting illumination parameters of the calculation points of each classroom, wherein the calculation frequency is once every 30min, and the target building is not used, namely, is not calculated within no course arrangement time;
acquiring natural lighting illumination values of each classroom calculation point in a target building;
s4, as shown in figure 3, inputting the natural lighting illumination value of the classroom calculation point in the target building into the lighting decision model;
the input data also includes the position information of each lamp in the classroom of the target building, the lamp status (open or closed), and an illumination influence matrix, where the lamps are shown as Light1-Light12 in fig. 2, where the illumination influence matrix is an illumination increase value for each indoor computing point after a certain lamp is switched from closed to open in the status, and the computing point is the same as the computing point in S2;
judging whether the natural lighting illumination values of all the calculation points of the classroom in the target building meet the requirements of lighting design specifications of classrooms of primary and secondary schools or not, and screening out the calculation points which do not meet the requirements;
arranging the calculation points which do not meet the requirements in a descending order according to the natural lighting illumination values, and selecting the calculation point with the minimum natural lighting illumination value;
arranging the distances between the lamps in the closed state and the calculation point with the minimum natural lighting illumination value in a descending order, selecting the lamp closest to the lamp, and recording the state as an open state, namely 1;
adding the natural lighting illumination value of each calculation point of the classroom in the target building with the illumination influence matrix of the started lamp to obtain the illumination value of each calculation point of the classroom in the target building after the lamp is started;
judging the illumination values of all the calculated points of the classroom in the target building again, repeating the step S3 until all the illumination values of the calculated points of the classroom in the target building meet the requirements of the design code of the classroom in primary and secondary schools,
generating the on-off state of each lamp, wherein the on-off state is marked as 1, and the off state is marked as 0;
s5, generating an illumination adjusting instruction according to the opening and closing state of the lamp and sending the illumination adjusting instruction to an illumination control terminal corresponding to the target area;
the embodiment also provides a classroom intelligent lighting control system, which corresponds to the intelligent lighting control method in the above embodiment one to one, as shown in fig. 4, and comprises a data acquisition module, a lighting calculation module, a lighting decision module, and a lighting adjustment module; the functions of the modules are explained in detail as follows:
the data acquisition module is used for receiving and processing meteorological data of an area where a target building is located, wherein the meteorological data at least comprise longitude and latitude, normal direct radiation intensity and horizontal plane scattered radiation intensity of a target area and a timestamp corresponding to a time point for acquiring the meteorological data, and the data are written into a weather file;
the lighting calculation module is used for importing the meteorological data of the target area into building luminous environment simulation software Radiance to carry out natural illuminance calculation to obtain natural illuminance parameters of corresponding calculation points of each classroom based on the meteorological data of the area where the target building is located and a lighting calculation model;
the lighting decision module is used for inputting the natural illumination data of the calculation points into a corresponding lighting decision model based on the calculation point positions of all classrooms of the target building, the lamp position and the illumination influence matrix to obtain a lighting control strategy corresponding to the target area;
and the illumination adjusting module is used for generating an illumination adjusting instruction based on the illumination control strategy and sending the illumination adjusting instruction to the illumination control terminal corresponding to the target area.
For specific limitations of the classroom intelligent lighting control system, reference may be made to the above limitations of the classroom intelligent lighting control method, which are not described herein again, and all or part of the modules in the classroom intelligent lighting control system may be implemented by software, hardware, and a combination thereof, and the modules may be embedded in a hardware form or a processor independent of the device, or may be stored in a software form in a memory of the device, so that the processor may invoke and execute operations corresponding to the modules.
The present embodiment also provides an apparatus, which may be a server, having an internal structure, as shown in fig. 5, and including a processor, a memory, a network interface, and a database connected by a system bus, wherein the processor of the apparatus is configured to provide computing and control capabilities, the memory of the apparatus includes a nonvolatile storage medium, an internal memory, the nonvolatile storage medium stores an operating system, a computer program, and a database, the internal memory provides an environment for the operating system and the computer program in the nonvolatile storage medium to run, the database of the apparatus is configured to store image data, a natural lighting calculation model, a natural lighting calculation result, a lighting adjustment parameter, and a lighting adjustment model in a target area, the network interface of the apparatus is configured to communicate with an external terminal through a network connection, and the computer program is executed by the processor to implement a classroom intelligent lighting control method, the processor, when executing the computer program, implements the steps of:
s10: acquiring meteorological data of an area where a target building is located, wherein the meteorological data at least comprise longitude and latitude, normal direction direct radiation intensity, horizontal plane scattered radiation intensity of the target area and a timestamp corresponding to a time point for acquiring the meteorological data;
s20: importing the meteorological data of the target area into building luminous environment simulation software Radiance to carry out natural illuminance calculation to obtain natural illuminance parameters of corresponding calculation points of each classroom based on the meteorological data of the area where the target is located and a lighting calculation model;
s30: inputting the natural illumination data of the calculation points into a corresponding illumination decision model based on the calculation point positions of all classrooms of the target building, the lamp position, the lamp state (on or off) and the illumination influence matrix to obtain illumination adjusting parameters corresponding to the target area;
s40: and generating an illumination adjusting instruction based on the illumination adjusting parameters and sending the illumination adjusting instruction to an illumination control terminal corresponding to the target area.
The present embodiment also provides a storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
s10: acquiring meteorological data of an area where a target building is located, wherein the meteorological data at least comprise longitude and latitude, normal direction direct radiation intensity, horizontal plane scattered radiation intensity of the target area and a timestamp corresponding to a time point for acquiring the meteorological data;
s20: importing the meteorological data of the target area into building luminous environment simulation software Radiance to carry out natural illuminance calculation to obtain natural illuminance parameters of corresponding calculation points of each classroom based on the meteorological data of the area where the target is located and a lighting calculation model;
s30: inputting the natural illumination data of the calculation points into a corresponding illumination decision model based on the calculation point positions of all classrooms of the target building, the lamp position, the lamp state (on or off) and the illumination influence matrix to obtain illumination adjusting parameters corresponding to the target area;
s40: and generating an illumination adjusting instruction based on the illumination adjusting parameters and sending the illumination adjusting instruction to an illumination control terminal corresponding to the target area.
Variations and modifications to the above-described embodiments may also occur to those skilled in the art, which fall within the scope of the invention as disclosed and taught herein. Therefore, the present invention is not limited to the above-mentioned embodiments, and any obvious improvement, replacement or modification made by those skilled in the art based on the present invention is within the protection scope of the present invention. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.