Fan sway value test method, system, electronic device, and storage medium
The fan speed and distance data are obtained through the distance sensor, and the shaking value is automatically calculated, which solves the problem of large errors in manual judgment in the prior art, and realizes accurate measurement and efficient testing of the fan shaking value.
Patent Information
- Application Number
- CN202211352108.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-31
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2042-10-31
AI Technical Summary
In the prior art, fan shaking value testing relies on manual judgment, there are errors and high working intensity, so accurate measurement cannot be achieved.
The distance sensor is used to obtain the fan speed data and distance data, and to determine whether the fan shaking is qualified by calculating the shaking value, and the test process is automated.
Accurate measurement of fan shaking value is achieved, avoiding manual testing errors, improving test accuracy and saving labor costs.
Smart Images

Figure CN115750422B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of fan manufacturing technology, and in particular to a fan sway value testing method, system, electronic equipment, and storage medium. Background Art
[0002] Fans and fan lights need to be tested for vibration in an operating environment before leaving the factory. If the fan vibration value exceeds the standard, it will affect the customer's experience.
[0003] Currently, a manual test judgment method using a laser pen and a ruler is used. Specifically, the fan is set on a hanger and the laser pen is tied to the fan, so that the shaking of the fan drives the laser pen to shake. The light beam emitted by the laser pen hits a predetermined panel with a circular ruler marked on the panel. If the light spot of the laser beam on the panel is always within the range of the circular ruler during the operation of the fan, the fan shaking value is considered qualified; otherwise, it is considered unqualified.
[0004] The above method has the following defects: 1. The qualification is determined manually, which may lead to human bias; 2. The test process requires personnel to visually check whether the laser pen's light spot shakes beyond the scale, which is labor-intensive.
[0005] The information disclosed in this background technology section is only intended to deepen the understanding of the overall background technology of the present invention and should not be regarded as an admission or any form of suggestion that the information constitutes the prior art already known to those skilled in the art. Summary of the Invention
[0006] In view of the problems existing in the prior art, the present invention provides a fan swing value testing method, system, electronic device, and storage medium.
[0007] In a first aspect, the present invention provides a method for testing fan sway value, the method comprising:
[0008] Get the speed data of the fan whose sway value is to be tested;
[0009] determining whether the rotation speed data reaches a first threshold, and if the rotation speed data reaches the first threshold, obtaining distance data from a distance sensor, wherein the distance sensor measures a distance value from the distance sensor to the fan as the distance data;
[0010] Continuously acquiring a plurality of distance data within a time window of a predetermined length to form a distance data set;
[0011] Calculating a sway value of the fan based on the distance data set;
[0012] Determine whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, give a first signal indicating that the fan swing value test fails. If the swing value is less than the second threshold value, give a second signal indicating that the fan swing value test passes.
[0013] According to a fan sway value testing method provided by the present invention, the sway value of the fan is calculated based on the distance data set, including:
[0014] Calculating a first difference between a maximum distance and a minimum distance in the distance data set;
[0015] Using the first difference as the shake value;
[0016] or,
[0017] The first distance of the distance data set in the time series is used as a zero value;
[0018] Calculating a plurality of second differences between distances at other time series in the distance data set and the zeroed value;
[0019] The maximum value of the plurality of second difference values is used as the jitter value.
[0020] According to a fan sway value testing method provided by the present invention, a plurality of distance data within a time window of a predetermined length is continuously acquired to form a distance data set, including:
[0021] Multiple groups of distance data within multiple sub-time windows are continuously acquired to form multiple sub-distance data sets.
[0022] According to a fan sway value testing method provided by the present invention, the sway value of the fan is calculated based on the distance data set, including:
[0023] Calculating a plurality of sub-sway values of the fan based on the plurality of sub-distance data sets;
[0024] The maximum value of the plurality of sub-swing values is used as the fan swing value.
[0025] According to a fan sway value testing method provided by the present invention, the method further includes:
[0026] During other time periods when the first signal and the second signal are given, a third signal indicating that the fan is being tested is given.
[0027] In a second aspect, the present invention further provides a fan sway value testing system, the system comprising:
[0028] The first acquisition module is used to obtain the rotation speed data of the fan whose sway value is to be tested;
[0029] a first determining module, configured to determine whether the rotational speed data reaches a first threshold, and if the rotational speed data reaches the first threshold, obtain distance data from a distance sensor, wherein the distance sensor measures a distance value from the distance sensor to the fan as the distance data;
[0030] a second acquisition module, configured to continuously acquire a plurality of distance data within a time window of a predetermined length to form a distance data set;
[0031] a calculation module, configured to calculate a shaking value of the fan based on the distance data set;
[0032] The judgment module is used to judge whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, a first signal is given to indicate that the fan swing value test has failed. If the swing value is less than the second threshold value, a second signal is given to indicate that the fan swing value test has passed.
[0033] In a third aspect, the present invention further provides a fan sway value testing system, the system comprising:
[0034] A speed sensor is used to obtain the speed data of the fan whose sway value is to be tested;
[0035] a distance sensor, used to measure the distance from the sensor to the fan as distance data;
[0036] a controller, the controller being connected to both the speed sensor and the distance sensor;
[0037] in,
[0038] The controller determines whether the rotation speed data reaches a first threshold, and if the rotation speed data reaches the first threshold, obtains the distance data of the distance sensor;
[0039] The controller continuously acquires a plurality of distance data within a time window of a predetermined length to form a distance data set;
[0040] The controller calculates a sway value of the fan based on the distance data set;
[0041] The controller determines whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, a first signal is given indicating that the fan swing value test has failed. If the swing value is less than the second threshold value, a second signal is given indicating that the fan swing value test has passed.
[0042] According to a fan sway value testing method provided by the present invention, the system further includes:
[0043] a display device connected to the controller;
[0044] The display device emits a first color light when receiving the first signal, and emits a second color light when receiving the second signal.
[0045] In a fourth aspect, the present invention also provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the fan swing value test method as described in any one of the above items are implemented.
[0046] In a fifth aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the fan swing value testing method as described in any one of the above items.
[0047] The fan swing value testing method, system, electronic device, and storage medium provided by the present invention achieve accurate measurement of the fan operation swing value through a distance sensor, and automate the swing value testing process, avoiding errors in manual testing, improving test accuracy, and saving labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the present invention or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0049] Figure 1 A schematic flow chart of a fan sway value testing method provided by the present invention;
[0050] Figure 2 A schematic structural diagram of a fan sway value testing system is also provided by the present invention;
[0051] Figure 3 This is a schematic structural diagram of another fan sway value testing system provided by the present invention;
[0052] Figure 4 This is a schematic diagram of the physical structure of an electronic device provided by the present invention.
[0053] Reference numerals: 1 - first hanger; 2 - fan; 3 - distance sensor; 4 - second hanger; 5 - controller. DETAILED DESCRIPTION
[0054] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.
[0055] The fan sway value testing method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0056] Figure 1 A flow chart of a fan sway value test method provided by the present invention is shown as follows: Figure 1 As shown, the present invention provides a method for testing fan sway value, which includes the following steps.
[0057] Preferably, the test method is executed by a controller as a program, and the actions of obtaining, judging, calculating, giving, etc. in the following steps correspond to various functions in the program.
[0058] S100: Obtain the rotation speed data of the fan with the sway value to be tested.
[0059] Preferably, after the fan is started, the speed of the fan is gradually increased under the controller.
[0060] S200 , determining whether the rotation speed data reaches a first threshold; if the rotation speed data reaches the first threshold, obtaining distance data from a distance sensor; the distance sensor measures a distance value from the distance sensor to the fan as the distance data.
[0061] Preferably, the first threshold is set to 265 rpm / min, and the maximum wind speed of the fan to be tested is between 265-270 rpm / min.
[0062] S300 , continuously acquiring a plurality of distance data within a time window of a predetermined length to form a distance data set.
[0063] Preferably, the predetermined length is 3s.
[0064] Optionally, continuously acquiring a plurality of distance data within a time window of a predetermined length to form a distance data set includes:
[0065] Continuously obtain multiple sets of distance data within multiple sub-time windows to form multiple sub-distance data sets.
[0066] Preferably, the length of the sub-time window is 1 second, and correspondingly, the number of sub-time windows is 3.
[0067] Furthermore, the three sub-time windows are continuous in time.
[0068] Optionally, based on the distance data set, a fan sway value is calculated, including:
[0069] Calculating multiple sub-sway values of the fan based on the multiple sub-distance data sets;
[0070] The maximum value among the multiple sub-swing values is used as the fan swing value.
[0071] S400: Calculate a fan swing value based on the distance data set.
[0072] Optionally, based on the distance data set, a fan sway value is calculated, including:
[0073] Calculate the first difference between the maximum distance and the minimum distance in the distance data set;
[0074] The first difference is taken as the shaking value;
[0075] or,
[0076] The first distance in the time series of the distance data set is used as the zero value;
[0077] Calculate multiple second differences between the distances on other time series in the distance data set and the zero value;
[0078] The maximum value among the plurality of second difference values is taken as the jitter value.
[0079] S500. Determine whether the swing value exceeds a preset second threshold. If the swing value exceeds the second threshold, give a first signal indicating that the fan swing value test fails. If the swing value is less than the second threshold, give a second signal indicating that the fan swing value test passes.
[0080] Optionally, the method further comprises:
[0081] During other time periods when the first and second signals are given, a third signal is given that the fan is being tested.
[0082] This embodiment uses a distance sensor to accurately measure the fan's operating swing value and automates the swing value testing process, thereby avoiding errors in manual testing, improving test accuracy, and saving labor costs.
[0083] Figure 2 The present invention also provides a structural diagram of a fan sway value testing system, as shown in FIG. Figure 2 As shown, the present invention also provides a fan sway value testing system, the system comprising:
[0084] A speed sensor is used to obtain the speed data of the fan 2 whose sway value is to be tested;
[0085] Distance sensor 3, used to measure the distance between the sensor and fan 2 as distance data;
[0086] The controller 5 is connected to the speed sensor and the distance sensor 3;
[0087] in,
[0088] The controller 5 determines whether the rotation speed data reaches a first threshold value, and if the rotation speed data reaches the first threshold value, obtains the distance data of the distance sensor;
[0089] The controller 5 continuously acquires a plurality of distance data within a time window of a predetermined length to form a distance data set;
[0090] The controller 5 calculates the fan sway value based on the distance data set;
[0091] The controller 5 determines whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, a first signal indicating that the fan swing value test fails is given. If the swing value is less than the second threshold value, a second signal indicating that the fan swing value test passes is given.
[0092] Preferably, the speed sensor is arranged in the first hanger 1, and the first hanger 1 is used to hang the fan 2 for operation to simulate the stress state of the fan 2 in a normal operation scenario.
[0093] Preferably, the system further comprises a second hanger 4, wherein the second hanger 4 is used to hang the distance sensor 3, and the distance sensor 3 can measure the distance from itself to the fan.
[0094] Preferably, the distance sensor 4 comprises a laser displacement sensor.
[0095] Furthermore, the distance between the laser displacement sensor and the fan is 300-600 mm. If it is not within this range, the measurement accuracy may not meet the requirements of the sway value test, resulting in test failure.
[0096] It should be noted that the distance sensor may also use electromagnetic wave sensors of other bands, such as millimeter wave radar or sonar. Furthermore, contact sensors may not be suitable for this scenario because they themselves may affect the fan's shaking performance.
[0097] Preferably, the controller comprises a programmable logic controller (PLC).
[0098] Optionally, the system further includes:
[0099] a display device connected to the controller;
[0100] The display device emits a first color light when receiving a first signal, and emits a second color light when receiving a second signal.
[0101] Preferably, during other time periods when the first signal and the second signal are given, the controller can also give a third signal indicating that the fan is being tested.
[0102] Preferably, the display device emits a third color light when receiving the third signal.
[0103] Preferably, the display device includes a three-color lighthouse, which can provide personnel with obvious prompts.
[0104] This embodiment has been applied in the fan lamp shipment inspection link, and the system stability is better than the test system based on manual judgment.
[0105] This embodiment uses a distance sensor to accurately measure the fan's operating swing value and automates the swing value testing process, thereby avoiding errors in manual testing, improving test accuracy, and saving labor costs.
[0106] The fan sway value testing system provided by the present invention is described below. The fan sway value testing system described below and the fan sway value testing method described above can be referenced to each other.
[0107] Figure 3 The present invention also provides a structural diagram of another fan sway value testing system, such as Figure 3 As shown, the present invention also provides another fan sway value testing system, the system comprising:
[0108] The first acquisition module is used to obtain the rotation speed data of the fan whose sway value is to be tested;
[0109] a first determining module, configured to determine whether the rotational speed data reaches a first threshold value, and if the rotational speed data reaches the first threshold value, obtaining distance data from a distance sensor, wherein the distance sensor measures a distance value from the distance sensor to the fan as the distance data;
[0110] A second acquisition module is used to continuously acquire a plurality of distance data within a time window of a predetermined length to form a distance data set;
[0111] A calculation module is used to calculate the fan sway value based on the distance data set;
[0112] The judgment module is used to judge whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, a first signal is given to indicate that the fan swing value test has failed. If the swing value is less than the second threshold value, a second signal is given to indicate that the fan swing value test has passed.
[0113] Preferably, this embodiment can correspond to multiple program modules in the controller.
[0114] This embodiment uses a distance sensor to accurately measure the fan's operating swing value and automates the swing value testing process, thereby avoiding errors in manual testing, improving test accuracy, and saving labor costs.
[0115] Figure 4 A schematic diagram of the physical structure of an electronic device provided by the present invention, such as Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430, and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other via the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the fan swing value test method, which includes:
[0116] Get the speed data of the fan whose sway value is to be tested;
[0117] determining whether the rotation speed data reaches a first threshold, and if the rotation speed data reaches the first threshold, obtaining distance data from a distance sensor, wherein the distance sensor measures a distance value from the distance sensor to the fan as the distance data;
[0118] Continuously acquiring a plurality of distance data within a time window of a predetermined length to form a distance data set;
[0119] Calculating a sway value of the fan based on the distance data set;
[0120] Determine whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, give a first signal indicating that the fan swing value test fails. If the swing value is less than the second threshold value, give a second signal indicating that the fan swing value test passes.
[0121] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0122] In another aspect, the present invention further provides a computer program product, comprising a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program includes program instructions. When the program instructions are executed by a computer, the computer can perform the fan swing value test method provided by the above methods, wherein the method includes:
[0123] Get the speed data of the fan whose sway value is to be tested;
[0124] determining whether the rotation speed data reaches a first threshold, and if the rotation speed data reaches the first threshold, obtaining distance data from a distance sensor, wherein the distance sensor measures a distance value from the distance sensor to the fan as the distance data;
[0125] Continuously acquiring a plurality of distance data within a time window of a predetermined length to form a distance data set;
[0126] Calculating a sway value of the fan based on the distance data set;
[0127] Determine whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, give a first signal indicating that the fan swing value test fails. If the swing value is less than the second threshold value, give a second signal indicating that the fan swing value test passes.
[0128] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the computer program is implemented to perform the above-mentioned fan swing value testing method, the method comprising:
[0129] Get the speed data of the fan whose sway value is to be tested;
[0130] determining whether the rotation speed data reaches a first threshold, and if the rotation speed data reaches the first threshold, obtaining distance data from a distance sensor, wherein the distance sensor measures a distance value from the distance sensor to the fan as the distance data;
[0131] Continuously acquiring a plurality of distance data within a time window of a predetermined length to form a distance data set;
[0132] Calculating a sway value of the fan based on the distance data set;
[0133] Determine whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, give a first signal indicating that the fan swing value test fails. If the swing value is less than the second threshold value, give a second signal indicating that the fan swing value test passes.
[0134] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0135] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or certain parts of the embodiments.
[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A fan sway value testing method, characterized in that: The method comprises: Get the speed data of the fan whose sway value is to be tested; determining whether the rotation speed data reaches a first threshold, and if the rotation speed data reaches the first threshold, obtaining distance data from a distance sensor, wherein the distance sensor measures a distance value from the distance sensor to the fan as the distance data; Continuously acquiring a plurality of distance data within a time window of a predetermined length to form a distance data set; Calculating a sway value of the fan based on the distance data set; Determine whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, give a first signal indicating that the fan swing value test fails. If the swing value is less than the second threshold value, give a second signal indicating that the fan swing value test passes.
2. The fan sway value testing method according to claim 1, characterized in that: Calculating a fan sway value based on the distance data set includes: Calculating a first difference between a maximum distance and a minimum distance in the distance data set; Using the first difference as the shake value; or, The first distance of the distance data set in the time series is used as a zero value; Calculating a plurality of second differences between distances at other time series in the distance data set and the zeroed value; The maximum value of the plurality of second difference values is used as the jitter value.
3. The fan sway value testing method according to claim 1, characterized in that: Continuously acquiring a plurality of distance data within a time window of a predetermined length to form a distance data set, including: Multiple groups of distance data within multiple sub-time windows are continuously acquired to form multiple sub-distance data sets.
4. The fan sway value testing method according to claim 3, characterized in that: Calculating a fan sway value based on the distance data set includes: Calculating a plurality of sub-sway values of the fan based on the plurality of sub-distance data sets; The maximum value of the plurality of sub-swing values is used as the swing value of the fan.
5. The fan sway value testing method according to claim 1, characterized in that: The method further comprises: During other time periods when the first signal and the second signal are given, a third signal indicating that the fan is being tested is given.
6. A fan sway value test system, characterized in that: The system comprises: The first acquisition module is used to obtain the rotation speed data of the fan whose sway value is to be tested; a first determining module, configured to determine whether the rotational speed data reaches a first threshold, and if the rotational speed data reaches the first threshold, obtain distance data from a distance sensor, wherein the distance sensor measures a distance value from the distance sensor to the fan as the distance data; A second acquisition module is used to continuously acquire a plurality of distance data within a time window of a predetermined length to form a distance data set; a calculation module, configured to calculate a sway value of the fan based on the distance data set; The judgment module is used to judge whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, a first signal is given to indicate that the fan swing value test has failed. If the swing value is less than the second threshold value, a second signal is given to indicate that the fan swing value test has passed.
7. A fan sway value test system, characterized in that: The system comprises: A speed sensor is used to obtain the speed data of the fan whose sway value is to be tested; a distance sensor, used to measure the distance between the sensor and the fan as distance data; a controller, the controller being connected to both the speed sensor and the distance sensor; in, The controller determines whether the rotation speed data reaches a first threshold, and if the rotation speed data reaches the first threshold, obtains the distance data of the distance sensor; The controller continuously acquires a plurality of distance data within a time window of a predetermined length to form a distance data set; The controller calculates a sway value of the fan based on the distance data set; The controller determines whether the swing value exceeds a preset second threshold value. If the swing value exceeds the second threshold value, a first signal is given indicating that the fan swing value test has failed. If the swing value is less than the second threshold value, a second signal is given indicating that the fan swing value test has passed.
8. The fan sway value testing system according to claim 7, characterized in that: The system further comprises: a display device connected to the controller; The display device emits a first color light when receiving the first signal, and emits a second color light when receiving the second signal.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the fan swing value testing method according to any one of claims 1 to 5 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the fan swing value testing method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method and apparatus for warning fan life
CN101074966A
Electric fan safety protection device
CN104165152A