Automobile glass lifting anti-pinch system, method and storage medium thereof
By using carbon brushes and related modules in the automotive glass lift anti-clip system to replace the magnetic ring and Hall sensor, the problem of high system cost is solved, automatic anti-clip judgment and carbon brush wear estimate are realized, and system cost is reduced.
Patent Information
- Application Number
- CN202411971831.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2044-12-30
AI Technical Summary
The existing automotive glass lift anti-pinch system is expensive, mainly due to the high cost of the combination of magnetic ring, Hall sensor and chip.
The combination of carbon brush and sampling module, amplification module, data processing module and control module is used to determine whether the hand is clamped by collecting the waveform changes of the carbon brush, and the magnetic ring and Hall sensor are cancelled.
It greatly reduces the system cost, and at the same time realizes automatic judgment of anti-clip and overcurrent and estimates of carbon brush wear.
Smart Images

Figure CN119393025B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automobile systems, and in particular to an automobile glass lifting and anti-pinch system, method and storage medium thereof. Background Art
[0002] Nowadays, cars are an indispensable means of transportation for every family, and their safety has received widespread attention. The anti-pinch system of glass lifts is most likely to be used. For example, if a child puts his hand on the car window glass and the parents do not notice it, the glass may rise and pinch the child's hand. At this time, an anti-pinch system is needed to prevent pinching.
[0003] The current anti-pinch system is usually implemented by combining a magnetic ring with a Hall sensor. That is, the magnetic ring is installed on the motor shaft that controls the lifting of the car window, and the Hall sensor is installed near the magnetic ring. When the car window encounters resistance, the motor shaft speed is affected. At this time, the alternating magnetic field of the magnetic ring changes, and the Hall sensor outputs different pulse signals. At this time, the chip can calculate and judge whether the car window is clamped by foreign objects. At this time, the motor is controlled to stop, achieving the purpose of anti-pinch.
[0004] However, the combination of magnetic ring, Hall sensor and chip is expensive, which leads to high cost of anti-pinch system. Summary of the invention
[0005] In order to improve the problem of high cost of anti-pinch systems, the present application provides an automobile glass lifting anti-pinch system, method and storage medium thereof.
[0006] The present application provides an automobile glass lifting and anti-pinch system, which adopts the following technical solutions:
[0007] An automobile glass lifting and pinching prevention system, comprising:
[0008] Motor M, used to control the lifting and lowering of automobile glass;
[0009] A carbon brush electrically connected to the motor M;
[0010] A sampling module, used to sample the positive and negative electrodes of the motor M, obtain a sampling waveform signal and output it;
[0011] an amplification module, used to amplify the sampled waveform signal to obtain an amplified signal and output it;
[0012] A data processing module, used for performing calculation processing on the amplified signal as a data signal and outputting a processed signal;
[0013] The control module receives the processing signal and controls the rotation of the motor M.
[0014] By adopting the above technical solution, the waveform change of the carbon brush is collected to calculate whether the hand is pinched, the magnetic ring and the Hall sensor are eliminated, and the cost is greatly reduced.
[0015] Optionally, the sampling module includes a resistor R1, and the positive and negative electrodes of the motor M are connected in parallel and electrically connected to the resistor R1, and the voltage across the resistor R1 is the sampling waveform signal; the amplification module includes an operational amplifier U3A, a capacitor C2, an operational amplifier U4A, a resistor R8 and an operational amplifier U4B, and the amplified signal includes a primary amplified signal, a secondary amplified signal and a HALL_A signal. The operational amplifier U3A receives the sampling waveform signal and outputs the primary amplified signal after amplification, and the primary amplified signal is output to the operational amplifier U4A through isolation of the capacitor C2, and the operational amplifier U4A outputs the secondary amplified signal after amplification, and the secondary amplified signal is output to the operational amplifier U4B after filtering through the resistor R8, and the operational amplifier U4B outputs the HALL_A signal to the data processing module after amplification.
[0016] By adopting the above technical solution, sampling is performed through resistors, and then amplified through operational amplifiers U3 and U4, which makes it easier for the data processing module to obtain the waveform and make the judgment more accurate.
[0017] Optionally, the amplification module further includes an operational amplifier U3B, and the amplified signal further includes a WIN_ADC signal. The operational amplifier U3B receives the primary amplified signal, amplifies it, and outputs the WIN_ADC signal to the data processing module.
[0018] By adopting the above technical solution, the operational amplifier U3B amplifies the primary signal for the data processing module to determine whether there is overcurrent, thereby achieving overcurrent protection.
[0019] Optionally, the data processing module includes a chip U1, and the processing signal includes a MOTO_UP signal and a MOTO_DOWN signal. The first pin of the chip U1 receives the HALL_A signal, and the third pin of the chip U1 receives the WIN_ADC signal. After calculating and processing the data signal, the seventeenth pin of the chip U1 outputs the MOTO_UP signal, and the sixteenth pin of the chip U1 outputs the MOTO_DOWN signal.
[0020] By adopting the above technical solution, the chip U1 controls the control module through the MOTO_UP signal and the MOTO_DOWN signal, the overcurrent protection judgment is realized through the WIN_ADC signal, and the anti-pinch judgment is realized through the HALL_A signal.
[0021] Optionally, the control module includes a relay K1, a transistor Q2, a transistor Q3 and a VT end, the coil end of the relay K1, the collector of the transistor Q2 and the VT end form a line, the coil end of the relay K1, the collector of the transistor Q3 and the VT end form another line, the base of the transistor Q2 receives the MOTO_UP signal, the emitter of the transistor Q2 is grounded, the base of the transistor Q3 receives the MOTO_DOWN signal, the emitter of the transistor Q3 is grounded, and the contact end of the relay K1 is electrically connected between the motor M and the ACC end.
[0022] By adopting the above technical solution, the rotation working state of the motor M is controlled.
[0023] Optionally, it also includes a key module, which includes a key SW3, the key SW3 has at least three input terminals and one output terminal, the output terminal of the key SW3 is grounded, the three input terminals of the key SW3 are connected in parallel with the +3.3V terminal, the three input terminals of the key SW3 respectively output UP signal, COM signal and DOWN signal, the fifteenth pin of the chip U1 receives the DOWN signal, the thirteenth pin of the chip U1 receives the COM signal, and the twelfth pin of the chip U1 receives the UP signal.
[0024] By adopting the above technical solution, the user can control the working state of the motor M through the chip U1 by pressing the button SW3.
[0025] The present application provides a control method for an automobile glass lifting and anti-pinch system, which adopts the following technical solution:
[0026] A control method for an automobile glass lifting and anti-pinch system, comprising:
[0027] Acquire the HALL_A signal, the WIN_ADC signal and timing data, wherein the processed signals include an anti-pinch reversal signal and an overcurrent protection signal;
[0028] Determine the rising and falling waveform data by the HALL_A signal and the timing data;
[0029] Determine the anti-pinch reversal signal through the rising and falling waveform data and a preset anti-pinch threshold value and output it;
[0030] The overcurrent protection signal is determined and outputted through the WIN_ADC signal and a preset overcurrent threshold.
[0031] By adopting the above technical solution, the judgment of anti-pinch and overcurrent can be automatically realized.
[0032] Optional, including:
[0033] The processing signal includes an alarm signal;
[0034] Determine the peak data through the rising and falling waveform data, the timing data and the preset rising and falling edge thresholds;
[0035] Determining filtering waveform data by using the peak data, the timing data and a preset capacitance filtering threshold;
[0036] Determine rising edge crossing data and falling edge crossing data by using a plurality of the filtered waveform data and the peak data;
[0037] Determine the data before analog filtering by using the rising edge crossing data, the falling edge crossing data and the peak data;
[0038] Determine the simulated carbon brush waveform data by using the simulated pre-filtered data and a preset amplification threshold;
[0039] Determining estimated carbon brush wear data by using the simulated carbon brush waveform data and a preset wear threshold;
[0040] The alarm signal is determined and outputted based on the estimated carbon brush wear data and a preset wear alarm threshold.
[0041] By adopting the above technical solution, the wear of the carbon brush can be automatically estimated and calculated, so as to remind the user to repair or replace the carbon brush.
[0042] Optionally, determining the data before analog filtering by using the rising edge crossing data, the falling edge crossing data and the filtered waveform data includes:
[0043] Determine average peak data using the peak data and the timing data;
[0044] Determine a rising edge curvature and a falling edge curvature through the rising edge crossing data, the falling edge crossing data and the average peak value data;
[0045] Determine single glitch waveform data by using the rising edge curvature, the falling edge curvature and the filtered waveform data;
[0046] Determine continuous multi-burr data by using the rising and falling waveform data, the wave peak data, the rising edge curvature, the timing data and a plurality of the single-burr waveform data;
[0047] Determine and output the alarm signal based on the continuous multi-burr data, the filtered waveform data and a preset continuous quantity threshold;
[0048] The simulated carbon brush waveform data is determined by the continuous multi-burr data and the single-burr waveform data.
[0049] By adopting the above technical solution, the restoration of the simulated carbon brush waveform data is made more accurate.
[0050] The present application provides a computer-readable storage medium, which adopts the following technical solution:
[0051] A computer-readable storage medium stores a computer program that can be loaded by a processor and executed by a control method of an automobile glass lifting and anti-pinch system.
[0052] By adopting the above technical solution, the computer program is stored in a computer-readable storage medium.
[0053] In summary, the present application includes at least one of the following beneficial technical effects:
[0054] 1. The magnetic ring and Hall sensor are eliminated, greatly reducing the cost.
[0055] 2. Automatically judge the anti-pinch and over-current, and automatically estimate the wear of the carbon brush. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] Figure 1 This is a circuit diagram of an automobile glass lifting and anti-pinch system in Example 1 of the present application.
[0057] Figure 2 It is a circuit diagram highlighting the data processing module and the key module.
[0058] Figure 3 It is a circuit diagram highlighting the amplification module and the control module.
[0059] Figure 4 It is a circuit diagram of the highlight amplification module.
[0060] Figure 5 It is a flow chart of a control method of a vehicle glass lifting and anti-pinch system in Example 1 of the present application.
[0061] Figure 6 It is a flow chart of a control method of a vehicle glass lifting and anti-pinch system in Example 2 of the present application.
[0062] Figure 7 It is a flowchart diagram of step S3 to step S35.
[0063] Explanation of the accompanying drawings: 1. Sampling module; 2. Amplification module; 3. Data processing module; 4. Control module; 5. Key module. DETAILED DESCRIPTION
[0064] The following is combined with Figure 1-7 This application is described in further detail.
[0065] Embodiment 1 of the present application discloses a vehicle glass lifting and anti-pinch system. Figure 1 and Figure 2 The automobile glass lifting and anti-pinch system includes a motor M, a carbon brush, a sampling module 1, an amplifying module 2, a data processing module 3 and a control module 4. The carbon brush is electrically connected to the positive and negative poles of the motor M, and then connected to the sampling module 1. The sampling module 1 performs sampling, and obtains a sampling waveform signal, which is amplified by the amplifying module 2 to obtain an amplified signal and output it to the data processing module 3. After the data processing module 3 processes and calculates the amplified signal, it outputs the processed signal to the user and the control module 4. The control module 4 controls the forward, reverse and stop working states of the motor M according to the processed signal.
[0066] Reference Figure 2 and Figure 3 , including a Zener diode D1. The two ends of the motor M1 electrically connected to the circuit through carbon brushes are respectively M+ and M-. The positive electrode of the Zener diode D1 is connected in parallel to the M+ end, and the negative electrode of the Zener diode D1 is connected in parallel to the M- end. The Zener diode D1 can adopt the SMAJ28CA / YG model.
[0067] Reference Figure 2 and Figure 3The data processing module 3 includes a chip U1. The chip U1 may be a HK32F030 model. The seventeenth pin of the chip U1 outputs a MOTO_UP signal, and the sixteenth pin of the chip U1 outputs a MOTO_DOWN signal. The control module 4 includes a relay K1, a transistor Q2, a transistor Q3, a VT terminal, a diode D2 and a diode D5. The relay K1 can adopt the G8FD-2SF model. The relay K1 has two coil terminals, which are named coil terminal 1 and coil terminal 6 respectively. The base of the transistor Q2 receives the MOTO_UP signal, the emitter of the transistor Q2 is grounded, the collector of the transistor Q2 is electrically connected to one end of the coil terminal 1 of the relay K1, the other end of the coil terminal 1 of the relay K1 is electrically connected to one end of the coil terminal 6 of the relay K1, and the other end of the coil terminal 6 of the relay K1 is electrically connected to the collector of the transistor Q3. The base of the transistor Q3 receives the MOTO_DOWN signal, and the emitter of the transistor Q3 is grounded; the positive electrode of the diode D2 is connected in parallel between the coil terminal 1 of the relay K1 and the collector of the transistor Q2. The cathode of the diode D2 is connected in parallel to the VT terminal, the anode of the diode D5 is connected in parallel between the coil terminal 6 of the relay K1 and the collector of the transistor Q3, the cathode of the diode D5 is connected in parallel to the VT terminal, and the VT terminal is also connected in parallel between the coil terminal 1 of the relay K1 and the coil terminal 6 of the relay K1; the relay K1 comprises four contact terminals, namely contact terminal 1, contact terminal 2, contact terminal 7 and contact terminal 8 respectively, the coil terminal 1 of the relay K1 corresponds to the contact terminal 1 and the contact terminal 2, the coil terminal 6 of the relay K1 corresponds to the contact terminal 7 and the contact terminal 8, the M+ terminal is electrically connected to the contact terminal 1 of the relay K1 or the contact terminal 2 of the relay K1, and is switched through the coil terminal 1 of the relay K1, and the M- terminal is electrically connected to the contact terminal 7 of the relay K1 or the contact terminal 8 of the relay K1, and is switched through the coil terminal 6 of the relay K1.
[0068] Reference Figure 3 The sampling module 1 includes a resistor R1, one end of the resistor R1 is grounded, the other end of the resistor R1 is connected in parallel to the contact terminal 3 of the relay K1 and the contact terminal 4 of the relay K1, the ACC end is connected in parallel to the contact terminal 4 of the relay K1 and the contact terminal 8 of the relay K1, the positive and negative poles of the motor M are connected in parallel and electrically connected to the resistor R1, and the voltage across the resistor R1 is the sampling waveform signal.
[0069] Reference Figure 3The amplification module 2 includes an operational amplifier U3A, a resistor R2, a resistor R3, a resistor R4 and a resistor R5. The amplified signal includes a primary amplified signal, a secondary amplified signal and a HALL_A signal. One end of the resistor R2 is connected in parallel between the resistor R1 and the contact terminal 7 of the relay K1, and the other end of the resistor R2 is electrically connected to one end of the resistor R4. The other end of the resistor R4 is grounded. One end of the resistor R3 is connected in parallel between the resistor R1 and the ground terminal GND, and the other end of the resistor R3 is electrically connected to one end of the resistor R5. The other end of the resistor R5 is connected in parallel to the output end of the operational amplifier U3A; the in-phase input end of the operational amplifier U3A is connected in parallel between the resistor R2 and the resistor R4, and the inverting input end of the operational amplifier U3A is connected in parallel between the resistor R3 and the resistor R5. The output of the output end of the operational amplifier U3A is used as the primary amplified signal. The operational amplifier U3 can adopt the LM358 model.
[0070] Reference Figure 2 and Figure 3 and Figure 4The amplification module 2 also includes a socket J1, a resistor R7, a resistor R12, a resistor R6, a resistor R18, a resistor R15, a resistor R9, a resistor R8, a resistor R16, a resistor R17, a resistor R14, a diode D3, a capacitor C2, a capacitor C3, a capacitor C9, a capacitor C1, a capacitor C2, a capacitor C10, a capacitor C8, an operational amplifier U4A, a resistor R8, an operational amplifier U4B, an operational amplifier U3C and an operational amplifier U4C. The operational amplifier U4 adopts the LM358 model. One end of the resistor R7 is electrically connected to the output end of the operational amplifier U3A, and the other end of the resistor R7 is electrically connected to the in-phase terminal of the operational amplifier U3B. The first amplified signal enters the operational amplifier U3B through the resistor R7, the inverting input terminal of the operational amplifier U3B is connected in parallel to the output terminal of the operational amplifier U3B, the output terminal of the operational amplifier U3B is electrically connected to the positive electrode of the diode D3, the output of the negative electrode of the diode D3 is used as the WIN_ADC signal, one end of the resistor R12, one end of the capacitor C3 and one end of the capacitor C9 are connected in parallel to the negative electrode of the diode D3, and the other end of the resistor R12, the other end of the capacitor C3 and the other end of the capacitor C9 are connected in parallel to the ground; one end of the resistor R6 is connected in parallel to the output terminal of the operational amplifier U3A, and the other end of the resistor R6 is electrically connected to the capacitor C 2, the other end of capacitor C2 is electrically connected to the non-inverting input terminal of the operational amplifier U4A, one end of capacitor C1 is connected in parallel between resistor R6 and capacitor C2, the other end of capacitor C1 is grounded, one end of resistor R18 is connected in parallel between capacitor C2 and the non-inverting input terminal of the operational amplifier U4A, the other end of resistor R18 is grounded, one end of resistor R9, one end of resistor R15 and one end of capacitor C10 are connected in parallel to the inverting input terminal of the operational amplifier U4A, and the other end of resistor R15 and the other end of capacitor C10 are connected in parallel to the output terminal of the operational amplifier U4A, the output of the output terminal of the operational amplifier U4A is used as the secondary amplification signal, and resistor The other end of R9 is grounded; one end of resistor R8 is electrically connected to the output end of operational amplifier U4A, and the other end of resistor R8 is electrically connected to the non-inverting input end of operational amplifier U4B; one end of resistor R16 and one end of resistor R17 are both connected in parallel to the non-inverting input end of operational amplifier U4B; the other end of resistor R16 is grounded, and the other end of resistor R17 is electrically connected to the +3.3V end; both ends of capacitor C8 are connected in parallel to both ends of resistor R16; the output of the output end of operational amplifier U4B is used as HALL_A signal; one end of resistor R14 is connected in parallel to the output end of operational amplifier U4B, and the other end of resistor R14 is electrically connected to +3.3V.3V terminal; socket J1 adopts CON4 model, the first pin of socket J1 is electrically connected to ACC terminal, the second pin of socket J1 is electrically connected to M+ terminal of motor, the third pin of socket J1 is electrically connected to M- terminal of motor, the fourth pin of socket J1 is electrically connected to ground terminal GND; the in-phase input terminal of operational amplifier U3C and the in-phase input terminal of operational amplifier U4C are electrically connected to +3.3V terminal, the inverting input terminal of operational amplifier U3C and the inverting input terminal of operational amplifier U4C are grounded; the first pin of chip U1 receives HALL_A signal, and the third pin of chip U1 receives WIN_ADC signal. .
[0071] Reference Figure 2 The key module 5 includes a key SW3, a resistor R10, a resistor R11 and a resistor R13. The key SW3 includes four input terminals and one output terminal, which are input terminal 1, input terminal 2, input terminal 4, input terminal 4 and output terminal 3 of the key SW3 respectively. The output terminal 3 of the key SW3 is grounded. The input terminal 1 of the key SW3 outputs an UP signal, the input terminal 2 of the key SW3 outputs a COM signal, and the input terminal 5 of the key SW3 outputs a DOWN signal. The input terminal 4 of the key SW3 is connected in parallel to the input terminal 2 of the key SW3. One end of the resistor R11 is connected in parallel to the input terminal 1 of the key SW3, one end of the resistor R10 is connected in parallel to the input terminal 2 of the key SW3, and one end of the resistor R13 is connected in parallel to the input terminal 5 of the key SW3. The other ends of the resistor R11, the other ends of the resistor R10 and the other ends of the resistor R13 are connected in parallel to the ground. The fifteenth pin of the chip U1 receives the DOWN signal, the thirteenth pin of the chip U1 receives the COM signal, and the twelfth pin of the chip U1 receives the UP signal.
[0072] The implementation principle of an automobile glass lifting and anti-pinch system in Example 1 of the present application is as follows: the voltage of the M+ terminal and the M- terminal of the motor is sampled through the resistor R1, and the operational amplifier U3A filters and limits the current of the voltage on the resistor R1 through the resistor R3 and the resistor R2, and then amplifies it, and then isolates it through the capacitor C2, and then amplifies it through the operational amplifier U4A, and then filters it through the resistor R8, and finally amplifies it through the operational amplifier U4B and outputs the HALL_A signal to the chip U1. The chip U1 calculates and determines whether the duty cycle of the waveform formed by the HALL_A signal decreases, thereby determining whether the hand is pinched, and outputs the corresponding MOTO_UP signal and MOTO_DOWN signal to control the M+ terminal and the M- terminal of the motor, thereby controlling the motor to stop or reverse.
[0073] Embodiment 1 of the present application discloses a control method for an automobile glass lifting and anti-pinch system. Figure 5 The control method of the automobile glass lifting and anti-pinch system includes the following steps:
[0074] S1, obtain HALL_A signal, WIN_ADC signal and timing data, and process signals including anti-pinch reversal signal and overcurrent protection signal;
[0075] S11, determining the rising and falling waveform data through the HALL_A signal and the timing data;
[0076] S12, determining an anti-pinch reversal signal through the rising and falling waveform data and a preset anti-pinch threshold and outputting it;
[0077] S13, determining an overcurrent protection signal through the WIN_ADC signal and a preset overcurrent threshold and outputting the signal.
[0078] In detail: the timing data corresponding to the HALL_A signal is the sampling frequency, that is, the HALL_A signal is continuously obtained according to the sampling frequency, and the final drawing is the PWM waveform, which is the rising and falling waveform data, which includes waveform, duty cycle and other data, and the anti-pinch threshold is the duty cycle change after the hand is pinched. For example, the anti-pinch threshold is set to 30%, and the duty cycle of the rising and falling waveform data for normal operation is 50%. If the duty cycle of the rising and falling waveform data drops below the anti-pinch threshold, it means that the motor operation is subject to resistance, and this resistance is suspected to be a hand. The flexibility of the hand is different from the rigidity of plastic or metal, so the duty cycle threshold of the anti-pinch threshold is also different. Therefore, it can be judged that the hand is pinched. At this time, the anti-pinch reversal signal of stopping the motor or reversing the motor is output. If the WIN_ADC signal exceeds the overcurrent threshold, it means that the current is too large and an overcurrent phenomenon occurs. At this time, an overcurrent protection signal of stopping the motor is output, or the circuit is disconnected.
[0079] Embodiment 2:
[0080] Embodiment 2 of the present application discloses a control method for an automobile glass lifting and anti-pinch system. The difference from Embodiment 1 is that, referring to Figure 1 The control method of the automobile glass lifting and anti-pinch system includes the following steps:
[0081] S2, processing signals including alarm signals, determining peak data through rising and falling waveform data, timing data and preset rising and falling edge thresholds;
[0082] S21, determining filtering waveform data through peak data, timing data and a preset capacitance filtering threshold;
[0083] S22, determining rising edge crossing data and falling edge crossing data through a plurality of filtered waveform data and peak data;
[0084] S23, determining the data before analog filtering through the rising edge crossing data, the falling edge crossing data and the peak data;
[0085] S24, determining the simulated carbon brush waveform data by simulating the data before filtering and a preset amplification threshold;
[0086] S25, determining estimated carbon brush wear data by simulating carbon brush waveform data and a preset wear threshold;
[0087] S26, determining and outputting an alarm signal by estimating the carbon brush wear data and a preset wear alarm threshold.
[0088] In detail: the rising and falling edge thresholds are the speed of rise or fall between the low level and the high level of the waveform, and are used as the basis for judging the position of the high and low level switching, so as to calculate the high level in the rising and falling waveform data, which is the peak data. The capacitor filtering threshold is the influence of the capacitor filtering on the waveform. For example, the manifestation of the capacitor filtering on the waveform is usually to reduce the excessively high waveform with a certain slope, and this slope is the capacitor filtering threshold. The filtered position in the peak data can be calculated through the capacitor filtering threshold, which is the filtered waveform data. In the peak data, the waveform generated by the filtering and the junction of the normal waveform that has not been filtered, the rising boundary is the rising edge crossing data, and the falling boundary is the falling edge crossing data; and the rising edge crossing data is the falling edge crossing data. By combining the rising and falling edge crossing data with the peak data, the filtered part of the waveform can be simulated, which is the simulated data before filtering. The amplification threshold is the amplification ratio of the amplification module 2. The simulated data before filtering is reversely deduced according to this ratio to obtain the waveform collected by the carbon brush in the simulation, which is the simulated carbon brush waveform data. The wear threshold is the wear degree corresponding to the burr in the waveform. For example, the burr with an amplitude of A corresponds to a wear degree. The sum of the wear degrees corresponding to all burrs in a simulated carbon brush waveform data is the estimated carbon brush wear data. If the estimated carbon brush wear data exceeds the wear alarm threshold, it means that the wear degree of the carbon brush is too large and needs to be replaced. At this time, an alarm signal is output to the user to remind the user to repair the carbon brush.
[0089] Reference Figure 7 , step S24 further comprises the following steps:
[0090] S3, determining average peak data through the peak data and the timing data;
[0091] S31, determining the rising edge curvature and the falling edge curvature through the rising edge crossing data, the falling edge crossing data and the average peak value data;
[0092] S32, determining single glitch waveform data through the rising edge curvature, the falling edge curvature and the filtered waveform data;
[0093] S33, determining continuous multi-glitch data through the rising and falling waveform data, the peak data, the rising edge curvature, the timing data and the multiple single-glitch waveform data;
[0094] S34, determining an alarm signal through the continuous multi-burr data, the filtered waveform data and a preset continuous quantity threshold and outputting it;
[0095] S35, determining the simulated carbon brush waveform data through the continuous multi-burr data and the single-burr waveform data.
[0096] In detail: In the peak data, the waveform data with the largest proportion of time is taken as the average peak data through the proportion of time, which is regarded as a normal waveform without interference. When the normal waveform is disturbed, for example, there is wear on the carbon brush, which produces a burr waveform protruding upward, the burr waveform will first protrude upward to a certain height, and then be filtered downward and return to the normal waveform with a certain slope. The falling edge crossing data is the position point where the filtering is just started, and this position point is combined with the normal waveform to obtain the waveform between the position where the normal waveform protrudes upward to the falling edge crossing data, and the curvature corresponding to this waveform is the rising edge curvature, which is filtered downward and returns to the normal waveform with a certain slope. The rising edge crossing data is the position point where the filtering ends downward, that is, the intersection position where the filtering goes down with a certain slope and the normal waveform, and this position point combined with the normal waveform can obtain a waveform between the rising edge crossing data position rising or falling to the normal waveform, and the curvature corresponding to this waveform is the falling edge curvature, and the rising edge curvature and the falling edge curvature combined with the time of the filtered waveform data can calculate the waveform filtered out at the slope corresponding to the filtered waveform data, which is the single glitch waveform data; and if the rising edge curvature is falling, it means that this single glitch waveform data is formed by filtering multiple continuous small glitch waveforms, so it is determined as a continuous Continuous multiple glitch data; if the rising edge curvature is rising, but in the waveform of the adjacent multiple peak data in the entire rising and falling waveform data, the single glitch waveform data at the same band position is different, for example, the period is 2s, the duty cycle is 50%, and the single glitch waveform data when the timing data is 0.5s-0.6s is curve B, the single glitch waveform data when the timing data is 2.5s-2.6s is curve C, and the single glitch waveform data when the timing data is 4.5s-4.6s is curve D. If there is indeed wear and tear rather than burrs caused by interference, then the B curve, C curve and D curve should be the same. If they are different, it means that there may be burrs corresponding to two small wears. There are two burr waveforms, and the middle is due to interference or other reasons, which leads to the connection of two segments of burr waveforms to form a complete single burr waveform data. At this time, it is determined to be continuous multi-burr data; if it is determined to be continuous multi-burr data, the continuous distribution range of wear is judged according to the time length of this filtered waveform data. If the continuous distribution range is too large, that is, the time of the filtering curve of the filtered waveform data is too long, it means that the number of small wears is too large and exceeds the continuous number threshold. Then an alarm signal is output to the user, and the continuous multi-burr data is used as the simulated carbon brush waveform data for calculation. If it is not continuous multi-burr data, the single burr waveform data is directly used as the simulated carbon brush waveform data for calculation.
[0097] Embodiment 2 of the present application discloses a computer-readable storage medium. The computer-readable storage medium stores a computer program that can be loaded by a processor and execute a control method for a vehicle glass lifting and anti-pinch system.
[0098] Computer-readable storage media include, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0099] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. An automobile glass lifting anti-pinch system, characterized in that: include: Motor M, used to control the lifting and lowering of automobile glass; A carbon brush electrically connected to the motor M; A sampling module (1) is used to sample the positive and negative electrodes of the motor M, obtain a sampling waveform signal and output it; an amplification module (2), used for amplifying the sampled waveform signal to obtain an amplified signal and output it; A data processing module (3), used for performing data signal calculation processing on the amplified signal and outputting a processed signal; A control module (4) receives the processing signal and controls the rotation of the motor M; Acquire HALL_A signal, WIN_ADC signal and timing data, wherein the processed signals include anti-pinch reversal signal and overcurrent protection signal; Determine the rising and falling waveform data by the HALL_A signal and the timing data; Determine the anti-pinch reversal signal through the rising and falling waveform data and a preset anti-pinch threshold value and output it; Determine the overcurrent protection signal through the WIN_ADC signal and a preset overcurrent threshold and output it; The processing signal includes an alarm signal; Determine the peak data through the rising and falling waveform data, the timing data and the preset rising and falling edge thresholds; Determining filtering waveform data by using the peak data, the timing data and a preset capacitance filtering threshold; Determine rising edge crossing data and falling edge crossing data by using a plurality of the filtered waveform data and the peak data; Determine the data before analog filtering by using the rising edge crossing data, the falling edge crossing data and the peak data; Determine the simulated carbon brush waveform data by using the simulated pre-filtered data and a preset amplification threshold; Determining estimated carbon brush wear data by using the simulated carbon brush waveform data and a preset wear threshold; The alarm signal is determined and outputted based on the estimated carbon brush wear data and a preset wear alarm threshold.
2. The automobile glass lifting and anti-pinch system according to claim 1, characterized in that: The sampling module (1) comprises a resistor R1, the positive electrode and the negative electrode of the motor M are connected in parallel and electrically connected to the resistor R1, and the voltage across the resistor R1 is the sampling waveform signal; the amplification module (2) comprises an operational amplifier U3A, a capacitor C2, an operational amplifier U4A, a resistor R8 and an operational amplifier U4B, the amplified signal comprises a primary amplified signal, a secondary amplified signal and a HALL_A signal, the operational amplifier U3A receives the sampling waveform signal and outputs the primary amplified signal after amplification, the primary amplified signal is output to the operational amplifier U4A through isolation of the capacitor C2, the operational amplifier U4A outputs the secondary amplified signal after amplification, the secondary amplified signal is output to the operational amplifier U4B after filtering through the resistor R8, and the operational amplifier U4B outputs the HALL_A signal after amplification to the data processing module (3).
3. The automobile glass lifting and anti-pinch system according to claim 2, characterized in that: The amplification module (2) further comprises an operational amplifier U3B, and the amplified signal further comprises a WIN_ADC signal. The operational amplifier U3B receives the primary amplified signal, amplifies it and outputs the WIN_ADC signal to the data processing module (3).
4. The automobile glass lifting and anti-pinch system according to claim 3, characterized in that: The data processing module (3) comprises a chip U1, the processing signal comprises a MOTO_UP signal and a MOTO_DOWN signal, the first pin of the chip U1 receives the HALL_A signal, the third pin of the chip U1 receives the WIN_ADC signal, and after calculating and processing the data signal, the seventeenth pin of the chip U1 outputs the MOTO_UP signal, and the sixteenth pin of the chip U1 outputs the MOTO_DOWN signal.
5. The automobile glass lifting and anti-pinch system according to claim 4, characterized in that: The control module (4) comprises a relay K1, a transistor Q2, a transistor Q3 and a VT terminal, the coil end of the relay K1, the collector of the transistor Q2 and the VT terminal form a line, the coil end of the relay K1, the collector of the transistor Q3 and the VT terminal form another line, the base of the transistor Q2 receives the MOTO_UP signal, the emitter of the transistor Q2 is grounded, the base of the transistor Q3 receives the MOTO_DOWN signal, the emitter of the transistor Q3 is grounded, and the contact end of the relay K1 is electrically connected between the motor M and the ACC terminal.
6. The automobile glass lifting and anti-pinch system according to claim 4, characterized in that: The invention also comprises a key module (5), wherein the key module (5) comprises a key SW3, wherein the key SW3 has at least three input terminals and one output terminal, wherein the output terminal of the key SW3 is grounded, wherein the three input terminals of the key SW3 are connected in parallel with the +3.3V terminal, wherein the three input terminals of the key SW3 respectively output an UP signal, a COM signal and a DOWN signal, wherein the fifteenth pin of the chip U1 receives the DOWN signal, the thirteenth pin of the chip U1 receives the COM signal, and the twelfth pin of the chip U1 receives the UP signal.
7. A control method for an automobile glass lifting and anti-pinch system, using the automobile glass lifting and anti-pinch system according to claim 5, characterized in that: Determining the data before analog filtering by using the rising edge crossing data, the falling edge crossing data and the filtering waveform data includes: Determine average peak data using the peak data and the timing data; Determine a rising edge curvature and a falling edge curvature through the rising edge crossing data, the falling edge crossing data and the average peak value data; Determine single glitch waveform data by using the rising edge curvature, the falling edge curvature and the filtered waveform data; Determine continuous multi-burr data by using the rising and falling waveform data, the wave peak data, the rising edge curvature, the timing data and a plurality of the single-burr waveform data; Determine and output the alarm signal based on the continuous multi-burr data, the filtered waveform data and a preset continuous quantity threshold; The simulated carbon brush waveform data is determined by the continuous multi-burr data and the single-burr waveform data.
8. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and executes a control method for a vehicle glass lifting and anti-pinch system as claimed in claim 7.
Citation Information
Patent Citations
Automatic car window control module, automatic car window controller and car
CN110284799A
Motor ripple processing method and device, equipment and storage medium
CN118944501A