Method and device for determining photoelectric characteristic parameters of a sensor arrangement, and debugging system
By correcting the photoelectric characteristic parameters of the sensing device, the problem of insufficient detection accuracy of the sensing device was solved, and high-precision detection under different ambient light conditions was achieved.
Patent Information
- Application Number
- CN202211277051.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-18
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2042-10-18
AI Technical Summary
Existing sensing devices have poor detection accuracy when detecting ambient light, making it impossible to obtain accurate detection data and affecting product performance.
By acquiring the offset output data of each sampling level when the light source illumination is zero, the first output data and the second output data are corrected to determine the photoelectric characteristic parameters of the sensing device, including full brightness normalization processing and the division of the predetermined brightness acquisition range.
This improves the accuracy of the detection data of the sensing device at different sampling levels, ensures the accuracy and consistency of the output data, and enhances product performance.
Smart Images

Figure CN115876318B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of display, and particularly relates to a method and device for determining photoelectric characteristic parameters of a sensing device and a debugging system. BACKGROUND
[0002] With the wide application of AI technology in electronic display devices, the application of customers in specific environments is customized according to the environment of users when the application is used, so as to increase the experience of users in different environments. Therefore, it is necessary to monitor the environment of users when using the electronic display device at any time.
[0003] Generally, the ambient light sensor (sensor or sensing device) requires to detect the brightness of ambient light from 0 LX (luminance unit) to 100000 LX, that is, from darkness to sunlight irradiation. When detected by one gear (which can be called detection gear or sampling gear), high brightness can be accurately detected, but due to the limitation of minimum recognition, low brightness cannot be accurately detected. Therefore, multiple gears are generally used for detection, such as using 4 gears to detect. Gear 1 can be used to detect ambient light of 0-100 LX, gear 2 can be used to detect ambient light of 100-1000 LX, gear 3 can be used to detect ambient light of 1000-10000 LX, and gear 4 can be used to detect ambient light of 10000-100000 LX. When the ambient light is detected by a certain gear, the data accuracy of the output of the gear is the highest, so that accurate detection can be ensured under any brightness. Due to the uncertainty of ambient light, the detection equipment does not know the current ambient light located in which gear, so it is necessary to test in the order of gears until the most accurate data is obtained. However, the detection accuracy of the existing detection equipment is poor, and the accurate detection data of the sensing device cannot be obtained, which further affects the product performance of the sensing device. SUMMARY
[0004] Therefore, the present disclosure provides a method and device for determining photoelectric characteristic parameters of a sensing device and a debugging system, to solve the problem that the detection accuracy of the existing detection equipment is poor, and the accurate detection data of the sensing device cannot be obtained, which further affects the product performance of the sensing device. The present disclosure can automatically adjust the electrical characteristic parameters of the sensing device and improve the debugging efficiency.
[0005] In one aspect, the disclosure provides a method for determining photoelectric characteristic parameters of a sensing device, comprising: obtaining offset output data corresponding to each sampling level when the light source has zero light intensity; obtaining first output data and second output data corresponding to each sampling level according to a predetermined light intensity collection range corresponding to the sampling level, wherein the first output data and the second output data are output data corresponding to the light source emitting light according to two boundary values of the predetermined light intensity collection range; performing correction processing on the first output data and the second output data according to the offset output data to obtain first correction data and second correction data; and determining photoelectric characteristic parameters of the sensing device according to the predetermined light intensity collection range, the first correction data and the second correction data.
[0006] In some embodiments, before the determining of the photoelectric characteristic parameters of the sensing device according to the predetermined light intensity collection range, the first correction data and the second correction data, the method further comprises: performing full-brightness normalization processing on the first correction data and the second correction data according to a predetermined amplification factor, wherein the predetermined amplification factor is determined according to a sampling electric quantity value corresponding to a current sampling level and a minimum sampling electric quantity value among sampling electric quantity values corresponding to all sampling levels.
[0007] In some embodiments, before the obtaining of the first output data and the second output data corresponding to each sampling level according to a predetermined light intensity collection range corresponding to the sampling level, the method further comprises: splitting a full-brightness range into a plurality of predetermined light intensity collection ranges according to a predetermined division rule, wherein one predetermined light intensity collection range corresponds to one sampling level, and adjacent predetermined light intensity collection ranges have overlapping light intensity values; and sending a first control signal to the light source according to the predetermined light intensity collection range to control the light source to output a first light signal and a second light signal according to two boundary values of the predetermined light intensity collection range.
[0008] In some embodiments, the adjacent predetermined light intensity collection ranges have overlapping light intensity values, comprising: a maximum boundary value in a first predetermined light intensity collection range is the same as a minimum boundary value in a second predetermined light intensity collection range, wherein the first predetermined light intensity collection range and the second predetermined light intensity collection range are adjacent predetermined light intensity collection ranges.
[0009] In another aspect, the present disclosure provides a device for determining photoelectric characteristic parameters of a sensor device, comprising: a first obtaining module configured to obtain offset output data corresponding to each sampling level when the light source has zero illumination intensity; a second obtaining module configured to obtain first output data and second output data corresponding to each sampling level according to a predetermined brightness collection range corresponding to the sampling level, wherein the first output data and the second output data are output data corresponding to the light source emitting light at two boundary values of the predetermined brightness collection range; a correction module configured to correct the first output data and the second output data according to the offset output data to obtain first corrected data and second corrected data; and a determining module configured to determine photoelectric characteristic parameters of the sensor device according to the predetermined brightness collection range, the first corrected data and the second corrected data.
[0010] In some embodiments, the device further comprises a normalization module configured to perform full-brightness normalization on the first corrected data and the second corrected data according to a predetermined amplification factor, wherein the predetermined amplification factor is determined according to a sampling electric quantity value corresponding to a current sampling level and a minimum sampling electric quantity value among sampling electric quantity values corresponding to all sampling levels.
[0011] In some embodiments, the device further comprises a division module configured to divide a full-brightness range into a plurality of predetermined brightness collection ranges according to a predetermined division rule, wherein one predetermined brightness collection range corresponds to one sampling level, and adjacent predetermined brightness collection ranges have overlapping brightness values; and a sending module configured to send a first control signal to the light source according to the predetermined brightness collection range to control the light source to output a first light signal and a second light signal according to two boundary values of the predetermined brightness collection range.
[0012] In some embodiments, the adjacent predetermined brightness collection ranges have overlapping brightness values in the division module, comprising: a maximum boundary value in a first predetermined brightness collection range is the same as a minimum boundary value in a second predetermined brightness collection range, wherein the first predetermined brightness collection range and the second predetermined brightness collection range are adjacent predetermined brightness collection ranges.
[0013] In another aspect, the present disclosure provides a sensor device debugging system, comprising: a sensor device and a light source arranged in a dark box, and a sensor detection device connected to the sensor device and the light source; the sensor detection device at least comprises the device for determining photoelectric characteristic parameters of a sensor device according to any one of the embodiments of the present disclosure.
[0014] In some embodiments, the sensing device detection apparatus further comprises: a current-voltage conversion circuit and an analog-digital conversion circuit; an output terminal of the sensing device is connected to a first input terminal of the current-voltage conversion circuit, and an output terminal of the current-voltage conversion circuit is connected to a first input terminal of the analog-digital conversion circuit; the current-voltage conversion circuit at least comprises: a plurality of sampling resistors with different resistance values, the plurality of sampling resistors are connected in parallel with each other, and each sampling resistor is used for detecting a current value corresponding to a different predetermined brightness sampling range, and adjacent predetermined brightness ranges have overlapping brightness values.
[0015] The embodiment of the present disclosure considers that the initial parameters of the existing sensing device have deviations in the detection data at each sampling gear, and the detection data at each sampling gear needs to be corrected so that the data detected at each sampling gear can be accurately output. The embodiment of the present disclosure obtains offset output data corresponding to each sampling gear when the illumination brightness is zero, corrects the first output data and the second output data corresponding to each sampling gear through the offset output data, and determines the photoelectric characteristic parameters of the sensing device according to the corrected data, thereby ensuring that the photoelectric characteristic parameters of the sensing device are corrected in the detection data at each sampling gear, and improving the accuracy of the output data. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor.
[0017] Figure 1 A structural schematic diagram of a sensing device debugging system provided for the first embodiment of the present disclosure;
[0018] Figure 2 A flowchart of a method for determining photoelectric characteristic parameters of a sensing device provided for the first embodiment of the present disclosure;
[0019] Figure 3 A structural schematic diagram of a sensing device photoelectric characteristic parameter determination apparatus provided for the second embodiment of the present disclosure;
[0020] Figure 4 A structural schematic diagram of a sensing device debugging system provided for the third embodiment of the present disclosure;
[0021] Figure 5 A circuit connection schematic diagram of a current-voltage conversion circuit and an analog-digital conversion circuit provided for the third embodiment of the present disclosure;
[0022] Figure 6A schematic diagram of the corresponding relationship between the data output by each collection gear and the illumination provided by the third embodiment of the present disclosure;
[0023] Figure 7 A schematic diagram of the photoelectric characteristics of a diode provided by the third embodiment of the present disclosure;
[0024] Figure 8 A schematic diagram of the brightness division of a sensor provided by the third embodiment of the present disclosure;
[0025] Figure 9 A schematic diagram of data normalization to the full brightness range provided by the third embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions of the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by those of ordinary skill in the art without any creative effort fall within the scope of protection of the present disclosure.
[0027] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood as the general meaning understood by those of ordinary skill in the art to which the present disclosure belongs. The terms “first”, “second” and the like used in the present disclosure do not represent any order, number or importance, but are only used to distinguish different components. The terms “include” or “contain” and the like mean that the elements or objects before the terms cover the elements or objects listed after the terms and their equivalents, and do not exclude other elements or objects. The terms “connect” or “connected” and the like are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The terms “up”, “down”, “left”, “right” and the like are only used to represent relative positional relationships, and when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0028] In order to keep the following description of the embodiments of the present disclosure clear and concise, the present disclosure omits the detailed description of known functions and known components.
[0029] Since the existing ambient light sensor (sensing device) has initial parameters that cause the data of each sampling gear test to deviate, the following embodiments of the present disclosure automatically test the initial parameters of each gear to obtain the most accurate data output and improve the debugging efficiency.
[0030] The first embodiment of the present disclosure provides a method for determining the photoelectric characteristic parameters of a sensing device, which is applied to a sensing device as shown in Figure 1The illustrated sensor device debugging system includes a sensor device 1 and a light source 2 arranged in a dark box, and a sensor device detection apparatus 3 connected with the sensor device 1 and the light source 2. The method for determining the photoelectric characteristic parameters of the sensor device is specifically applied to the sensor device detection apparatus 3, and the flow is as shown in Figure 2 As shown, the method includes steps S201 to S204:
[0031] S201, obtaining offset output data corresponding to each sampling gear when the light source light illumination is zero.
[0032] The offset output data of each sampling gear is the output offset (i.e., an error value) of the entire detection apparatus to the initial state of the sensor device under different sampling gears. When the output offset exists, it affects the collection accuracy when the data collected by each sampling gear is normalized to the full brightness range. Therefore, the photoelectric characteristic parameters of the sensor device need to be corrected by using the offset output data.
[0033] In a specific implementation, since the sensor device detection apparatus has multiple sampling gears, the full brightness range is divided into multiple predetermined brightness collection ranges corresponding to the sampling gears according to a predetermined division rule. One predetermined brightness collection range corresponds to one sampling gear, and adjacent predetermined brightness sampling ranges have overlapping brightness values. Then, the sensor device detection apparatus sends a first control signal to the light source according to the predetermined brightness collection range to control the light source to output a first light signal and a second light signal according to the two boundary values of the predetermined brightness collection range.
[0034] For example, the sensor device detection apparatus has three sampling gears (which can be sampling capacitors or sampling resistors) with linear sampling capability in the full brightness range. The number of predetermined brightness collection ranges is three. In a specific implementation, the full brightness range can be divided according to the three sampling gears. For example, the three predetermined brightness collection ranges are 0LX-1000LX, 1000LX-10000LX, and 10000LX-100000LX, and each sampling range corresponds to one sampling resistor.
[0035] The overlapping brightness values of the adjacent predetermined brightness sampling ranges are usually set to be the same as the maximum boundary value in the first predetermined brightness collection range and the minimum boundary value in the second predetermined brightness collection range. The first predetermined brightness collection range and the second predetermined brightness collection range are adjacent predetermined brightness collection ranges.
[0036] S202, obtaining first output data and second output data corresponding to each sampling gear according to the predetermined brightness collection range corresponding to the sampling gear, wherein the first output data and the second output data are output data corresponding to the light emitted by the light source according to the two boundary values of the predetermined brightness collection range.
[0037] For example, three predetermined brightness acquisition ranges are 0LX-1000LX, 1000LX-10000LX, and 10000LX-100000LX, respectively, the first output data and the second output data corresponding to the first sampling gear are output data obtained under 0LX and 1000LX illuminations, respectively, the first output data and the second output data corresponding to the second sampling gear are output data obtained under 1000LX and 10000LX illuminations, respectively, and the first output data and the second output data corresponding to the third sampling gear are output data obtained under 10000LX and 100000LX illuminations, respectively. Through the above three pairs of first output data and second output data, all initial output data of the sensing device in the corresponding acquisition range in the acquisition system can be obtained, and then the photoelectric characteristic parameters of the sensing device in different acquisition ranges can be determined.
[0038] In S203, the first output data and the second output data are corrected according to the offset output data to obtain first corrected data and second corrected data.
[0039] The embodiment of the present disclosure corrects the first output data and the second output data by using the offset output data, and then corrects the existing photoelectric characteristic parameters of the sensing device by removing the offset data, thereby improving the output data precision.
[0040] In S204, the photoelectric characteristic parameters of the sensing device are determined according to all predetermined brightness acquisition ranges, the first corrected data, and the second corrected data.
[0041] After knowing all predetermined brightness acquisition ranges, the first corrected data, and the second corrected data, the photoelectric characteristic parameters can be determined, and then the linear output curve corresponding to the photoelectric characteristic parameters can be obtained.
[0042] The embodiment of the present disclosure considers that the initial parameters of the existing sensing device have deviations in the detection data of each sampling gear, and the detection data of each sampling gear needs to be corrected so that the data detected by each sampling gear can be accurately output. The embodiment of the present disclosure obtains offset output data corresponding to each sampling gear when the illumination brightness is zero, corrects the first output data and the second output data corresponding to each sampling gear by using the offset output data, and determines the photoelectric characteristic parameters of the sensing device according to the corrected data, thereby ensuring that the photoelectric characteristic parameters of the sensing device are corrected in the detection data of each sampling gear, and improving the precision of the output data.
[0043] Different sampling gears correspond to different output data, in order to facilitate processing, before determining the photoelectric characteristic parameters of the sensing device according to the whole predetermined brightness collection range, the first correction data and the second correction data, the first correction data and the second correction data can also be subjected to full brightness normalization processing according to the predetermined amplification multiple, thereby ensuring the consistency of the output data, wherein the predetermined amplification multiple is determined according to the sampling electric quantity value corresponding to the current sampling gear and the minimum sampling electric quantity value in the sampling electric quantity values corresponding to all sampling gears. The embodiments of the present application take the sampling electric quantity value as the resistance value of the sampling resistor as an example for description, and the person skilled in the art knows that the sampling resistor can be adaptively adjusted to a sampling capacitor, which is also within the protection scope of the embodiments of the present application.
[0044] The second embodiment of the present disclosure provides a kind of determination device of the photoelectric characteristic parameter of sensing device, which is applied to the sensing device debugging system as shown in Figure 1 As shown in the structure diagram, it comprises: Figure 3
[0045] The first acquisition module 10 is used to acquire the offset output data corresponding to each sampling gear when the light source light brightness is zero;The second acquisition module 20 is coupled with the first acquisition module 10, and is used to acquire the first output data and the second output data corresponding to each sampling gear according to the predetermined brightness collection range corresponding to the sampling gear, wherein the first output data and the second output data are the output data corresponding to the light emission of the light source according to the two boundary values of the predetermined brightness collection range;The correction module 30 is coupled with the second acquisition module 20, and is used to correct the first output data and the second output data according to the offset output data, to obtain the first correction data and the second correction data;The determination module 40 is coupled with the correction module 30, and is used to determine the photoelectric characteristic parameters of the sensing device according to the whole predetermined brightness collection range, the first correction data and the second correction data.
[0046] The offset output data of each sampling gear is the output offset (i.e. an error value) of the initial state of the sensing device under different sampling gears of the whole detection equipment, when the output offset exists, the collection accuracy when the collection data of each sampling gear is normalized to the full brightness range is affected, therefore, the photoelectric characteristic parameters of the sensing device need to be corrected by using the offset output data in the embodiments of the present disclosure.
[0047] In a specific implementation, since the sensing device detection apparatus has multiple sampling positions, the embodiment of the present disclosure further includes: a division module configured to divide the full brightness range into multiple predetermined brightness collection ranges corresponding to the sampling positions according to a predetermined division rule, wherein one predetermined brightness collection range corresponds to one sampling position, and adjacent predetermined brightness collection ranges have overlapping brightness values; and a sending module configured to send a first control signal to the light source according to the predetermined brightness collection range, so as to control the light source to output a first light signal and a second light signal according to the two boundary values of the predetermined brightness collection range.
[0048] For example, if the sensing device detection apparatus has three sampling positions with linear sampling capability in the full brightness range (which can be a sampling resistor or a sampling capacitor, and a sampling resistor is used in the embodiment), the number of predetermined brightness collection ranges is three. In a specific implementation, the full brightness range can be divided according to the three sampling positions. For example, the three predetermined brightness collection ranges are 0LX-1000LX, 1000LX-10000LX, and 10000LX-100000LX, and each sampling range corresponds to one sampling resistor.
[0049] In general, the overlapping brightness values of the adjacent predetermined brightness collection ranges are set to be the same as the maximum boundary value in the first predetermined brightness collection range and the minimum boundary value in the second predetermined brightness collection range, and the first predetermined brightness collection range and the second predetermined brightness collection range are adjacent predetermined brightness collection ranges.
[0050] For example, if the three predetermined brightness collection ranges are 0LX-1000LX, 1000LX-10000LX, and 10000LX-100000LX, when the second acquisition module works, the first output data and the second output data corresponding to the first sampling position are output data obtained under 0LX and 1000LX illuminations, the first output data and the second output data corresponding to the second sampling position are output data obtained under 1000LX and 10000LX illuminations, and the first output data and the second output data corresponding to the third sampling position are output data obtained under 10000LX and 100000LX illuminations. Through the above three pairs of first output data and second output data, all initial output data of the sensing device in the collection system corresponding to the collection range can be obtained, and then the photoelectric characteristic parameters of the sensing device in different collection ranges can be determined.
[0051] The embodiment of the present disclosure corrects the first output data and the second output data by using offset output data, and then corrects the existing photoelectric characteristic parameters of the sensing device by removing the offset data, thereby improving the output data precision.
[0052] After knowing the whole predetermined brightness acquisition range, the first correction data and the second correction data, the photoelectric characteristic parameter can be determined, and then the linear output curve corresponding to the photoelectric characteristic parameter is obtained.
[0053] The embodiment of the present disclosure considers that the initial parameters of the existing sensing device have deviations in the detection data at each sampling gear, and the detection data at each sampling gear needs to be corrected so that the data detected at each sampling gear can be accurately output. The embodiment of the present disclosure obtains offset output data corresponding to each sampling gear when the illumination brightness is zero, corrects the first output data and the second output data corresponding to each sampling gear through the offset output data, and determines the photoelectric characteristic parameter of the sensing device according to the corrected data, thereby ensuring that the photoelectric characteristic parameter of the sensing device is corrected in the detection data at each sampling gear, and improving the accuracy of the output data.
[0054] Different sampling gears correspond to different output data. In order to facilitate processing, the above-mentioned device can further include a normalization module coupled with the correction module 30 and the determination module 40, configured to perform full brightness normalization processing on the first correction data and the second correction data according to a predetermined amplification multiple, wherein the predetermined amplification multiple is determined according to the minimum sampling electric quantity value in the sampling electric quantity values corresponding to the current sampling gear and the sampling electric quantity values corresponding to all sampling gears. Through the above-mentioned normalization processing, the consistency of the output data is further ensured. The embodiments of the present application are all described by taking the sampling electric resistance value as an example. Those skilled in the art know that the sampling electric resistance can be adaptively adjusted to a sampling electric capacity, which is also within the protection scope of the embodiments of the present application.
[0055] The third embodiment of the present disclosure provides a sensing device debugging system, and a structure diagram thereof is shown in Figure 4 , which comprises:
[0056] The sensing device 1 and the light source 2 are arranged in a dark box, and the sensing detection equipment 3 is connected with the sensing device 1 and the light source 2; the sensing detection equipment 3 at least comprises the sensing device photoelectric characteristic parameter determination device 31 in the above-mentioned embodiments of the present disclosure. The sensing device photoelectric characteristic parameter determination device 31 is not described here again.
[0057] As shown in Figure 4 , the above-mentioned sensing device detection equipment further comprises a current-voltage conversion circuit 32 and an analog-digital conversion circuit 33; the output end of the sensing device is connected with the first input end of the current-voltage conversion circuit, and the output end of the current-voltage conversion circuit is connected with the first input end of the analog-digital conversion circuit; as shown in Figure 5 , it is a circuit connection diagram of the current-voltage conversion circuit and the analog-digital conversion circuit (ADC), and the current-voltage conversion circuit at least comprises a plurality of sampling resistors (R Gain1 , R Gain2 , RGain3 , R Gain4 ) and an amplifier (OP); a plurality of sampling resistors are connected in series with control switches and then connected in parallel with each other, a corresponding sampling resistor is selected by the control switch, each sampling resistor is used for detecting a current value corresponding to a different predetermined brightness sampling range, and adjacent predetermined brightness ranges have overlapping brightness values; one end of the sampling resistor is connected to a first input end of the amplifier, the other end of the sampling resistor is connected to an output end of the amplifier, and a second input end of the amplifier is used for receiving a reference voltage. Figure 5 Only as an example, those skilled in the art can make adaptive changes to the circuit according to actual conditions, which is not limited here.
[0058] The above scheme will be exemplarily described below in combination with specific examples.
[0059] Figure 5 As shown is an ambient light sensing device (i.e., an ambient light sensor D ALS ) leakage current acquisition device that uses four resistors R Gain1 , R Gain2 , R Gain3 , and R Gain4 to amplify the light leakage current, and the output voltage after amplification is V AFE = V REFAFE -I ALS ×R Gain .
[0060] Therefore, the larger the sampling resistor R Gain , the greater the change in the AFE output (i.e., the output of OP) voltage, i.e., the more sensitive it is, but since it is limited by the operating voltage of the operational amplifier OP, for example, the power supply of OP is 3.3V, then the output of AFE is only about 0-3.3V, so different resistors need to be used to sample different current segments of the ambient light sensor. At the same time, it is necessary to consider that the output voltage range of the operational amplifier corresponding to the current segment is within the voltage input range of the ADC.
[0061] Figure 6The output data of the same sensor under different Gain (Gain1=10x Gain2=100x Gain3=1000x Gain4, respectively) and the corresponding relationship with illumination can be seen that Gain1 has linearity in the brightness range of 10-100 LX, and the sensitivity is relatively large, and in 0-10 LX, the change is not obvious, the sensitivity is small, and the sensitivity is smaller when exceeding 100 LX; similarly, the test brightness range of Gain2 is 100-1000 LX, and the sensitivity is relatively large, and in 0-100 LX, the change is not obvious, that is, the sensitivity is small, and the sensitivity is small when exceeding 1000 LX; the linear brightness range of Gain3 is 1000-10000 LX, and the sensitivity is very small in 0-1000 LX and greater than 10000 LX; the linear brightness range of Gain4 is greater than 10000 LX, and the sensitivity is very small in 0-10000 LX; therefore, we select the Gain with high sensitivity as the current collection gear under the current environment, and in the actual collection process, since it is uncertain that the current environmental brightness belongs to which brightness range, it is necessary to collect once under different gears under the current environmental brightness, determine the collection gear according to the collected data, and normalize the output data value according to the gear amplification multiple. For example, four gears are used for sampling, and the sampling resistance values are R1 of 40M ohms, R2 of 4M ohms, R3 of 400K ohms, and R3 of 40K ohms.
[0062] (I) Introduction of the sensor device debugging system.
[0063] The original sensor device debugging system is included in the embodiments of the present disclosure, including a sensing unit (i.e., a sensor device), a current-voltage conversion unit (i.e., a current-voltage conversion circuit), an analog-digital conversion unit (i.e., an analog-digital conversion circuit), a detection algorithm, and an output unit (i.e., part of a sensor device photoelectric characteristic parameter determination device).
[0064] 1) The sensing unit includes a photodiode D ALS , and the voltage bias Vsense of the sensor provides a set Vsense to place the photodiode D ALS under a reverse bias voltage VR, and the leakage current of the photodiode changes with the brightness of the ambient light, that is, the photodiode output has the leakage current of the ambient light brightness, Figure 7 which is a schematic diagram of the photoelectric characteristics of the diode.
[0065] 2) The current-voltage conversion unit is to convert the leakage current of the photodiode into a voltage, which generally adopts a resistance or a capacitor integration method. If the leakage current range of the photodiode under the specified environmental illumination is relatively wide, and a certain collection accuracy is required at low brightness, a multi-amplification method is generally used, such as resistance sampling, large resistance sampling small current, and small resistance sampling large current.Figure 5 That is, the current of the photodiode is sampled by four resistors, and the current of the entire photodiode is divided into four ranges, each of which is sampled by R Gain1 , R Gain2 , R Gain3 , and R Gain4 .
[0066] The output voltage V AFEOUT and the current I DALS of the photodiode have the following relationship: V AFEOUT = V REFAFE - I DALS × R Gaini . Where R Gaini is the sampling resistance value R Gain1 , R Gain2 , R Gain3 , and R Gain4 under different amplification factors.
[0067] 3) Analog-to-digital conversion unit, i.e., the current-voltage conversion unit outputs a voltage containing ambient light brightness information, which is converted into a digital signal under the amplification factor through digital-to-analog conversion.
[0068] 4) Detection algorithm and output unit, which outputs data meeting the characteristics after processing the detection data of the ambient light under different gains.
[0069] In addition to the functional modules of the above-mentioned sensor, the embodiments of the present disclosure add an automatic debugging device, which includes
[0070] 5) A darkroom and an adjustable light source. The darkroom is a dark, enclosed space that can prevent the influence of ambient light on sensor acquisition during debugging, ensuring that the initialization test value represents the characteristics of the sensor itself. The adjustable light source adjusts the brightness of the darkroom to a set value through a first control signal. The brightness adjustment value is controlled by the automatic debugging unit (part of the determination device of the optoelectronic characteristic parameters of the sensing device).
[0071] 6) The automatic debugging unit (part of the determination device of the optoelectronic characteristic parameters of the sensing device) is used to measure the output data of the ambient light sensor under different brightness environments and under different amplification factors, and save the data as initial data in the storage unit.
[0072] 7) The storage unit (part of the determination device of the optoelectronic characteristic parameters of the sensing device) is a certain amount of memory in the detection system, used to save the data signals sensed by the sensor under different amplification factors and corresponding brightness.
[0073] The initial data value of the storage unit (i.e. offset output data) and the amplification of the detection system (i.e. predetermined amplification) and the corresponding brightness correspond; the number of required storage units is 3n-1, where n is the number of Gain.
[0074] 8) The detection algorithm and the output unit can also save the initial data value of the sensor according to the storage unit, generate data adjustment algorithm under different amplification of ambient light, and ensure that the output data of the sensor meets the linear requirement.
[0075] (ii) Sensor Gain type brightness division.
[0076] According to the requirements of the sensor on the collection accuracy specification, the sampling resistance and the voltage range of the current-voltage converter, the brightness of the sensor is divided into n intervals as shown in Figure 8 .
[0077] As can be seen from the figure, it is obvious that 0 Gain1max = L Gain2Min < L Gain2max = L Gain3Min <… < L Gainn-2max = L Gainn-1Min < L Gainn-1max = L GainnMin < L Gainnmax .
[0078] (iii) Automatic detection of the initialization data of the ambient light sensor.
[0079] Put the ambient light sensor into a dark room to ensure that the influence of ambient light is eliminated during the automatic detection process of the initialization data of the ambient light sensor. The brightness adjustment of the adjustable light source is controlled by the automatic debugging unit, which can be a PWM signal, an analog signal or a digital signal, but the control unit needs to be adjusted into an analog signal, that is, the final output to the light source is a different voltage amplitude signal, which prevents the adjustable light source from being controlled by the duty cycle. The following sets the brightness value L Gain1max , L Gain2Min , L Gain2max , L Gain3Min , … L Gainn-2max , L Gainn-1Min , L Gainn-1max , L GainnMin , L Gainnmax of the light source output, that is, the control signal output by the debugging unit makes the light source emit light signals of corresponding brightness.
[0080] 1) First, according to the final specification requirements of the sensor detection system, the full-range brightness of the sensor is divided into n zones according to the test Gain, so that the test accuracy and sensitivity of the final detection system meet the requirements, as shown in Figure 8 .
[0081] That is, each test Gain, responsible for a certain brightness range detection, to ensure that this brightness range, to obtain the maximum sensitivity. At the same time to ensure the continuity of the brightness detection, brightness settings to meet L GainiMax = L Gaini+1Min , i is a number from 1 to n-1.
[0082] 2) First set 0LX brightness, under the Gain1-Gainn detection data, saved in the corresponding register R 0Gain1 , R 0Gain2 …R 0Gainn-1 , R 0Gainn , this data represents the absence of ambient light, the sensor detection system itself offset (offset).
[0083] 3) detection Gain1 corresponding to the brightness (0LX-L Gain1Max ) under the detection of the Gain1 in the minimum brightness 0LX and maximum brightness L Gain1Max illumination, the sensor detects the data value, saved in the corresponding register R 0Gain1 and R Gain1Max storage unit.
[0084] 4) detection Gain2 corresponding to the brightness (L Gain2Min -L Gain2Max ) under the detection of the Gain2 minimum brightness L Gain2Min and maximum brightness L Gain2Max illumination, the sensor detects the data value, and saved in the corresponding register R Gain2Min and R Gain2Max storage unit. The minimum brightness L Gain2Min corresponding to the Gain2 and the maximum brightness L Gain1Max of the previous Gain1 set the same brightness, that is, L Gain1Max = L Gain2Min .
[0085] 5) Similarly, can be tested Gain3-Gainn corresponding to the brightness range, detection of the Gain corresponding to the minimum brightness and maximum brightness illumination, the sensor detects the data value, and saved in the corresponding register in the storage unit.
[0086] 6) complete Gainn corresponding to the brightness initialization data test, and saved in the corresponding storage unit, that is, complete the automatic initialization data test.
[0087] (Four) calculation algorithm.
[0088] According to the above measurement of different range Gain1-Gainn in the corresponding minimum brightness and maximum brightness illumination corresponding output data value Dataout The corresponding relationship is summarized as follows, where the amplification factors gain1, gain2-gainn are the amplification adjustment factors after the corresponding range planning to the full range of brightness, the value and the sampling resistance R Gain1 -R Gainn Corresponding, when the amplification factor gainn of the set Gainn range is 1, then the amplification factor gain1 corresponding to the range Gain1 = R Gain1 / R Gainn , and so on for the values of gain2-gainn-1.
[0089] When the ambient light is 0 LX, the output data of the tested ambient light sensor is not 0, and is R 0Gain1 , R 0Gain2 , …, R 0Gainn , respectively, under different Gains. First, the 0 drift of the system needs to be eliminated, that is, the output data is subtracted from the data value of 0 LX under this Gain, as shown in Figure 9
[0090] When the ambient light brightness is in the range of 0 LX-L Gain1Max , the detected data of Gain1 should be between R 0Gain1 -R Gain1Max , and the detected data of Gain1 is normalized to the full brightness range, with the following conversion formula:
[0091]
[0092] When the ambient light brightness is in the range of L Gain2Min -L Gain2Max , the detected data of Gain2 should be between R Gain2Min -R Gain2Max , and the detected data of Gain2 is normalized to the full brightness range, with the following conversion formula
[0093]
[0094] Similarly, when the ambient light brightness is in the range of L GainiMin -L GainiMax , the detected data of Gaini should be between R GainiMin -R GainiMax , and the detected data of Gaini is normalized to the full brightness range, with the following conversion formula:
[0095]
[0096] The embodiments of the present disclosure can realize automatic testing according to the characteristics of the sensor, save in the storage unit, and fit the data values of multiple amplification factors to the data values conforming to the linear characteristics in the full brightness range through an algorithm, thereby improving the product performance.
[0097] Furthermore, although example embodiments have been described herein, the scope of the disclosure includes any and all embodiments having equivalent elements, modifications, omissions, combinations (e.g., of the various embodiments interchangeably), adaptations and / or alterations based on the present disclosure. The elements of the claims are to be construed in the broadest reasonable manner consistent with the language and the context. Construing the claims in the broadest reasonable manner does not thereby imply that claims should contain any element beyond the elements expressly recited in the claims. After reading this description, skilled artisans will appreciate that other embodiments can be utilized and aspects changed without departing from the scope of the present disclosure. Accordingly, all statements made herein are intended to be construed as examples and intended to be non-exclusive for describing the various embodiments and not limiting of the scope of the disclosure. Thus, each individual embodiment described and every combination and permutation of the individual embodiments disclosed herein is fully contemplated as being encompassed by this disclosure.
[0098] The above description is intended to be illustrative, and not restrictive. For example, the above-described examples (or one or more aspects thereof) can be used in combination with each other. Other embodiments will be apparent to those of ordinary skill in the art upon reviewing the above description. Further, in the detailed description, various features can be grouped together to streamline the disclosure. This should not be interpreted as an intention that the claimed subject matter requires more features than are expressly recited in each claim. Rather, inventive subject matter can lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the detailed description, by way of examples or embodiments, where each claim can stand on its own as a separate embodiment, and the subject matter recited in the claims can be combined in any and all permutations and combinations. The scope of the disclosure should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
[0099] The above detailed description has shown, described, and pointed out the various embodiments of the present disclosure. However, it will be understood that various modifications and variations can be made to the present disclosure, by those skilled in the art, in view of the foregoing description, without departing from the spirit of the present disclosure. Such modifications and variations are intended to fall within the scope of the claims.
Claims
1. A method for determining photoelectric characteristic parameters of a sensing device, characterized in that, include: Acquire the offset output data corresponding to each sampling level when the light source illumination is zero; According to the predetermined brightness acquisition range corresponding to the sampling level, the first output data and the second output data corresponding to each sampling level are obtained. The first output data and the second output data are the output data corresponding to the light source emitting light according to the two boundary values of the predetermined brightness acquisition range. The first output data and the second output data are corrected based on the offset output data to obtain the first corrected data and the second corrected data. The photoelectric characteristic parameters of the sensing device are determined based on the entire predetermined brightness acquisition range, the first correction data, and the second correction data.
2. The method as described in claim 1, characterized in that, Before determining the photoelectric characteristic parameters of the sensing device based on the entire predetermined brightness acquisition range, the first correction data, and the second correction data, the method further includes: The first correction data and the second correction data are subjected to full brightness normalization processing according to a predetermined amplification factor, wherein the predetermined amplification factor is determined based on the minimum sampling power value among the sampling power values corresponding to the current sampling level and the sampling power values corresponding to all sampling levels.
3. The method as described in claim 1 or 2, characterized in that, Before acquiring the first and second output data corresponding to each sampling level according to the predetermined brightness acquisition range corresponding to the sampling level, the method further includes: According to a predetermined division rule, the full brightness range is divided into multiple predetermined brightness sampling ranges, wherein each predetermined brightness sampling range corresponds to a sampling level, and adjacent predetermined brightness sampling ranges have overlapping brightness values. A first control signal is sent to the light source according to the predetermined brightness acquisition range, so as to control the light source to output a first light signal and a second light signal according to the two boundary values of the predetermined brightness acquisition range.
4. The method as described in claim 3, characterized in that, The adjacent predetermined brightness sampling ranges have overlapping brightness values, including: The maximum boundary value in the first predetermined brightness acquisition range is the same as the minimum boundary value in the second predetermined brightness acquisition range, wherein the first predetermined brightness acquisition range and the second predetermined brightness acquisition range are adjacent predetermined brightness acquisition ranges.
5. A device for determining photoelectric characteristic parameters of a sensing device, characterized in that, include: The first acquisition module is used to acquire the offset output data corresponding to each sampling level when the light source illumination is zero. The second acquisition module is used to acquire first output data and second output data corresponding to each sampling level according to the predetermined brightness acquisition range corresponding to the sampling level, wherein the first output data and second output data are the output data corresponding to the light source emitting light according to the two boundary values of the predetermined brightness acquisition range. The correction module is used to correct the first output data and the second output data according to the offset output data to obtain the first corrected data and the second corrected data. The determination module is used to determine the photoelectric characteristic parameters of the sensing device based on the entire predetermined brightness acquisition range, the first correction data, and the second correction data.
6. The apparatus as claimed in claim 5, characterized in that, Also includes: The normalization module is used to perform full brightness normalization processing on the first correction data and the second correction data according to a predetermined amplification factor, wherein the predetermined amplification factor is determined based on the minimum sampling power value among the sampling power values corresponding to the current sampling level and the sampling power values corresponding to all sampling levels.
7. The apparatus as described in claim 5 or 6, characterized in that, Also includes: The segmentation module is used to divide the full brightness range into multiple predetermined brightness sampling ranges according to a predetermined segmentation rule, wherein one predetermined brightness sampling range corresponds to one sampling level, and adjacent predetermined brightness sampling ranges have overlapping brightness values. The transmitting module is used to send a first control signal to the light source according to the predetermined brightness acquisition range, so as to control the light source to output a first light signal and a second light signal according to the two boundary values of the predetermined brightness acquisition range.
8. The apparatus as claimed in claim 7, characterized in that, The overlapping brightness values in adjacent predetermined brightness sampling ranges within the segmentation module include: The maximum boundary value in the first predetermined brightness acquisition range is the same as the minimum boundary value in the second predetermined brightness acquisition range, wherein the first predetermined brightness acquisition range and the second predetermined brightness acquisition range are adjacent predetermined brightness acquisition ranges.
9. A sensor debugging system, characterized in that, include: A sensing device and a light source are installed in a dark box, and a sensing and detection device is connected to the sensing device and the light source. The sensing device detection equipment includes at least one of the following: a device for determining the photoelectric characteristic parameters of the sensing device as described in any one of claims 5 to 8.
10. The sensor debugging system as described in claim 9, characterized in that, The sensing device detection equipment also includes: Current-to-voltage conversion circuits and analog-to-digital conversion circuits; The output terminal of the sensing device is connected to the first input terminal of the current-to-voltage conversion circuit, and the output terminal of the current-to-voltage conversion circuit is connected to the first input terminal of the analog-to-digital conversion circuit. The current-to-voltage conversion circuit includes at least: multiple sampling resistors with different resistance values, the multiple sampling resistors being connected in parallel, each sampling resistor being used to detect the current value corresponding to different predetermined brightness sampling ranges, and adjacent predetermined brightness ranges having overlapping brightness values.
Citation Information
Patent Citations
Apparatus for detecting and adjusting illuminating value
CN101351073A
Method and device for calibrating ambient light sensor
CN108267223A