A method and system for screening and detecting pressing stroke of micro switch

Through forward cycle test and reverse cycle test, combined with sensor data analysis, the stability score of the micro switch is calculated, which solves the problem that the existing technology cannot comprehensively evaluate the stability of the micro switch, and achieves refined screening of micro switches. and performance guaranteed.

CN118244103BActive Publication Date: 2024-09-20常州忆隆信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410667943.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-20
Estimated Expiration
2044-05-28

AI Technical Summary

Technical Problem

The existing technology cannot comprehensively evaluate the stability of micro switches in practical applications, and it is difficult to ensure their working performance in refined application scenarios.

Method used

A micro switch pressing stroke screening and detection method is adopted. Through forward cycle test and reverse cycle test, combined with sensor data analysis, the stability score is calculated and micro switches that meet the needs of different application scenarios are screened out.

Benefits of technology

It implements refined screening of micro switch stability testing to ensure its working performance during use, and provides a stability score to determine whether the micro switch meets current needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118244103B
    Figure CN118244103B
Patent Text Reader

Abstract

The present invention relates to the field of micro switch testing technology, and in particular to a micro switch pressing stroke screening detection method and system. The method comprises: assembling a micro switch to be tested onto a screening tool, setting a trigger button of the micro switch to be arranged opposite to a transition surface in an initial position; driving a test board to control movement of a test board, performing a positive cycle test, and obtaining an average and variance of an array of indication-actual difference quantities and a variance of an array of interval difference quantities in the positive cycle test; driving a test board to control reverse movement of the test board, obtaining an average and variance of an array of indication-actual difference quantities and a variance of an array of interval difference quantities in a reverse cycle test; obtaining the variance of the positive and negative difference arrays, obtaining a stability score of the micro switch, and evaluating the stability performance of the micro switch. The present invention sets a screening tool, respectively tests the stability of the micro switch through a positive cycle test and a reverse cycle test, and screens and obtains micro switches that meet the stability requirements of different application scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of micro switch testing, and in particular to a micro switch pressing stroke screening detection method and system. Background Art

[0002] Micro switches are components used to detect user click instructions and are used in devices that can input control instructions. They have the advantages of small size, easy operation, and fast response speed. They are widely used in medical equipment, automotive electronics, and industrial automation fields.

[0003] Since the parameters of the micro switches provided on the market have a wide range, it is necessary to screen out the micro switches with suitable stability performance according to the specific application scenarios. Conventional testing methods, such as simple on-off tests, durability tests, stroke tests, etc., although they can verify the basic functions of the micro switches, cannot fully evaluate their stability in actual applications, and cannot achieve refined and targeted stability screening. As a result, it is difficult to guarantee the working performance of the micro switches in some refined application scenarios.

[0004] 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 acknowledging or suggesting in any form that the information constitutes the prior art known to those skilled in the art. Summary of the invention

[0005] The technical problem to be solved by the present invention is: to provide a micro switch pressing stroke screening detection method and system, to detect the stability of the micro switch pressing stroke, and to screen and obtain micro switches that meet the stability requirements of different application scenarios, so as to ensure the refined application requirements of the micro switch.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is: a micro switch pressing stroke screening detection method, comprising the following steps:

[0007] Assemble the micro switch to be tested onto a screening tool, which includes a base, a test board, a drive platform and a sensor, wherein the micro switch is fixedly arranged on the base and electrically connected to the sensor, and a trigger button of the micro switch is arranged toward a side of the drive platform; the test board is fixedly arranged on a side of the drive platform close to the base, and can drive the test board to move back and forth along a direction perpendicular to the triggering direction of the micro switch; the test board has a transition surface and a test surface on a side facing the micro switch, the test surface is an inclined slope, and the angle between the test surface and the transition surface is θ, and the trigger button of the micro switch is arranged to be opposite to the transition surface in the initial position;

[0008] The driving platform controls the test plate to move toward the side where the test surface is located, so that the trigger button of the micro switch forms a contact effect with the test surface, and the micro switch is in a contact state. At this time, the sensor indication S reaches Smin, and S0=Smin is set, and q positive cycle tests are started until the micro switch is triggered and the micro switch is in a pressed state; the indication-actual difference array X1, X2...Xq and the interval difference array U2, U3...Uq in the positive cycle test are obtained, and the average Xave and variance Xs of the indication-actual difference array in the positive cycle test and the variance Us of the interval difference array are calculated;

[0009] The driving platform controls the test plate to move in the reverse direction, so that the micro switch is triggered and the micro switch is in a pressed state. At this time, the sensor indication S reaches Smax, and S0=Smax is set, and q reverse cycle tests are performed until there is no interaction force between the trigger button of the micro switch and the test surface, and the micro switch is in a contact state; the indication-actual difference array Y1, Y2...Yq and the interval difference array V2, V3...Vq in the reverse cycle test are obtained, and the average Yave and variance Ys of the indication-actual difference array in the reverse cycle test and the variance Vs of the interval difference array are calculated;

[0010] According to the interval difference array U2, U3...Uq obtained in the positive cycle test and the interval difference array V2, V3...Vq obtained in the reverse cycle test, the positive and negative difference arrays U2-Vq, U3-V(q-1)...Uq-V2 are obtained, and the variance Zs of the positive and negative difference arrays is calculated;

[0011] According to the variance Xs of the indication-actual difference array and the variance Us of the interval difference array in the positive cycle test, the variance Ys of the indication-actual difference array and the variance Vs of the interval difference array in the reverse cycle test, and the variance Zs of the positive and negative difference arrays, the stability score Q of the micro switch is obtained, the stability score Q is output and the stability performance of the micro switch is evaluated.

[0012] Further, the nth positive cycle test comprises the following steps:

[0013] Start timing from zero, record the positive cycle test time as t1, and monitor the sensor reading S in real time;

[0014] If the sensor reading S<Smax, then when t1=T, the sensor reading change △Sn and the reading-actual difference Xn are obtained according to the following formula;

[0015] △Sn=Sn-S0;

[0016] Xn=△Sn-n·s·T·tanθ;

[0017] And when n≥2, the interval difference Un is obtained according to the following formula:

[0018] Un=(Sn-S(n-1)) / T-(S(n-1)-S(n-2)) / T;

[0019] After a single positive cycle test is completed, the positive cycle test time t1 is reset to zero and the next positive cycle test is entered;

[0020] If the sensor reading S=Smax, the positive cycle test is stopped immediately, and the time when the cycle is stopped is recorded as the positive cycle test time t1 and the total number of positive cycles q. The sensor reading change △Sn, reading-actual difference Xn and interval difference Un are obtained by the following formula:

[0021] △Sn=Sn-S0;

[0022] Xn=△Sn-(n-1)·s·T·tanθ-s·t1·tanθ;

[0023] Un=(Sn-S(n-1)) / T-(S(n-1)-S(n-2)) / t1;

[0024] Among them, Smax is the sensor reading corresponding to the micro switch in the pressed state, T is the interval period, S0 represents the initial reading of the sensor, n represents the number of cycles, s represents the displacement of the test plate controlled by the drive platform per second, and the unit is mm / s, θ represents the angle between the test surface and the transition surface, and the unit is rad; Sn is the sensor reading when the positive cycle test time t1 reaches the interval period in the nth positive cycle test, S(n-1) represents the sensor reading when the positive cycle test time t1 reaches the interval period in the n-1th positive cycle test, and S(n-2) represents the sensor reading when the positive cycle test time t1 reaches the interval period in the n-2th positive cycle test.

[0025] Further, the m-th reverse circulation test comprises the following steps:

[0026] Start timing from zero, record the reverse circulation test time as t2, and monitor the sensor reading S in real time;

[0027] If the sensor reading S>Smin, then when t2=T, the sensor reading change △Sm and the reading-actual difference Ym are obtained according to the following formula;

[0028] △Sm=S0-Sm;

[0029] Ym=△Sm-m·s·T·tanθ;

[0030] And when m≥2, the interval difference Um is obtained according to the following formula:

[0031] Um=(Sm-S(m-1)) / T-(S(m-1)-S(m-2)) / T;

[0032] After a single reverse circulation test is completed, the reverse circulation test time is reset to zero for t2, and the next reverse circulation test is started;

[0033] If the sensor reading S=Smin, stop the reverse cycle test immediately, and record the time when the cycle is stopped, the reverse cycle test time t2, and the total number of reverse cycles q. The sensor reading change △Sm, reading-actual difference Xm, and interval difference Vm are obtained by the following formula:

[0034] △Sm=S0-Sm;

[0035] Xm=△Sm-(m-1)·s·T·tanθ-s·t2·tanθ;

[0036] Vm=(S(m-1)-S(m-2)) / t2-(Sm-S(m-1)) / T;

[0037] Among them, Smin is the sensor reading corresponding to the micro switch being in contact state, T is the interval period, S0 represents the initial reading of the sensor, m represents the number of cycles, s represents the displacement of the test plate controlled by the drive platform per second, and the unit is mm / s, θ represents the angle between the test surface and the transition surface, and the unit is rad; Sm is the sensor reading when the positive cycle test time t2 reaches the interval period in the m-th reverse cycle test, S(m-1) represents the sensor reading when the reverse cycle test time t2 reaches the interval period in the m-1th reverse cycle test, and S(m-2) represents the sensor reading when the reverse cycle test time t2 reaches the interval period in the m-2th reverse cycle test.

[0038] Furthermore, the interval period T is obtained by the following steps:

[0039] The period error value A is calculated by the formula A=2·q·T-2·(q-1)·T-t1-t2, and the period error value A is compared with the set threshold value;

[0040] If the period error value A does not exceed the set error threshold, the positive cycle test and the reverse cycle test are performed with the current interval period T; if the period error value A exceeds the set error threshold, the theoretical interval period B is obtained by the formula B=(2·(q-1)·T+t1+t2) / 2q;

[0041] Update the interval period T so that the interval period T satisfies the following conditions:

[0042] T = C·n;

[0043] C·n>B;

[0044] C·nB=Dmin;

[0045] Among them, A represents the period error value, B represents the theoretical interval period, C is a positive integer, n is an artificially set unit time value, and Dmin represents the minimum period update difference.

[0046] Furthermore, the stability score Q is obtained by the following formula:

[0047] Q=K1·Xs+K2·Us+K3·Ys+K4·Vs+K5·Zs;

[0048] Among them, K1~K5 are artificially set coefficients, which are determined according to the usage scenario of the micro switch; Xs is the variance of the indication-actual difference array in the positive cycle test, and Us is the variance of the interval difference array in the positive cycle test; Ys is the variance of the indication-actual difference array in the reverse cycle test, and Vs is the variance of the interval difference array in the reverse cycle test; Zs is the variance of the positive and negative difference arrays.

[0049] Furthermore, a coefficient-screening mode relationship comparison table is set, and the corresponding screening mode is set according to the usage scenario of the micro switch, and each screening mode corresponds to a different set of K1~K5 values, and the required screening mode is input before the micro switch screening test.

[0050] Furthermore, the micro switches after the test are numbered, and the variance Xs of the indication-actual difference array and the variance Us of the interval difference array in the positive cycle test corresponding to the micro switch, the variance Ys of the indication-actual difference array and the variance Vs of the interval difference array in the reverse cycle test, and the variance Zs of the positive and negative difference array are output and recorded at the same time. When changing different screening modes, the stability score Q of the micro switch in the corresponding screening mode is obtained, and the stability performance of the micro switch in the screening mode is evaluated.

[0051] Furthermore, while outputting the stability score Q of the micro switch, the average Xave of the array of indications-actual differences in the positive cycle test and the average Yave of the array of indications-actual differences in the reverse cycle test are output as compensation values ​​at the same time.

[0052] Furthermore, after the micro switch to be tested is assembled to the screening tool, the position of the base is adjusted so that when the micro switch is in the contact state and the pressed state, the contact point between the trigger button of the micro switch and the test board is located on the test surface.

[0053] The present invention also provides a micro switch pressing stroke screening detection system, comprising:

[0054] The control module is used to control the screening tooling equipped with the micro switch to be tested to work, so that the driving platform can receive the command of the control module to drive the test plate to move back and forth along the direction perpendicular to the triggering direction of the micro switch to perform positive cycle test and reverse cycle test;

[0055] A data collection module is used to collect sensor reading data obtained in real time during the forward cycle test and the reverse cycle test and various test parameters of the micro switch;

[0056] A data processing module is used to receive the sensor indication data of the data collection module and various test parameters of the micro switch, and process to obtain the indication-actual difference array X1, X2...Xq and interval difference array U2, U3...Uq in the positive cycle test, and the indication-actual difference array Y1, Y2...Yq and interval difference array V2, V3...Vq in the reverse cycle test; and calculate to obtain the average Xave and variance Xs of the indication-actual difference array in the positive cycle test and the variance Us of the interval difference array, the average Yave and variance Ys of the indication-actual difference array in the reverse cycle test and the variance Vs of the interval difference array, the positive and negative difference arrays U2-Vq, U3-V(q-1)...Uq-V2, and the variance Zs of the positive and negative difference arrays;

[0057] A database module, used to output and record the variance Xs of the array of indicated values-actual difference values ​​and the variance Us of the array of interval difference values ​​in the positive cycle test corresponding to the micro switch, the variance Ys of the array of indicated values-actual difference values ​​and the variance Vs of the array of interval difference values ​​in the reverse cycle test, and the variance Zs of the array of positive and negative difference values ​​obtained by the data processing module;

[0058] The stability evaluation module is used to obtain the stability score Q of the micro switch under different screening modes and evaluate the stability performance of the micro switch under the screening mode.

[0059] The beneficial effects of the present invention are as follows: the present invention detects the stability of the micro switch by setting up a screening tool, and tests the stability of the triggering process and the releasing process of the micro switch respectively through a positive cycle test and a reverse cycle test, thereby being able to obtain a stability score of the micro switch to be tested, and based on the score, it is possible to determine whether the micro switch meets the current usage requirements, thereby screening out micro switches that meet the stability requirements of different application scenarios, thereby ensuring the working performance of the micro switch when in use. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0061] Figure 1 This is a schematic diagram of the initial position of the micro switch assembled on the screening tooling in an embodiment of the present invention;

[0062] Figure 2 Schematic diagram of a positive cycle test in an embodiment of the present invention;

[0063] Figure 3 A schematic diagram of a reverse circulation test in an embodiment of the present invention;

[0064] Figure 4 Schematic diagram of the relative positions of the test board and the micro switch when the micro switch is in contact state in an embodiment of the present invention;

[0065] Figure 5 Schematic diagram of the relative positions of the test board and the micro switch when the micro switch is in a pressed state in an embodiment of the present invention.

[0066] Figure numerals: 1, micro switch; 1a, trigger button; 2, base; 3, test board; 3a, transition surface; 3b, test surface; 4, drive platform. DETAILED DESCRIPTION

[0067] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0068] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.

[0069] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0070] like Figures 1 to 5 The micro switch pressing stroke screening detection method shown includes the following steps:

[0071] The micro switch 1 to be tested is assembled onto a screening tool, which includes a base 2, a test board 3, a drive platform 4 and a sensor. The micro switch 1 is fixedly arranged on the base 2 and electrically connected to the sensor, and the trigger button 1a of the micro switch 1 is arranged toward the side of the drive platform 4; the test board 3 is fixedly arranged on a side of the drive platform 4 close to the base 2, and can drive the test board 3 to move back and forth along a direction perpendicular to the triggering direction of the micro switch 1; the test board 3 has a transition surface 3a and a test surface 3b on the side facing the micro switch 1, the test surface 3b is an inclined slope, and the angle between the test surface 3b and the transition surface 3a is θ, and the trigger button 1a of the micro switch 1 is arranged to be opposite to the transition surface 3a in the initial position;

[0072] The driving platform 4 controls the test plate 3 to move toward the side where the test surface 3b is located, so that the trigger button 1a of the micro switch 1 forms a contact effect with the test surface 3b, and the micro switch 1 is in a contact state. At this time, the sensor indication S reaches Smin, and S0=Smin is set, and q positive cycle tests are started until the micro switch 1 is triggered and the micro switch 1 is in a pressed state; the indication-actual difference array X1, X2...Xq and the interval difference array U2, U3...Uq in the positive cycle test are obtained, and the average Xave and variance Xs of the indication-actual difference array in the positive cycle test and the variance Us of the interval difference array are calculated;

[0073] The driving platform 4 controls the test plate 3 to move in the reverse direction, so that the micro switch 1 is triggered and the micro switch 1 is in a pressed state. At this time, the sensor indication S reaches Smax, and S0=Smax is set, and q reverse cycle tests are performed, until there is no interaction force between the trigger button 1a of the micro switch 1 and the test surface 3b, and the micro switch 1 is in a contact state; the indication-actual difference array Y1, Y2...Yq and the interval difference array V2, V3...Vq in the reverse cycle test are obtained, and the average Yave and variance Ys of the indication-actual difference array and the variance Vs of the interval difference array in the reverse cycle test are calculated;

[0074] According to the inter-difference arrays U2, U3...Uq obtained in the positive cycle test and the interval difference arrays V2, V3...Vq obtained in the reverse cycle test, the positive and negative difference arrays U2-Vq, U3-V(q-1)...Uq-V2 are obtained, and the variance Zs of the positive and negative difference arrays is calculated;

[0075] According to the variance Xs of the indication-actual difference array and the variance Us of the interval difference array in the positive cycle test, the variance Ys of the indication-actual difference array and the variance Vs of the interval difference array in the reverse cycle test, and the variance Zs of the positive and negative difference arrays, the stability score Q of the micro switch 1 is obtained, the stability score Q is output and the stability performance of the micro switch 1 is evaluated.

[0076] The present invention detects the stability of the micro switch 1 by setting a screening tool, and tests the stability of the triggering process and the releasing process of the micro switch 1 through a positive cycle test and a reverse cycle test respectively, so as to obtain a stability score of the micro switch 1 to be tested. According to the score, it can be determined whether the micro switch 1 meets the current use requirements, so as to screen and obtain the micro switch 1 that meets the stability requirements of different application scenarios, thereby ensuring the working performance of the micro switch 1 when in use.

[0077] During the test, the micro switch 1 is fixed by the base 2 to ensure the stability of the connection of the micro switch 1, provide a stable environment and conditions for subsequent tests, and ensure the accuracy of the test results; by forming a transition surface 3a and an inclined test surface 3b on the test plate 3, not only can the pressing action in actual use be simulated to ensure the accuracy and repeatability of the test, but the extremely short pressing stroke of the micro switch 1 can also be converted into a longer moving stroke of the test plate 3, so as to facilitate the testing of the stability of the triggering and releasing process of the micro switch 1, and ensure the comprehensiveness and accuracy of the positive cycle test and the reverse cycle test; the sensor reading of the micro switch 1 during the triggering process is recorded in real time by the sensor, so as to accurately determine the state of the micro switch 1 and provide original data for subsequent data analysis.

[0078] By performing positive cycle test and reverse cycle test on micro switch 1 to obtain stability score, the performance of micro switch 1 can be quantified, which is convenient for comparing and selecting micro switch 1 suitable for use requirements; by obtaining the average Xave, Yave and variance Xs, Ys in the positive cycle test and reverse cycle test respectively, the consistency and stability of the triggering process and the releasing process of micro switch 1 can be evaluated respectively; by comparing the differences in the positive cycle test and the reverse cycle test, the overall performance changes of micro switch 1 can be more deeply understood, thereby forming a full process monitoring of micro switch 1, and then the stability score formed subsequently can be used to evaluate and screen micro switch 1 to ensure that the selected switch can meet the needs of refined applications.

[0079] Based on the above embodiment, the nth positive cycle test includes the following steps:

[0080] Start timing from zero, record the positive cycle test time as t1, and monitor the sensor reading S in real time;

[0081] If the sensor reading S<Smax, then when t1=T, the sensor reading change △Sn and the reading-actual difference Xn are obtained according to the following formula;

[0082] △Sn=Sn-S0;

[0083] Xn=△Sn-n·s·T·tanθ;

[0084] And when n≥2, the interval difference Un is obtained according to the following formula:

[0085] Un=(Sn-S(n-1)) / T-(S(n-1)-S(n-2)) / T;

[0086] After a single positive cycle test is completed, the positive cycle test time t1 is reset to zero and the next positive cycle test is entered;

[0087] If the sensor reading S=Smax, the positive cycle test is stopped immediately, and the time when the cycle is stopped is recorded as the positive cycle test time t1 and the total number of positive cycles q. The sensor reading change △Sn, reading-actual difference Xn and interval difference Un are obtained by the following formula:

[0088] △Sn=Sn-S0;

[0089] Xn=△Sn-(n-1)·s·T·tanθ-s·t1·tanθ;

[0090] Un=(Sn-S(n-1)) / T-(S(n-1)-S(n-2)) / t1;

[0091] Among them, Smax is the sensor reading corresponding to the micro switch 1 being in the pressed state, T is the interval period, S0 represents the initial sensor reading, n represents the number of cycles, s represents the displacement of the test plate 3 controlled by the drive platform 4 per second, and the unit is mm / s, θ represents the angle between the test surface 3b and the transition surface 3a, and the unit is rad; Sn is the sensor reading when the positive cycle test time t1 reaches the interval period in the nth positive cycle test, S(n-1) represents the sensor reading when the positive cycle test time t1 reaches the interval period in the n-1th positive cycle test, and S(n-2) represents the sensor reading when the positive cycle test time t1 reaches the interval period in the n-2th positive cycle test.

[0092] By starting the timing from zero and monitoring the sensor indication S in real time, every subtle change of the micro switch 1 during the triggering process can be captured to ensure the accuracy of the detection data; by calculating the sensor indication change △Sn and the indication-actual difference Xn, a dynamic difference calculation is formed, so that the performance change of the micro switch 1 in each cycle test can be evaluated; and when the number of positive cycle tests reaches more than two times, the interval difference Un is introduced to analyze the performance change trend of the micro switch 1 in a continuous time period, so as to evaluate the continuity and stability of the micro switch 1 during the triggering process, and the interval difference Un is obtained by forming a ratio with the interval period, which can avoid the influence of the division of the interval period on the stability judgment of the triggering process in the obtained test data.

[0093] When calculating the indication-actual difference Xn, the actual accumulated displacement of the micro switch 1 during operation can be converted through the displacement s of the drive table 4 and the angle θ between the test surface 3b and the transition surface 3a. According to the sensor test results and the actual accumulated displacement, the fluctuation error generated by each positive cycle test of the micro switch 1 during the triggering process can be determined, thereby making the subsequent evaluation results more accurate and comprehensive.

[0094] During the positive cycle test, when the micro switch 1 reaches the pressed state from the contact state, that is, when the sensor indication changes to Smax, the test is stopped immediately and the relevant data is recorded, so as to avoid misjudgment caused by exceeding the pressed state. By forming the above optimization steps during the positive cycle test, a more accurate stability score Q can be obtained, thereby more accurately evaluating the stability performance of the micro switch 1 and ensuring that the screening decision is more objective and reliable.

[0095] Based on the above embodiment, the m-th reverse circulation test includes the following steps:

[0096] Start timing from zero, record the reverse circulation test time as t2, and monitor the sensor reading S in real time;

[0097] If the sensor reading S>Smin, then when t2=T, the sensor reading change △Sm and the reading-actual difference Ym are obtained according to the following formula;

[0098] △Sm=S0-Sm;

[0099] Ym=△Sm-m·s·T·tanθ;

[0100] And when m≥2, the interval difference Um is obtained according to the following formula:

[0101] Um=(Sm-S(m-1)) / T-(S(m-1)-S(m-2)) / T;

[0102] After a single reverse circulation test is completed, the reverse circulation test time is reset to zero for t2, and the next reverse circulation test is started;

[0103] If the sensor reading S=Smin, stop the reverse cycle test immediately, and record the time when the cycle is stopped, the reverse cycle test time t2, and the total number of reverse cycles q. The sensor reading change △Sm, reading-actual difference Xm, and interval difference Vm are obtained by the following formula:

[0104] △Sm=S0-Sm;

[0105] Xm=△Sm-(m-1)·s·T·tanθ-s·t2·tanθ;

[0106] Vm=(S(m-1)-S(m-2)) / t2-(Sm-S(m-1)) / T;

[0107] Among them, Smin is the sensor reading corresponding to the micro switch 1 being in contact state, T is the interval period, S0 represents the initial reading of the sensor, m represents the number of cycles, s represents the displacement of the test plate 3 controlled by the drive platform 4 per second, and the unit is mm / s, θ represents the angle between the test surface 3b and the transition surface 3a, and the unit is rad; Sm is the sensor reading when the positive cycle test time t2 reaches the interval period in the m-th reverse cycle test, S(m-1) represents the sensor reading when the reverse cycle test time t2 reaches the interval period in the m-1th reverse cycle test, and S(m-2) represents the sensor reading when the reverse cycle test time t2 reaches the interval period in the m-2th reverse cycle test.

[0108] Through the reverse cycle test, the stability of the release process of the micro switch 1 during actual use can be simulated, so as to form a more comprehensive performance evaluation. The test process is roughly the same as the positive cycle test process mentioned above, which will not be repeated here. The difference is that the drive platform 4 controls the test plate 3 to move in the opposite direction, so that the micro switch 1 reaches the upper limit state from the lower limit state, and during this time, the reverse cycle test time starts from the contact state, that is, after the reverse cycle test is completed, the interval period of the reverse cycle test is opposite to the interval period of the positive cycle test, so as to ensure that only the last positive cycle test time and the reverse cycle test time are different from the interval period, simplifying the interval period division process and ensuring the uniformity of the interval period division.

[0109] Based on the above embodiment, the interval period T is obtained by the following steps:

[0110] The period error value A is calculated by the formula A=2·q·T-2·(q-1)·T-t1-t2, and the period error value A is compared with the set threshold value;

[0111] If the period error value A does not exceed the set error threshold, the positive cycle test and the reverse cycle test are performed with the current interval period T; if the period error value A exceeds the set error threshold, the theoretical interval period B is obtained by the formula B=(2·(q-1)·T+t1+t2) / 2q;

[0112] Update the interval period T so that the interval period T satisfies the following conditions:

[0113] T = C·n;

[0114] C·n>B;

[0115] C·nB=Dmin;

[0116] Among them, A represents the period error value, B represents the theoretical interval period, C is a positive integer, n is an artificially set unit time value, and Dmin represents the minimum period update difference.

[0117] According to the initially set interval period, the theoretical time 2·q·T and the actual time 2·(q-1)·T-t1-t2 required to complete the positive cycle test and the reverse cycle test can be determined, so as to obtain the cycle error value and compare it with the set error threshold to determine whether the initially set interval meets the error requirements. When the error is too large, the time of the last positive cycle test and the reverse cycle test will differ too much from the interval period, affecting the accuracy of the obtained indication change, indication-actual difference and interval difference data results; the theoretical interval period B is obtained by calculation, but because the theoretical interval period has a small number of digits or decimals, the system It is difficult to achieve the control accuracy of the theoretical interval period. At this time, the interval period can be updated so that the interval period is an integer multiple of the unit time value, and the difference between the interval period and the theoretical period is the minimum period update difference, that is, the updated interval period is infinitely close to the theoretical interval period, where the unit time value is a manually set value, usually the minimum time unit that the system can accurately control, such as 10mm, which is not specifically limited here; before the test, the interval period is adaptively adjusted to ensure the uniformity of the interval period division, avoid deviations in time control, ensure precise control of the test cycle, and ensure the accuracy of the test results.

[0118] Based on the above embodiment, the stability score Q is obtained by the following formula:

[0119] Q=K1·Xs+K2·Us+K3·Ys+K4·Vs+K5·Zs;

[0120] Among them, K1~K5 are artificially set coefficients, which are determined according to the use scenario of the micro switch 1; Xs is the variance of the indication-actual difference array in the positive cycle test, and Us is the variance of the interval difference array in the positive cycle test; Ys is the variance of the indication-actual difference array in the reverse cycle test, and Vs is the variance of the interval difference array in the reverse cycle test; Zs is the variance of the positive and negative difference arrays.

[0121] Xs and Ys reflect the stability of the difference between the indication and the actual displacement, Us and Vs reflect the stability of the variation between different test interval cycles, and Zs reflects the stability of the monitored variation corresponding to the two processes of forward pressing and reverse releasing. The above formula is used to form an overall stability evaluation for the single touch process, single release process, and single touch and release process of the micro switch 1, and the stability can be quantified into a fractional value, which can more objectively compare the performance of different micro switches 1, and consider multiple variance indicators Xs, Us, Ys, Vs, Zs provides a comprehensive stability performance evaluation; when the stability score is higher, the variance data obtained from the test is larger and the stability is poorer. At this time, the micro switch 1 corresponding to a stability score lower than a certain value can be selected for application in the usage scenario, thereby providing clear guidance for screening and reducing application risks; and balancing performance and cost, and selecting the micro switch 1 with high cost performance; among them, K1~K5 are artificially set coefficients, which are determined according to the usage scenario of the micro switch 1, so as to weight different test indicators according to their importance in a specific application scenario, so that the evaluation is more in line with actual needs and increases the flexibility of the evaluation.

[0122] On the basis of the above embodiment, a coefficient-screening mode relationship comparison table is set, and the corresponding screening mode is set according to the usage scenario of the micro switch 1, and each screening mode corresponds to a set of different K1~K5 values, and the required screening mode is input before the micro switch 1 screening test.

[0123] Inputting the required screening mode before screening and testing simplifies the operation process, so that the user does not need to manually adjust each coefficient; and by setting specific screening modes for different usage scenarios, it can ensure that the performance evaluation of the micro switch 1 matches its actual application requirements. The use of the comparison table helps to standardize the screening process, reduce the interference of human factors, improve the consistency and repeatability of screening, and improve the screening efficiency.

[0124] In addition, a manual mode can be set to allow the user to adjust the values ​​of K1 to K5 according to the importance of the micro switch 1 in a specific application, so as to more accurately reflect the weight of each test indicator and adapt it to special screening needs. For example, when the micro switch 1 mainly works in a mode of reaching a pressed state from a contact state, the values ​​of K1 and K2 can be appropriately increased, and the values ​​of K3 to K5 can be reduced, focusing on forming a stability evaluation during the positive cycle test, thereby better controlling risks.

[0125] On the basis of the above embodiment, the micro switch 1 after the test is numbered, and the variance Xs of the indication-actual difference array and the variance Us of the interval difference array in the positive cycle test corresponding to the micro switch 1, the variance Ys of the indication-actual difference array and the variance Vs of the interval difference array in the reverse cycle test, and the variance Zs of the positive and negative difference array are output and recorded. When changing different screening modes, the stability score Q of the micro switch 1 in the corresponding screening mode is obtained, and the stability performance of the micro switch 1 in the screening mode is evaluated.

[0126] By numbering the micro switches 1, a unique identifier is provided for each switch to facilitate tracking and management, and the variance (Xs, Us, Ys, Vs, Zs) in the positive cycle test and the reverse cycle test is recorded to provide detailed data for subsequent analysis and evaluation; and the stability score Q is allowed to be recalculated in different screening modes, providing the ability to adjust the evaluation criteria according to usage requirements. There is no need to re-perform repetitive tests, and a new stability evaluation can be quickly obtained by changing the screening mode and recalculating, so as to quickly find the micro switch 1 that best suits the current needs; thereby establishing a standardized testing, recording and evaluation process, which helps to improve the efficiency and reliability of the entire screening and evaluation process.

[0127] On the basis of the above embodiment, while outputting the stability score Q of the micro switch 1, the average Xave of the array of indication-actual difference in the positive cycle test and the average Yave of the array of indication-actual difference in the reverse cycle test are outputted as compensation values ​​at the same time.

[0128] Xave and Yave are the averages of the arrays of indication-actual difference in the positive cycle test and the reverse cycle test respectively. In actual use, the averages can be used as compensation values ​​of the micro switch 1 to improve the performance of the micro switch 1 in actual use, reduce errors and improve reliability.

[0129] Based on the above embodiment, after the micro switch 1 to be tested is assembled to the screening tooling, the position of the base 2 is adjusted so that when the micro switch 1 is in the contact state and the pressed state, the contact points between the trigger button 1a of the micro switch 1 and the test board 3 are both located on the test surface 3b.

[0130] By ensuring that the contact point between the trigger button 1a of the microswitch 1 and the test board 3 is on the test surface 3b, the displacement s of the drive platform 4 and the angle θ between the test surface 3b and the transition surface 3a in the positive cycle test and the reverse cycle test can be accurately converted to obtain the actual accumulated displacement of the microswitch 1 during operation, avoiding test errors caused by position deviations, and improving the accuracy of the test results, providing a reliable basis for subsequent data analysis and calculation of the stability score Q.

[0131] Corresponding micrometer screws may be mounted on the base 2 along the horizontal and vertical directions to detect the displacement of the base 2 to ensure the accuracy of position adjustment.

[0132] The present invention also provides a micro switch 1 pressing stroke screening detection system, comprising:

[0133] The control module is used to control the screening tooling equipped with the micro switch 1 to be tested to work, so that the driving platform 4 can receive the command of the control module to drive the test plate 3 to move back and forth along the direction perpendicular to the triggering direction of the micro switch 1 to perform the positive cycle test and the reverse cycle test;

[0134] A data collection module, used to collect sensor reading data obtained in real time during the forward cycle test and the reverse cycle test and various test parameters of the micro switch 1;

[0135] A data processing module is used to receive the sensor indication data of the data collection module and various test parameters of the micro switch 1, and process to obtain the indication-actual difference array X1, X2...Xq and the interval difference array U2, U3...Uq in the positive cycle test, and the indication-actual difference array Y1, Y2...Yq and the interval difference array V2, V3...Vq in the reverse cycle test; and calculate to obtain the average Xave and variance Xs of the indication-actual difference array in the positive cycle test and the variance Us of the interval difference array, the average Yave and variance Ys of the indication-actual difference array in the reverse cycle test and the variance Vs of the interval difference array, the positive and negative difference arrays U2-Vq, U3-V(q-1)...Uq-V2, and the variance Zs of the positive and negative difference arrays;

[0136] The database module is used to output and record the variance Xs of the array of indicated values-actual difference values ​​and the variance Us of the array of interval difference values ​​in the positive cycle test corresponding to the micro switch 1, the variance Ys of the array of indicated values-actual difference values ​​and the variance Vs of the array of interval difference values ​​in the reverse cycle test, and the variance Zs of the array of positive and negative difference values ​​obtained by the data processing module;

[0137] The stability evaluation module is used to obtain the stability score Q of the micro switch 1 under different screening modes and evaluate the stability performance of the micro switch 1 under the screening mode.

[0138] By setting up a control module, it is ensured that the test board 3 moves back and forth according to the established program, and the positive cycle and reverse cycle tests are automatically performed to improve efficiency and reduce human errors; by setting up a data collection module to collect sensor readings and test parameters, provide raw data for subsequent analysis, and ensure the timeliness and accuracy of the data; by setting up a data processing module to process and analyze the data collected in the positive cycle test and the reverse cycle test, provide data support for evaluating the stability of the micro switch 1, and provide key performance indicators; by setting up a database module to store the test results and the calculated variance, record detailed test data and stability scores, and facilitate subsequent query and analysis and comparison, providing a basis for long-term quality control and performance tracking; by setting up a stability evaluation module, the stability score Q is automatically calculated according to the set screening mode, and the stability performance of the micro switch 1 is quickly evaluated, thereby providing a standardized evaluation system to help users choose the micro switch 1 that best suits a specific application scenario; the entire system reduces manual operations, improves the consistency and repeatability of tests, and improves the accuracy of test results through precise control and real-time data collection. The automated test process significantly improves test efficiency and reduces test costs; and allows users to select different screening modes according to different usage scenarios, increasing the adaptability of the system.

[0139] Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A micro switch pressing stroke screening detection method, characterized in that: The following steps are involved: Assemble the micro switch to be tested onto a screening tool, which includes a base, a test board, a drive platform and a sensor, wherein the micro switch is fixedly arranged on the base and electrically connected to the sensor, and a trigger button of the micro switch is arranged toward a side of the drive platform; the test board is fixedly arranged on a side of the drive platform close to the base, and can drive the test board to move back and forth along a direction perpendicular to the triggering direction of the micro switch; the test board has a transition surface and a test surface on a side facing the micro switch, the test surface is an inclined slope, and the angle between the test surface and the transition surface is θ, and the trigger button of the micro switch is arranged to be opposite to the transition surface in the initial position; The driving platform controls the test plate to move toward the side where the test surface is located, so that the trigger button of the micro switch forms a contact effect with the test surface. At this time, the sensor indication S reaches the sensor indication Smin corresponding to the micro switch being in the contact state, and the sensor initial indication S0=Smin is set, and q positive cycle tests are started until the micro switch is triggered and the micro switch is in the pressed state; the indication-actual difference array X1, X2...Xq and the interval difference array U2, U3...Uq in the positive cycle test are obtained, and the average Xave and variance Xs of the indication-actual difference array in the positive cycle test and the variance Us of the interval difference array are calculated; The driving platform controls the test plate to move in the reverse direction so that the micro switch is triggered. At this time, the sensor indication S reaches the sensor indication Smax corresponding to the micro switch being in the pressed state, and the sensor initial indication S0=Smax is set, and q reverse cycle tests are started until there is no interaction force between the trigger button of the micro switch and the test surface, and the micro switch is in the contact state; the indication-actual difference array Y1, Y2...Yq and the interval difference array V2, V3...Vq in the reverse cycle test are obtained, and the average Yave and variance Ys of the indication-actual difference array in the reverse cycle test and the variance Vs of the interval difference array are calculated; According to the interval difference array U2, U3...Uq obtained in the positive cycle test and the interval difference array V2, V3...Vq obtained in the reverse cycle test, the positive and negative difference arrays U2-Vq, U3-V(q-1)...Uq-V2 are obtained, and the variance Zs of the positive and negative difference arrays is calculated; According to the variance Xs of the indication-actual difference array and the variance Us of the interval difference array in the positive cycle test, the variance Ys of the indication-actual difference array and the variance Vs of the interval difference array in the reverse cycle test, and the variance Zs of the positive and negative difference arrays, the stability score Q of the micro switch is obtained, the stability score Q is output, and the stability performance of the micro switch is evaluated; The stability score Q is obtained by the following formula: Q=K1·Xs+K2·Us+K3·Ys+K4·Vs+K5·Zs; Among them, K1~K5 are artificially set coefficients, which are determined according to the usage scenario of the micro switch; Xs is the variance of the indication-actual difference array in the positive cycle test, and Us is the variance of the interval difference array in the positive cycle test; Ys is the variance of the indication-actual difference array in the reverse cycle test, and Vs is the variance of the interval difference array in the reverse cycle test; Zs is the variance of the positive and negative difference arrays.

2. The micro switch pressing stroke screening detection method according to claim 1 is characterized in that: The positive cycle test for the nth time comprises the following steps: Start timing from zero, record the positive cycle test time as t1, and monitor the sensor reading S in real time; If the sensor reading S<Smax, then when t1=T, the sensor reading change △Sn and the reading-actual difference Xn are obtained according to the following formula; △Sn=Sn-S0; Xn=△Sn-n·s·T·tanθ; And when n≥2, the interval difference Un is obtained according to the following formula: Un=(Sn-S(n-1)) / T-(S(n-1)-S(n-2)) / T; After a single positive cycle test is completed, the positive cycle test time t1 is reset to zero and the next positive cycle test is entered; If the sensor reading S=Smax, the positive cycle test is stopped immediately, and the time when the cycle is stopped is recorded as the positive cycle test time t1 and the total number of positive cycles q. The sensor reading change △Sn, reading-actual difference Xn and interval difference Un are obtained by the following formula: △Sn=Sn-S0; Xn=△Sn-(n-1)·s·T·tanθ-s·t1·tanθ; Un=(Sn-S(n-1)) / T-(S(n-1)-S(n-2)) / t1; Among them, Smax is the sensor reading corresponding to the micro switch in the pressed state, T is the interval period, S0 represents the initial reading of the sensor, n represents the number of cycles, s represents the displacement of the test plate controlled by the drive platform per second, and the unit is mm / s, θ represents the angle between the test surface and the transition surface, and the unit is rad; Sn is the sensor reading when the positive cycle test time t1 reaches the interval period in the nth positive cycle test, S(n-1) represents the sensor reading when the positive cycle test time t1 reaches the interval period in the n-1th positive cycle test, and S(n-2) represents the sensor reading when the positive cycle test time t1 reaches the interval period in the n-2th positive cycle test.

3. The micro switch pressing stroke screening detection method according to claim 2 is characterized in that: The m-th reverse circulation test comprises the following steps: Start timing from zero, record the reverse circulation test time as t2, and monitor the sensor reading S in real time; If the sensor reading S>Smin, then when t2=T, the sensor reading change △Sm and the reading-actual difference Ym are obtained according to the following formula; △Sm=S0-Sm; Ym=△Sm-m·s·T·tanθ; And when m≥2, the interval difference Um is obtained according to the following formula: Um=(Sm-S(m-1)) / T-(S(m-1)-S(m-2)) / T; After a single reverse circulation test is completed, the reverse circulation test time is reset to zero for t2, and the next reverse circulation test is started; If the sensor reading S=Smin, stop the reverse cycle test immediately, and record the time when the cycle is stopped, the reverse cycle test time t2, and the total number of reverse cycles q. The sensor reading change △Sm, reading-actual difference Xm, and interval difference Vm are obtained by the following formula: △Sm=S0-Sm; Xm=△Sm-(m-1)·s·T·tanθ-s·t2·tanθ; Vm=(S(m-1)-S(m-2)) / t2-(Sm-S(m-1)) / T; Among them, Smin is the sensor reading corresponding to the micro switch being in contact state, T is the interval period, S0 represents the initial reading of the sensor, m represents the number of cycles, s represents the displacement of the test plate controlled by the drive platform per second, and the unit is mm / s, θ represents the angle between the test surface and the transition surface, and the unit is rad; Sm is the sensor reading when the positive cycle test time t2 reaches the interval period in the m-th reverse cycle test, S(m-1) represents the sensor reading when the reverse cycle test time t2 reaches the interval period in the m-1th reverse cycle test, and S(m-2) represents the sensor reading when the reverse cycle test time t2 reaches the interval period in the m-2th reverse cycle test.

4. The micro switch pressing stroke screening detection method according to claim 3 is characterized in that: The interval period T is obtained by the following steps: The period error value A is calculated by the formula A=2·q·T-2·(q-1)·T-t1-t2, and the period error value A is compared with the set threshold value; If the period error value A does not exceed the set error threshold, the positive cycle test and the reverse cycle test are performed with the current interval period T; if the period error value A exceeds the set error threshold, the theoretical interval period B is obtained by the formula B=(2·(q-1)·T+t1+t2) / 2q; Update the interval period T so that the interval period T satisfies the following conditions: T = C·n; C·n>B; C·nB=Dmin; Among them, A represents the period error value, B represents the theoretical interval period, C is a positive integer, n is an artificially set unit time value, and Dmin represents the minimum period update difference.

5. The micro switch pressing stroke screening detection method according to claim 1, characterized in that: Set up a coefficient-screening mode relationship comparison table, set the corresponding screening mode according to the usage scenario of the micro switch, and each screening mode corresponds to a different set of K1~K5 values, and enter the required screening mode before the micro switch screening test.

6. The micro switch pressing stroke screening detection method according to claim 5 is characterized in that: The micro switches after the test are numbered, and the variance Xs of the indication-actual difference array and the variance Us of the interval difference array in the positive cycle test corresponding to the micro switch, the variance Ys of the indication-actual difference array and the variance Vs of the interval difference array in the reverse cycle test, and the variance Zs of the positive and negative difference array are output and recorded. When changing different screening modes, the stability score Q of the micro switch in the corresponding screening mode is obtained, and the stability performance of the micro switch in the screening mode is evaluated.

7. The micro switch pressing stroke screening detection method according to claim 1, characterized in that: While outputting the stability score Q of the micro switch, the average Xave of the array of indication-actual difference in the positive cycle test and the average Yave of the array of indication-actual difference in the reverse cycle test are outputted as compensation values ​​at the same time.

8. The micro switch pressing stroke screening detection method according to claim 1, characterized in that: After the micro switch to be tested is assembled to the screening tool, the position of the base is adjusted so that when the micro switch is in the contact state and the pressed state, the contact point between the trigger button of the micro switch and the test board is located on the test surface.

9. A micro switch pressing stroke screening detection system, characterized in that: include: The control module is used to control the screening tooling equipped with the micro switch to be tested to work, so that the driving platform can receive the command of the control module to drive the test plate to move back and forth along the direction perpendicular to the triggering direction of the micro switch to perform positive cycle test and reverse cycle test; A data collection module is used to collect sensor reading data obtained in real time during the forward cycle test and the reverse cycle test and various test parameters of the micro switch; A data processing module is used to receive the sensor indication data of the data collection module and various test parameters of the micro switch, and process to obtain the indication-actual difference array X1, X2...Xq and interval difference array U2, U3...Uq in the positive cycle test, and the indication-actual difference array Y1, Y2...Yq and interval difference array V2, V3...Vq in the reverse cycle test; and calculate to obtain the average Xave and variance Xs of the indication-actual difference array in the positive cycle test and the variance Us of the interval difference array, the average Yave and variance Ys of the indication-actual difference array in the reverse cycle test and the variance Vs of the interval difference array, the positive and negative difference arrays U2-Vq, U3-V(q-1)...Uq-V2, and the variance Zs of the positive and negative difference arrays; A database module, used to output and record the variance Xs of the array of indicated values-actual difference values ​​and the variance Us of the array of interval difference values ​​in the positive cycle test corresponding to the micro switch, the variance Ys of the array of indicated values-actual difference values ​​and the variance Vs of the array of interval difference values ​​in the reverse cycle test, and the variance Zs of the array of positive and negative difference values ​​obtained by the data processing module; A stability evaluation module, used to obtain the stability score Q of the micro switch under different screening modes, and to evaluate the stability performance of the micro switch under the screening mode; The stability score Q is obtained by the following formula: Q=K1·Xs+K2·Us+K3·Ys+K4·Vs+K5·Zs; Among them, K1~K5 are artificially set coefficients, which are determined according to the usage scenario of the micro switch; Xs is the variance of the indication-actual difference array in the positive cycle test, and Us is the variance of the interval difference array in the positive cycle test; Ys is the variance of the indication-actual difference array in the reverse cycle test, and Vs is the variance of the interval difference array in the reverse cycle test; Zs is the variance of the positive and negative difference arrays.