CN112804785B - Method and system for intelligently controlling lamplight - Google Patents

Method and system for intelligently controlling lamplight Download PDF

Info

Publication number
CN112804785B
CN112804785B CN202110329636.0A CN202110329636A CN112804785B CN 112804785 B CN112804785 B CN 112804785B CN 202110329636 A CN202110329636 A CN 202110329636A CN 112804785 B CN112804785 B CN 112804785B
Authority
CN
China
Prior art keywords
light control
pressure
data
signal
light
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.)
Active
Application number
CN202110329636.0A
Other languages
Chinese (zh)
Other versions
CN112804785A (en
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.)
Hongtai Intelligent Technology Dongguan Co Ltd
Original Assignee
Hongtai Intelligent Technology Dongguan Co Ltd
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 Hongtai Intelligent Technology Dongguan Co Ltd filed Critical Hongtai Intelligent Technology Dongguan Co Ltd
Priority to CN202110329636.0A priority Critical patent/CN112804785B/en
Publication of CN112804785A publication Critical patent/CN112804785A/en
Application granted granted Critical
Publication of CN112804785B publication Critical patent/CN112804785B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light
    • 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/155Coordinated control of two or more light sources
    • 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/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • 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/175Controlling the light source by remote control
    • H05B47/18Controlling the light source by remote control via data-bus transmission
    • 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

The invention discloses a method and a system for intelligently controlling light, wherein the method comprises the following steps: collecting pressure values acting on the respective pressure sensors based on the plurality of pressure sensors; the single chip microcomputer acquires pressure values on the pressure sensors and converts the pressure values into corresponding pressure data signals; the light control system receives the pressure data signals sent by the single chip microcomputer, and inputs the pressure data signals on each pressure sensor into the neural network model to match the light control signals corresponding to each intelligent lamp; and the light control system sends the light control signal to the corresponding intelligent lamp based on the IP address of the LED module, and the intelligent lamp completes the corresponding controlled process based on the light control signal. According to the embodiment of the invention, the pressure value is acquired by the pressure sensor, and the corresponding light control signal is quickly matched based on the neural network model, so that the intelligent lamp can safely and stably respond to the control command, and the requirements of different application scenes are met.

Description

Method and system for intelligently controlling lamplight
Technical Field
The invention relates to the technical field of intelligent lighting, in particular to a method and a system for intelligently controlling lamplight.
Background
An LED (Light Emitting Diode) is a solid-state semiconductor device capable of converting electric energy into visible Light, and directly converts electricity into Light. The LED lamp has the advantages of energy conservation, environmental protection, light control, strong practicability, high stability, short response time, long service life and the like, and is widely applied to various illumination fields today advocating low-carbon life.
In the existing intelligent LED lamp control systems, articles are mostly made from the energy-saving and intelligent control application of LED lamps, and remote entertainment control is realized by controlling a plurality of LED lamp groups in a networking mode.
At present, a pressure sensor is applied to a night lamp induction system, along with the high-speed development of network technology, how to intelligently control an intelligent LED lamp based on the pressure sensor is avoided, and the control application of realizing that the pressure sensor carries out a corresponding light module is lacked at present, so that the light module meets the requirements of stable, safe and reliable control and becomes more important.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a system for intelligently controlling light.
In order to solve the above problems, the present invention provides a method for intelligently controlling light, comprising the following steps:
collecting pressure values acting on the respective pressure sensors based on the plurality of pressure sensors;
the single chip microcomputer acquires pressure values on the pressure sensors and converts the pressure values into corresponding pressure data signals;
the light control system receives the pressure data signal that the singlechip sent, with the pressure data signal input on each pressure sensor for the light control signal that each intelligent lamp matching corresponds in the neural network model, the light control signal includes: the IP address of the LED module and the corresponding LED light angle signal, LED light brightness signal and LED light color signal;
and the light control system sends the light control signal to the corresponding intelligent lamp based on the IP address of the LED module, and the intelligent lamp completes the corresponding controlled process based on the light control signal.
The single chip microcomputer acquires pressure values on the pressure sensors, and the pressure values are converted into corresponding pressure data signals, wherein the pressure data signals comprise:
the single chip microcomputer acquires pressure values on the pressure sensors by adopting a serial port protocol, and stores corresponding pressure values based on time values;
and forming the pressure value into a corresponding pressure data signal according to the time value.
Inputting the pressure data signals on each pressure sensor into the neural network model to match the corresponding light control signals for each intelligent light comprises:
the pressure data signals on each pressure sensor are used as input values in the neural network model;
normalizing the input value in the neural network model;
coding the normalized data, and initializing an initial population;
determining a fitness function meeting the condition of the light control signal, and calculating the fitness value of each individual;
and when the fitness value is judged to meet the termination condition, decoding and outputting an evolution result, and matching the corresponding light control signal for each intelligent light based on the evolution result.
The light control signal corresponding to the pressure data signal input to the neural network model for each intelligent lamp matching further comprises:
and when the fitness value is judged not to meet the termination condition, introducing an adaptive crossover operator and an adaptive mutation operator, carrying out genetic operation to generate a new generation of population, and recalculating the fitness value of each individual based on the new generation of population.
The intelligent lamp completes the corresponding controlled process based on the lamp light control signal, and the process comprises the following steps:
the intelligent lamp analyzes the corresponding light control signal, sends the LED light angle signal to a rotation control component of the intelligent lamp, and sends the LED light brightness signal and the LED light color signal to an LED driving component;
the rotation control part of the intelligent lamp realizes corresponding angle rotation according to the LED lamplight angle signal to reach the corresponding angle direction, and the LED driving part drives the LED lamp on the LED module to emit light according to the LED lamplight brightness signal and the LED lamplight color signal.
A TCP/IP framework is adopted between the light control system and the intelligent lamps to construct a local area network environment, and a DMX512 data protocol is adopted to realize data transmission between the light control system and each intelligent lamp.
The light control system will light control signal includes for the intelligent lamp that corresponds based on the IP address of LED module:
after the corresponding light control signal is matched, the light control system encodes the light control signal into a corresponding User Datagram Protocol (UDP) data packet, inserts corresponding redundant data into the UDP data packet based on a Forward Error Correction (FEC), and sends the UDP data packet with the inserted redundant data to the intelligent lamp based on the UDP protocol.
Correspondingly, the embodiment of the invention also provides a system for intelligently controlling the light, which comprises:
the pressure sensors are used for acquiring pressure values acting on the pressure sensors;
the single chip microcomputer is used for converting the collected pressure values into pressure data signals and sending the pressure data signals on the pressure sensors to the light control system;
light control system for receive the pressure data signal that the singlechip sent, input the pressure data signal on each pressure sensor to the light control signal that corresponds for each intelligent lamp matching in the neural network model, light control signal includes: the IP address of the LED module and the corresponding LED light angle signal, LED light brightness signal and LED light color signal; the light control signal is sent to the corresponding intelligent lamp based on the IP address of the LED module;
and the intelligent lamp is used for finishing the corresponding controlled process based on the light control signal.
A TCP/IP framework is adopted between the light control system and the intelligent lamps to construct a local area network environment, and a DMX512 data protocol is adopted to realize data transmission between the light control system and each intelligent lamp.
Each intelligent lamp in a plurality of intelligent lamp adopts the full-color LED lamp of RGB to constitute, and every intelligent lamp all is provided with a DMX512 chip of decoding.
According to the embodiment of the invention, the pressure sensors are combined with the intelligent light control system, so that different pressure values collected by the pressure sensors are combined to match corresponding light control signals through the neural network model, different pressure values generated by the pressure sensors are fused to generate intelligent control suitable for the light system, and the light module can be more stable, safe and reliable and is suitable for input control of different pressure values. The intelligent control process of a plurality of intelligent lamps is realized by adopting the neural network model to match the light control signals of different intelligent lamps under the triggering of the pressure data signals and utilizing the neural network model to carry out information fusion on the different pressure data signals, the intelligent control process has strong fault tolerance, self-organization and self-adaption capability aiming at the pressure data signals, can process the nonlinear mapping problem caused by acting on the pressure sensors, and realizes the self-adaption matching requirement of the light control signals under the data fusion of the plurality of pressure sensors through the self-learning capability, thereby achieving the quick matching aiming at the pressure values, reducing the time delay control of the light control and the like, enabling the intelligent lamps to be capable of quickly responding to the control rhythm of the pressure values in combination with the pressure sensors, and enabling the light control intelligence to be widely applied to the application scenes of light beauty or light atmosphere, the practicability and the economic effect of the light control are enhanced.
Drawings
Fig. 1 is a schematic structural diagram of a system for intelligently controlling lights in an embodiment of the present invention;
FIG. 2 is a flow chart of a method for intelligently controlling lighting in an embodiment of the present invention;
fig. 3 is a flowchart of a method for matching light control signals corresponding to each intelligent light based on a neural network model in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a system for intelligently controlling lighting in an embodiment of the present invention, where the system for intelligently controlling lighting includes: a plurality of pressure sensor and carry out singlechip, light control system, a plurality of intelligent lamp that communicate with a plurality of pressure sensor, wherein:
each pressure sensor on the plurality of pressure sensors can acquire a pressure value acting on the pressure sensor;
the single chip microcomputer converts the collected pressure values into pressure data signals and sends the pressure data signals on each pressure sensor to the light control system;
the light control system receives the pressure data signal that the singlechip sent, with the pressure data signal input on each pressure sensor for the light control signal that each intelligent lamp matching corresponds in the neural network model, the light control signal includes: the IP address of the LED module and the corresponding LED light angle signal, LED light brightness signal and LED light color signal;
and the light control system sends the light control signal to the corresponding intelligent lamp based on the IP address of the LED module, and the intelligent lamp completes the corresponding controlled process based on the light control signal.
In a specific implementation process, the single chip microcomputer acquires pressure values on the pressure sensors by adopting a serial port protocol, and stores the corresponding pressure values based on time values; and forming the pressure value into a corresponding pressure data signal according to the time value. The single chip microcomputer can record the pressure values, can record the collection duration time, and can form different pressure data signals for the different pressure values according to different time axes, and the pressure data signals are transmitted to the light control system and used as input values in the neural network model to trigger different application scenes of different intelligent lamps.
It should be noted that the pressure sensor may be formed by combining a plurality of control keys, similar to keyboard keys or piano keys, so that the user can conveniently touch and press the pressure sensors according to a certain rule. The pressure sensor may also be provided with one or more pressure control surfaces in an area for the user to act on.
A TCP/IP framework is adopted between the light control system and the intelligent lamps to construct a local area network environment, and a DMX512 data protocol is adopted to realize data transmission between the light control system and each intelligent lamp and realize digital light control; each intelligent lamp in a plurality of intelligent lamp adopts the full-color LED lamp of RGB to constitute, and every intelligent lamp all is provided with a DMX512 decoding chip, and the light control signal that will correspond is analytic, gives the rotation control part of intelligent lamp with LED light angle signal transmission, sends LED light luminance signal and LED light color signal for LED driver part. The rotation control part of the intelligent lamp realizes that the corresponding angle rotation reaches the corresponding angle direction according to the LED light angle signal, and the LED driving part drives the LED lamp on the LED module to emit light according to the LED light brightness signal and the LED light color signal.
The pressure sensor is combined with the intelligent light control system, so that different pressure values collected by the pressure sensor are matched with corresponding light control signals through the neural network model, intelligent control adaptive to the light system is generated by fusing different pressure values generated by the pressure sensors, and the light module can be more stable, safe and reliable and is suitable for input control of different pressure values. The intelligent control process of a plurality of intelligent lamps is realized by adopting the neural network model to match the light control signals of different intelligent lamps under the triggering of the pressure data signals and utilizing the neural network model to carry out information fusion on the different pressure data signals, the intelligent control process has strong fault tolerance, self-organization and self-adaption capability aiming at the pressure data signals, can process the nonlinear mapping problem caused by acting on the pressure sensors, and realizes the self-adaption matching requirement of the light control signals under the data fusion of the plurality of pressure sensors through the self-learning capability, thereby achieving the quick matching aiming at the pressure values, reducing the time delay control of the light control and the like, enabling the intelligent lamps to be capable of quickly responding to the control rhythm of the pressure values in combination with the pressure sensors, and enabling the light control intelligence to be widely applied to the application scenes of light beauty or light atmosphere, the practicability and the economic effect of the light control are enhanced.
In the specific implementation process, after the corresponding light control signal is matched by the light control system, the light control signal is coded into a corresponding User Datagram Protocol (UDP) data packet, corresponding redundant data is inserted into the UDP data packet based on a Forward Error Correction (FEC), and the UDP data packet with the inserted redundant data is sent to the intelligent lamp based on the UDP protocol. And each intelligent lamp analyzes the UDP data packet, judges whether the UDP data packet inserted with the redundant data has a packet loss phenomenon, if the packet loss phenomenon is judged to exist, recovers the lost data packet based on an FEC (forward error correction) mechanism, and extracts a control signal in the data packet based on the DMX512 decoding chip. Adopt UDP agreement transmission light control signal between light control system and the intelligent lamp, make light control signal can not appear sending the condition that blocks the delay to the one-way transmission mode, can not lead to whole data transmission to postpone, through using FEC forward error correction mechanism, make the light control signal that can resume losing at the intelligent lamp, make can not lead to the packet loss phenomenon to exist under the signal transmission mode, promoted the signal transmission quality between light control system and the intelligent lamp.
In a specific implementation process, the intelligent lamp analyzes the corresponding light control signal, sends an LED light angle signal to a rotation control component of the intelligent lamp, and sends an LED light brightness signal and an LED light color signal to an LED driving component; the rotation control part of the intelligent lamp realizes corresponding angle rotation according to the LED lamplight angle signal to reach the corresponding angle direction, and the LED driving part drives the LED lamp on the LED module to emit light according to the LED lamplight brightness signal and the LED lamplight color signal.
Specifically, fig. 2 shows a flowchart of a method for intelligently controlling light in the embodiment of the present invention, which, in combination with the system principle shown in fig. 1, includes the following steps:
s21, collecting pressure values acting on the pressure sensors based on the pressure sensors;
when the pressure sensor is implemented specifically, the pressure sensor can be formed by combining a plurality of control keys, and is similar to keyboard keys or piano keys, so that a user can conveniently touch and press the pressure sensors according to a certain rule. The pressure sensor may also be provided with one or more pressure control surfaces in an area for the user to act on.
S22, the single chip microcomputer acquires pressure values on each pressure sensor and converts the pressure values into corresponding pressure data signals;
when the method is specifically implemented, the step of acquiring the pressure values on each pressure sensor by the singlechip and converting the pressure values into corresponding pressure data signals comprises the following steps: the single chip microcomputer acquires pressure values on the pressure sensors by adopting a serial port protocol, and stores corresponding pressure values based on time values; and forming the pressure value into a corresponding pressure data signal according to the time value.
The single chip microcomputer can record the pressure values, can record the collection duration time, and can form different pressure data signals for the different pressure values according to different time axes, and the pressure data signals are transmitted to the light control system and used as input values in the neural network model to trigger different application scenes of different intelligent lamps.
The pressure sensor is combined with the intelligent light control system, so that different pressure values collected by the pressure sensor are matched with corresponding light control signals through the neural network model, intelligent control adaptive to the light system is generated by fusing different pressure values generated by the pressure sensors, and the light module can be more stable, safe and reliable and is suitable for input control of different pressure values.
S23, the light control system receives the pressure data signals sent by the single chip microcomputer, and the pressure data signals on the pressure sensors are input into the neural network model to match the light control signals corresponding to the intelligent lamps;
the light control signal includes: the IP address of the LED module, and the corresponding LED light angle signal, the corresponding LED light brightness signal and the corresponding LED light color signal.
The intelligent control process of a plurality of intelligent lamps is realized by adopting the neural network model to match the light control signals of different intelligent lamps under the triggering of the pressure data signals and utilizing the neural network model to carry out information fusion on the different pressure data signals, the intelligent control process can have strong fault tolerance, self-organization and self-adaption capability aiming at the pressure data signals and can process the nonlinear mapping problem caused by acting on the pressure sensors, the self-adaption matching requirement of the light control signals under the data fusion of the plurality of pressure sensors is realized through the self-learning capability, the rapid matching aiming at the pressure values is realized, the time delay control of the light control is reduced, the intelligent lamps can quickly respond to the control rhythm of the pressure values by combining the pressure sensors, and the light control intelligence can be widely applied to the application scenes of light show or light atmosphere, the practicability and the economic effect of the light control are enhanced.
Specifically, fig. 3 shows a flowchart of a method for matching light control signals corresponding to each intelligent lamp based on a neural network model in the embodiment of the present invention, including the following steps:
the neural network model in the embodiment of the invention is based on data information acquired by the pressure sensors as input quantity, has strong fault tolerance, self-organization and self-adaption capability, and can deal with the nonlinear mapping problem generated under different pressure sensors in the embodiment of the invention, thereby meeting the result output of light control signals under decision levels generated by different pressure sensors.
S31, taking the pressure data signals of each pressure sensor as input values in the neural network model;
s32, normalizing the input value in the neural network model;
the pressure data signals are normalized, the coding mode is optimized, the data are coded, evolution is carried out through a genetic algorithm, suboptimal chromosomes are decoded and serve as initial weights and threshold values of the whole neural network, and the optimal solution is obtained through feedback and adjustment of the neural network.
S33, coding the normalized data, and initializing an initial population;
selecting a real number coding mode, and connecting the weight values and the threshold values in the neural network into long strings according to the sequence by setting the number of chromosomes: the weight from the input layer to the hidden layer, the threshold value from the input layer to the hidden layer, the weight from the hidden layer to the output layer and the threshold value from the hidden layer to the output layer are represented by real numbers on the coding string, each locus directly represents the weight and the threshold value in the solution set, and the coding process does not need to be repeated.
S34, determining a fitness function meeting the condition of the light control signal, and calculating the fitness value of each individual;
the fitness function expresses the relation between the expected output and the actual output in the neural network model, and the smaller the error between the expected output and the actual output, the better the fitness of the individual is shown, and the greater the probability of individual selection is.
S35, judging whether the fitness value meets a termination condition, if so, entering S36, and if not, entering S37;
in the implementation process, when whether the individual fitness value is smaller than the corresponding error precision is judged, the chromosome in the neural network model is decoded to obtain a weight value and a threshold value as an output result.
S36, when the fitness value is judged to meet the termination condition, decoding and outputting an evolution result, and matching corresponding light control signals for each intelligent light based on the evolution result;
s37, introducing an adaptive crossover operator and an adaptive mutation operator, carrying out genetic operation to generate a new generation of population, and recalculating the fitness value of each individual based on the new generation of population.
The neural network model self-learning process is composed of a data parameter forward transmission part and an operation error reverse transmission part, the core is the learning of a network weight and a threshold value, and when the fitness value is not met, the self-adaptive crossover operator and the self-adaptive mutation operator are modified to ensure the rapid convergence of the neural network in the whole situation, so that the rapid calculation process is realized.
S24, the light control system sends the light control signal to the corresponding intelligent lamp based on the IP address of the LED module;
a TCP/IP framework is adopted between the light control system and the intelligent lamps to construct a local area network environment, and a DMX512 data protocol is adopted to realize data transmission between the light control system and each intelligent lamp.
The light control system will light control signal includes for the intelligent lamp that corresponds based on the IP address of LED module: after the corresponding light control signal is matched, the light control system encodes the light control signal into a corresponding User Datagram Protocol (UDP) data packet, inserts corresponding redundant data into the UDP data packet based on a Forward Error Correction (FEC), and sends the UDP data packet with the inserted redundant data to the intelligent lamp based on the UDP protocol.
The intelligent lamp is used as receiving end equipment, a UDP data packet is firstly analyzed, whether the UDP data packet inserted with redundant data has a packet loss phenomenon or not is judged, if the packet loss phenomenon is judged to exist, the lost data packet is recovered based on an FEC (forward error correction) mechanism, and then a light control signal in the data packet is extracted based on a DMX512 decoding chip.
UDP is a communication protocol oriented to no connection, the communication time is short, the transmission reliability is poor, UDP protocol is adopted between a light control system and an intelligent lamp to transmit light control signals, the condition that the light control signals are not blocked and delayed in transmission is avoided aiming at a one-way transmission mode, the whole data transmission delay is avoided, through the use of an FEC forward error correction mechanism, the lost light control signals can be recovered at the intelligent lamp, the phenomenon of packet loss is avoided in a signal transmission mode, and the signal transmission quality between the light control system and the intelligent lamp is improved.
The DMX512 protocol can be applied to a light data structure, the light control system can pack light data based on a DMX512 protocol format and then interact in a network transmission mode, the protocol has functions of equipment identification and the like, and interaction between the light control system and an intelligent lamp can be realized through a UDP protocol, so that the advantage of network rapid transmission is embodied.
When the light control system sends the light control signals, the light control system and each intelligent lamp carry out mutual equipment identification and generate a data output port, and the corresponding light control signals are sent to a network based on the data output port. Each intelligent lamp can receive data in parallel to perform an address verification process, a task port number of the lighting control signal with a successful address verification is verified, only the successfully verified data can be subjected to next content analysis, and the timeliness of network response between the lighting control system and the intelligent lamp, data content integrity and data content accuracy are guaranteed in a mode of combining a UDP (user Datagram protocol), a forward error correction mechanism and a DMX512 protocol.
And S25, the intelligent lamp completes the corresponding controlled process based on the lamp light control signal.
The intelligent lamp completes the corresponding controlled process based on the lamp light control signal, and the process comprises the following steps: the intelligent lamp analyzes the corresponding light control signal, sends the LED light angle signal to a rotation control component of the intelligent lamp, and sends the LED light brightness signal and the LED light color signal to an LED driving component; the rotation control part of the intelligent lamp realizes corresponding angle rotation according to the LED lamplight angle signal to reach the corresponding angle direction, and the LED driving part drives the LED lamp on the LED module to emit light according to the LED lamplight brightness signal and the LED lamplight color signal.
A TCP/IP framework is adopted between the light control system and the intelligent lamps to construct a local area network environment, and a DMX512 data protocol is adopted to realize data transmission between the light control system and each intelligent lamp and realize digital light control; each intelligent lamp in a plurality of intelligent lamp adopts the full-color LED lamp of RGB to constitute, and every intelligent lamp all is provided with a DMX512 decoding chip, and the light control signal that will correspond is analytic, gives the rotation control part of intelligent lamp with LED light angle signal transmission, sends LED light luminance signal and LED light color signal for LED driver part. The rotation control part of the intelligent lamp realizes that the corresponding angle rotation reaches the corresponding angle direction according to the LED light angle signal, and the LED driving part drives the LED lamp on the LED module to emit light according to the LED light brightness signal and the LED light color signal.
In the specific implementation process, a mapping relation under a nonlinear condition is established among the pressure value, the light color and the brightness based on the neural network model, so that the color of the whole lamp is changed along with the response of the pressure value, and the light effect under the intelligent light system has a strong self-adaptive effect.
The above embodiments of the present invention are described in detail, and the principle and the implementation of the present invention are described herein by using specific embodiments, and the description of the above embodiments is only used to help understanding the method of the present invention and the core idea thereof; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (5)

1. A method for intelligently controlling light is characterized by comprising the following steps:
collecting pressure values acting on each pressure sensor based on a plurality of pressure sensors, wherein the plurality of pressure sensors are formed by combining a plurality of control keys and provide a pressure operation surface for a user;
the single chip microcomputer acquires pressure values on the pressure sensors and converts the pressure values into corresponding pressure data signals;
the light control system receives the pressure data signal that the singlechip sent, with the pressure data signal input on each pressure sensor for the light control signal that each intelligent lamp matching corresponds in the neural network model, the light control signal includes: the IP address of the LED module and the corresponding LED light angle signal, LED light brightness signal and LED light color signal;
the light control system sends the light control signals to corresponding intelligent lamps based on the IP addresses of the LED modules, the intelligent lamps complete corresponding controlled processes based on the light control signals, a TCP/IP framework is adopted between the light control system and the intelligent lamps to construct a local area network environment, and a DMX512 data protocol is adopted to realize data transmission between the light control system and each intelligent lamp;
the single chip microcomputer acquires pressure values on the pressure sensors, and the pressure values are converted into corresponding pressure data signals, wherein the pressure data signals comprise:
the single chip microcomputer acquires pressure values on the pressure sensors by adopting a serial port protocol, and stores corresponding pressure values based on time values;
forming a corresponding pressure data signal by the pressure value according to a time value;
the light control system will light control signal includes for the intelligent lamp that corresponds based on the IP address of LED module:
after the corresponding light control signal is matched, the light control system encodes the light control signal into a corresponding User Datagram Protocol (UDP) data packet, inserts corresponding redundant data into the UDP data packet based on a Forward Error Correction (FEC), and sends the UDP data packet with the inserted redundant data to the intelligent lamp based on the UDP protocol;
each intelligent lamp analyzes the UDP data packet, judges whether the UDP data packet inserted with the redundant data has a packet loss phenomenon, if the packet loss phenomenon is judged to exist, recovers the lost data packet based on an FEC (forward error correction) mechanism, and extracts a control signal in the data packet based on a DMX512 decoding chip;
the lighting control system packs lighting data based on a DMX512 protocol format and then interacts in a network transmission mode;
when the light control system sends the light control signal, the light control system and each intelligent lamp carry out mutual equipment identification and generate a data output port, and the corresponding light control signal is sent to a network based on the data output port; each intelligent lamp can carry out an address verification process on received data, and carry out verification on the task port number on the light control signal with successful address verification, and only the data with successful verification can be subjected to next content analysis.
2. The method of claim 1, wherein the step of inputting the pressure data signal from each pressure sensor into the neural network model to match the corresponding light control signal for each intelligent light comprises:
the pressure data signals on each pressure sensor are used as input values in the neural network model;
normalizing the input value in the neural network model;
coding the normalized data, and initializing an initial population;
determining a fitness function meeting the condition of the light control signal, and calculating the fitness value of each individual;
and when the fitness value is judged to meet the termination condition, decoding and outputting an evolution result, and matching the corresponding light control signal for each intelligent light based on the evolution result.
3. The method of claim 2, wherein the step of inputting the pressure data signal from each pressure sensor into the neural network model to match the corresponding light control signal for each intelligent light further comprises:
and when the fitness value is judged not to meet the termination condition, introducing an adaptive crossover operator and an adaptive mutation operator, carrying out genetic operation to generate a new generation of population, and recalculating the fitness value of each individual based on the new generation of population.
4. The method of claim 1, wherein the intelligent lamp completing the corresponding controlled process based on the lamp control signal comprises:
the intelligent lamp analyzes the corresponding light control signal, sends the LED light angle signal to a rotation control component of the intelligent lamp, and sends the LED light brightness signal and the LED light color signal to an LED driving component;
the rotation control part of the intelligent lamp realizes corresponding angle rotation according to the LED lamplight angle signal to reach the corresponding angle direction, and the LED driving part realizes corresponding angle rotation according to the LED lamplight brightness signal and the LED lamplight color signal.
5. A system for intelligently controlling lighting, the system comprising:
the pressure sensors are used for acquiring pressure values acting on the pressure sensors, and the pressure sensors are formed by combining a plurality of control keys and provide pressure operation surfaces for users;
the single chip microcomputer is used for converting the collected pressure values into pressure data signals and sending the pressure data signals on each pressure sensor to the light control system, and the single chip microcomputer acquires the pressure values on each pressure sensor by adopting a serial port protocol and stores the corresponding pressure values based on time values; forming a corresponding pressure data signal by the pressure value according to a time value;
light control system for receive the pressure data signal that the singlechip sent, input the pressure data signal on each pressure sensor to the light control signal that corresponds for each intelligent lamp matching in the neural network model, light control signal includes: the IP address of the LED module and the corresponding LED light angle signal, LED light brightness signal and LED light color signal; the light control signal is sent to the corresponding intelligent lamp based on the IP address of the LED module;
the intelligent lamp is used for completing the corresponding controlled process based on the light control signal;
a TCP/IP framework is adopted between the light control system and the intelligent lamps to construct a local area network environment, and a DMX512 data protocol is adopted to realize data transmission between the light control system and each intelligent lamp; each intelligent lamp of the intelligent lamps is composed of RGB full-color LED lamps, and each intelligent lamp is provided with a DMX512 decoding chip;
after the corresponding light control signal is matched, the light control system encodes the light control signal into a corresponding User Datagram Protocol (UDP) data packet, inserts corresponding redundant data into the UDP data packet based on a Forward Error Correction (FEC), and sends the UDP data packet with the inserted redundant data to the intelligent lamp based on the UDP protocol;
each intelligent lamp analyzes the UDP data packet, judges whether the UDP data packet inserted with the redundant data has a packet loss phenomenon, if the packet loss phenomenon is judged to exist, recovers the lost data packet based on an FEC (forward error correction) mechanism, and extracts a control signal in the data packet based on a DMX512 decoding chip;
the lighting control system packs lighting data based on a DMX512 protocol format and then interacts in a network transmission mode;
when the light control system sends the light control signal, the light control system and each intelligent lamp carry out mutual equipment identification and generate a data output port, and the corresponding light control signal is sent to a network based on the data output port; each intelligent lamp can carry out an address verification process on received data, and carry out verification on the task port number on the light control signal with successful address verification, and only the data with successful verification can be subjected to next content analysis.
CN202110329636.0A 2021-03-29 2021-03-29 Method and system for intelligently controlling lamplight Active CN112804785B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110329636.0A CN112804785B (en) 2021-03-29 2021-03-29 Method and system for intelligently controlling lamplight

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110329636.0A CN112804785B (en) 2021-03-29 2021-03-29 Method and system for intelligently controlling lamplight

Publications (2)

Publication Number Publication Date
CN112804785A CN112804785A (en) 2021-05-14
CN112804785B true CN112804785B (en) 2021-08-06

Family

ID=75817339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110329636.0A Active CN112804785B (en) 2021-03-29 2021-03-29 Method and system for intelligently controlling lamplight

Country Status (1)

Country Link
CN (1) CN112804785B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114599139A (en) * 2022-01-20 2022-06-07 广州奕至家居科技有限公司 Desk lamp control method and device, terminal equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005009085A1 (en) * 2003-07-23 2005-01-27 Tir Systems Ltd. Control system for an illumination device incorporating discrete light sources
CN102866623A (en) * 2012-09-29 2013-01-09 周生和 Intelligent watch
CN205964923U (en) * 2016-07-11 2017-02-22 徐荣 Taekwondo reaction rate training ware
CN108234902A (en) * 2017-05-08 2018-06-29 浙江广播电视集团 A kind of studio intelligence control system and method perceived based on target location
CN107390754B (en) * 2017-08-29 2019-07-30 贵州省岚林阳环保能源科技有限责任公司 Intelligent plant growth environment adjustment system and method based on Internet of Things cloud platform
CN111741554A (en) * 2017-09-05 2020-10-02 深圳市盛路物联通讯技术有限公司 Intelligent light control method and device
CN108235549A (en) * 2018-03-01 2018-06-29 苏州科技大学 A kind of polychrome energy-conserving eye-protective lamp and control method based on Fuzzy Neural-network Control

Also Published As

Publication number Publication date
CN112804785A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN110278111B (en) General architecture of intention-driven network and translation method of intention-driven network
Sharma et al. DistArch-SCNet: blockchain-based distributed architecture with li-fi communication for a scalable smart city network
CN112804785B (en) Method and system for intelligently controlling lamplight
CN205049878U (en) Intelligent control system
CN104754391B (en) A kind of remote-control data transmission method of television set
CN106658854A (en) LED lamp control method, LED lamp and control system
CN105960071B (en) A kind of wisdom street lamp interacted system and control method based on ZLL technologies
CN105072757B (en) Driving chip, constant current driver circuit for LED and its control method
CN106533863A (en) Mobile terminal, local server, intelligent home equipment control method and system
CN108880909B (en) Network energy saving method and device based on reinforcement learning
CN205883602U (en) Parallel gateway device of intelligence
CN107864682A (en) Ultra-micro power consumption sender unit and its application
CN113111115A (en) Data information management system and method thereof
CN103235584A (en) Intelligent furniture control method, device, microprogrammed control unit (MCU) and system
KR102011264B1 (en) Apparatus for dissimilar type communication system based smart lighting control and method by using the same
CN114743554A (en) Intelligent household interaction method and device based on Internet of things
CN110708793B (en) Cascade control method of cascade equipment, cascade equipment and illumination system
CN105471511B (en) A kind of decoding method, apparatus and system improving optical signal transmission reliability
CN207720192U (en) One kind being based on CAN bus intelligent building monitoring system
Balbin et al. ZigBee and Power Line Communications interconnectivity applied to fuzzy logic controlled automated lighting system
CN111615242B (en) Lamp, controller and lamp dimming method
CN212675384U (en) Electrical control system of multifunctional air purifier
CN107750077A (en) LED high-voltage alternating current intelligence control system and its implementation based on Bluetooth technology
CN209248586U (en) Nerve synapse circuit and impulsive neural networks circuit
CN113766007A (en) Authentication front-end system and authentication method based on multi-source heterogeneous data analysis protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant