Pedal power calculation system and method
By combining BLE and Ant+ standard power meter modules with piezoresistive and accelerometer sensors, the cycling monitoring system is simplified, costs are reduced, and highly reliable cycling power calculations are achieved.
Patent Information
- Application Number
- CN202411141704.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-12-06
AI Technical Summary
Existing cycling monitoring systems are complex and costly, making it difficult to effectively monitor cycling quality.
The system uses power meter modules based on BLE and Ant+ standards for data broadcasting. Combined with piezoresistive and accelerometer sensors, it achieves real-time calculation of riding power through data acquisition and calculation modules. The system is upgraded and calibrated via OTA upgrade module, simplifying the system architecture and reducing costs.
A simple and low-cost cycling power monitoring system has been developed, which is highly reliable and practical, and can meet the basic cycling power calculation needs.
Smart Images

Figure CN119075280A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of cycling monitoring, and specifically to a pedaling power calculation system and method. Background Art
[0002] In order to monitor the riding of cyclists, it is usually adopted to measure the pedaling force through a power meter to obtain the work done by the cyclists. However, if these technical means are to be used to monitor the riding of cyclists or supervise the riding quality in the background, they need to be implemented with a more complex monitoring system. In order to simplify the riding monitoring system and reduce the cost of use, a better technical means is urgently needed. Summary of the invention
[0003] The purpose of this application is to provide a pedaling power calculation system and method to solve the technical problems raised in the above background.
[0004] To achieve the above objectives, this application discloses the following technical solutions:
[0005] In a first aspect, the present application discloses a pedaling power calculation system, comprising:
[0006] The BLE standard power meter broadcast and communication module is configured to: broadcast the first riding data externally based on the standard BLE power meter protocol;
[0007] Ant+ standard power meter broadcast and communication module, configured as: based on Ant+ power meter protocol, broadcast the second riding data externally;
[0008] The BLE app interface and communication module are configured to: connect with the APP and transmit control data;
[0009] OTA upgrade module, configured to: upgrade based on OTA upgrade process;
[0010] The calibration and compensation module is configured to: calibrate the value of the pressure strain gauge adc when it is unloaded;
[0011] The data acquisition and calculation module is configured to: acquire and calculate the first riding data and the second riding data based on the pressure strain gauge ADC and the acceleration sensor.
[0012] Preferably, the first riding data includes one or more of real-time power, accumulated torque, upper and lower blind spots and number of laps.
[0013] Preferably, the second riding data includes one or more of real-time power, cadence, cumulative power, cumulative torque, battery charge and automatic calibration data.
[0014] Preferably, the control data includes: control data for restarting, control data for upgrading, control data for controlling entering deep sleep, control data for controlling sending temperature compensation calibration, control data for sending calibration coefficients, and control data for obtaining pressure strain gauge ADC data and calculation results.
[0015] In a second aspect, the present application discloses a method for calculating pedaling power, the method comprising the following steps:
[0016] Arrange the pedal power calculation system as described above, install an acceleration sensor on the pedal of the bicycle, and fuse the acceleration sensor with the pressure strain gauge ADC algorithm;
[0017] Collecting the values of the x-axis, y-axis and z-axis of the acceleration sensor, detecting whether the bicycle is vibrating to determine whether it is riding, and detecting the number of rotations of the pedals;
[0018] When riding, the system exits the sleep state and enters the working state, starts collecting the pressure strain gauge ADC, calculates the real-time power, and broadcasts the power and cadence in real time through the power meter protocol based on the standard BLE and the power meter protocol of Ant+;
[0019] When you stop riding and the acceleration sensor is stationary for 5 minutes, the device enters a sleep state, disconnects the power meter protocol based on the standard BLE and the power meter protocol of Ant+, stops collecting the pressure strain gauge ADC, and the system enters a low-power sleep state.
[0020] Preferably, when the system enters the working state, the reference timer, the pwm output timer and the adc acquisition timer are started, wherein the reference timer is triggered once according to the period t1;
[0021] Each time after the reference timer is triggered, after waiting for t1-1 time, the pwm output timer is started to turn on the bridge circuit and the simulator;
[0022] After the pwm output timer is started, the adc acquisition timer is started, and after waiting for t2 time, the adc data of the pressure strain gauge is collected, where t2 < 1;
[0023] Based on the collected pressure strain gauge adc data, the following data are calculated:
[0024] Among them, λ is the calculated calibration coefficient, adc BF is the ADC value corresponding to the pressure strain gauge when the 10kg standard weight is mounted, where the ADC value is the ADC data result converted from the pressure generated on the pressure strain gauge. 标定 To calibrate the adc value;
[0025] P = Δadc*λ, where P is the calculated pedal pressure value, and Δadc is the ADC difference corresponding to the two acquisitions of the pressure strain gauge;
[0026] N = P*L, where N is the calculated pedal torque and L is the crank length of the pedal;
[0027] Wherein, W is the calculated pedal power, and T is the duration of one rotation of the pedal.
[0028] Preferably, the ADC difference is calculated by the following formula:
[0029] Δadc=adc 实时 -adc 标定 +adc 温度补偿
[0030] adc 实时 It is the real-time value of ADC acquired based on the pressure strain gauge;
[0031] Among them, ∑adc CWKZ It is the sum of the adc values corresponding to 100 samplings of the pressure strain gauge at room temperature and without load;
[0032] Δadc 温度补偿 is the temperature compensation adc difference, Δadc 温度补偿 =adc 标定 -adc SWKZ , where adc SWKZ It is the adc value corresponding to the pressure strain gauge under no-load at real-time temperature.
[0033] Beneficial effects: The pedaling power calculation system and method of the present application has a simple system architecture, low complexity, and low development cost, and can meet the basic needs of pedaling power calculation. In addition, the calculation logic technology is simple and has good reliability and practicality. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 A schematic diagram of the system structure of the pedaling power calculation system provided in an embodiment of the present application;
[0036] Figure 2A working state transition diagram of a pedaling power calculation system provided in an embodiment of the present application;
[0037] Figure 3 This is a timing diagram of the timer operation provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] The technical solutions in the embodiments of the present application are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0039] In this article, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0040] In a first aspect, this embodiment provides Figure 1 A pedaling power calculation system shown includes:
[0041] BLE standard power meter broadcast and communication module, BLE standard power meter broadcast and communication module mainly supports the power meter protocol based on standard BLE, supports the function of service UUID 0x1818, and broadcasts real-time power, accumulated torque, upper and lower dead angles, number of laps and other data.
[0042] Ant+ standard power meter broadcast and communication module, Ant+ standard power meter broadcast and communication module mainly supports the standard Ant+ power meter protocol. It broadcasts real-time power, cadence, accumulated power, accumulated torque, battery power, automatic calibration, etc.
[0043] BLE app interface and communication module, BLE app interface and communication module are used to support the corresponding app interface, mainly including restart, upgrade, enter deep sleep, send temperature compensation calibration, send calibration coefficient, obtain various pressure strain gauge adc data and calculation results, etc.
[0044] OTA upgrade module: The OTA upgrade module mainly supports the standard OTA upgrade process and encryption, etc.
[0045] The calibration and compensation module is mainly used to calibrate the value of the pressure strain gauge adc when it is unloaded, so as to facilitate the calculation of real-time power. In addition, when it is unloaded, the deviation caused by the pressure strain gauge adc value changes with different temperatures is used to calculate the real-time power more accurately.
[0046] Data acquisition and calculation module, the data acquisition and calculation module is the core of the system. It mainly uses two components: pressure strain gauge ADC and acceleration sensor. In this article, pressure strain gauge ADC refers to: based on the pressure strain gauge, the component that converts the pressure generated on the pressure strain gauge into an ADC value; the corresponding data conversion process is: pressure is generated on the pressure strain gauge → ADC converts the generated pressure into an ADC value. Through the x, y, and z values of the acceleration sensor, it is easy to detect whether the bicycle is vibrating, whether it has started riding, and how many times the bicycle pedal has rotated. Figure 2 As shown in the figure, once riding starts, the system exits the sleep state and officially enters the working state, starts collecting the pressure strain gauge ADC, calculates the real-time power, and broadcasts the power, cadence and other data in real time through B LE and ANT+. If the bicycle stops riding and the acceleration sensor is in a static state for 5 minutes, the device enters the sleep state, disconnects B LE and ANT+, stops collecting the pressure strain gauge ADC, and enters a low-power sleep state. Here is a state transition diagram.
[0047] When entering the working state, three timers are started. Figure 3 As shown, the base timer is triggered every 20ms to process the display of the LED light, the calculation of hours, minutes and seconds, the calculation of the acceleration sensor data, etc.
[0048] Each time after the reference timer is triggered, wait for 19 milliseconds, start the pwm output timer, and let the bridge circuit and simulator conduct. After the pwm output timer is started, the adc acquisition timer is started, and after 0.7ms (i.e. t2 = 0.7ms), the pressure strain gauge adc data is collected. The pwm output timer and adc acquisition timer are mainly used to minimize the power consumption of the system while the pressure strain gauge adc collects the pressure on the stress gauge. The next time the reference timer is triggered, the bridge circuit, simulator circuit, and adc acquisition are all stopped.
[0049] In this way, the system can collect pressure strain gauge ADC data 50 times per second and the acceleration sensor calculation 50 times per second, ensuring the accuracy of the pressure strain gauge ADC data while minimizing system power consumption.
[0050] In a second aspect, this embodiment discloses a pedaling power calculation method, corresponding to the aforementioned pedaling power calculation system, the method comprising the following steps:
[0051] Arrange the pedal power calculation system mentioned above, install the acceleration sensor on the pedal of the bicycle, and integrate the acceleration sensor with the pressure strain gauge ADC algorithm;
[0052] Collecting the values of the x-axis, y-axis and z-axis of the acceleration sensor, detecting whether the bicycle is vibrating to determine whether it is riding, and detecting the number of rotations of the pedals;
[0053] When riding, the system exits the sleep state and enters the working state, starts collecting the pressure strain gauge ADC, calculates the real-time power, and broadcasts the power and cadence in real time through the power meter protocol based on the standard BLE and the power meter protocol of Ant+;
[0054] When you stop riding and the acceleration sensor is stationary for 5 minutes, the device enters a sleep state, disconnects the power meter protocol based on the standard BLE and the power meter protocol of Ant+, stops collecting the pressure strain gauge ADC, and the system enters a low-power sleep state.
[0055] Furthermore, in the specific pedal-related data calculation process, that is, when the system enters the working state, the reference timer, the PWM output timer and the ADC acquisition timer are started and begin to work.
[0056] The reference timer is triggered once according to a period t1 (e.g., 20 ms);
[0057] Each time after the reference timer is triggered, after waiting for t1-1 (i.e. 19ms), the pwm output timer is started to turn on the bridge circuit and the simulator;
[0058] After the PWM output timer is started, the ADC acquisition timer is started, and after waiting for t2 (such as 0.7ms), the pressure strain gauge ADC data is collected. Based on the above collected data, the pedaling power is calculated through the following steps:
[0059] Among them, λ is the calculated calibration coefficient, adc BF is the ADC value corresponding to the pressure strain gauge when the 10kg standard weight is mounted, where the ADC value is the ADC data result converted from the pressure generated on the pressure strain gauge. 标定 To calibrate the adc value;
[0060] P = Δadc*λ, where P is the calculated pedal pressure value, and Δadc is the ADC difference corresponding to the two acquisitions of the pressure strain gauge;
[0061] N = P*L, where N is the calculated pedal torque and L is the crank length of the pedal;
[0062] Wherein, W is the calculated pedal power, and T is the duration of one rotation of the pedal.
[0063] Furthermore, the adc difference is calculated by the following formula:
[0064] Δadc=adc 实时 -adc 标定 +adc 温度补偿
[0065] adc 实时 It is the real-time value of ADC acquired based on the pressure strain gauge;
[0066] Among them, ∑adc CWKZ It is the sum of the adc values corresponding to 100 samplings of the pressure strain gauge at room temperature and without load;
[0067] Δadc 温度补偿 is the temperature compensation adc difference, Δadc 温度补偿 =adc 标定 -adc SWKZ , where adc SWKZ It is the adc value corresponding to the pressure strain gauge under no-load at real-time temperature.
[0068] In summary, the pedaling power calculation system and method of this embodiment has a simple system architecture, low complexity, and low development cost, and can meet the basic needs of pedaling power calculation. In addition, the calculation logic technology is simple and has good reliability and practicality.
[0069] In the embodiments provided in the present application, it should be understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, code or any appropriate combination thereof. For hardware implementation, the processor can be implemented in one or more of the following units: application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, other electronic units designed to implement the functions described herein or their combination. For software implementation, part or all of the flow of the embodiment can be completed by instructing the relevant hardware through a computer program. When implemented, the above program can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The storage medium can be any available medium that a computer can access. The computer-readable storage medium can include but is not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer.
[0070] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A pedal power calculation system, characterized in that: include: The BLE standard power meter broadcast and communication module is configured to: broadcast the first riding data externally based on the standard BLE power meter protocol; Ant+ standard power meter broadcast and communication module, configured as: based on Ant+ power meter protocol, broadcast the second riding data externally; The BLE app interface and communication module are configured to: connect with the APP and transmit control data; OTA upgrade module, configured to: upgrade based on OTA upgrade process; The calibration and compensation module is configured to: calibrate the value of the pressure strain gauge adc when it is unloaded; The data acquisition and calculation module is configured to: acquire and calculate the first riding data and the second riding data based on the pressure strain gauge ADC and the acceleration sensor.
2. The pedaling power calculation system according to claim 1, characterized in that: The first riding data includes one or more of real-time power, cumulative torque, upper and lower dead angles, and number of laps.
3. The pedaling power calculation system according to claim 1, characterized in that: The second riding data includes one or more of real-time power, cadence, cumulative power, cumulative torque, battery power and automatic calibration data.
4. The pedaling power calculation system according to claim 1, characterized in that: The control data includes: control data for restarting, control data for upgrading, control data for controlling entering deep sleep, control data for controlling sending temperature compensation calibration, control data for sending calibration coefficients, and control data for obtaining data and calculation results of pressure strain gauge ADC.
5. A pedaling power calculation method, characterized in that: The method comprises the following steps: Arrange the pedaling power calculation system as described in any one of claims 1 to 4, install an acceleration sensor on the pedal of the bicycle, and fuse the acceleration sensor with the pressure strain gauge ADC algorithm; Collecting the values of the x-axis, y-axis and z-axis of the acceleration sensor, detecting whether the bicycle is vibrating to determine whether it is riding, and detecting the number of rotations of the pedals; When riding, the system exits the sleep state and enters the working state, starts collecting the pressure strain gauge ADC, calculates the real-time power, and broadcasts the power and cadence in real time through the power meter protocol based on the standard BLE and the power meter protocol of Ant+; When you stop riding and the acceleration sensor is stationary for 5 minutes, the device enters a sleep state, disconnects the power meter protocol based on the standard BLE and the power meter protocol of Ant+, stops collecting the pressure strain gauge ADC, and the system enters a low-power sleep state.
6. The pedaling power calculation method according to claim 5, characterized in that: When the system enters the working state, the reference timer, the PWM output timer and the ADC acquisition timer are started, wherein the reference timer is triggered once according to the period t1; Each time after the reference timer is triggered, after waiting for t1-1 time, the pwm output timer is started to turn on the bridge circuit and the simulator; After the pwm output timer is started, the adc acquisition timer is started, and after waiting for t2 time, the adc data of the pressure strain gauge is collected, where t2 < 1; Based on the collected pressure strain gauge adc data, the following data are calculated: Among them, λ is the calculated calibration coefficient, adc BF is the ADC value corresponding to the pressure strain gauge when the 10kg standard weight is mounted, where the ADC value is the ADC data result converted from the pressure generated on the pressure strain gauge. 标定 To calibrate the adc value; P = Δadc*λ, where P is the calculated pedal pressure value, and Δadc is the ADC difference corresponding to the two acquisitions of the pressure strain gauge; N = P*L, where N is the calculated pedal torque and L is the crank length of the pedal; Wherein, W is the calculated pedal power, and T is the duration of one rotation of the pedal.
7. The pedaling power calculation method according to claim 6, characterized in that: The adc difference is calculated by the following formula: Δadc=adc 实时 -adc 标定 +adc 温度补偿 adc 实时 It is the real-time value of ADC acquired based on the pressure strain gauge; Among them, vadc CWKZ It is the sum of the adc values corresponding to 100 samplings of the pressure strain gauge at room temperature and without load; Δadc 温度补偿 is the temperature compensation adc difference, Δadc 温度补偿 =adc 标定 -adc SWKZ , where adc SWKZ It is the adc value corresponding to the pressure strain gauge under no-load at real-time temperature.
