Torque sensor and torque and cadence acquisition method
By combining the TMR sensor module and the speed measurement HALL module, high-precision digital acquisition of torque and pedal frequency in electric-assisted bicycles is achieved, solving the problem of analog signals being susceptible to interference and improving the service life and detection accuracy of the sensors.
Patent Information
- Application Number
- CN202410449924.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-04-15
AI Technical Summary
Existing torque sensors are susceptible to external electromagnetic interference during analog signal output, resulting in inaccurate sampling, serious zero-point calibration problems, short service life, low signal accuracy, high susceptibility to environmental influences, and poor user experience.
Employing a TMR sensor module and a speed measurement HALL module, combined with wireless data transmission technology, it achieves digital acquisition of torque and cadence. Through initial zero-point calibration and process zero-point calibration algorithms, it reduces environmental impact and has strong anti-interference capabilities.
It achieves high-precision acquisition of torque and cadence, digital signal transmission, simplifies the usage process, improves the sensor's anti-interference ability and service life, and enhances torque detection accuracy.
Smart Images

Figure CN118323316B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of electric-assisted bicycle technology, specifically relating to a torque sensor and a method for acquiring torque and pedal frequency. Background Technology
[0002] In the context of energy conservation and emission reduction, electric-assist bicycles are gradually becoming more popular in China due to their energy-saving, green, and lightweight advantages. Furthermore, with the introduction of the new national standard for electric vehicles, pedal-less electric bikes are now classified as "electric motorcycles," while electric-assist bicycles, which are almost indistinguishable from regular bicycles in appearance and rely on a combination of human power and motor assistance, have a greater policy advantage. Currently, most low-end electric-assist bicycles on the market use cadence sensors as the assist sensing device, while most high-end electric-assist bicycles use torque sensors.
[0003] Commonly used torque sensors include rear axle pawl type, torsion spring type, sprocket type, bottom shaft type, and built-in type. Among them, bottom shaft type and built-in type sensors have significant advantages in accuracy, response speed, wear resistance, and impact resistance.
[0004] Currently, most center-axis or built-in torque sensors on the market output torque using analog signals, and most suffer from zero-point calibration issues. Analog signals are susceptible to external electromagnetic interference during transmission, leading to inaccurate sampling. Furthermore, users need to perform a series of operations such as filtering, sampling, conversion, and noise reduction, which is inconvenient. The zero-point calibration problem arises because changes in external electromagnetic, temperature, and humidity environments, as well as minor deformations of the mechanical structure during use, cause the sensor's zero point to deviate from the factory calibration or drift with environmental changes. These issues result in short sensor lifespan, unstable power assist in electric bicycles, and a poor user experience. Additionally, most existing technologies use strain gauges to acquire torque, resulting in insufficient raw signal accuracy, significant susceptibility to environmental factors such as temperature, and analog signal output, making the signal susceptible to interference and the process cumbersome. Summary of the Invention
[0005] One of the objectives of this invention is to provide a torque sensor that improves torque detection accuracy and reduces environmental impact.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0007] A torque sensor for use in electric-assisted bicycles includes a central shaft, an elastic connector, a TMR sensor module, a pair of strong magnets, a follower PCB board, a follower wireless coil, a fixed wireless coil, a fixed PCB board, a magnetic ring, and a speed measurement hall module, wherein:
[0008] The following PCB board, following wireless coil, and magnetic ring are fixed on the central shaft. The fixed wireless coil, fixed PCB board, and speed measuring HALL module are fixed on the inner housing of the central motor of the electric-assisted bicycle. The two ends of the elastic connector are respectively connected to the central shaft and the chainring of the electric-assisted bicycle through gears. The strong magnetic pair and TMR sensor module are respectively fixed to the two ends of the elastic connector. The following wireless coil and TMR sensor module are electrically connected to the following PCB board. The fixed wireless coil and speed measuring HALL module are electrically connected to the fixed PCB board.
[0009] The fixed wireless coil and the follow-up wireless coil are nested together. The speed measuring HALL module is located close to the outer ring of the magnetic ring. When no torque is applied, the strong magnet is close to and corresponds to the TMR sensor module.
[0010] Several alternative methods are provided below, but they are not intended as additional limitations on the overall solution above. They are merely further additions or optimizations. Provided there are no technical or logical contradictions, each alternative method can be combined individually with respect to the overall solution above, or multiple alternative methods can be combined with each other.
[0011] Preferably, the two strong magnets in the pair of strong magnets are two strong magnets with opposite polarities in the direction of the detection axis, and the two strong magnets are magnetized in opposite parallel directions in the direction of the detection axis.
[0012] Preferably, the elastic connector, the TMR sensor module, and the strong magnet are all covered with a magnetic shield.
[0013] Preferably, the follower PCB board is provided with a rectifier circuit, an ASK signal modulation circuit and a follower controller. The follower wireless coil is connected to the rectifier circuit, the rectifier circuit is connected to the follower controller and the ASK signal modulation circuit, the follower controller is connected to the ASK signal modulation circuit, and the TMR sensor module is connected to the ADC module of the follower controller.
[0014] The fixed PCB board is equipped with a full-bridge inverter circuit, an ASK signal demodulation circuit, and a fixed controller. The fixed wireless coil is connected to the full-bridge inverter circuit and the ASK signal demodulation circuit respectively. The fixed controller is connected to the full-bridge inverter circuit, the ASK signal demodulation circuit, and the speed measurement HALL module respectively. The speed measurement HALL module is connected to the timer module of the fixed controller.
[0015] The present invention provides a torque sensor that realizes torque detection based on a TMR sensor module, which has advantages in terms of temperature and external electromagnetic interference, and introduces a speed measurement HALL module to realize synchronous detection of torque and pedal frequency.
[0016] The second objective of this invention is to provide a method for acquiring torque and cadence, thereby achieving high-precision acquisition and digital output of torque and cadence.
[0017] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0018] A torque and cadence acquisition method, applied to an electric-assisted bicycle, is implemented based on the aforementioned torque sensor. The torque and cadence acquisition method includes:
[0019] Perform initial zero-point calibration to obtain the zero-point calibration value;
[0020] The measurement values of the TMR sensor module are collected periodically, and the torque value is calculated based on the measurement values and the zero-point calibration value. During the periodic acquisition and torque value calculation process, the zero-point calibration value is updated in real time by performing process zero-point calibration.
[0021] The speed measurement HALL module is connected to the timer module on the fixed PCB board, and the step frequency value is calculated based on the time and number of high and low level interrupts triggered by the timer module.
[0022] Preferably, the initial zero-point calibration is performed as follows:
[0023] (1) Initialize the initial timing to 0;
[0024] (2) Collect voltage values and determine whether the voltage values exceed the limit values;
[0025] (3) If the limit is exceeded, the initial timing time is reset to 0 and the process returns to step (2); if the limit is not exceeded, the average value of all voltage values collected during the current initial timing time is calculated, and it is determined whether the average value exceeds the zero threshold.
[0026] (4) If the zero-point threshold is exceeded, the initial timing time is reset to 0 and the process returns to step (2); if the zero-point threshold is not exceeded, it is determined whether the initial timing time has reached the initial time threshold.
[0027] (5) If the initial time threshold is not reached, return to step (2); if the initial time threshold is reached, output the mean as the zero-point calibration value.
[0028] Preferably, the zero-point calibration process is performed as follows:
[0029] (1) The initialization process timer is 0;
[0030] (2) Collect voltage values and determine whether the voltage values exceed the limit values;
[0031] (3) If the limit is exceeded, the process timing time is reset to 0 and the process returns to step (2); if the limit is not exceeded, the average value of all voltage values collected during the current process timing time is calculated, and it is determined whether the average value exceeds the zero threshold.
[0032] (4) If the zero-point threshold is exceeded, the process timing time is reset to 0 and the process returns to step (2); if the zero-point threshold is not exceeded, it is determined whether the process timing time has reached the process time threshold.
[0033] (5) If the process time threshold is not reached, return to step (2); if the process time threshold is reached, output the mean as the zero-point calibration value, and the process time threshold is greater than the initial time threshold.
[0034] Preferably, the calculation of the torque value based on the measured value and the zero-point calibration value includes:
[0035] T=(V1-V0) / k
[0036] In the formula, T is the torque value, V1 is the measured value, V0 is the zero-point calibration value, and k is the linearity coefficient.
[0037] Preferably, the step frequency value is calculated based on the time and number of high and low level interrupts triggered by the timer module, including:
[0038]
[0039] In the formula, F is the tread frequency value, m is the total number of samples, n is the nth sample, and T min C is the time constant after converting one minute to microseconds (µs). n T represents the number of timer counts under the nth sampling. n_c C0 represents the time of one count after frequency division of the timer during the nth sampling, and C0 is the number of N or S poles in one revolution of the magnetic ring.
[0040] Preferably, the speed measurement HALL module consists of two bipolar latch HALL sensors. When the timer module triggers a high or low level interrupt, the high and low levels input by the two bipolar latch HALL sensors are orthogonally encoded and detected. The value of the current orthogonal encoding is compared with the value of the previous orthogonal encoding to determine whether the central axis is rotating clockwise or counterclockwise.
[0041] The torque and cadence acquisition method provided by this invention has the following advantages compared with the prior art:
[0042] (1) This invention provides a complete method for acquiring torque and cadence for electric bicycles based on TMR sensor modules and wireless data transmission technology. Torque and cadence information are transmitted digitally rather than analog, and users can directly receive torque information, cadence information, and forward / reverse information according to the communication protocol.
[0043] (2) This invention can effectively prevent zero-point drift caused by environmental influences through initial zero-point calibration and process zero-point calibration algorithms. At the same time, since the torque information is obtained through the TMR sensor module, the TMR chip has certain advantages over the linear Hall sensor in terms of external electromagnetic interference at temperature, and the TMR sensor module has stronger anti-interference performance.
[0044] (3) This invention achieves forward and reverse rotation detection through orthogonal encoding, calculates pedal frequency by detecting the time difference between high and low levels through an advanced timer interrupt, and performs mean filtering to achieve a stable output of pedal frequency. Compared with other torque sensors that only output high and low levels, this method simplifies the steps for users to calculate the pedal frequency themselves, and the pedal frequency calculation with microsecond-level resolution is more accurate. Attached Figure Description
[0045] Figure 1 This is a schematic diagram of the structure of a torque sensor according to the present invention;
[0046] Figure 2 This is a schematic diagram of the structure of the magnetic ring of the present invention;
[0047] Figure 3 This is a control block diagram of the torque sensor of the present invention;
[0048] Figure 4 This is a control architecture diagram of the torque sensor of the present invention;
[0049] Figure 5 This is a flowchart of a torque and cadence acquisition method according to the present invention;
[0050] Figure 6 This is a flowchart of the initial zero-point calibration of the present invention;
[0051] Figure 7 This is a flowchart of the zero-point calibration process of the present invention;
[0052] Figure 8 This is a schematic diagram of the cadence and forward / reverse quadrature encoding principle of the present invention.
[0053] In the diagram: 1. Central axis; 2. Magnetic shield; 3. Elastic connector; 4. TMR sensor module; 5. First strong magnet; 6. Second strong magnet; 7. Follow-up PCB board; 8. Follow-up wireless coil; 9. Fixed wireless coil; 10. Fixed PCB board; 11. Magnetic ring; 12. Speed measurement hall module. Detailed Implementation
[0054] 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.
[0055] It should be noted that when a component is said to be "connected" to another component, it can be directly connected to the other component or it can be connected to a component in between; when a component is said to be "fixed" to another component, it can be directly fixed to the other component or it can be connected to a component in between.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to limit the invention.
[0057] Example 1
[0058] like Figure 1 As shown, this embodiment provides a torque sensor for use in electric bicycles, including a central shaft 1, an elastic connector 3, a TMR sensor module 4, a pair of strong magnets, a follower PCB board 7, a follower wireless coil 8, a fixed wireless coil 9, a fixed PCB board 10, a magnetic ring 11, and a speed measurement hall module 12.
[0059] A. Central Shaft 1: Central shaft 1 is rotatable and is installed inside the central motor or in the bottom bracket. The force exerted by the user's foot is transmitted to central shaft 1 through the crank, and central shaft 1 is connected to the elastic connecting body 3 through a gear connection.
[0060] B. Elastic Connector 3: The two ends of the elastic connector 3 are connected to the central shaft 1 and the chainring of the electric bicycle respectively via gears. This torque sensor reflects the magnitude of the torque through the linear deformation of the elastic connector 3 within its elastic deformation range. Formula 3 shows that the torque and the deformation angle have a linear relationship. The formula for the elastic deformation principle is as follows:
[0061]
[0062] From Formula 1, we can obtain:
[0063]
[0064] When the rod length is l, we can obtain from formula 2:
[0065]
[0066] In the formula, θ is the strain angle, and Mx Let l be the torque applied to the material, l be the length of the material, and G be the shear modulus, a material constant determined experimentally. p Let be the polar moment of inertia of the cross section. Once the material of the elastic connector is determined, the strain angle can be calculated.
[0067] C. TMR Sensor Module 4: The TMR sensor module 4 is attached to the elastic connector 3. Under the influence of a magnetic field, the TMR sensor module 4 outputs a differential voltage. This potential difference reflects the deformation of the elastic connector 3, and thus the magnitude of the external torque.
[0068] D. Strong Magnet Pair: The strong magnet pair is attached to the elastic connector 3, and the strong magnet pair and the TMR sensor module 4 are fixed to both ends of the elastic connector 3, respectively. Deformation of the elastic connector 3 will cause relative displacement between the strong magnet pair and the TMR sensor module 4. The strong magnet pair (including the first strong magnet 5 and the second strong magnet 6) consists of two magnets with opposite polarities in the detection axis direction. The two magnets are magnetized in opposite parallel directions in the detection axis direction, and the magnitude of the magnetic field exhibits a linear relationship with the displacement within a certain range.
[0069] The elastic connector 3 has a certain length along the central axis, and a pair of strong magnets and a TMR sensor module 4 are connected to its two ends respectively. This allows the elastic connector 3 to undergo torsional deformation under the torque of the central axis 1 and the crankset. Based on this torsional deformation, the pair of strong magnets and the TMR sensor module 4 will have relative displacement. The TMR sensor module 4 outputs a changing measurement value to reflect the magnitude of the torque. Therefore, when no torque is applied, the pair of strong magnets and the TMR sensor module 4 are close to each other and their positions correspond.
[0070] In this embodiment, a pair of strong magnets and a TMR sensor module 4 are connected to both ends of an elastic connector 3. The pair of strong magnets extends from one end to a position close to the TMR sensor module 4, and the extended part does not contact the elastic connector 3. That is, although the pair of strong magnets extends toward the TMR sensor module 4, the contact part with the elastic connector 3 is only at the end of the elastic connector 3 away from the TMR sensor module 4.
[0071] E. Magnetic shield 2: Since the TMR sensor module 4 has high sensitivity, external magnetic fields will interfere with the measurement value. The magnetic shield 2 is a stainless steel circular sleeve that is fitted over the elastic connector 3, the TMR sensor module 4, and the strong magnet to effectively isolate the interference of the weak lateral magnetic field.
[0072] F. Follower PCB Board 7: The follower PCB board 7 is fixed on the central shaft 1 and connected to the follower wireless coil and TMR sensor module 4. It can rotate with the rotation of the central shaft 1. The follower PCB board 7 receives energy transmitted by the fixed wireless coil 9 through the follower wireless coil 8 and receives data sampled by the TMR sensor module 4. After processing, the data is transmitted to the fixed wireless coil 9 through the follower wireless coil 8.
[0073] G. Follow-up Wireless Coil 8: The follow-up wireless coil 8 is fixed on the central shaft 1 and electrically connected to the follow-up PCB board 7. A magnetic shielding ring is fitted inside the follow-up wireless coil 8. The follow-up wireless coil 8 is fitted inside the fixed wireless coil 9 to receive energy from the fixed wireless coil 9 and to send signals to the fixed wireless coil 9.
[0074] H. Fixed wireless coil 9: The fixed wireless coil 9 is fixed on the inner housing of the central motor and electrically connected to the fixed PCB board. It is also sleeved on the outside of the follower wireless coil 8. It sends energy to the follower wireless coil 8 through electromagnetic induction and receives data signals from the follower wireless coil 8.
[0075] 1. Fixed PCB Board 10: The fixed PCB board 10 is fixed on the internal housing of the mid-drive motor and connected to the fixed wireless coil 9 and the speed measurement HALL module 12. The fixed PCB board 10 is mainly used to process the signals transmitted by the coil from the follower PCB board 7 and to provide energy to the follower board through the coil.
[0076] J. Magnetic ring 11: Magnetic ring 11 is fixed on the central shaft 1. Magnetic ring 11 is a magnetic ring-shaped material with 32 N and S poles spaced apart. The material shape and magnetization direction are as follows: Figure 2 As shown.
[0077] K. Speed Measurement Hall Module 12: The speed measurement hall module 12 is fixed on the internal housing of the mid-drive motor of the electric-assisted bicycle, and is positioned near the outer ring of the magnetic ring. The speed measurement hall module 12 contains two bipolar latching hall sensors, which measure the rotational speed by detecting the high and low levels of the magnetic ring and the level transition time.
[0078] It should be noted that the follow-up PCB board 7, the follow-up wireless coil 8, and the magnetic ring 11 are fixed on the central shaft 1, and can be directly connected to the central shaft 1 or indirectly connected to the central shaft 1; the fixed wireless coil 9, the fixed PCB board 10, and the speed measuring HALL module 12 are fixed on the inner housing of the mid-drive motor of the electric-assisted bicycle, and can be directly connected to the inner housing of the mid-drive motor or indirectly connected to the inner housing of the mid-drive motor.
[0079] like Figure 3As shown, the follower PCB board 7 in this embodiment is provided with a rectifier circuit, an ASK signal modulation circuit and a follower controller (e.g., using an HKS32FP001 chip). The follower wireless coil 8 is connected to the rectifier circuit, the rectifier circuit is connected to the follower controller and the ASK signal modulation circuit, the follower controller is connected to the ASK signal modulation circuit, and the TMR sensor module 4 is connected to the ADC module of the follower controller.
[0080] The fixed PCB board 10 is equipped with a full-bridge inverter circuit, an ASK signal demodulation circuit, and a fixed controller (e.g., using an HKS32FP001 chip). The fixed wireless coil 9 is connected to the full-bridge inverter circuit and the ASK signal demodulation circuit respectively. The fixed controller is connected to the full-bridge inverter circuit, the ASK signal demodulation circuit, and the speed measurement HALL module respectively. The speed measurement HALL module 12 is connected to the timer module of the fixed controller.
[0081] The torque sensor in this embodiment consists of two parts: a fixed part and a follower part. The fixed part is fixed to the location where it needs to be fixed and is connected to a power source. The follower part is generally connected to the central axle of the electric bicycle and can rotate freely. The fixed part and the follower part transmit electrical energy and data through the resonance of a wireless coil.
[0082] Based on the servo PCB board 7 and the fixed PCB board 10, the control architecture of the torque sensor in this embodiment is as follows: Figure 4 As shown, a layered design is adopted, consisting of a hardware layer, a driver layer, and an application layer. The hardware layer mainly comprises various circuit and component modules, including rectifier circuits, coils (fixed and servo wireless coils), speed measurement hall modules, full-bridge inverter circuits, UART peripherals, controllers (fixed and servo controllers), voltage regulator modules, TMR sensor modules, ASK signal demodulation circuits, and ASK signal modulation circuits. The driver layer provides driver adaptations for each hardware component, including TIMER (timer), PWM (pulse width modulation), RCC (system clock), GPIO (general purpose I / O ports), UART (asynchronous communication), ADC (analog-to-digital converter), and INTERRUPT (interrupt). The application layer is mainly responsible for software process control, data algorithm processing, and data transmission, including the torque acquisition module (corresponding to the TMR sensor module, which can be hardware control), torque algorithm processing module, cadence detection module (corresponding to the speed measurement hall module, which can be hardware control), signal demodulation module (corresponding to the ASK signal demodulation circuit, which can be hardware control), signal modulation module (corresponding to the ASK signal modulation circuit, which can be hardware control), and UART transmission module.
[0083] The fixed unit regulates the energy transmission via wireless transmission by adjusting the PWM signal frequency. The fixed controller generates a PWM signal and sends it to the full-bridge inverter circuit, which outputs the signal to the fixed wireless coil. The fixed unit's DC 5V power supply powers both the fixed controller and the full-bridge inverter circuit. The fixed wireless coil transmits energy to the servo wireless coil, and the fixed unit obtains speed and forward / reverse rotation information via the speed measurement HALL module, feeding it back to the fixed unit controller. The servo unit receives the energy, rectifies it using a rectifier circuit, and converts it to 5V DC voltage via a voltage regulator chip (DC 5V), driving the servo unit chip and its modules. The servo unit obtains torque information via the TMR sensor module and transmits the data back to the fixed wireless coil in the fixed unit via the ASK signal modulation circuit. The fixed wireless coil in the fixed unit receives the signal, demodulates it using the ASK signal demodulation circuit, and transmits the demodulated information to the fixed controller. The fixed controller then transmits the received data to the user via the UART serial port according to the corresponding data protocol. The user can use the data directly without further calculations, achieving stable acquisition and rapid utilization of torque and cadence information.
[0084] Example 2
[0085] This embodiment, based on the torque sensor of Embodiment 1, proposes a method for acquiring torque and cadence, applicable to electric-assisted bicycles. For example... Figure 5 As shown, the torque and cadence acquisition method includes: performing initial zero-point calibration to obtain the zero-point calibration value; periodically acquiring the measurement values of the TMR sensor module, calculating the torque value based on the measurement values and the zero-point calibration value, and performing process zero-point calibration in real time during the periodic acquisition and torque value calculation to update the zero-point calibration value; the speed measurement HALL module is connected to the timer module on the fixed PCB board, and the cadence value is calculated based on the time and number of high and low level interrupts triggered by the timer module.
[0086] A. The calculation principle and algorithm of torque
[0087] As shown in Formula 3, torque and deformation angle are linearly related. Since the deformation angle is very small, within a very small deformation angle, the arc is close to a straight line, so angular deformation can be approximated as linear deformation. Furthermore, the magnetic field at the boundary of NS magnet pairs of the same size and with equal magnetization is a linear region. The output voltage of the TMR sensor module is linearly related to the magnitude of the magnetic field. Therefore, it can be concluded that torque and the voltage output of the TMR chip are linearly related, and the calculation formula is as follows:
[0088] T = (V1 - V0) / k (Formula 4)
[0089] In the formula, T is the torque value in NM; V1 is the measured value, the voltage value of the TMR sensor module during measurement in mV; V0 is the zero-point calibration value, the TMR voltage value at 0 NM calibration in mV; and k is the linearity coefficient in mV / (NM), obtained through calibration.
[0090] As shown in Formula 4, the accuracy of the final torque is affected by the zero-point calibration value. In practical applications, the zero-point calibration value is affected by environmental factors, such as external fixed magnetic fields, temperature, humidity, and micro-deformation of the mechanical structure during use. To solve the problem of zero-point drift, this embodiment employs algorithms for initial zero-point calibration and process zero-point calibration.
[0091] like Figure 6 As shown, the initial zero-point calibration used in this embodiment is performed as follows:
[0092] (1) Initialize the initial timing to 0;
[0093] (2) Collect voltage values and determine whether the voltage values exceed the limit (e.g., 7 millivolts);
[0094] (3) If the limit is exceeded, the initial timing time is reset to 0 and the process returns to step (2); if the limit is not exceeded, the average value of all voltage values collected during the current initial timing time is calculated, and it is determined whether the average value exceeds the zero threshold (e.g., 5 millivolts).
[0095] (4) If the zero-point threshold is exceeded, the initial timing time is reset to 0 and the process returns to step (2); if the zero-point threshold is not exceeded, it is determined whether the initial timing time has reached the initial time threshold (e.g., 1 second).
[0096] (5) If the initial time threshold is not reached, return to step (2); if the initial time threshold is reached, output the mean as the zero-point calibration value.
[0097] like Figure 7 As shown, the zero-point calibration process in this embodiment is executed as follows:
[0098] (1) The initialization process timer is 0;
[0099] (2) Collect voltage values and determine whether the voltage values exceed the limit (e.g., 7 millivolts);
[0100] (3) If the limit is exceeded, the process timing time is reset to 0 and the process returns to step (2); if the limit is not exceeded, the average value of all voltage values collected during the current process timing time is calculated, and it is determined whether the average value exceeds the zero threshold (e.g., 5 millivolts).
[0101] (4) If the zero-point threshold is exceeded, the process timing is reset to 0 and the process returns to step (2); if the zero-point threshold is not exceeded, it is determined whether the process timing has reached the process time threshold (e.g., 10 seconds).
[0102] (5) If the process time threshold is not reached, return to step (2); if the process time threshold is reached, output the mean as the zero-point calibration value, and the process time threshold is greater than the initial time threshold.
[0103] In this embodiment, the LSB of the ADC module of the fixed controller in the fixed part is 2 bits, and the voltage of the voltage regulator chip also fluctuates. To reduce the interference of the reference voltage and the influence of the LSB of the ADC module, a conversion averaging mode is adopted when the ADC module samples. The average value is taken by sampling 64 times from the conversion channel to improve the data accuracy. After the system is powered on, an initial zero-point calibration is first performed. The initial zero-point calibration uses two methods, amplitude limiting filter detection and threshold detection, to detect anomalies, and the average value within 1 second is used as the zero-point value. After the initial zero-point calibration, the program enters the process zero-point calibration. The process zero-point calibration also uses two methods, amplitude limiting filter detection and threshold detection, to detect anomalies, but the detection time is set to 10 seconds. After passing the detection, the average value is used as the zero point, and the zero-point calibration value is updated, thereby greatly reducing the torque detection error caused by zero-point drift.
[0104] B. The principle and calculation of cadence
[0105] The speed measurement hall module provides cadence data and forward / reverse rotation data. It consists of two bipolar latched hall sensors connected to a timer module of a fixed controller. The hall chip detects the high and low levels generated by the N and S poles of the magnetic ring. The high and low levels from the two hall sensors are 90 degrees out of phase, forming an orthogonal encoding. Figure 8 As shown, when the timer module triggers a high or low level interrupt, the high and low levels of the two bipolar latch HALL sensor inputs are orthogonally encoded and detected. The value of the current orthogonal encoding is compared with the value of the previous orthogonal encoding to determine whether the central axis is rotating clockwise or counterclockwise.
[0106] Figure 8 QEA and QEB represent the high and low levels of two HALL sensors. The dashed line indicates an interrupt detection. When the timer triggers a high or low level interrupt, the quadrature code value is detected. The binary code obtained during forward rotation is 10-11-01-00, which is converted to decimal 2-3-1-0. The binary code obtained during reverse rotation is 00-01-11-10, which is converted to decimal 0-1-3-2. By comparing the obtained code with the previous code, the current rotation direction (forward or reverse) can be determined. The cadence is calculated based on the duration of the high and low levels using the following formula:
[0107]
[0108] In the formula, F is the cadence value in RPM; m is the total number of samples, a fixed value used for mean filtering; testing shows that setting it to 50 yields higher accuracy in this scheme; n is the nth sample, T min The time constant after converting one minute to microseconds (µs) is a constant of 60 * 1000 * 1000, in µs; C n T represents the number of timer counts under the nth sampling. n_c The time for one count after frequency division during the nth sampling is expressed in microseconds (µs); C0 is the number of N or S poles in one revolution of the magnetic ring, which is a fixed value of 32 in this embodiment.
[0109] The torque and cadence detection method provided by this invention adopts digital signal output, which has strong anti-interference ability and is easy for users to use directly, reducing the complexity of the process. It adopts initial zero-point calibration and process zero-point calibration to solve the problem of existing zero-point drift caused by changes in temperature and humidity environment and micro-deformation of mechanical structure, which greatly improves the anti-interference ability of torque acquisition and improves the accuracy of acquisition signal.
[0110] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0111] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the appended claims.
Claims
1. A torque and pedaling frequency acquisition method applied to an electrically assisted bicycle, based on a torque sensor, characterized in that, The torque sensor includes a central shaft, an elastic connector, a TMR sensor module, a pair of strong magnets, a follower PCB board, a follower wireless coil, a fixed wireless coil, a fixed PCB board, a magnetic ring, and a speed measurement HALL module, wherein: The following PCB board, following wireless coil, and magnetic ring are fixed on the central shaft. The fixed wireless coil, fixed PCB board, and speed measuring HALL module are fixed on the inner housing of the central motor of the electric-assisted bicycle. The two ends of the elastic connector are respectively connected to the central shaft and the chainring of the electric-assisted bicycle through gears. The strong magnetic magnet pair and TMR sensor module are respectively fixed to the two ends of the elastic connector. The following wireless coil and TMR sensor module are electrically connected to the following PCB board. The fixed wireless coil and speed measuring HALL module are electrically connected to the fixed PCB board. The fixed wireless coil and the follow-up wireless coil are nested together. The speed measuring HALL module is located close to the outer ring of the magnetic ring. When no torque is applied, the strong magnet is close to and corresponds to the TMR sensor module. The torque and cadence acquisition method includes: Perform initial zero-point calibration to obtain the zero-point calibration value; The measurement values of the TMR sensor module are collected periodically, and the torque value is calculated based on the measurement values and the zero-point calibration value. During the periodic acquisition and torque value calculation process, the zero-point calibration value is updated in real time by performing process zero-point calibration. The speed measurement HALL module is connected to the timer module on the fixed PCB board, and the step frequency value is calculated based on the time and number of high and low level interrupts triggered by the timer module.
2. The torque and cadence acquisition method of claim 1, wherein, The two strong magnets in the pair of strong magnets are two strong magnets with opposite polarities in the direction of the detection axis, and the two strong magnets are magnetized in opposite parallel directions in the direction of the detection axis.
3. The torque and cadence acquisition method of claim 1, wherein, The elastic connector, TMR sensor module, and strong magnet are all encased in a magnetic shield.
4. The torque and cadence acquisition method of claim 1, wherein, The follower PCB board is provided with a rectifier circuit, an ASK signal modulation circuit and a follower controller. The follower wireless coil is connected to the rectifier circuit, the rectifier circuit is connected to the follower controller and the ASK signal modulation circuit, the follower controller is connected to the ASK signal modulation circuit, and the TMR sensor module is connected to the ADC module of the follower controller. The fixed PCB board is equipped with a full-bridge inverter circuit, an ASK signal demodulation circuit, and a fixed controller. The fixed wireless coil is connected to the full-bridge inverter circuit and the ASK signal demodulation circuit respectively. The fixed controller is connected to the full-bridge inverter circuit, the ASK signal demodulation circuit, and the speed measurement HALL module respectively. The speed measurement HALL module is connected to the timer module of the fixed controller.
5. The torque and cadence collection method of claim 1, wherein, The initial zero-point calibration is performed as follows: (1) Initialize the initial timing to 0; (2) Collect the voltage value and determine whether the voltage value exceeds the limit value; (3) If the limit is exceeded, the initial timing time is reset to 0 and the process returns to step (2); if the limit is not exceeded, the average value of all voltage values collected during the current initial timing time is calculated, and it is determined whether the average value exceeds the zero threshold. (4) If the zero-point threshold is exceeded, the initial timing time is reset to 0 and the process returns to step (2); if the zero-point threshold is not exceeded, it is determined whether the initial timing time has reached the initial time threshold. (5) If the initial time threshold is not reached, return to step (2); if the initial time threshold is reached, output the mean as the zero-point calibration value.
6. The torque and cadence collection method of claim 5, wherein, The zero-point calibration process is performed as follows: (1) The initialization process time is 0; (2) Collect the voltage value and determine whether the voltage value exceeds the limit value; (3) If the limit is exceeded, the process timing time is reset to 0 and the process returns to step (2); if the limit is not exceeded, the average value of all voltage values collected during the current process timing time is calculated, and it is determined whether the average value exceeds the zero threshold. (4) If the zero-point threshold is exceeded, the process timing is reset to 0 and the process returns to step (2); if the zero-point threshold is not exceeded, it is determined whether the process timing has reached the process time threshold. (5) If the process time threshold is not reached, return to step (2); if the process time threshold is reached, output the mean as the zero-point calibration value, and the process time threshold is greater than the initial time threshold.
7. The torque and cadence collection method of claim 1, wherein, The calculation of the torque value based on the measured value and the zero-point calibration value includes: wherein is the torque value, is the measured value, is the zero point calibration value, is the linear coefficient.
8. The torque and cadence collection method of claim 1, wherein, The calculation of the tread frequency value based on the time and number of high and low level interrupts triggered by the timer module includes: wherein, is the step frequency value, is the total number of samples, is the sample, is the time constant after converting one minute into units, is the timer count number under the sample, is the time of one count after the timer is divided under the sample, is the number of N poles or S poles in one circle of the magnetic ring.
9. The torque and cadence collection method of claim 1, wherein, The speed measurement HALL module consists of two bipolar latch HALL sensors. When the timer module triggers a high or low level interrupt, the high and low levels input by the two bipolar latch HALL sensors are orthogonally encoded and detected. The value of the current orthogonal encoding is compared with the value of the previous orthogonal encoding to determine whether the central axis is rotating clockwise or counterclockwise.
Citation Information
Patent Citations
Electric moped non-contact torque detection system based on TMR and electric moped
CN117782387A
Measurement Systems
US20160265991A1
