CN118301813A - LED lamp calibration method, device, storage medium and equipment - Google Patents

LED lamp calibration method, device, storage medium and equipment Download PDF

Info

Publication number
CN118301813A
CN118301813A CN202410703199.8A CN202410703199A CN118301813A CN 118301813 A CN118301813 A CN 118301813A CN 202410703199 A CN202410703199 A CN 202410703199A CN 118301813 A CN118301813 A CN 118301813A
Authority
CN
China
Prior art keywords
led lamp
brightness
pwm value
target
current
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
CN202410703199.8A
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.)
Goertek Inc
Original Assignee
Goertek Inc
Filing date
Publication date
Application filed by Goertek Inc filed Critical Goertek Inc
Publication of CN118301813A publication Critical patent/CN118301813A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a method, a device, a storage medium and equipment for calibrating an LED lamp, and relates to the technical field of hardware circuit detection. Obtaining a standard corresponding relation between the PWM value and the brightness of the LED lamp and testing the PWM value; controlling the LWD lamp to test the PWM value to be lightened and obtain the current brightness; determining standard test brightness corresponding to the test PWM value; determining a target PWM value according to the standard test brightness and the current brightness, and writing the target PWM value into a register; and controlling the LED lamp to be lightened according to the target PWM numerical value in the register to realize standard test brightness. According to the application, the corresponding relation between the standard test brightness and the PWM value is considered in the calibration process, the target PWM value is determined according to the standard test brightness and the current brightness, the PWM value is written into the register, and the LED lamp is controlled to be lightened according to the standard test brightness, so that the LED lamp can achieve consistent illumination effect in different products, and the overall consumption experience of a user is improved.

Description

LED lamp calibration method, device, storage medium and equipment
Technical Field
The application relates to the technical field of hardware circuit detection, in particular to an LED lamp calibration method, an LED lamp calibration device, a storage medium and LED lamp calibration equipment.
Background
LED (LIGHT EMITTING Diode) lamps play a vital role in consumer electronics as a light source for indicating the effect. However, many products simply illuminate the LED lamp without the necessary adjustments to its brightness and consistency. Due to the deviation of the light guide column or the LED lamp during assembly, the brightness of the LED lamps among different products can be different, and the overall consumption experience of a user is affected.
Therefore, how to provide an LED calibration test device, ensuring that the brightness of LED lamps of all products is consistent becomes a technical problem that needs to be solved at present.
Disclosure of Invention
The application aims to provide a method, a device, a storage medium and equipment for calibrating an LED lamp, which can enable the LED lamp to achieve consistent illumination effect in different products, thereby improving the overall consumption experience of a user.
In order to solve the technical problems, the application provides an LED lamp calibration method, which is applied to a processor in equipment, wherein the equipment also comprises an LED lamp, and the LED lamp calibration method comprises the following steps:
Obtaining a standard corresponding relation between a PWM value and the brightness of the LED lamp, and obtaining a test PWM value;
controlling an LWD lamp to be lightened according to the test PWM numerical value, and obtaining the current brightness of the LED lamp;
Determining standard test brightness corresponding to the test PWM value according to the standard corresponding relation and the test PWM value;
Determining a target PWM value according to the standard test brightness and the current brightness, and writing the target PWM value into a register;
and controlling the LED lamp to be lightened according to the target PWM numerical value in the register and the standard test brightness.
In one embodiment, determining a target PWM value from the standard test luminance and the current luminance comprises:
Calculating a difference between the standard test luminance and the current luminance;
and determining a target PWM value according to the difference value, the standard corresponding relation and the test PWM value.
In one embodiment, after determining the target PWM value from the standard test luminance and the current luminance, the LED lamp calibration method further comprises:
Controlling the LED lamp to be lightened by the target PWM value, and obtaining the current target brightness of the LED lamp;
judging whether the current target brightness is the same as the standard test brightness or not;
if so, the step of writing the target PWM value into a register is entered.
In one embodiment, after determining that the current target luminance and the standard test luminance are the same, the method further comprises:
Determining a calibration corresponding relation of the LED lamp according to the target PWM value, the current target brightness and the standard corresponding relation;
and when the LED lamp is controlled, determining an expected PWM value according to the expected brightness and the calibration corresponding relation, and controlling the LED lamp to be lightened according to the expected PWM value.
In one embodiment, the device further comprises a control device and a collection device, wherein one end of the control device is connected with the processor, and the other end of the control device is connected with the collection device; after the LWD lamp is controlled to be lighted according to the test PWM value, the LED lamp calibration method further includes:
and sending a lighting signal to the control device, and triggering the control device to control the acquisition device to acquire the current brightness of the LED lamp according to the lighting signal.
In one embodiment, the acquisition device comprises a cylinder push rod, an optical fiber cable and a shooting device, wherein the cylinder push rod is connected with the optical fiber cable, and the control end of the cylinder push rod is connected with the output end of the control device;
Triggering the control device to control the acquisition device to acquire the current brightness of the LED lamp according to the lighting signal, comprising the following steps:
Triggering the control device to control the cylinder push rod to move the optical fiber cable to a preset position according to the lighting signal, so that the shooting device obtains the current brightness of the LED lamp through the optical fiber cable; the preset position meets the condition that the shooting device, the optical fiber cable and the LED lamp are on the same extension line.
In one embodiment, before obtaining the test PWM value, further comprising:
The LED lamp is lightened according to the random PWM value, the outline of the LED lamp is positioned, and the acquisition range is determined;
Dividing the acquisition range into a plurality of acquisition blocks, determining the uniformity of the LED lamp according to the brightness of at least two acquisition blocks, and feeding back the uniformity to a display interface.
In order to solve the technical problem, the application also provides an LED lamp calibration device, which comprises:
A memory for storing a computer program;
and the processor is used for realizing the steps of the LED lamp calibration method when executing the computer program.
In order to solve the technical problem, the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of the LED lamp calibration method when being executed by a processor.
In order to solve the technical problems, the application also provides equipment, which comprises the LED lamp calibration device and an LED lamp, wherein the LED lamp is connected with the LED lamp calibration device.
The application provides a method, a device, a storage medium and equipment for calibrating an LED lamp, and relates to the technical field of hardware circuit detection. Obtaining a standard corresponding relation between the PWM value and the brightness of the LED lamp and testing the PWM value; controlling the LWD lamp to be lightened according to the test PWM numerical value and obtaining the current brightness; determining standard test brightness according to the standard corresponding relation and the test PWM value; determining a target PWM value according to the standard test brightness and the current brightness, and writing the target PWM value into a register; and controlling the LED lamp to be lightened according to the target PWM numerical value in the register to realize standard test brightness. Therefore, the corresponding relation between the standard test brightness and the PWM value is considered in the calibration process, the target PWM value is determined according to the standard test brightness and the current brightness, the PWM value is written into the register, and the LED lamp is controlled to be lightened according to the standard test brightness, so that the LED lamp can achieve consistent illumination effect in different products, and the overall consumption experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required in the prior art and the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for calibrating an LED lamp provided by the application;
Fig. 2 is a schematic diagram of a driving circuit of an LED lamp according to the present application;
FIG. 3 is a schematic diagram of an acquisition device according to the present application;
FIG. 4 is a block diagram of an apparatus according to the present application;
Fig. 5 is a specific flowchart of an LED lamp calibration method provided by the present application.
Detailed Description
The core of the application is to provide a method, a device, a storage medium and equipment for calibrating the LED lamp, which can enable the LED lamp to achieve consistent illumination effect in different products, thereby improving the overall consumption experience of users.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
In order to solve the above technical problems, the present application provides a method for calibrating an LED lamp, as shown in fig. 1, which is applied to a processor included in a device, the device further includes an LED lamp, and the method for calibrating an LED lamp includes:
s11: obtaining a standard corresponding relation between a PWM value and the brightness of the LED lamp, and obtaining a test PWM value;
In this step, it mainly involves obtaining a standard correspondence between a PWM (Pulse Width Modulation ) value and the brightness of the LED lamp, and obtaining a test PWM value. PWM (pulse width modulation) is a digital coding method of an analog control signal, and by using a high resolution counter, the duty cycle of a square wave is modulated to code the level of an analog signal. In the control of the LED lamp, the PWM signal adjusts the brightness of the LED by changing the high level time of the pulse (i.e., the on time of the LED). This way of adjusting the brightness of the signal is essentially adjusting the average current of the LED, since the brightness of the LED is proportional to its current.
In this step, a standard correspondence between the PWM value and the brightness of the LED lamp needs to be established first. This is typically calculated experimentally or theoretically in order to ensure that the LED lamp is capable of emitting the desired brightness at a given PWM value. This correspondence may be stored in a look-up table (LUT) or other data structure for quick lookup and referencing in subsequent steps. Next, a test PWM value is obtained. The test PWM values may be randomly selected or may be generated according to some predetermined pattern or rule. The purpose is to control the LED lamp to light up and measure its actual brightness in a subsequent step based on this test PWM value. In summary, the present step provides the necessary data and reference for the subsequent steps (e.g., controlling the LED lamp to light, measuring the brightness, determining the target PWM value, etc.).
S12: controlling the LWD lamp to be lightened according to the test PWM numerical value, and obtaining the current brightness of the LED lamp;
The main objective of this step is to control the LED lamp lighting according to the previously acquired test PWM (pulse width modulation) value and then acquire the current brightness of the LED lamp. Specifically, when the test PWM value is sent to the driving circuit of the LED lamp, the driving circuit generates a corresponding driving current according to the PWM value. This drive current will flow through the LED lamp causing it to emit light. At this time, the brightness of the LED lamp depends on the magnitude of this driving current, i.e., the duty ratio of the PWM signal. Then, a brightness measuring device (such as a photometer or a brightness meter or a camera) is required to measure the current brightness of the LED lamp. The brightness measuring device can sense the intensity of the light emitted by the LED lamp and convert the intensity of the light into a readable numerical value. This value represents the actual brightness of the LED lamp under the current PWM numerical control.
The driving circuit is shown in FIG. 2, and the LDO provides 5V voltage for lighting the LED lamp D1. Q1 is NPN triode, and the base passes through a current-limiting resistor R1 and MCU (can be singlechip lamp microprocessor's PWM interface connection, still external pull-down resistance R2 simultaneously, guarantees NPN triode base and defaults to low level, avoids the voltage fluctuation of base, under the condition that just does not switch on, the LED lamp is in the state of extinguishing. The collector is connected with the LED lamp D1, and the emitter is grounded through an R3. The MCU outputs high levels (namely PWM signals) with different frequencies through the PWM control pin, and controls the NPN triode to be turned on and off, so that the brightness of different LEDs is adjusted.
Through the steps, the current brightness of the LED lamp can be obtained according to the test PWM value, and necessary data support is provided for the subsequent calibration step.
S13: determining standard test brightness corresponding to the test PWM value according to the standard corresponding relation and the test PWM value;
In this step, the test PWM value is substituted into the functional relation between the PWM value obtained in the above step and the LED lamp brightness, to obtain the standard test brightness corresponding to the PWM value. This standard test luminance represents the luminance value that the LED lamp should output under ideal conditions. Through the steps, S13 can determine the standard test brightness corresponding to the PWM value according to the standard corresponding relation between the PWM value and the brightness of the LED lamp and the current test PWM value. This standard test brightness will be used to compare with the brightness of the current LED lamp to determine the target PWM value, thereby achieving calibration of the LED lamp.
S14: determining a target PWM value according to the standard test brightness and the current brightness, and writing the target PWM value into a register;
In this step, the standard test luminance is compared with the current luminance, thereby determining a target PWM value. If the current brightness is smaller than the standard test brightness, the output brightness of the LED lamp is insufficient, and the PWM value is required to be increased to improve the brightness of the LED lamp. Otherwise, if the current brightness is greater than the standard test brightness, the brightness of the output of the LED lamp is too high, and the PWM value needs to be reduced to reduce the brightness of the LED lamp.
Further, the target PWM value is written into a register. The register is a hardware device that stores data, is accessible to the processor, and after power down, the target PWM value can be read again from the register. The writing in of the register can enable the processor to control the LED lamp to be lightened with the target PWM value, so that the calibration of the LED lamp is realized.
S15: and controlling the LED lamp to be lightened according to the target PWM numerical value in the register to realize standard test brightness.
In the LED lamp calibration method, the target PWM value is set so that the brightness output from the LED lamp reaches the standard test brightness. Once the target PWM value is written into the register, the processor controls the lighting of the LED lamp according to the value in the register. The processor controls the brightness of the LED lamp by adjusting the duty cycle of the PWM signal.
In summary, the method for calibrating the LED lamp provided by the application comprises the following steps: obtaining a standard corresponding relation between the PWM value and the brightness of the LED lamp and testing the PWM value; controlling the LWD lamp to be lightened according to the test PWM numerical value and obtaining the current brightness; determining standard test brightness according to the standard corresponding relation and the test PWM value; determining a target PWM value according to the standard test brightness and the current brightness, and writing the target PWM value into a register; and controlling the LED lamp to be lightened according to the target PWM numerical value in the register to realize standard test brightness. Therefore, the corresponding relation between the standard test brightness and the PWM value is considered in the calibration process, the target PWM value is determined according to the standard test brightness and the current brightness, the PWM value is written into the register, and the LED lamp is controlled to be lightened according to the standard test brightness, so that the LED lamp can achieve consistent illumination effect in different products, and the overall consumption experience of a user is improved.
Based on the above embodiments:
In one embodiment, determining the target PWM value based on the standard test luminance and the current luminance comprises:
Calculating a difference between the standard test luminance and the current luminance;
And determining a target PWM value according to the difference value, the standard corresponding relation and the test PWM value.
This embodiment is mainly a process of determining a target PWM value. In this process, first, the difference between the standard test luminance and the current luminance is calculated in order to determine the deviation of the current luminance of the LED lamp from the standard test luminance. This difference may reflect the degree of difference between the current brightness and the desired brightness of the LED lamp. Then, a target PWM value is determined based on the difference, the standard correspondence, and the test PWM value. The aim of this process is to calculate a suitable target PWM value according to the current brightness deviation of the LED lamp and the predetermined standard correspondence, so that the brightness of the LED lamp can reach the standard test brightness.
The key of the process is to accurately calculate the difference between the current brightness of the LED lamp and the standard test brightness, and adjust the target PWM value according to the difference so as to realize the calibration of the brightness of the LED lamp. By the method, consistency of brightness of the LED lamp in different products can be guaranteed, and accordingly overall consumption experience of a user is improved.
In one embodiment, after determining the target PWM value from the standard test brightness and the current brightness, the LED lamp calibration method further comprises:
Controlling the LED lamp to be lightened according to a target PWM value, and obtaining the current target brightness of the LED lamp;
judging whether the current target brightness is the same as the standard test brightness or not;
If so, the step of writing the target PWM value into the register is entered.
The link of the LED lamp calibration method is further refined and verified, so that the accuracy of the target PWM value is ensured. Specifically, after the target PWM value is determined (by step S14), in order to verify whether this value can accurately bring the LED lamp to the standard test brightness, first, the LED lamp is controlled to light up according to the determined target PWM value (this is typically achieved by a processor in the device). Then, the current brightness of the LED lamp under the target PWM numerical control, namely the current target brightness, is obtained. This current target luminance is then compared to the standard test luminance to determine if they are the same. The term "identical" here does not necessarily mean that the two values are exactly equal (since there may be measurement errors and fluctuations in the LED lamp itself), but rather that they are within an acceptable error range.
If the current target brightness is the same as the standard test brightness (or within an acceptable error range), then the target PWM value is indicated to be accurate, which can be written into a register and used in a subsequent control process to control the brightness of the LED lamp. If the current target brightness is different from the standard test brightness, then the calibration process may need to be re-performed or the target PWM value may be adjusted as the case may be until a satisfactory brightness is achieved.
The purpose of this verification step is to ensure the accuracy and reliability of the calibration of the LED lamp. By verifying after actually lighting the LED lamp and measuring its brightness, it is possible to more surely correct the target PWM value and to reduce inaccurate calibration due to errors or deviations. This is of great importance for improving the quality of the product and the user experience.
In one embodiment, after determining that the current target luminance and the standard test luminance are the same, the method further comprises:
determining a calibration corresponding relation of the LED lamp according to the target PWM value, the current target brightness and the standard corresponding relation;
when the LED lamp is controlled, an expected PWM value is determined according to the expected brightness and the calibration corresponding relation, and the LED lamp is controlled to be lighted according to the expected PWM value.
In this embodiment, after determining that the current target brightness is the same as the standard test brightness, the calibration correspondence is further determined and the LED lamp is controlled according to the desired brightness. Specifically, due to the brightness deviation, in order to facilitate the control of the LED lamp later, the calibration correspondence of the LED lamp is also determined during the calibration process, in order to ensure that the LED lamp can respond correctly at various brightness levels. By calibrating the correspondence, an appropriate PWM value can be selected according to the desired brightness level. This step is to calculate an appropriate desired PWM value based on the calibration of the LED lamp and the desired brightness of the user. With this PWM value, the LED lamp can be precisely controlled to achieve a brightness level desired by the user.
Once the desired PWM value is determined, this value is applied to the LED lamp to control the lighting of the LED lamp. The LED lamp will be lit according to the desired PWM value, which is derived from the previous calibration process, ensuring that the LED lamp can emit light at the brightness level desired by the user.
In general, the present embodiment controls the lighting of the LED lamp by determining the calibration correspondence and according to the brightness level desired by the user. These steps can ensure that the LED lamp can emit light at the correct brightness level under different conditions, providing a better user experience.
In one embodiment, the apparatus further comprises a control device and an acquisition device, one end of the control device is connected with the processor, and the other end of the control device is connected with the acquisition device; after the LWD lamp is controlled to be lighted according to the test PWM value, the LED lamp calibration method further comprises the following steps:
And sending a lighting signal to the control device, and triggering the control device to control the acquisition device to acquire the current brightness of the LED lamp according to the lighting signal.
This embodiment describes one specific implementation of the device architecture and how these device components can be used to obtain the current brightness of the LED lamp in the LED lamp calibration method. The device not only comprises a processor and an LED lamp, but also is added with a control device and a collection device. The two newly added devices are respectively responsible for controlling the LED lamp and collecting the brightness. The main function of the control device is to receive the instructions of the processor and control the lighting and brightness adjustment of the LED lamp according to the instructions, and the control device can be a microcontroller, a logic circuit or other devices capable of receiving and processing the instructions. The acquisition device is responsible for measuring the current brightness of the LED lamp. This is usually done by means of a light-sensitive sensor or other device capable of sensing the light intensity, the acquisition means sending the measured luminance data to the control means.
In step S12, the processor first generates a lighting signal according to the test PWM value. This signal is sent by the control device for triggering the ignition of the LED lamp. When the LED lamp is lightened, the acquisition device starts to work, and the current brightness of the LED lamp is measured. This process is automatic and is performed under the control of the control means. The acquisition device sends the measured luminance data back to the control device, which in turn communicates this data to the processor. After the processor receives the luminance data, it compares it with the standard test luminance, and then performs the subsequent processing according to the standard calibration procedure (steps S13 to S15).
The benefit of this design is that it makes the LED lamp lighting and brightness measurement process more automated and accurate. By means of the special control device and the acquisition device, the LED lamp can be ensured to be lightened and measured under constant conditions, and therefore errors caused by environmental factors or human operation errors are reduced. In addition, the design also enables the calibration process to be more flexible, because the control device and the acquisition device can be configured and replaced according to the needs so as to adapt to different application scenes and requirements.
In one embodiment, as shown in fig. 3, the collecting device comprises a cylinder push rod, an optical fiber cable and a shooting device, wherein the cylinder push rod is connected with the optical fiber cable, and the control end of the cylinder push rod is connected with the output end of the control device;
the triggering control device controls the acquisition device to acquire the current brightness of the LED lamp according to the lighting signal, and the triggering control device comprises:
The triggering control device controls the cylinder push rod to move the optical fiber cable to a preset position according to the lighting signal, so that the shooting device obtains the current brightness of the LED lamp through the optical fiber cable; the preset position meets the requirement that the shooting device, the optical fiber cable and the LED lamp are on the same extension line.
The embodiment describes in detail the specific construction of the acquisition device and how it is triggered by the control device to acquire the current brightness of the LED lamp. The acquisition device consists of a cylinder push rod, an optical fiber cable and a shooting device. These components work together to ensure that the brightness of the LED lamp can be accurately and effectively measured.
Among them, the cylinder pushrod is a mechanical device that can be extended and contracted, and is usually driven by air pressure or hydraulic pressure. Here, a cylinder push rod is used to control the position of the fiber optic cable. The fiber optic cable is used to transmit the light signal, and in the context of LED lamp calibration, the fiber optic cable is used to transmit the light emitted by the LED lamp to the camera. The photographing device (such as a camera or a photoelectric sensor) receives light emitted from the LED lamp through the optical fiber cable and converts the light into measurable brightness data.
When the control device receives the lighting signal of the processor, it triggers a series of actions to acquire the current brightness of the LED lamp. The control device firstly sends an instruction to the control end of the air cylinder push rod to enable the air cylinder push rod to move to a preset position. The preset position is determined in advance, so that the shooting device, the optical fiber cable and the LED lamp can be arranged on the same extension line. With the movement of the cylinder push rod, the optical fiber cable can correspondingly move to a preset position. In this position, the light from the LED lamp can be transmitted unimpeded through the fiber optic cable to the camera. When the optical fiber cable is positioned at the preset position, the shooting device can receive the light emitted by the LED lamp through the optical fiber cable and convert the light into brightness data. This luminance data is then sent to the control means and finally to the processor.
According to the embodiment, through accurate control of the cylinder push rod and the optical fiber cable, the shooting device can be ensured to accurately capture the brightness of the LED lamp. Because the position of the optical fiber cable can be adjusted according to the requirement by the cylinder push rod, the acquisition device can adapt to LED lamps in different positions and directions. The whole process is automatic, and the efficiency and the accuracy of the calibration process can be greatly improved.
In one embodiment, before obtaining the test PWM value, further comprising:
the LED lamp is lightened according to the random PWM value, the outline of the LED lamp is positioned, and the acquisition range is determined;
dividing the acquisition range into a plurality of acquisition blocks, determining the uniformity of the LED lamp according to the brightness of at least two acquisition blocks, and feeding back the uniformity to the display interface.
The embodiment is mainly used for evaluating uniformity of the LED lamp (the LED lamp may be unevenly emitted due to cheapness of the installation position of the light guide column, etc.), so that a user can decide whether to replace the LED lamp according to the evaluation result. Specifically, knowing the uniformity of an LED lamp is an important step prior to calibration of the LED lamp. The uniformity reflects the uniformity of the light emitted by the LED lamps in spatial distribution, and for illumination applications, good uniformity can ensure uniform light distribution in the illuminated area, avoiding local excessive brightness or excessive darkness.
First, the LED lamp is lighted according to a random PWM value, and the outline of the LED lamp is recognized through image processing or sensor technology, which can be achieved by recognizing the boundary of light emitted from the LED lamp. Once the profile of the LED lamp is determined, a collection range can be defined from the profile, which generally covers the entire LED lamp light emitting area. The determined acquisition range is divided into a number of small acquisition blocks. These collection blocks may be regular (e.g., grid-like) or irregular, but it is often necessary to ensure that each collection block is of a moderate size that reflects the brightness characteristics of the LED lamp in that area. For each acquisition block, its luminance value is acquired. This may be achieved by a light sensitive sensor, camera or other optical measurement device. The uniformity of the LED lamp can be calculated according to the brightness values (such as the brightest acquisition block and the darkest acquisition block) of at least two acquisition blocks. Uniformity may be generally expressed by a mathematical expression such as standard deviation or coefficient of variation of brightness values of all the acquisition blocks. The calculated uniformity is fed back to a display interface (such as a display screen of a computer) so that a user can intuitively see the uniformity of the LED lamp. The user can judge whether the uniformity of the LED lamp meets the requirement according to the feedback information on the display interface. If uniformity is poor, the user may choose to replace the LED lamp to ensure illumination.
In summary, the uniformity of the LED lamp is evaluated, so that the light distribution in the illumination area can be ensured to be uniform, and the illumination quality is improved. The LED lamp with poor uniformity can be timely found and replaced, and customer complaints and extra maintenance cost caused by poor illumination effect can be avoided. The good lighting effect can improve the comfort and satisfaction of the user.
As shown in fig. 4, in the apparatus, a camera shoots an image of an LED lamp through an optical fiber cable, and the generated data is used for brightness and uniformity calculation. The cylinder module is connected with an optical fiber cable through a cylinder push rod, the cylinder push rod moves to drive the optical fiber cable to move, two types of optical fiber cables are arranged at the positions, one type of optical fiber cable is moved to be close to a product LED lamp when a camera shoots, and the optical fiber cable is located at the same extension line with the camera and the LED lamp. The other is that the camera is moved away from the LED lamp of the product when photographing is completed. And the control device is used for controlling the camera to shoot and the cylinder to move. The processor (which can be a computer or a singlechip lamp) is connected with the control device, provides power and drives the LED lamp, and provides a platform for the instruction control terminal. And the instruction control terminal is connected with the LED lamp through the test line and the processor, and sends corresponding instructions to control the LED lamp to complete corresponding actions.
The specific calibration flow is shown in fig. 5, the LED lamp is lighted by using random PWM values, the camera shoots the outline of the periphery of the LED lamp, the acquisition range of the outline is circled, and the outline is equally divided into a plurality of blocks, so as to calculate the uniformity of the LED lamp. Setting a maximum PWM value to enable the brightness of the LED lamp to be highest, shooting the outline of the periphery of the LED lamp by the camera again, sending a PWM value calibration instruction, judging whether the brightness of the LED lamp is the same as the standard maximum brightness, if so, recording the current PWM value, writing the calibration value into a register, and if all LED lamp calibration tests are completed, and if so, ending. If not, otherwise, sending a PWM numerical calibration command, and recalibrating.
In order to solve the technical problem, the application also provides an LED lamp calibration device, which comprises:
A memory for storing a computer program;
and the processor is used for realizing the steps of the LED lamp calibration method when executing the computer program.
For the description of the LED lamp calibration device, please refer to the above embodiment, and the description of the present application is omitted herein.
In order to solve the technical problem, the application also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the steps of the LED lamp calibration method are realized when the computer program is executed by a processor.
For the description of the computer-readable storage medium, refer to the above embodiments, and the disclosure is not repeated here.
In order to solve the technical problem, the application also provides equipment, which comprises the LED lamp calibration device and an LED lamp, wherein the LED lamp is connected with the LED lamp calibration device.
For the description of the device, refer to the above embodiment, and the present application is not described herein.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. An LED lamp calibration method, applied to a processor included in a device, the device further including an LED lamp, the LED lamp calibration method comprising:
Obtaining a standard corresponding relation between a PWM value and the brightness of the LED lamp, and obtaining a test PWM value;
controlling an LWD lamp to be lightened according to the test PWM numerical value, and obtaining the current brightness of the LED lamp;
Determining standard test brightness corresponding to the test PWM value according to the standard corresponding relation and the test PWM value;
Determining a target PWM value according to the standard test brightness and the current brightness, and writing the target PWM value into a register;
and controlling the LED lamp to be lightened according to the target PWM numerical value in the register and the standard test brightness.
2. The LED lamp calibration method of claim 1, wherein determining a target PWM value from the standard test brightness and the current brightness comprises:
Calculating a difference between the standard test luminance and the current luminance;
and determining a target PWM value according to the difference value, the standard corresponding relation and the test PWM value.
3. The LED lamp calibration method of claim 1, wherein after determining a target PWM value from the standard test brightness and the current brightness, the LED lamp calibration method further comprises:
Controlling the LED lamp to be lightened by the target PWM value, and obtaining the current target brightness of the LED lamp;
judging whether the current target brightness is the same as the standard test brightness or not;
if so, the step of writing the target PWM value into a register is entered.
4. The LED lamp calibration method of claim 3, further comprising, after determining that the current target brightness and the standard test brightness are the same:
Determining a calibration corresponding relation of the LED lamp according to the target PWM value, the current target brightness and the standard corresponding relation;
and when the LED lamp is controlled, determining an expected PWM value according to the expected brightness and the calibration corresponding relation, and controlling the LED lamp to be lightened according to the expected PWM value.
5. The LED lamp calibration method of claim 1, wherein the apparatus further comprises a control device and a collection device, one end of the control device being connected to the processor, the other end of the control device being connected to the collection device; after the LWD lamp is controlled to be lighted according to the test PWM value, the LED lamp calibration method further includes:
and sending a lighting signal to the control device, and triggering the control device to control the acquisition device to acquire the current brightness of the LED lamp according to the lighting signal.
6. The method for calibrating an LED lamp according to claim 5, wherein the acquisition device comprises a cylinder push rod, an optical fiber cable and a shooting device, the cylinder push rod is connected with the optical fiber cable, and a control end of the cylinder push rod is connected with an output end of the control device;
Triggering the control device to control the acquisition device to acquire the current brightness of the LED lamp according to the lighting signal, comprising the following steps:
Triggering the control device to control the cylinder push rod to move the optical fiber cable to a preset position according to the lighting signal, so that the shooting device obtains the current brightness of the LED lamp through the optical fiber cable; the preset position meets the condition that the shooting device, the optical fiber cable and the LED lamp are on the same extension line.
7. The LED lamp calibration method of any one of claims 1-6, further comprising, prior to obtaining the test PWM value:
The LED lamp is lightened according to the random PWM value, the outline of the LED lamp is positioned, and the acquisition range is determined;
Dividing the acquisition range into a plurality of acquisition blocks, determining the uniformity of the LED lamp according to the brightness of at least two acquisition blocks, and feeding back the uniformity to a display interface.
8. An LED lamp calibration device, comprising:
A memory for storing a computer program;
A processor for implementing the steps of the LED lamp calibration method of any one of claims 1-7 when executing a computer program.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the LED lamp calibration method of any of claims 1-7.
10. An apparatus comprising the LED lamp calibration device of claim 8, further comprising an LED lamp connected to the LED lamp calibration device.
CN202410703199.8A 2024-05-31 LED lamp calibration method, device, storage medium and equipment Pending CN118301813A (en)

Publications (1)

Publication Number Publication Date
CN118301813A true CN118301813A (en) 2024-07-05

Family

ID=

Similar Documents

Publication Publication Date Title
CN104111579A (en) Method for adjusting contrast of projector in real time and projector
US20060220571A1 (en) Light emitting diode current control method and system
JP5334602B2 (en) Color calibration system
US20170061898A1 (en) Display apparatus and irradiation light controlling method
CN103929598A (en) Automatic exposure method and camera module detection method
CN113329550A (en) Method and device for controlling illumination of real-time environment of lamp, terminal equipment and medium
US20150195888A1 (en) Method of controlling a lighting device
CN110736949B (en) Digital multimeter calibration method and related device
CN112995630B (en) Flexible brightness adjusting method for fixed-focus projector, projector and readable storage medium
US6239554B1 (en) Open-loop light intensity calibration systems and methods
CN118301813A (en) LED lamp calibration method, device, storage medium and equipment
CN1182436C (en) Measuring software for brightness and exposure of light-emitting diode
CN218895851U (en) Sensor test circuit
JP5549873B2 (en) LED lighting power supply
CN115457905A (en) Adaptive dimming compensation method, device and system of LED display screen and electronic equipment
US4498140A (en) Automated self calibrating exposure computer
JP2005347645A (en) Light volume control unit and light irradiation equipment
JP4737527B2 (en) Infrared touch switch
KR102209455B1 (en) Apparatus for calibrating color temperature and color in lighting system
US8807764B2 (en) Method and apparatus for turning off a projector
JP2000187215A (en) Lifetime-detecting method for backlight and lifetime detecting device using the same
CN113340568B (en) Optical mouse testing method and device, electronic equipment and storage medium
JP7164117B2 (en) lighting equipment
JP2000111315A (en) Photoelectric sensor and its production method
US20230269351A1 (en) Display device and control method for display device

Legal Events

Date Code Title Description
PB01 Publication