MEMS sensor pre-marking method and system based on different patch paste thicknesses
By constructing multiple soldering conditions in MEMS sensors, establishing a generalized additive model and dividing solder joint segments, the sensor drift problem caused by differences in soldering processes is solved, achieving high-precision pre-calibration and online compensation, and adapting to the production needs of multiple manufacturing plants.
Patent Information
- Application Number
- CN202611674249.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing MEMS sensors suffer from output drift issues due to differences in soldering processes on SMT production lines of different manufacturers. Current processing methods are difficult to adapt to parallel production in multiple factories, and global models are insufficient to characterize nonlinear thermomechanical coupling relationships, resulting in limited compensation effects.
By constructing various soldering conditions in the laboratory, collecting sensor outputs and soldering parameters, establishing a generalized additive model, dividing the solder joint into segments, compressing the model parameters into non-volatile memory, automatically compensating for drift during field operation, and using a segmented generalized additive model for pre-calibration of different solder paste materials and thicknesses.
It effectively reduces sensor drift caused by differences in soldering processes, improves measurement accuracy and interchangeability, reduces production management costs, and adapts to supply chain process constraints in multi-production bases.
Smart Images

Figure CN123175332A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of microelectromechanical systems (MEMS) technology, and to a method and system for pre-calibrating MEMS sensors based on different surface mount solder paste thicknesses. Background Technology
[0002] MEMS accelerometers and tilt sensors are generally soldered onto PCB circuit boards using surface mount reflow soldering. Solder paste serves as the connection medium between the chip and the pads. The thickness, material, and soldering temperature profile of the solder paste directly affect the mechanical stiffness and thermal expansion matching relationship of the solder joint. The residual stress generated during the reflow soldering cooling stage can cause slight deformation of the sensor's sensitive structure, which ultimately manifests as zero-bias drift in the output, directly affecting the sensor's measurement accuracy.
[0003] The SMT production line processes of different manufacturers are not standardized. Actual production involves using various solder paste specifications and reflow soldering parameters. Current methods mostly employ standardized factory calibration parameters, failing to consider the stress effects caused by differences in soldering processes. This results in significant dispersion in measurement results for the same sensor model after placement on different production lines. Some companies rely on strictly limiting solder paste specifications and reflow soldering processes to control drift, but this approach places high demands on supply chain management, increases production management costs, and is difficult to adapt to the actual needs of parallel production across multiple foundries.
[0004] Some existing technologies use a globally unified fitting model for stress drift compensation, without distinguishing working conditions based on solder paste material and thickness. The global model is difficult to characterize the complex nonlinear thermomechanical coupling relationship under different solder joint conditions, resulting in limited compensation effect. At the same time, most compensation algorithms do not consider the storage and computing power limitations of embedded microcontrollers, and complex models cannot be directly implemented on low-cost MCU devices, making it difficult to balance compensation accuracy and hardware operating conditions. Summary of the Invention
[0005] (a) Technical problems to be solved To address the shortcomings of existing technologies, this invention provides a method and system for pre-calibrating MEMS sensors based on different solder paste thicknesses, thus solving the aforementioned problems.
[0006] (II) Technical Solution To achieve the above-mentioned objectives, the present invention provides the following technical solution: a pre-calibration method for MEMS sensors based on different solder paste thicknesses, comprising the following steps: S1, in a laboratory environment, surface mount reflow soldering is carried out on the MEMS sensor to be calibrated using different solder paste thicknesses, different solder paste materials and different soldering temperatures to construct multiple soldering conditions; S2. Synchronously acquire the triaxial raw output of the MEMS sensor, soldering process parameters, and solder joint quality parameters; extract the stress feature vector; calculate the sensor drift based on the triaxial raw output; the drift calculation formula is as follows: ΔY=|Yraw|-g In the formula Yraw is the raw triaxial output of the sensor, and g represents the acceleration due to gravity. S3. Divide the data sample consisting of stress feature vector and sensor drift into no less than three solder joint segments according to solder paste material type and solder paste thickness. Establish a generalized additive model for each solder joint segment. The generalized additive model expression is ΔY=Σsj(Fj)+ε, which represents the smooth spline function and ε represents the model error term. Solve to obtain the model parameters corresponding to each group of solder joint segments. S4. Convert the model parameters, segment division thresholds and feature normalization coefficients of all solder joint segments into q15 fixed-point format and write them into the non-volatile memory of the MEMS sensor. The overall storage capacity is controlled within 8kB. When the S5 and MEMS sensors are running online, the microcontroller reads the solder paste material identification code and solder paste thickness used in the current assembly, compares the segment division threshold with the corresponding model parameters, completes the drift prediction calculation within two milliseconds, and uses the predicted drift amount to perform compensation calculation on the original sensor output to obtain the corrected sensor output.
[0007] Preferably, in step S1, the solder paste thickness is selected as 50μm, 100μm, 150μm, 200μm and 250μm, the solder paste material is selected as lead-free high temperature solder paste SAC305, lead-free medium temperature solder paste SAC387, leaded solder paste Sn63Pb37 and low temperature solder paste Sn42Bi58, and the peak soldering temperature is set to a range of 180℃ to 260℃. Multiple sets of parameters are combined to build different reflow soldering experimental conditions.
[0008] Preferably, the stress feature vector in step S2 includes solder paste thickness, solder paste material, peak soldering temperature, reflow time, cooling rate, solder joint shear strength, solder joint resistance, and temperature rise; the solder paste material identification code is represented by a 4-bit code burned into the sensor at the factory; the solder paste thickness is obtained by measuring the stencil parameters or a 3D solder paste thickness gauge; the peak soldering temperature, reflow time, and cooling rate are obtained by analyzing the reflow oven temperature curve recorder; the solder joint shear strength is sampled and tested by a push-pull force tester; the solder joint resistance is sampled and tested by a four-wire micro-ohmmeter; and the temperature rise is obtained by sampling the onboard NTC thermistor of the PCB through an ADC.
[0009] Preferably, in step S3, the number of smooth spline function nodes in the generalized additive model corresponding to each solder joint segment is set to no more than 3, and the number of fixed-point multiplication and addition operations performed by the generalized additive model corresponding to each solder joint segment to complete one inference operation is no more than 12.
[0010] Preferably, in step S3, the total number of solder joint segments is set to 9. According to the solder paste material type, they are divided into lead-free high-temperature zone, lead-free medium-temperature zone, leaded zone, and low-temperature zone. They are further divided according to the solder paste thickness into thin paste zone, medium paste zone, and thick paste zone. The solder paste thickness in the thin paste zone is no more than 100μm, the solder paste thickness in the medium paste zone is greater than 100μm and no more than 180μm, and the solder paste thickness in the thick paste zone is greater than 180μm. The material category and thickness category are combined to obtain nine solder joint segments.
[0011] Preferably, the q15 fixed-point format used in step S4 is a sixteen-bit signed number, including one sign bit and fifteen decimal places. After the coefficient rounding process is performed using this fixed-point format, the resulting drift prediction error is no greater than 0.3mg.
[0012] Preferably, the execution process of step S5, which completes the drift prediction calculation within two milliseconds, involves reading no more than 48 bytes of model coefficient data from non-volatile memory, performing no more than 12 fixed-point multiply-add operations, completing one result write-back operation, and the total CPU clock cycles for the entire calculation process not exceeding 128,000 cycles.
[0013] Preferably, it also includes an online fine-tuning step, in which the residual of the output result is continuously statistically analyzed during the operation. When the standard deviation of the residual is greater than 0.15mg and the abnormal state lasts for more than 24 hours, the microcontroller retrieves the operation data collected in the most recent day, refits the generalized additive model of the current solder joint segment, and rewrites the updated model parameters into the non-volatile memory.
[0014] Preferably, after compensation and correction by this method, the tilt angle zero deviation of the MEMS sensor caused by the difference in soldering process is no more than 0.05 degrees.
[0015] The system based on a pre-calibration method for MEMS sensors with different solder paste thicknesses includes a soldering process excitation module, a synchronous acquisition module, a data processing and modeling module, a parameter programming module, a microcontroller, and a sensor online calibration module. The soldering process excitation module performs reflow soldering assembly with different solder paste thicknesses, materials, and temperatures, establishing various soldering conditions. The synchronous acquisition module acquires the triaxial raw output of the MEMS sensor, soldering process parameters, and solder joint quality parameters, extracts stress feature vectors, and calculates sensor drift. The data processing and modeling module performs solder joint segmentation and establishes generalized models for each solder joint segment. The system can add a model to solve for model parameters; the parameter programming module is used to convert the segment model parameters, segment division thresholds, and feature normalization coefficients into q15 fixed-point format and write them into non-volatile memory; the microcontroller is used to read the solder paste material identification code and solder paste thickness under on-site assembly conditions; the sensor online calibration module is integrated inside the microcontroller to match segment model parameters, complete drift prediction, and compensate for the original sensor output; all modules of the system work together to execute all steps of the pre-calibration method. After the microcontroller completes the fixed-point inference calculation, the system still has more than 60kB of available RAM, which can ensure the concurrent operation of other business tasks of the equipment.
[0016] (III) Beneficial Effects Compared with the prior art, the present invention provides a method and system for pre-calibrating MEMS sensors based on different patch solder paste thicknesses, which has the following advantages: 1. This method and system for pre-calibrating MEMS sensors based on different solder paste thicknesses involves setting up multiple reflow soldering physical calibration conditions with different solder paste thicknesses, materials, and soldering temperatures in the laboratory. Multi-dimensional stress feature vectors are extracted, and solder joint segments are divided according to solder paste material and thickness, with generalized additive models established for each segment. The model parameters are compressed using the q15 fixed-point format and then stored in non-volatile memory. During field operation, the solder paste identification code is read to automatically match the corresponding model and complete drift compensation. This method suppresses thermomechanical coupling drift introduced by different SMT processes without requiring structural modifications to the hardware, significantly reducing supply chain process constraints between multiple production bases and effectively improving the output accuracy and interchangeability of MEMS sensors across different production lines.
[0017] 2. This MEMS sensor pre-calibration method and system based on different solder paste thicknesses adds an online fine-tuning mechanism driven by residual statistics, sets storage and computing power constraints for fixed-point operations for low-end embedded MCUs, and balances model inference speed and hardware resource consumption. It distinguishes different solder joint conditions for partitioned modeling, which can better adapt to the nonlinear stress drift characteristics under thin, medium and thick pastes and various solder paste materials compared to a global single model. It further improves the measurement stability of the sensor during long-term operation without adding on-site calibration procedures. Attached Figure Description
[0018] Figure 1 This is a system flowchart of the present invention; Figure 2 This is a diagram showing the stand-off and stress drift distribution of solder joints under different solder paste thicknesses according to the present invention. Figure 3 This is a coupled diagram of reflow temperature and residual stress under different solder paste materials according to the present invention; Figure 4 This is a diagram showing the effect of welding temperature and cooling rate on drift in this invention; Figure 5 This is a waveform diagram of stress drift under low-temperature tin paste conditions in the thick paste region of this invention. Figure 6 The figures show the fitting effect of the nonlinear relationship between the soldering process parameters and the drift amount in this invention before and after correction. Figure 7 This is a comparison chart of the drift suppression effects of the present invention and existing technical solutions; Figure 8 This is a comparison chart of drift suppression under different modeling strategies in the thick paste region and low temperature tin paste region of this invention. Detailed Implementation
[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] Please see Figures 1-8 The present invention provides a technical solution: Example 1: The MEMS sensor pre-calibration method based on different patch solder paste thicknesses includes the following steps: S1. In a laboratory environment, the MEMS sensor to be calibrated was surface-mounted and reflow-soldered with different solder paste thicknesses, different solder paste materials, and different soldering temperatures to construct three typical soldering conditions. The three typical soldering conditions include conditions with different solder paste thicknesses, different solder paste materials, and different soldering temperatures. The solder paste thicknesses cover 50μm, 100μm, 150μm, 200μm, and 250μm. The solder paste materials cover lead-free solder paste SAC305 (Sn96.5Ag3.0Cu0.5), SAC387, leaded solder paste Sn63Pb37, and low-temperature solder paste Sn42Bi58. The soldering temperatures cover peak temperatures Tpeak ∈ 180℃ and 260℃. S2. Synchronously acquire the sensor's tri-axis raw output Yraw=[ax, ay, az], soldering process parameters, solder joint quality parameters, and stress feature vector F=[Hpaste, Mpaste, Tpeak, treflow, vcool, τ, Rjoint, ΔT], and calculate the sensor drift ΔY, with the specific calculation method as follows: ΔY=|Yraw|-g where ax, ay, az are the sensor's raw output values along the x, y, and z axes respectively, and g is the gravitational acceleration; S3. Divide the data pairs of the stress feature vector F and the sensor drift ΔY obtained in step S2 into N≥3 solder joint sections according to the solder paste material type Mpaste and solder paste thickness Hpaste, and establish a generalized additive model (GAM) for each section: ΔY=s1(Hpaste)+s2(Mpaste)+s3(Tpeak)+s4(treflow)+s5(vcool)+s6(τ)+s7(Rjoint)+s8(ΔT)+ε, where sj(·) is a smooth spline function, and ε is the error term, obtaining N groups of section model parameters θ. The number of smooth spline nodes in each section's generalized additive model is ≤3, and the inference for each section's generalized additive model only requires ≤12 fixed-point multiply-accumulate operations. The number of solder joint sections N=9, and the section thresholds are divided into lead-free high-temperature zone SAC305, lead-free medium-temperature zone SAC387, leaded zone Sn63Pb37, and low-temperature zone Sn42Bi58 according to the solder paste material type Mpaste, and into thin paste zone Hpaste≤100μm, medium paste zone 100μm<Hpaste≤180μm, and thick paste zone Hpaste>180μm according to the solder paste thickness Hpaste. The solder paste material identification code Mpaste in the stress feature vector F is represented by a 4-bit code programmed at the sensor factory; the solder paste thickness Hpaste is obtained by measuring with a stencil thickness gauge or a 3D solder paste thickness tester; the peak soldering temperature Tpeak is obtained from a reflow oven temperature profile recorder; the reflow time treflow is obtained from the duration for which the oven temperature profile is above the liquidus temperature; the cooling rate vcool is calculated from the slope of the cooling section of the oven temperature profile; the solder joint shear strength τ is obtained by sampling inspection with a push-pull tester; the solder joint resistance Rjoint is obtained by sampling inspection with a four-wire micro-ohmmeter; the temperature rise ΔT is obtained by ADC sampling of an NTC thermistor integrated on the sensor PCB; S4. Write the N groups of section model parameters θ, section thresholds, and feature normalization coefficients into the sensor's non-volatile memory in q15 fixed-point format, with a total storage capacity <8kB. The q15 fixed-point format is a 16-bit signed number consisting of 1 sign bit and 15 fractional bits, and the drift prediction error caused by coefficient rounding errors is ≤0.3mg; S5. When the sensor is running online, the microcontroller reads the current solder paste material identification code Mpaste and solder paste thickness Hpaste and compares them with the segment threshold. It automatically selects the corresponding parameter θi, calculates ΔŶ within 2ms, and compensates the original output: Ŷ = Yraw - ΔŶ. The calculation of ΔŶ within 2ms includes: reading non-volatile memory coefficients ≤ 48 bytes, fixed-point multiplication and addition 12 times, and writing back the result once. The total CPU cycles are ≤ 128000 cycles. When the long-term statistical residual standard deviation is > 0.15 mg and lasts for > 24 hours, the microcontroller triggers online fine-tuning, refits the GAM of this segment using the data of the most recent day, and writes it back to the non-volatile memory. The method ensures that the tilt angle zero deviation caused by soldering process differences is ≤ 0.05°.
[0021] A MEMS sensor pre-calibration system based on different patch solder paste thicknesses includes: The soldering process excitation module is used to execute the reflow soldering process with different solder paste thicknesses, different solder paste materials, and different soldering temperatures. The synchronous acquisition module is used to record the sensor's raw output, soldering process parameters, solder joint quality parameters, and stress feature vectors; The data processing and modeling module is used to execute S3 to S4 to obtain N sets of segment model parameters θ; The parameter programming module is used to write N sets of segment model parameters θ into the sensor's non-volatile memory in q15 format; The microcontroller is used to read the current solder paste material identifier code Mpaste and solder paste thickness Hpaste. After running fixed-point inference, the microcontroller has more than 60kB of RAM remaining to meet the concurrent requirements of other tasks. The sensor online calibration module, integrated into the microcontroller, is used to perform 2ms closed-loop compensation for the S5.
[0022] Example 2: Based on Example 1, taking a MEMS triaxial accelerometer used in an automotive electronic stability control (ESC) system as an example, this sensor needs to be compatible with different soldering processes from multiple SMT foundries, including lead-free high-temperature SAC305 thick paste process, leaded Sn63Pb37 thin paste process and low-temperature Sn42Bi58 medium paste process. S101: Soldering Process Condition Simulation and Data Acquisition In the laboratory reflow soldering production line, sensors are mounted using different soldering processes, and the soldering process excitation module performs reflow soldering according to a preset sequence: Simulating different solder paste thickness conditions: Using SAC305 solder paste, laser stencils with thicknesses of 50μm, 100μm, 150μm, 200μm and 250μm were used for printing. Reflow soldering was performed under a standard lead-free profile with a peak temperature of 245℃, a reflow time of 60s and a cooling rate of 2℃ / s. Sensor output drift was collected during automotive-grade temperature cycling from -40℃ to +125℃. Simulating different solder paste material conditions: Using a 100μm stencil thickness, four types of solder paste were used: SAC305 (liquidity line 217℃, CTE=21ppm / ℃), SAC387 (liquidity line 217℃, CTE=20ppm / ℃), Sn63Pb37 (liquidity line 183℃, CTE=25ppm / ℃), and Sn42Bi58 (liquidity line 138℃, CTE=15ppm / ℃). Soldering was performed under their respective recommended reflow profiles, and stress drift caused by the difference in solder paste material was collected during temperature cycling. Simulating different soldering temperature conditions: Using SAC305 solder paste and a 100μm stencil, the peak temperatures were set to 210℃, 230℃, 245℃, 255℃ and 260℃, the reflow times were 40s, 60s, 80s, 100s and 120s, and the cooling rates were 1℃ / s, 2℃ / s, 3℃ / s and 4℃ / s, respectively. Stress drift caused by the difference in soldering temperature curves was collected during the temperature cycle. The MCU has a built-in ADC that synchronously acquires the sensor output and NTC temperature at a sampling rate of 1kHz, and calculates the temperature rise ΔT.
[0023] S102: Feature Construction and Drift Calculation; For each temperature cycle (-40℃→+125℃→-40℃), the average value of the sensor's total modulus M is calculated, and the drift ΔY=Mg (local g≈9.800). Simultaneously, the soldering process parameters and solder joint quality parameters within this cycle are recorded, and a feature vector F is constructed. More than 1500 different (F,ΔY) data pairs are collected.
[0024] S103: Nonlinear model fitting; a generalized additive model (GAM) is selected, with ΔY as the response variable and s(Hpaste), s(Mpaste), s(Tpeak), s(treflow), s(vcool), s(τ), s(Rjoint), and s(ΔT) as smoothing terms. The mgcv library is used to fit the model in R language to obtain the smoothing functions s(Hpaste), s(ΔT), and their coefficients.
[0025] S104: Validation and Consolidation; Using another 300 sets of data for testing, the standard deviation of ΔY before correction was 0.110g, and the standard deviation of the residual after correction decreased to 0.010g, with a drift suppression rate of 90.9%. The GAM model type identifier, the fitted smoothing function coefficients, and the normalized parameters (mean, standard deviation) of each feature variable were written into the sensor's non-volatile memory.
[0026] S105: Online calibration; After the sensor is mounted on products from different SMT foundries, its MCU reads the solder paste material identification code Mpaste and solder paste thickness Hpaste programmed at the factory. The calibration module reads the model parameters from the non-volatile memory, calculates the current drift prediction value ΔŶ, and subtracts it from the original die length Mraw to obtain the calibrated die length Mcorr, thus obtaining a more accurate acceleration value. The system also determines the current solder joint segment based on Mpaste and Hpaste and automatically selects the parameter subset of the corresponding mode for calculation. The above process runs on an STM32L432KC (64kB RAM, 256kB Flash, 64MHz), with model coefficients occupying 7.2kB Flash. During operation, RAM is less than 1050B, single inference takes 0.78ms, and the total time is less than 1.0ms, meeting the 2ms closed-loop requirement.
[0027] The following are test data under different typical soldering process conditions:
[0028] Conclusion: The drift amount ΔY before correction varied from 0.4 mg to 2.2 mg depending on the combination of solder paste thickness, solder paste material, and soldering temperature. This confirms the severity and diversity of sensor drift caused by differences in different soldering processes. After correction using the nonlinear model established by the pre-calibration method, the residual standard deviation under all test conditions was significantly reduced to below 0.15 mg, with most concentrated between 0.05 mg and 0.11 mg. The corresponding drift suppression rate generally reached about 90%, ranging from 86% to 94%. This proves that the nonlinear correction model G(F) constructed in this invention can effectively characterize and compensate for the complex mapping relationship between different soldering process parameters and sensor drift, and has wide applicability and robustness. It is not only effective for a single specific soldering process.
[0029] Example 3: In MEMS sensor applications with varying solder paste thicknesses, the thick-paste, low-temperature solder paste region (Hpaste > 180 μm and Mpaste = Sn42Bi58) is a critical operating condition. At this point, the solder paste is thick, has a low melting point and low CTE, high solder joint stand-off and significant thermal stress mismatch, resulting in complex stress drift characteristics and a significant impact on sensor drift. This embodiment compares the drift suppression effects of different modeling strategies in the thick-paste, low-temperature solder paste region to verify the superiority of the piecewise generalized additive model (GAM) proposed in this invention. Using a MEMS accelerometer for wearable consumer electronics as the experimental subject, the sensor is mounted with low-temperature Sn42Bi58 solder paste and a stencil thickness of 200μm to reduce the reflow soldering temperature and protect the heat-sensitive plastic shell. The soldering process conditions of the thick-paste region and the low-temperature solder paste region (Hpaste>180μm and Mpaste=Sn42Bi58) are simulated to generate typical stress drift characteristics, including high stand-off thermal stress, low CTE mismatch, and low melting point solder joint creep. In the laboratory reflow soldering line, the sensor is mounted using a thick paste low-temperature solder paste process to simulate the soldering conditions in the thick paste and low-temperature solder paste zones. The sensor output data and stress characteristic parameters are collected, including solder paste thickness (Hpaste), solder paste material identification code (Mpaste), soldering peak temperature (Tpeak), reflow time (treflow), cooling rate (vcool), solder joint shear strength (τ), solder joint resistance (Rjoint), and temperature rise (ΔT). Model Fitting and Validation 1. Global Linear Regression: Using linear regression to fit the relationship between stress characteristics and sensor drift; 2. Global GAM: The global GAM model is fitted using the mgcv library in R language, with sensor drift as the response variable and stress characteristic parameters as smoothing terms; 3. Segmented GAM: The solder paste is divided into multiple segments according to the solder paste material type Mpaste and the solder paste thickness Hpaste. Each segment is fitted with a GAM model independently. The fitting process is similar to that of global GAM, but the model parameters are optimized separately for each segment. Model validation: The drift suppression effect of each model was validated using an independent test dataset (approximately 200 sets of data). The standard deviation of the residuals before and after correction was calculated, and the drift suppression rate of each model was compared.
[0030] Experimental results
[0031] Conclusion: Global linear regression: The residual standard deviation is 0.52 mg, a 73% reduction compared to the piecewise GAM of this invention. This indicates that the linear regression model has poor drift suppression in the thick paste and low-temperature solder paste areas, and cannot effectively capture the complex nonlinear relationship between stress characteristics and sensor drift. Global GAM: The residual standard deviation is 0.31 mg, a 24% reduction compared to the piecewise GAM of this invention. Although global GAM can handle nonlinear relationships, it still suffers from overfitting under the complex conditions of the thick paste and low-temperature solder paste areas, and does not consider process differences such as solder paste material and thickness, resulting in limited drift suppression effect. The piecewise GAM of this invention (benchmark): The residual standard deviation is 0.24 mg. As the benchmark model, it has the best drift suppression effect. By dividing the stress characteristics according to the solder paste material type and solder paste thickness of the solder joint segment, the piecewise GAM can better adapt to stress changes under different working conditions and significantly improve the drift suppression rate. In summary, the segmented GAM modeling strategy proposed in this invention has significant drift suppression advantages in the thick paste and low-temperature solder paste regions (Hpaste>180μm and Mpaste=Sn42Bi58). Compared with global linear regression and global GAM, segmented GAM can more accurately characterize the complex nonlinear relationship between stress characteristics and sensor drift, effectively reduce the standard deviation of the corrected residuals, and significantly improve the drift suppression rate. This verifies the superiority and robustness of this invention under complex soldering process conditions and provides reliable technical support for high-precision pre-calibration of MEMS sensors under different patch solder paste thicknesses, solder paste materials, and soldering temperatures.
[0032] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely preferred examples and are not intended to limit the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.
Claims
1. A pre-calibration method for MEMS sensors based on different patch solder paste thicknesses, characterized in that, The process includes the following steps: S1. In a laboratory environment, surface mount reflow soldering is carried out on the MEMS sensor to be calibrated using different solder paste thicknesses, different solder paste materials, and different soldering temperatures to construct multiple soldering conditions. S2. Synchronously acquire the triaxial raw output of the MEMS sensor, soldering process parameters, and solder joint quality parameters; extract the stress feature vector; calculate the sensor drift based on the triaxial raw output; the drift calculation formula is as follows: ΔY=|Yraw|-g In the formula Yraw is the raw triaxial output of the sensor, and g represents the acceleration due to gravity. S3. Divide the data sample consisting of stress feature vector and sensor drift into no less than three solder joint segments according to solder paste material type and solder paste thickness. Establish a generalized additive model for each solder joint segment. The generalized additive model expression is ΔY=Σsj(Fj)+ε, which represents the smooth spline function and ε represents the model error term. Solve to obtain the model parameters corresponding to each group of solder joint segments. S4. Convert the model parameters, segment division thresholds and feature normalization coefficients of all solder joint segments into q15 fixed-point format and write them into the non-volatile memory of the MEMS sensor. The overall storage capacity is controlled within 8kB. When the S5 and MEMS sensors are running online, the microcontroller reads the solder paste material identification code and solder paste thickness used in the current assembly, compares the segment division threshold with the corresponding model parameters, completes the drift prediction calculation within two milliseconds, and uses the predicted drift amount to perform compensation calculation on the original sensor output to obtain the corrected sensor output.
2. The MEMS sensor pre-calibration method based on different patch solder paste thicknesses according to claim 1, characterized in that, In step S1, the solder paste thickness is selected as 50μm, 100μm, 150μm, 200μm and 250μm. The solder paste material is selected as lead-free high temperature solder paste SAC305, lead-free medium temperature solder paste SAC387, leaded solder paste Sn63Pb37 and low temperature solder paste Sn42Bi58. The peak soldering temperature is set to range from 180℃ to 260℃. Multiple sets of parameters are combined to build different reflow soldering experimental conditions.
3. The MEMS sensor pre-calibration method based on different patch solder paste thicknesses according to claim 1, characterized in that, In step S2, the stress characteristic vector includes solder paste thickness, solder paste material, peak soldering temperature, reflow time, cooling rate, solder joint shear strength, solder joint resistance, and temperature rise. The solder paste material identification code is represented by a 4-bit code burned into the sensor at the factory. The solder paste thickness is obtained by measuring the stencil parameters or a 3D solder paste thickness gauge. The peak soldering temperature, reflow time, and cooling rate are obtained by analyzing the reflow oven temperature profile recorder. The solder joint shear strength is sampled and tested by a push-pull force tester. The solder joint resistance is sampled and tested by a four-wire micro-ohmmeter. The temperature rise is obtained by sampling the onboard NTC thermistor of the PCB through an ADC.
4. The MEMS sensor pre-calibration method based on different patch solder paste thicknesses according to claim 1, characterized in that, In step S3, the number of smooth spline function nodes in the generalized additive model corresponding to each solder joint segment is set to no more than 3, and the number of fixed-point multiplication and addition operations performed by the generalized additive model corresponding to each solder joint segment to complete one inference operation is no more than 12.
5. The MEMS sensor pre-calibration method based on different patch solder paste thicknesses according to claim 1, characterized in that, Step S3 divides the solder joint into a total of 9 sections. Based on the solder paste material type, the sections are divided into lead-free high-temperature zone, lead-free medium-temperature zone, leaded zone, and low-temperature zone. Based on the solder paste thickness, the sections are divided into thin paste zone, medium paste zone, and thick paste zone. The solder paste thickness in the thin paste zone is no more than 100μm, the solder paste thickness in the medium paste zone is greater than 100μm but no more than 180μm, and the solder paste thickness in the thick paste zone is greater than 180μm. The material type and thickness type are combined to obtain the nine solder joint sections.
6. The MEMS sensor pre-calibration method based on different patch solder paste thicknesses according to claim 1, characterized in that, The q15 fixed-point format used in step S4 is a sixteen-bit signed number, including one sign bit and fifteen decimal places. After the coefficient rounding process of this fixed-point format, the resulting drift prediction error is no greater than 0.3mg.
7. The MEMS sensor pre-calibration method based on different patch solder paste thicknesses according to claim 1, characterized in that, Step S5, which completes the drift prediction calculation within two milliseconds, involves reading no more than 48 bytes of model coefficient data from non-volatile memory, performing no more than 12 fixed-point multiply-add operations, completing one result write-back operation, and having a total CPU clock cycle of no more than 128,000 cycles.
8. The MEMS sensor pre-calibration method based on different patch solder paste thicknesses according to claim 1, characterized in that, It also includes an online fine-tuning step. During the operation, the residual of the output result is continuously statistically calculated after compensation. When the standard deviation of the residual is greater than 0.15mg and the abnormal state lasts for more than 24 hours, the microcontroller retrieves the operation data collected in the most recent day, refits the generalized additive model of the current solder joint segment, and rewrites the updated model parameters into the non-volatile memory.
9. The MEMS sensor pre-calibration method based on different patch solder paste thicknesses according to claim 1, characterized in that, After compensation and correction using this method, the tilt angle zero deviation of the MEMS sensor caused by differences in soldering process is no more than 0.05 degrees.
10. The system for pre-calibrating MEMS sensors based on different patch solder paste thicknesses according to any one of claims 1-9, characterized in that, The system includes a soldering process excitation module, a synchronous acquisition module, a data processing and modeling module, a parameter programming module, a microcontroller, and a sensor online calibration module. The soldering process excitation module performs reflow soldering assemblies with different solder paste thicknesses, materials, and temperatures, establishing various soldering conditions. The synchronous acquisition module acquires the triaxial raw output of the MEMS sensor, soldering process parameters, and solder joint quality parameters, extracts stress feature vectors, and calculates sensor drift. The data processing and modeling module performs solder joint segmentation, establishes a generalized additive model for each segment, and solves for the model parameters. The programming module converts the segment model parameters, segment division thresholds, and feature normalization coefficients into q15 fixed-point format and writes them to non-volatile memory. The microcontroller reads the solder paste material identification code and solder paste thickness under on-site assembly conditions. The sensor online calibration module is integrated inside the microcontroller to match the segment model parameters, complete drift prediction, and compensate for the sensor's original output. All modules of the system work together to execute all steps of the pre-calibration method. After the microcontroller completes the fixed-point inference calculation, the system has more than 60kB of available RAM remaining, which can ensure the concurrent operation of other business tasks of the equipment.
