LED parallel coaxial light source regulation and control method and system for contact angle tester
By automatically adjusting the thread and light intensity in the contact angle tester, combined with the LED light source and convex lens, the accurate control of the LED parallel and coaxial light source is achieved, solving the problem of difficulty in achieving parallel light and uniformity of light sources in the existing technology, and significantly improving the Improve measurement accuracy and imaging quality.
Patent Information
- Application Number
- CN202411409855.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-01-24
AI Technical Summary
The LED parallel coaxial light source control method of existing contact angle testers is difficult to achieve effective generation and uniformity of parallel light, resulting in insufficient imaging clarity and edge sharpness, affecting measurement accuracy.
By automatic adjustment of threads and light, combined with LED light sources and convex lenses, the accurate and reliable LED parallel coaxial light source regulation is achieved. Specific steps include setting LED light sources and convex lenses. Use the cover film and thread to adjust the distance between the light source and the lens, and automatically control the rotation thread to determine the brightness difference between the light source and the accurate control of the brightness of the light source through the levelless adjustment.
The accurate adjustment of the focus distance and brightness of the lighting distance, significantly enhanced the sharpness and edge sharpness of the imaging, ensured the high precision of measurement, and provided a low energy consumption, long life and environmental lighting solution.
Smart Images

Figure CN119353636A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of contact angle measurement and control, and more specifically, to a method and system for controlling a LED parallel coaxial light source for a contact angle tester. Background Art
[0002] In the field of contact angle measurement and control, it is very meaningful to study a new type of LED parallel coaxial light source control. If it is possible to generate parallel light without attenuation and achieve precise adjustment of the focal distance and brightness, it will not only significantly improve the clarity of the image and the sharpness of the edges, ensuring high-precision measurements, but also provide a more efficient, economical and user-friendly lighting solution for contact angle measurement equipment due to its low energy consumption, long life and environmental protection characteristics.
[0003] Prior to the technology of the present invention, the existing contact angle tester LED parallel coaxial light source control method mainly relied on traditional panel light sources or simple LED light source arrangements to provide lighting. The light of these methods is scattered, and it is difficult to achieve the desired parallel light effect, resulting in insufficient imaging clarity and edge sharpness, affecting the measurement accuracy. The main difficulty of the technology lies in how to effectively generate parallel light and maintain the uniformity and stability of the light, while also ensuring the adjustability and adaptability of the light source system to adapt to different measurement environments. The key points include the design of the light source, the precise control of the optical path, and the adjustment mechanism of the light source brightness and focal length. These factors together determine the accuracy and efficiency of the contact angle measurement. Summary of the invention
[0004] In view of the above problems, the present invention proposes a method and system for controlling LED parallel coaxial light sources for a contact angle tester. By automatically adjusting the thread and light intensity, combining the LED light source with a convex lens, accurate and reliable LED parallel coaxial light source control is achieved, thereby achieving the purpose of accurate contact angle testing.
[0005] According to a first aspect of an embodiment of the present invention, a method for controlling an LED parallel coaxial light source for a contact angle tester is provided.
[0006] In one or more embodiments, preferably, the method for controlling the LED parallel coaxial light source for a contact angle tester includes:
[0007] An LED light source is provided, and a convex lens is provided to generate parallel light;
[0008] A shielding film is set between the LED light source and the front preset position, and the distance between the light source and the lens is adjusted through the thread;
[0009] Set up the automatic control process of rotating threads to ensure the detailed display of each block;
[0010] According to the rotating thread automatic control process and determine the corresponding light source brightness difference, the light source brightness difference is fed back through communication;
[0011] Set the preset value of light source brightness according to the light source brightness error;
[0012] The LED light source is steplessly adjusted according to the preset brightness value of the light source.
[0013] In one or more embodiments, preferably, the LED light source is provided and a convex lens is provided to generate parallel light, specifically including:
[0014] Set the LED light source to LED lamp beads;
[0015] Irradiate the light of the LED lamp beads onto the convex lens, and use the refraction principle of light in the convex lens to achieve the effect of parallel light;
[0016] Collect images of illuminated samples.
[0017] In one or more embodiments, preferably, the step of setting a shielding film at a preset position in front of the LED light source and adjusting the distance between the light source and the lens by means of a thread specifically includes:
[0018] Two types of shielding membranes are provided, one is a horizontal shielding membrane and the other is a vertical shielding membrane;
[0019] Setting the LED light source to a preset brightness, wherein the preset brightness is 50% of the maximum adjustable brightness;
[0020] Place a horizontal blocking film to form a projection on the object to be contacted, and adjust the distance between the light source and the lens through the thread to form a horizontal blocking adjustment video;
[0021] Place a longitudinal blocking film to form a projection on the object to be contacted, and adjust the distance between the light source and the lens through the thread to form a longitudinal blocking adjustment video;
[0022] The horizontal occlusion adjustment video and the vertical occlusion adjustment video are stored in the adjustment process memory.
[0023] In one or more embodiments, preferably, the automatic control process of setting the rotating thread is used to ensure the refined display of each block, and specifically includes:
[0024] Divide the area to be tested into 9 blocks of equal size;
[0025] The horizontal occlusion adjustment video uses the first calculation formula to calculate the horizontal astigmatism of each block at each distance between the light source and the lens;
[0026] The longitudinal occlusion adjustment video uses the second calculation formula to calculate the longitudinal astigmatism of each block at each distance between the light source and the lens;
[0027] According to the lateral astigmatism of the distance between each light source and the lens in each block, the optimal lateral required position is extracted using the third calculation formula;
[0028] According to the longitudinal astigmatism of the distance between each light source and the lens in each block, the fourth calculation formula is used to extract the optimal longitudinal required position;
[0029] Calculate the optimal thread requirement position for each block using the fifth calculation formula;
[0030] Set the automatic control process of the rotating thread to a continuous adjustment process that stops for 3 seconds at the optimal thread requirement position in each block;
[0031] The first calculation formula is:
[0032] HS=MH÷MM
[0033] Among them, HS is the lateral astigmatism, MH is the total black area under lateral occlusion, and MM is the total area of the blocks;
[0034] The second calculation formula is:
[0035] ZS=MZ÷MM
[0036] Among them, ZS is the longitudinal astigmatism, MZ is the total black area under longitudinal occlusion, and MM is the total area of the blocks;
[0037] The third calculation formula is:
[0038] ZYH=argmin1(HSi)
[0039] Among them, argmin1() is a function for extracting the optimal lateral required position with the minimum lateral astigmatism corresponding to the current block, HSi is the lateral astigmatism of the i-th block, and ZYH is the optimal lateral required position;
[0040] The fourth calculation formula is:
[0041] ZYZ=argmin2(ZSi)
[0042] Among them, argmin2() is a function for extracting the optimal longitudinal required position with the minimum longitudinal astigmatism corresponding to the current block, ZSi is the longitudinal astigmatism of the i-th block, and ZYZ is the optimal longitudinal required position;
[0043] The fifth calculation formula is:
[0044] WZ=0.5×(ZYH+ZYZ)
[0045] Among them, WZ is the optimal thread requirement position.
[0046] In one or more embodiments, preferably, the automatically controlling the process according to the rotating thread and determining the corresponding light source brightness difference, and feeding back the light source brightness difference through communication, specifically includes:
[0047] According to the automatic control process of the rotating thread, an image of the communication feedback is obtained to form a light source brightness difference, wherein the light source brightness difference is a real-time value of a preset light brightness and an image of the communication feedback collected in real time;
[0048] Connect the computer via the RS232 serial port and upload the brightness difference of the light source corresponding to the automatic control process of the rotating thread to the computer.
[0049] In one or more embodiments, preferably, setting the preset value of the light source brightness according to the light source brightness error specifically includes:
[0050] Get the automatic control process of the rotating thread of each block;
[0051] The automatic control process of the rotating thread is changed from small to large, and a sixth calculation formula is determined according to the light source brightness difference to calculate the preset value of the light source brightness;
[0052] The sixth calculation formula is:
[0053] YS=CZ1+CZ0
[0054] Among them, YS is the preset value of light source brightness, CZ1 is the light source brightness difference, and CZ0 is the preset initial brightness value.
[0055] In one or more embodiments, preferably, the stepless adjustment of the LED light source according to the preset brightness value of the light source specifically includes:
[0056] The LED light source and the thread are adjusted simultaneously according to the preset value of the light source brightness combined with the automatic control process of the rotating thread;
[0057] Acquire the collected values of the LED parallel coaxial light source corresponding to the contact angle tester in real time.
[0058] According to a second aspect of an embodiment of the present invention, a LED parallel coaxial light source control system for a contact angle tester is provided.
[0059] In one or more embodiments, preferably, the LED parallel coaxial light source control system for the contact angle tester includes:
[0060] The LED light source and convex lens combination setting module is used to set the LED light source and set the matching convex lens to generate parallel light;
[0061] Implement a diaphragm setting module, which is used to set a shielding diaphragm at a preset position in front of the LED light source, and adjust the distance between the light source and the lens through a thread;
[0062] Image correction module, used to set the automatic control process of rotating threads to ensure the refined display of each block;
[0063] A digital feedback module is used to automatically control the process according to the rotating thread and determine the corresponding light source brightness difference, and feedback the light source brightness difference through communication;
[0064] A light source brightness setting module, used to set a preset light source brightness value according to a light source brightness error;
[0065] The stepless adjustment module is used to perform stepless adjustment on the LED light source according to the preset value of the light source brightness.
[0066] According to a third aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method as described in any one of the first aspect of the embodiment of the present invention is implemented.
[0067] According to a fourth aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement any one of the methods described in the first aspect of the embodiment of the present invention.
[0068] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0069] In the solution of the present invention, by setting a shielding film and adjusting the position of the convex lens, shielding is achieved by setting the optimal thread requirement position, so that the 9 areas can be clearly displayed horizontally and vertically.
[0070] In the scheme of the present invention, the optical principle of using an LED light source to emit incident light through a convex lens to form a group of parallel light rays without attenuation is used to realize product detection, and an adjustable focal distance and adjustable light source brightness are realized. The light source emits light uniformly from one point to the surrounding space without changing the light direction, and the light source brightness is digitally controlled or software controlled.
[0071] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.
[0072] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0074] Figure 1 The present invention is a flow chart of a method for controlling a LED parallel coaxial light source for a contact angle tester according to an embodiment of the present invention.
[0075] Figure 2 The present invention is a flow chart of setting an LED light source in a method for controlling an LED parallel coaxial light source for a contact angle tester according to an embodiment of the present invention, and setting a matching convex lens to generate parallel light.
[0076] Figure 3 The present invention is a flow chart of a method for controlling an LED parallel coaxial light source for a contact angle tester, in which a shielding film is arranged at a preset position in front of an LED light source, and the distance between the light source and the lens is adjusted by a thread.
[0077] Figure 4 It is a flowchart of an automatic control process of setting a rotating thread in a method for controlling an LED parallel coaxial light source of a contact angle tester according to an embodiment of the present invention, which is used to ensure a refined display of each block.
[0078] Figure 5 The present invention is a flow chart of an LED parallel coaxial light source control method for a contact angle tester according to an embodiment of the present invention, which automatically controls a process according to a rotating thread and determines a corresponding light source brightness difference, and feeds back the light source brightness difference through communication.
[0079] Figure 6 The present invention is a flow chart of setting a preset value of light source brightness according to a light source brightness error in a method for controlling an LED parallel coaxial light source for a contact angle tester according to an embodiment of the present invention.
[0080] Figure 7 The present invention is a flow chart of a method for controlling an LED parallel coaxial light source for a contact angle tester, for performing stepless adjustment of an LED light source according to a preset value of the light source brightness.
[0081] Figure 8 The present invention is a structural diagram of an LED parallel coaxial light source control system for a contact angle tester according to an embodiment of the present invention.
[0082] Fig. 9It is a structural diagram of an electronic device in one embodiment of the present invention. DETAILED DESCRIPTION
[0083] In some of the processes described in the specification and claims of the present invention and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this article or executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish different operations, and the serial numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this article are used to distinguish different messages, devices, modules, etc., do not represent the order of precedence, and do not limit the "first" and "second" to be different types.
[0084] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0085] In the field of contact angle measurement and control, it is very meaningful to study a new type of LED parallel coaxial light source control. If it is possible to generate parallel light without attenuation and achieve precise adjustment of the focal distance and brightness, it will not only significantly improve the clarity of the image and the sharpness of the edges, ensuring high-precision measurements, but also provide a more efficient, economical and user-friendly lighting solution for contact angle measurement equipment due to its low energy consumption, long life and environmental protection characteristics.
[0086] Prior to the technology of the present invention, the existing contact angle tester LED parallel coaxial light source control method mainly relied on traditional panel light sources or simple LED light source arrangements to provide lighting. The light of these methods is scattered, and it is difficult to achieve the desired parallel light effect, resulting in insufficient imaging clarity and edge sharpness, affecting the measurement accuracy. The main difficulty of the technology lies in how to effectively generate parallel light and maintain the uniformity and stability of the light, while also ensuring the adjustability and adaptability of the light source system to adapt to different measurement environments. The key points include the design of the light source, the precise control of the optical path, and the adjustment mechanism of the light source brightness and focal length. These factors together determine the accuracy and efficiency of the contact angle measurement.
[0087] In an embodiment of the present invention, a method and system for controlling LED parallel coaxial light sources for a contact angle tester are provided. The solution automatically adjusts the thread and light intensity, combines the LED light source with a convex lens to achieve accurate and reliable LED parallel coaxial light source control, and achieves the purpose of accurate contact angle testing.
[0088] According to a first aspect of an embodiment of the present invention, a method for controlling an LED parallel coaxial light source for a contact angle tester is provided.
[0089] Figure 1 The present invention is a flow chart of a method for controlling a LED parallel coaxial light source for a contact angle tester according to an embodiment of the present invention.
[0090] In one or more embodiments, preferably, the method for controlling the LED parallel coaxial light source for a contact angle tester includes:
[0091] S101, setting an LED light source and a matching convex lens to generate parallel light;
[0092] S102, setting a shielding film at a preset position in front of the LED light source, and adjusting the distance between the light source and the lens through a thread;
[0093] S103, setting a rotating thread automatic control process to ensure a refined display of each block;
[0094] S104, automatically controlling the rotating thread and determining the corresponding light source brightness difference, and feeding back the light source brightness difference through communication;
[0095] S105, setting a preset value of light source brightness according to the light source brightness error;
[0096] S106, steplessly adjusting the LED light source according to the preset brightness value of the light source.
[0097] In an embodiment of the present invention, the positive and negative power lines of the light source can be connected to the controller, and the controller adjusts different voltages (0-24V) through buttons to output to the light source, so that the brightness of the light source changes from dark to bright, and the specific value of the current brightness (0-255) is displayed on the controller; in addition, it is also connected to a computer through an RS232 serial port, and the application software sends an instruction to set the brightness of the light source to the controller through the communication protocol of the controller, and the controller sets and adjusts the brightness of the light source.
[0098] Figure 2 The present invention is a flow chart of setting an LED light source in a method for controlling an LED parallel coaxial light source for a contact angle tester according to an embodiment of the present invention, and setting a matching convex lens to generate parallel light.
[0099] like Figure 2As shown, in one or more embodiments, preferably, the LED light source is provided, and a convex lens is provided to generate parallel light, specifically including:
[0100] S201, setting the LED light source to LED lamp beads;
[0101] S202, irradiating the light of the LED lamp bead onto the convex lens, and utilizing the principle of light refraction in the convex lens to achieve the effect of parallel light;
[0102] S203, collecting images of the illuminated sample.
[0103] In the embodiment of the present invention, the LED light source incident light is emitted through a convex lens, the focal distance is adjustable, and the brightness of the light source is adjustable. The light direction is from a point to the surrounding space uniformly to form a group of light rays without attenuation running in parallel, and the brightness of the light source is digitally controlled or software controlled; the characteristics of parallel projection: the projection of parallel straight lines is parallel or coincident straight line light. The line segment parallel to the projection surface has a projection that is parallel and equal to this line segment. The projection of a figure parallel to the projection surface is congruent to this figure; the projection of a plane figure inclined to the projection surface is still a plane figure. On the same straight line or parallel straight line, the ratio of the parallel projections of two line segments is equal to the ratio of the two line segments. Parallel projection properties: the orthographic projection of a straight line or line segment that is not perpendicular to the projection surface is still a straight line or line segment; the orthographic projection of a straight line or line segment perpendicular to the projection surface is an image; the orthographic projection of a plane figure perpendicular to the projection surface by the parallel projection method is a part of the straight line or line segment. LED parallel coaxial light sources prevent diffuse reflection to ensure the efficiency of lighting, and imaging measurement data is more accurate.
[0104] Figure 3 The present invention is a flow chart of a method for controlling an LED parallel coaxial light source for a contact angle tester, in which a shielding film is arranged at a preset position in front of an LED light source, and the distance between the light source and the lens is adjusted by a thread.
[0105] like Figure 3 As shown, in one or more embodiments, preferably, a shielding film is provided at a preset position in front of the LED light source, and the distance between the light source and the lens is adjusted by a thread, specifically including:
[0106] S301, setting two types of shielding membranes, one is a horizontal shielding membrane, and the other is a vertical shielding membrane;
[0107] S302, setting the LED light source to a preset brightness, wherein the preset brightness is 50% of the maximum adjustable brightness;
[0108] S303, placing a horizontal shielding film to form a projection on the object to be contacted, and adjusting the distance between the light source and the lens through the thread to form a horizontal shielding adjustment video;
[0109] S304, placing a longitudinal shielding film to form a projection on the object to be contacted, and adjusting the distance between the light source and the lens by means of a thread to form a longitudinal shielding adjustment video;
[0110] S305: Store the horizontal occlusion adjustment video and the vertical occlusion adjustment video in an adjustment process memory.
[0111] In an embodiment of the present invention, two shielding diaphragms in different directions are installed at a preset position in front of the LED light source: horizontal and vertical shielding diaphragms. These diaphragms are used to adjust the light distribution through the light source to achieve different measurement requirements. First, the brightness of the LED light source is set to 50% of the maximum adjustable brightness. At this preset brightness, the horizontal shielding diaphragm is first placed, which blocks the light to form a specific light spot for producing a clear projection on the object to be measured. By rotating the thread mechanism to adjust the distance between the light source and the lens, the change in the projection shape can be observed and the imaging effect can be optimized. This process is recorded to form a horizontal shielding adjustment video. Then, it is replaced with a vertical shielding diaphragm, and the same method is used to adjust the distance between the light source and the lens again through the thread to obtain the optimal imaging effect in the other direction. Similarly, this process is also recorded to generate a vertical shielding adjustment video. Finally, these two videos - horizontal and vertical shielding adjustment videos - are stored in the adjustment process memory. These videos provide important data for subsequent analysis, helping researchers or technicians understand and evaluate the impact of different shielding conditions on the contact angle measurement results, thereby further optimizing the measurement parameter settings. The implementation of this method shows extremely high application value, especially when it is necessary to accurately control light projection and analyze the surface characteristics of the object to be measured. For example, when finely measuring the contact angle of a material with a microstructure, this adjustment method can very accurately control the incident angle and intensity of the light to ensure the accuracy and repeatability of the measurement.
[0112] Figure 4 It is a flowchart of an automatic control process of setting a rotating thread in a method for controlling an LED parallel coaxial light source of a contact angle tester according to an embodiment of the present invention, which is used to ensure a refined display of each block.
[0113] like Figure 4 As shown, in one or more embodiments, preferably, the automatic control process of setting the rotating thread is used to ensure the refined display of each block, specifically including:
[0114] S401, dividing the area to be tested into 9 blocks of the same size;
[0115] S402, lateral occlusion adjustment video recording uses the first calculation formula to calculate the lateral astigmatism of each block at each distance between the light source and the lens;
[0116] S403, longitudinal occlusion adjustment video recording uses the second calculation formula to calculate the longitudinal astigmatism of each block at each distance between the light source and the lens;
[0117] S404, extracting the optimal lateral required position using a third calculation formula according to the lateral astigmatism of the distance between each light source and the lens in each block;
[0118] S405, extracting the optimal longitudinal required position using a fourth calculation formula according to the longitudinal astigmatism of the distance between each light source and the lens in each block;
[0119] S406, calculating the optimal thread requirement position for each block using the fifth calculation formula;
[0120] S407, setting the automatic control process of the rotating thread to a continuous adjustment process of stopping for 3 seconds at the optimal thread requirement position in each block;
[0121] The first calculation formula is:
[0122] HS=MH÷MM
[0123] Among them, HS is the lateral astigmatism, MH is the total black area under lateral occlusion, and MM is the total area of the blocks;
[0124] The second calculation formula is:
[0125] ZS=MZ÷MM
[0126] Among them, ZS is the longitudinal astigmatism, MZ is the total black area under longitudinal occlusion, and MM is the total area of the blocks;
[0127] The third calculation formula is:
[0128] ZYH=argmin1(HSi)
[0129] Among them, argmin1() is a function for extracting the optimal lateral required position with the minimum lateral astigmatism corresponding to the current block, HSi is the lateral astigmatism of the i-th block, and ZYH is the optimal lateral required position;
[0130] The fourth calculation formula is:
[0131] ZYZ=argmin2(ZSi)
[0132] Among them, argmin2() is a function for extracting the optimal longitudinal required position with the minimum longitudinal astigmatism corresponding to the current block, ZSi is the longitudinal astigmatism of the i-th block, and ZYZ is the optimal longitudinal required position;
[0133] The fifth calculation formula is:
[0134] WZ=0.5×(ZYH+ZYZ)
[0135] Among them, WZ is the optimal thread requirement position.
[0136] In an embodiment of the present invention, the automatic control process of the rotating thread is designed to ensure the refined display of each sub-area of the area to be tested. First, the area to be tested is divided into 9 blocks of the same size so that each block can be light adjusted and analyzed separately. For the lateral occlusion adjustment video, the first calculation formula is used to calculate the lateral astigmatism (HS) of each block at each light source and lens distance position. The formula is: HS = MH ÷ MM; wherein MHMH represents the total black area under lateral occlusion, and MM represents the total area of the block. For the longitudinal occlusion adjustment video, the second calculation formula is used to calculate the longitudinal astigmatism (ZS) of each block at each light source and lens distance position. The formula is: ZS = MZ ÷ MM; wherein MZ represents the total black area under longitudinal occlusion. According to the lateral astigmatism of each light source and lens distance position of each block, the optimal lateral requirement position (ZYH) is extracted using the third calculation formula. The formula is: ZYH = argmin1 (HSi); wherein argmin1 () is a function used to extract the optimal lateral required position when the lateral astigmatism corresponding to the current block is the smallest, and HSi is the lateral astigmatism of the i-th block. Similarly, according to the longitudinal astigmatism of each light source and the lens distance position of each block, the fourth calculation formula is used to extract the optimal longitudinal required position (ZYZ). The formula is: ZYZ = argmin2 (ZSi); wherein argmin2 () is a function used to extract the optimal longitudinal required position when the longitudinal astigmatism corresponding to the current block is the smallest, and ZSi is the longitudinal astigmatism of the i-th block. Then, the optimal thread required position (WZ) is calculated for each block using the fifth calculation formula. The formula is: WZ = 0.5 × (ZYH + ZYZ); this means that the optimal thread required position is the average of the optimal lateral required position and the optimal longitudinal required position. Finally, the automatic control process of the rotating thread is set to a continuous adjustment process, and the optimal thread required position of each block is stopped for 3 seconds. This precise control ensures that each block receives optimal lighting conditions, providing the clearest imaging when measuring contact angles.
[0137] Figure 5 The present invention is a flow chart of an LED parallel coaxial light source control method for a contact angle tester according to an embodiment of the present invention, which automatically controls a process according to a rotating thread and determines a corresponding light source brightness difference, and feeds back the light source brightness difference through communication.
[0138] like Figure 5As shown, in one or more embodiments, preferably, the automatic control process according to the rotating thread and determining the corresponding light source brightness difference, and feeding back the light source brightness difference through communication, specifically includes:
[0139] S501, according to the automatic control process of rotating the thread, obtaining the image of the communication feedback, and forming the light source brightness difference, wherein the light source brightness difference is the real-time value of the preset light brightness and the image of the communication feedback collected in real time;
[0140] S502, connecting to a computer via an RS232 serial port, and uploading the light source brightness difference corresponding to the automatic control process of the rotating thread to the computer.
[0141] In an embodiment of the present invention, the realization and optimization of the automatic control process of the rotating thread includes the determination of the brightness difference of the light source and the communication feedback. This process is to ensure that the brightness of the light source can reach the optimal state when the contact angle is measured, thereby improving the accuracy and reliability of the measurement. First, the brightness difference of the light source is calculated based on the image obtained during the automatic control process of the rotating thread. This difference is the difference between the preset light brightness and the brightness value of the image collected in real time. The preset light brightness is the ideal value set according to experience or standards before the experiment, while the brightness value of the image collected in real time is the actual brightness calculated from the actual collected image through image processing technology. The calculation formula of the light source brightness difference can be expressed as: ΔL=L preset-L real time; wherein ΔL is the light source brightness difference, L preset is the preset light brightness, and L real time is the brightness value collected in real time from the image fed back by communication. In order to realize this adjustment and feedback mechanism, the system is connected to the computer via the RS232 serial port. RS232 is a commonly used serial communication interface, which is widely used for data transmission between computers and external devices. In this setting, the RS232 serial port is used as a communication interface to upload the light source brightness difference calculated during the automatic control process of the rotating thread to the computer. In this way, researchers or operators can monitor the brightness difference of the light source in real time through the receiving software on the computer, and make further adjustments and optimizations accordingly. For example, if the real-time brightness is found to be lower than the preset brightness, the current of the LED light source can be appropriately increased to increase the brightness; conversely, if the real-time brightness is higher than the preset brightness, the current can be appropriately reduced.
[0142] Figure 6 The present invention is a flow chart of setting a preset value of light source brightness according to a light source brightness error in a method for controlling an LED parallel coaxial light source for a contact angle tester according to an embodiment of the present invention.
[0143] like Figure 6 As shown, in one or more embodiments, preferably, setting the preset value of the light source brightness according to the light source brightness error specifically includes:
[0144] S601, obtaining the automatic control process of the rotating thread of each block;
[0145] S602, changing the automatic control process of the rotating thread from small to large, and determining a sixth calculation formula to calculate a preset value of the light source brightness according to the light source brightness difference;
[0146] The sixth calculation formula is:
[0147] YS=CZ1+CZ0
[0148] Among them, YS is the preset value of light source brightness, CZ1 is the light source brightness difference, and CZ0 is the preset initial brightness value.
[0149] In an embodiment of the present invention, the setting of the preset value of the brightness of the light source is based on the brightness error of the light source to ensure that the brightness of the light source can reach the optimal state during the contact angle measurement process. This process involves the acquisition and analysis of the automatic control process of the rotating thread and the precise setting of the preset value of the brightness of the light source. First, the system acquires the automatic control process of the rotating thread for each block. This means that for each individual block in the area to be measured, the system will perform an automatic adjustment process of the rotating thread to ensure that the block obtains the best lighting conditions. Subsequently, the automatic control process of the rotating thread will change from small to large, that is, starting from a smaller thread position and gradually increasing to a larger thread position. In this process, the system determines the preset value of the brightness of the light source according to the brightness difference of the light source. The brightness difference of the light source is obtained by comparing the difference between the preset brightness and the brightness value of the image collected in real time. In order to calculate the preset value of the brightness of the light source, the sixth calculation formula is used: YS=CZ1+CZ0; wherein YS represents the preset value of the brightness of the light source, CZ1 is the brightness difference of the light source, and CZ0 is the preset initial value of the brightness. In this formula, CZ1 is the difference calculated based on the actual measurement and the preset brightness, which reflects the gap between the current brightness of the light source and the ideal brightness. CZ0 is an initial setting value, usually based on previous experience or standard settings, which can be regarded as the reference brightness before adjustment. By adding CZ1 and CZ0, a new YS value can be obtained, which is the preset value of the adjusted light source brightness. In this way, the system can dynamically adjust the brightness of the light source according to the actual brightness error, ensuring that the brightness of the light source is always maintained at the optimal state during the entire contact angle measurement process.
[0150] Figure 7 The present invention is a flow chart of a method for controlling an LED parallel coaxial light source for a contact angle tester, for performing stepless adjustment of an LED light source according to a preset value of the light source brightness.
[0151] like Figure 7 As shown, in one or more embodiments, preferably, the stepless adjustment of the LED light source according to the preset brightness value of the light source specifically includes:
[0152] S701, adjusting the LED light source and the thread simultaneously according to the preset value of the light source brightness combined with the automatic control process of the rotating thread;
[0153] S702, acquiring in real time the collected values of the LED parallel coaxial light source corresponding to the contact angle tester.
[0154] In an embodiment of the present invention, based on the setting of the preset value of the brightness of the light source, the stepless adjustment of the LED light source is realized to improve the accuracy and reliability of the contact angle measurement. This process involves the application of the preset value of the brightness of the light source, the combined application of the automatic control process of the rotating thread, and the analysis of real-time data acquisition. First, the system adjusts the brightness of the LED light source according to the preset value of the brightness of the light source (YS) calculated previously. This adjustment is achieved by controlling the driving current of the LED light source, allowing the brightness to be adjusted steplessly, that is, any brightness level from off to full brightness can be achieved. This fine control ensures that the brightness of the light source can be flexibly adjusted according to actual needs, thereby providing the most suitable lighting conditions for contact angle measurement. At the same time, the system will further optimize the distance and angle between the light source and the object to be measured in combination with the automatic control process of the rotating thread. Through the rotating thread mechanism, the position of the LED light source and the convex lens assembly can be accurately adjusted to ensure that the light can be irradiated on the object to be measured at the best angle. In this process, the system will automatically adjust the thread position according to the imaging effect of the block to achieve the best imaging clarity. After the adjustment of the light source brightness and thread position is completed, the system will obtain the collection value of the LED parallel coaxial light source corresponding to the contact angle tester in real time. These collected values are obtained by the image acquisition system on the contact angle tester, reflecting the contact angle measurement results under different light source brightness and thread positions. The real-time collected data will be transmitted to the connected computer for further analysis and evaluation by researchers or operators. In this way, the embodiment of the present invention not only realizes the stepless adjustment of the brightness of the LED light source, but also combines the automatic control process of the rotating thread, making the entire contact angle measurement process more automated and intelligent.
[0155] According to a second aspect of an embodiment of the present invention, a LED parallel coaxial light source control system for a contact angle tester is provided.
[0156] Figure 8 The present invention is a structural diagram of an LED parallel coaxial light source control system for a contact angle tester according to an embodiment of the present invention.
[0157] In one or more embodiments, preferably, the LED parallel coaxial light source control system for the contact angle tester includes:
[0158] The LED light source and convex lens combination setting module 801 is used to set the LED light source and set a matching convex lens to generate parallel light;
[0159] Implementing a diaphragm setting module 802, for setting a shielding diaphragm at a preset position in front of the LED light source, and adjusting the distance between the light source and the lens through a thread;
[0160] The image correction module 803 is used to set the automatic control process of the rotating thread to ensure the refined display of each block;
[0161] A digital feedback module 804 is used to automatically control the process according to the rotating thread and determine the corresponding light source brightness difference, and to feed back the light source brightness difference through communication;
[0162] A light source brightness setting module 805 is used to set a preset light source brightness value according to a light source brightness error;
[0163] The stepless adjustment module 806 is used to perform stepless adjustment on the LED light source according to the preset value of the light source brightness.
[0164] In the embodiment of the present invention, a system suitable for different structures is realized through a series of modular designs. The system can achieve closed-loop, reliable and efficient execution through collection, analysis and control.
[0165] According to a third aspect of an embodiment of the present invention, there is provided a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method as described in any one of the first aspect of the embodiment of the present invention is implemented.
[0166] According to a fourth aspect of an embodiment of the present invention, an electronic device is provided. Fig. 9 It is a structural diagram of an electronic device in one embodiment of the present invention. Fig. 9The electronic device shown is a general-purpose LED parallel coaxial light source control device for a contact angle tester, which includes a general-purpose computer hardware structure, which at least includes a processor 901 and a memory 902. The processor 901 and the memory 902 are connected via a bus 903. The memory 902 is suitable for storing instructions or programs executable by the processor 901. The processor 901 can be an independent microprocessor or a collection of one or more microprocessors. Thus, the processor 901 executes the instructions stored in the memory 902 to execute the method flow of the embodiment of the present invention as described above to realize the processing of data and the control of other devices. The bus 903 connects the above-mentioned multiple components together, and at the same time connects the above-mentioned components to the display controller 904 and the display device and the input / output (I / O) device 905. The input / output (I / O) device 905 can be a mouse, a keyboard, a modem, a network interface, a touch input device, a somatosensory input device, a printer, and other devices known in the art. Typically, the input / output device 905 is connected to the system via an input / output (I / O) controller 906.
[0167] The technical solution provided by the embodiments of the present invention may have the following beneficial effects:
[0168] In the solution of the present invention, by setting a shielding film and adjusting the position of the convex lens, shielding is achieved by setting the optimal thread requirement position, so that the 9 areas can be clearly displayed horizontally and vertically.
[0169] In the scheme of the present invention, the optical principle of using an LED light source to emit incident light through a convex lens to form a group of parallel light rays without attenuation is used to realize product detection, and an adjustable focal distance and adjustable light source brightness are realized. The light source emits light uniformly from one point to the surrounding space without changing the light direction, and the light source brightness is digitally controlled or software controlled.
[0170] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0171] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0172] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0173] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0174] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for controlling LED parallel coaxial light sources for a contact angle tester, characterized in that: The method includes: An LED light source is provided, and a convex lens is provided to generate parallel light; A shielding film is set between the LED light source and the front preset position, and the distance between the light source and the lens is adjusted through the thread; Set up the automatic control process of rotating threads to ensure the detailed display of each block; According to the rotating thread automatic control process and determine the corresponding light source brightness difference, the light source brightness difference is fed back through communication; Set the preset value of light source brightness according to the light source brightness error; The LED light source is steplessly adjusted according to the preset brightness value of the light source.
2. The method for controlling the LED parallel coaxial light source for a contact angle tester according to claim 1, characterized in that: The LED light source is provided and matched with a convex lens to generate parallel light, specifically including: Set the LED light source to LED lamp beads; Irradiate the light of the LED lamp beads onto the convex lens, and use the refraction principle of light in the convex lens to achieve the effect of parallel light; Collect images of illuminated samples.
3. The method for controlling the LED parallel coaxial light source for a contact angle tester according to claim 1, characterized in that: The method of setting a shielding film at a preset position in front of the LED light source and adjusting the distance between the light source and the lens by means of a thread specifically includes: Two types of shielding membranes are provided, one is a horizontal shielding membrane and the other is a vertical shielding membrane; Setting the LED light source to a preset brightness, wherein the preset brightness is 50% of the maximum adjustable brightness; Place a horizontal blocking film to form a projection on the object to be contacted, and adjust the distance between the light source and the lens through the thread to form a horizontal blocking adjustment video; Place a longitudinal blocking film to form a projection on the object to be contacted, and adjust the distance between the light source and the lens through the thread to form a longitudinal blocking adjustment video; The horizontal occlusion adjustment video and the vertical occlusion adjustment video are stored in the adjustment process memory.
4. The method for controlling the LED parallel coaxial light source for a contact angle tester according to claim 1, characterized in that: The automatic control process of setting the rotating thread is used to ensure the refined display of each block, which specifically includes: Divide the area to be tested into 9 blocks of equal size; The horizontal occlusion adjustment video uses the first calculation formula to calculate the horizontal astigmatism of each block at each distance between the light source and the lens; The longitudinal occlusion adjustment video uses the second calculation formula to calculate the longitudinal astigmatism of each block at each distance between the light source and the lens; According to the lateral astigmatism of the distance between each light source and the lens in each block, the optimal lateral required position is extracted using the third calculation formula; According to the longitudinal astigmatism of the distance between each light source and the lens in each block, the fourth calculation formula is used to extract the optimal longitudinal required position; Calculate the optimal thread requirement position for each block using the fifth calculation formula; Set the automatic control process of the rotating thread to a continuous adjustment process that stops for 3 seconds at the optimal thread requirement position in each block; The first calculation formula is: HS=MH÷MM Among them, HS is the lateral astigmatism, MH is the total black area under lateral occlusion, and MM is the total area of the blocks; The second calculation formula is: ZS=MZ÷MM Among them, ZS is the longitudinal astigmatism, MZ is the total black area under longitudinal occlusion, and MM is the total area of the blocks; The third calculation formula is: ZYH=argmin1(HSi) Among them, argmin1() is a function for extracting the optimal lateral required position with the minimum lateral astigmatism corresponding to the current block, HSi is the lateral astigmatism of the i-th block, and ZYH is the optimal lateral required position; The fourth calculation formula is: ZYZ=argmin2(ZSi) Among them, argmin2() is a function for extracting the optimal longitudinal required position with the minimum longitudinal astigmatism corresponding to the current block, ZSi is the longitudinal astigmatism of the i-th block, and ZYZ is the optimal longitudinal required position; The fifth calculation formula is: WZ=0.5×(ZYH+ZYZ) Among them, WZ is the optimal thread requirement position.
5. The method for controlling the LED parallel coaxial light source for a contact angle tester according to claim 1, characterized in that: The automatic control process according to the rotating thread and determining the corresponding light source brightness difference, and feeding back the light source brightness difference through communication, specifically includes: According to the automatic control process of the rotating thread, an image of the communication feedback is obtained to form a light source brightness difference, wherein the light source brightness difference is a real-time value of a preset light brightness and an image of the communication feedback collected in real time; Connect the computer via the RS232 serial port and upload the light source brightness difference corresponding to the automatic control process of rotating thread to the computer.
6. The method for controlling the LED parallel coaxial light source for a contact angle tester according to claim 1, characterized in that: The step of setting the preset value of the light source brightness according to the light source brightness error specifically includes: Get the automatic control process of the rotating thread of each block; The automatic control process of the rotating thread is changed from small to large, and a sixth calculation formula is determined according to the light source brightness difference to calculate the preset value of the light source brightness; The sixth calculation formula is: YS=CZ1+CZ0 Among them, YS is the preset value of light source brightness, CZ1 is the light source brightness difference, and CZ0 is the preset initial brightness value.
7. The method for controlling the LED parallel coaxial light source for a contact angle tester according to claim 1, characterized in that: The stepless adjustment of the LED light source according to the preset brightness value of the light source specifically includes: The LED light source and the thread are adjusted simultaneously according to the preset value of the light source brightness combined with the automatic control process of the rotating thread; Acquire the collected values of the LED parallel coaxial light source corresponding to the contact angle tester in real time.
8. The LED parallel coaxial light source control system for contact angle tester is characterized by: The system is used to implement the method according to any one of claims 1 to 7, and the system comprises: The LED light source and convex lens combination setting module is used to set the LED light source and set the matching convex lens to generate parallel light; Implement a diaphragm setting module, which is used to set a shielding diaphragm at a preset position in front of the LED light source, and adjust the distance between the light source and the lens through a thread; Image correction module, used to set the automatic control process of rotating threads to ensure the refined display of each block; A digital feedback module is used to automatically control the process according to the rotating thread and determine the corresponding light source brightness difference, and feedback the light source brightness difference through communication; A light source brightness setting module, used to set a preset light source brightness value according to a light source brightness error; The stepless adjustment module is used to perform stepless adjustment on the LED light source according to the preset value of the light source brightness.
9. A computer-readable storage medium storing computer program instructions, characterized in that: The computer program instructions implement the method according to any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory and a processor, characterized in that: The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method according to any one of claims 1-7.