CN107335179B - Treadmill speed control method and device, treadmill and storage medium - Google Patents

Treadmill speed control method and device, treadmill and storage medium Download PDF

Info

Publication number
CN107335179B
CN107335179B CN201710643899.2A CN201710643899A CN107335179B CN 107335179 B CN107335179 B CN 107335179B CN 201710643899 A CN201710643899 A CN 201710643899A CN 107335179 B CN107335179 B CN 107335179B
Authority
CN
China
Prior art keywords
running belt
speed
peak pressure
pressure value
pressure values
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710643899.2A
Other languages
Chinese (zh)
Other versions
CN107335179A (en
Inventor
靳国强
林志强
景志峰
王巍
李创奇
刘华一君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Beijing Kingsmith Technology Co Ltd
Original Assignee
University of Science and Technology Beijing USTB
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by University of Science and Technology Beijing USTB, Beijing Xiaomi Mobile Software Co Ltd filed Critical University of Science and Technology Beijing USTB
Priority to CN201710643899.2A priority Critical patent/CN107335179B/en
Publication of CN107335179A publication Critical patent/CN107335179A/en
Application granted granted Critical
Publication of CN107335179B publication Critical patent/CN107335179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63BAPPARATUS FOR PHYSICAL TRAINING, GYMNASTICS, SWIMMING, CLIMBING, OR FENCING; BALL GAMES; TRAINING EQUIPMENT
    • A63B22/00Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements
    • A63B22/02Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements with movable endless bands, e.g. treadmills
    • A63B22/0235Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements with movable endless bands, e.g. treadmills driven by a motor
    • A63B22/0242Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements with movable endless bands, e.g. treadmills driven by a motor with speed variation
    • A63B22/025Exercising apparatus specially adapted for conditioning the cardio-vascular system, for training agility or co-ordination of movements with movable endless bands, e.g. treadmills driven by a motor with speed variation electrically, e.g. D.C. motors with variable speed control

Landscapes

  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • Vascular Medicine (AREA)
  • General Health & Medical Sciences (AREA)
  • Physical Education & Sports Medicine (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)
  • Rehabilitation Tools (AREA)

Abstract

The disclosure relates to a running belt speed control method and device, a running machine and a storage medium, and belongs to the field of running machines. The method comprises the following steps: counting the number of peak pressure values acquired within a preset time length before the current time point; when the number of the wave crest pressure values is larger than a first preset number, adjusting the running belt speed of the treadmill to accelerate the running belt; and/or when the number of the wave crest pressure values is smaller than a second preset number, adjusting the speed of the running belt so as to decelerate the running belt. This openly can not receive the restriction of pressure sensor quantity, consequently reduced pressure sensor's quantity to reduce the hardware cost and the space that occupies, reduced the degree of difficulty of design cooperation circuit and integrated process, and easy to maintain has reduced the probability that the treadmill broke down, has improved the stability of treadmill.

Description

Treadmill speed control method and device, treadmill and storage medium
Technical Field
The present disclosure relates to the field of treadmills, and more particularly, to a method and apparatus for controlling speed of a treadmill, and a storage medium.
Background
The treadmill is a commonly used fitness device, and after the treadmill is started, a running belt of the treadmill can move at a certain speed, and a user can run on the running belt along with the movement of the running belt. In order to provide a good running experience for the user, the running belt should control its speed to match the user's speed, such as controlling the running belt to accelerate when the user accelerates and controlling the running belt to decelerate when the user decelerates.
Referring to fig. 1, there is shown a side sectional view of a related art treadmill including a running belt 101, a front roller 102, a rear roller 103, a running board 104, a pressure sensor array 105, and support feet 106. Wherein, the front roller 102 and the rear roller 103 are respectively positioned at two ends of the running board 104; when the front roller 102 and the rear roller 103 rotate in the same direction, the running belt 101 rotates around the front roller 102, the rear roller 103 and the running board 104; the pressure sensor array 105 is positioned on the upper surface of the running board 104 and comprises a plurality of pressure sensors distributed at different positions, and each pressure sensor is used for detecting the pressure value of the running belt 101 above the pressure sensor array 105; the supporting feet 106 are located under the running board 104 and distributed on the left and right sides of the running belt 101 for supporting the treadmill.
In the running process of the user, when the sole of the foot begins to step on a certain position of the running belt 101, the position of the pressure sensor with the maximum detected pressure value is used as the landing position of the sole of the user when the pressure value detected by the pressure sensor closer to the certain position is larger, the distance between the landing position and the front end of the running machine is smaller than a first distance, the speed of the user relative to the speed of the running belt is determined to be larger, the running belt 101 is controlled to accelerate at the moment, the distance between the landing position and the front end of the running machine is larger than a second distance, the speed of the user relative to the speed of the running belt is determined to be smaller, and the running belt 101 is controlled to decelerate at the moment.
Disclosure of Invention
In order to solve the problems in the related art, the present disclosure provides a running belt speed control method, apparatus, treadmill, and storage medium. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a running belt speed control method, the method including:
counting the number of peak pressure values acquired within a preset time length before the current time point;
when the number of the peak pressure values is larger than a first preset number, adjusting the running belt speed of the treadmill to accelerate the running belt, wherein the first preset number is used for indicating the number of the peak pressure values which are counted at least in the preset time length for triggering the running belt to accelerate; and/or the presence of a gas in the gas,
when the number of the peak pressure values is smaller than a second preset number, the speed of the running belt is adjusted to enable the running belt to decelerate, and the second preset number is used for indicating the number of the peak pressure values which are counted at most in the preset duration for triggering deceleration of the running belt.
In another possible implementation manner, the method further includes:
when the pressure values detected by the pressure sensors configured to the treadmill include pressure values meeting a first preset condition, the pressure values meeting the first preset condition are used as peak pressure values, and the first preset condition is that the pressure values are larger than a previous pressure value and larger than a next pressure value.
In another possible implementation manner, the method further includes:
whenever a peak pressure value is detected, adding the peak pressure value to a first bit of a peak queue, wherein the peak queue comprises a plurality of peak pressure values which are arranged in the order from late to early according to an acquisition time point;
the counting of the number of peak pressure values acquired within a preset time length before the current time point includes:
and counting the number of peak pressure values of the acquired time point in the peak queue within the preset time length before the current time point.
In another possible implementation manner, the method further includes:
and when the number of the peak pressure values is 0, controlling the running belt to stop.
In another possible implementation manner, when the number of the peak pressure values is greater than a first preset number, adjusting the running belt speed of the treadmill to accelerate the running belt includes:
acquiring the current speed of the running belt;
calculating the current speed and the number of the peak pressure values by adopting a second acceleration control function to obtain an accelerated speed, adjusting the speed of the running belt to the accelerated speed, and fitting the current speed, the number of the peak pressure values and the accelerated speed which correspond to each other by the second acceleration control function to obtain the second acceleration control function; and/or the presence of a gas in the gas,
when the number of the peak pressure values is less than a second preset number, the speed of the running belt is adjusted to decelerate the running belt, and the method comprises the following steps:
acquiring the current speed of the running belt;
and calculating the current speed and the number of the peak pressure values by adopting a second deceleration control function to obtain a decelerated speed, adjusting the speed of the running belt to the decelerated speed, and fitting the current speed, the number of the peak pressure values and the decelerated speed which correspond to each other by the second deceleration control function to obtain the second deceleration control function.
According to a second aspect of the embodiments of the present disclosure, there is provided a running belt speed control apparatus including:
the statistical module is used for counting the number of peak pressure values acquired within a preset time length before the current time point;
the adjustment module is used for adjusting the running belt speed of the treadmill to accelerate the running belt when the number of the peak pressure values is larger than a first preset number, and the first preset number is used for indicating the number of the peak pressure values which are counted at least within the preset time length for triggering the running belt to accelerate; and/or the presence of a gas in the gas,
the adjusting module is further configured to adjust the running belt speed when the number of the peak pressure values is smaller than a second preset number, so that the running belt decelerates, and the second preset number is used for indicating the number of the peak pressure values which are counted at most within the preset time length and trigger the running belt to decelerate.
In another possible implementation manner, the apparatus further includes:
the determination module is configured to, when the pressure values detected by the pressure sensors configured in the treadmill include a pressure value meeting a first preset condition, use the pressure value meeting the first preset condition as a peak pressure value, where the first preset condition is that the pressure value is greater than a previous pressure value and greater than a next pressure value.
In another possible implementation manner, the apparatus further includes:
the adding module is used for adding the peak pressure value to the first bit of a peak queue when the peak pressure value is detected, wherein the peak queue comprises a plurality of peak pressure values which are arranged in sequence from late to early according to the acquisition time point;
the counting module is further configured to count the number of peak pressure values within the preset time duration, where the acquired time point is located before the current time point, in the peak queue.
In another possible implementation manner, the adjusting module is further configured to control the running belt to stop when the number of the peak pressure values is 0.
In another possible implementation manner, the adjusting module includes:
the acquisition submodule is used for acquiring the current speed of the running belt;
the calculation submodule is used for calculating the number of the current speed and the number of the peak pressure values by adopting a second acceleration control function to obtain the accelerated speed;
the adjusting submodule is used for adjusting the speed of the running belt to the accelerated speed, and the second acceleration control function is obtained by fitting the current speed, the number of peak pressure values and the accelerated speed which correspond to each other; and/or the presence of a gas in the gas,
the adjustment module includes:
the acquisition submodule is used for acquiring the current speed of the running belt;
the calculation submodule is used for calculating the number of the current speed and the number of the peak pressure values by adopting a second deceleration control function to obtain a decelerated speed;
and the adjusting submodule is used for adjusting the speed of the running belt to the decelerated speed, and the second deceleration control function is obtained by fitting the current speed, the number of peak pressure values and the decelerated speed which correspond to each other.
According to a third aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps of the method of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a running belt speed control apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
counting the number of peak pressure values acquired within a preset time length before the current time point;
when the number of the peak pressure values is larger than a first preset number, adjusting the running belt speed of the treadmill to accelerate the running belt, wherein the first preset number is used for indicating the number of the peak pressure values which are counted at least in the preset time length for triggering the running belt to accelerate; and/or the presence of a gas in the gas,
when the number of the peak pressure values is smaller than a second preset number, the speed of the running belt is adjusted to enable the running belt to decelerate, and the second preset number is used for indicating the number of the peak pressure values which are counted at most in the preset duration for triggering deceleration of the running belt.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method, the device, the treadmill and the storage medium provided by the embodiment provide a way for controlling the speed of the treadmill, and can count the number of peak pressure values in a preset time length to obtain the frequency of the user, so as to control the speed of the treadmill. The method only needs to automatically control the speed change of the running belt according to the detected pressure value without being limited by the number of the pressure sensors, thereby reducing the hardware cost and the occupied space, reducing the difficulty of designing a matching circuit and an integration process, being easy to maintain, reducing the failure probability of the treadmill and improving the stability of the treadmill.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a side sectional view of a treadmill shown in the related art;
FIG. 2A is a cross-sectional side view of a treadmill according to an exemplary embodiment;
FIG. 2B is a schematic top view of a treadmill according to an exemplary embodiment;
FIG. 2C is a schematic top view of a treadmill according to an exemplary embodiment;
FIG. 3 is a schematic top view of a treadmill according to an exemplary embodiment;
FIG. 4A is a flow chart illustrating a method of treadmill speed control in accordance with an exemplary embodiment;
FIG. 4B is a flow chart illustrating a method of treadmill speed control in accordance with an exemplary embodiment;
FIG. 4C is a flow chart illustrating a method of treadmill speed control in accordance with an exemplary embodiment;
FIG. 4D is a flow chart illustrating a method of treadmill speed control in accordance with an exemplary embodiment;
FIG. 4E is a graphical illustration of a trend of pressure values according to an exemplary embodiment;
FIG. 5 is a flow chart illustrating a method of treadmill speed control in accordance with an exemplary embodiment;
FIG. 6A is a flow chart illustrating a method of treadmill speed control in accordance with an exemplary embodiment;
FIG. 6B is a graphical illustration of a trend of pressure values according to an exemplary embodiment;
FIG. 6C is a schematic diagram illustrating a calculation of a target distance in accordance with an exemplary embodiment
FIG. 7 is a flow chart illustrating a method of treadmill speed control in accordance with an exemplary embodiment;
FIG. 8 is a flow chart illustrating a method of treadmill speed control in accordance with an exemplary embodiment;
FIG. 9A is a block diagram illustrating a treadmill speed control apparatus in accordance with an exemplary embodiment;
FIG. 9B is a block diagram illustrating a treadmill speed control apparatus in accordance with an exemplary embodiment;
FIG. 9C is a block diagram illustrating a treadmill speed control apparatus in accordance with an exemplary embodiment;
FIG. 9D is a block diagram illustrating a treadmill speed control apparatus in accordance with an exemplary embodiment;
fig. 10 is a block diagram illustrating a deck tape speed control apparatus according to an exemplary embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, the present disclosure is described in further detail below with reference to the embodiments and the accompanying drawings. The exemplary embodiments and descriptions of the present disclosure are provided herein for illustration of the present disclosure, but not for limitation of the present disclosure.
The embodiment of the disclosure provides a treadmill speed control method, a treadmill speed control device, a treadmill and a storage medium, and the disclosure is explained in detail with reference to the attached drawings.
Fig. 2A is a side cross-sectional view and fig. 2B is a top schematic view of a treadmill according to an exemplary embodiment, including a processor 201, a motor 202, a front roller 203, a rear roller 204, a tread plate 205, a tread belt 206, a pressure sensor 207, and support feet 208 (processor 201 and motor 202 are not shown in the figures).
The processor 201 is electrically connected with a motor 202, the motor 202 is connected with the front end roller 203, and the processor 201 is used for controlling the rotation of the front end roller 203 and the rear end roller 204 through the motor 202. The front end roller 203 and the rear end roller 204 are located at both ends of the running board 205, the running belt 206 is located outside the running board 205, the front end roller 203 and the rear end roller 204, and the running belt 206 moves around the front end roller 203 and the rear end roller 204 toward the rear end of the treadmill when the front end roller 203 and the rear end roller 204 rotate.
The principle of rotation of the running belt 206, the front end roller 203 and the rear end roller 204 can be as follows: the motor 202 drives the front roller 203 to rotate, the front roller 203 drives the running belt 206 to move towards the rear end of the treadmill, and the running belt 206 drives the rear roller 204 to rotate.
The running plate 205 may be a rigid structure capable of supporting the running belt 206 when the running belt 206 is under pressure, preventing the running belt 206 from sagging and deforming.
The pressure sensor 207 is fixed to the running board 205, for example, the running board 205 may include a designated groove in which the pressure sensor 207 is fixed. In addition, a stud may be provided below the pressure sensor 207, and the stud may be used to support and fix the pressure sensor 207. The pressure sensor 207 is used for detecting the pressure value received by the running belt 206, and the center of the pressure sensor 207 and the center of the supporting foot 208 are located on the same straight line perpendicular to the running belt 206 (i.e. perpendicular to the running surface). Wherein, supporting legs 208 is the atress strong point of treadmill, the position that treadmill atress is the biggest promptly, for set up pressure sensor 207 in other positions, correspond pressure sensor 207 and supporting legs 208 and set up the process that can guarantee pressure sensor 207 to detect the pressure value more sensitive, the degree of accuracy is higher.
In the process of running on the running belt 206, the foot (such as the sole) will impact the running belt 206, the running belt 206 will be pressed, and then the pressure will be generated on the running board 205, and the pressure sensor 207 and the running board 205 have been fixed as an integrated structure, so that the pressure value received by the running board 205 will be detected, and the pressure value can be regarded as the pressure value received by the running belt 206. The processor 201 is configured to obtain a pressure value detected by the pressure sensor 207, and control the rotation speed of the front roller 203 according to the pressure value, so as to control the speed of the running belt 206, such that the running belt 206 moves at a corresponding speed.
The pressure sensor 207 may be connected to the acquisition circuit, the acquisition circuit is connected to the processor 201, and the processor 201 may acquire the pressure value detected by the pressure sensor 207 according to an acquisition period, where the acquisition period may be 18ms or 28 ms.
In another embodiment, referring to fig. 2C, which is a top view of a treadmill, based on the treadmill shown in fig. 2A and 2B, support feet 208 include a first support foot 2081 and a second support foot 2082, with first support foot 2081 located on a first outer side of tread belt 206, e.g., the left side of the user during running, and second support foot 2082 located on a second outer side of tread belt 206, e.g., the right side of the user during running, with the distance between first support foot 2081 and second support foot 2082 and the front end of the treadmill being less than the distance to the rear end of the treadmill, i.e., first support foot 2081 and second support foot 2082 are the support feet at the front end of the treadmill.
Accordingly, the pressure sensor 207 includes a first pressure sensor 2071 and a second pressure sensor 2072, the center of the first pressure sensor 2071 and the center of the first support foot 2081 are located on the same vertical line, and the center of the second pressure sensor 2072 and the center of the second support foot 2082 are located on the same vertical line.
In the running process of the user, the first pressure sensor 2071 is closer to the left foot of the user, so the detected pressure value can reflect the motion of the left foot of the user, and the second pressure sensor 2072 is closer to the right foot of the user, so the detected pressure value can reflect the motion of the right foot of the user, so the treadmill can determine the motion of the left foot and the right foot of the user according to the two pressure sensors, and synthesize the motion of the two feet to control the speed of the running belt. In addition, the two pressure sensors can be backup sensors for each other, that is, when any one of the pressure sensors is damaged, the treadmill can acquire the pressure value detected by the other pressure sensor so as to control the speed of the running belt according to the pressure value.
In one possible implementation, referring to fig. 3, the running board 205 of the treadmill may include a first running board portion and a second running board portion, a front end of the first running board portion is a front end of the treadmill, and a seam 209 is present between the first running board portion and the second running board portion. Wherein the running board 205 can be folded up at the seam 209, i.e. the treadmill is a folding treadmill. Further, a third support foot 2083 may be disposed below the seam 209, and the third support foot 2083 is used to support the seam 209 and prevent the running board 205 from bending and sagging at the seam 209 due to the pressure applied during operation.
The position on the running belt corresponding to the seam 209 is a calibration position, and when the foot of the user is located at the calibration position of the running belt, the pressure value detected by the pressure sensor is 0. This is because the forces applied to the running board by the first running board portion, the joint 209 and the second running board portion are independent of each other, and when the foot of the user is located at any position from the position corresponding to the joint 209 to the rear end on the running surface, the pressure applied to the first running board portion is 0, and the pressure value detected by the pressure sensor 207 located at the front end of the running board is 0.
It should be noted that the treadmill may further include a handrail, a console, etc. disposed above the tread belt 206, and the user may control the treadmill by triggering various operations on the console. The processor 201 may be disposed inside the running board 205, or in the console, and the motor 202 may be disposed inside the running board 205, or directly disposed inside the two rollers.
The treadmill that the correlation technique provided needs to detect user's foot position through the pressure sensor array of configuration, just can automatic control race area variable speed, and in order to detect accurate foot position, pressure sensor array usually needs to dispose dozens of pressure sensor, but the more the number of pressure sensor, and the hardware cost is higher, and the space that needs to occupy is bigger, and the cooperation circuit that different pressure sensors interconnect is more complicated, and the integrated degree of difficulty is bigger. Moreover, the more the number of the pressure sensors, the higher the probability of failure, the greater the difficulty of maintenance, and the worse the stability of the treadmill.
The treadmill provided by the embodiment of the disclosure improves the function of the processor, only needs to be provided with one or two pressure sensors, can automatically control the speed change of the treadmill according to the detected pressure value, does not need to be provided with too many pressure sensors, reduces the number of the pressure sensors, thereby reducing the hardware cost and the occupied space, reducing the difficulty of designing a matching circuit and an integration process, being easy to maintain, reducing the fault probability of the treadmill, and improving the stability of the treadmill.
Fig. 4A is a flowchart illustrating a method of treadmill speed control according to an exemplary embodiment, as shown in fig. 4A, the method being performed by the treadmill shown in fig. 2A and 2B, comprising the steps of:
in step 401, a first peak pressure value currently detected by a pressure sensor of a treadmill configuration and a second peak pressure value last detected are obtained.
Then, the treadmill compares the first peak pressure value with the second peak pressure value to obtain a comparison result, and executes step 402 or step 403 according to different conditions of the comparison result.
The pressure sensor is arranged in the running machine in advance, the pressure sensor can detect the current pressure value received by the running belt in real time, and then the running machine can acquire the pressure value detected by the pressure sensor. For example, the pressure values detected by the pressure sensor may be collected according to a collection period, which may be 18ms, 28ms, or the like.
During the running process of the user on the running belt, the foot part can perform the circular motion of foot falling, foot lifting and foot falling. Accordingly, the pressure value detected by the pressure sensor can show a wavy change trend, namely 'peak pressure value-trough pressure value-peak pressure value'. The process from falling to leaving of the running belt of the foot of the user is called a landing period, the peak pressure value is the maximum value of a plurality of pressure values detected in the landing period, and the valley pressure value is the minimum value of the plurality of pressure values detected in the landing period.
The reason why such a trend of change appears is that, in the process of taking one step by the user, when the foot falls on the running belt, an impact is generated on the running belt, the pressure applied to the running belt reaches the maximum, and accordingly, the pressure value detected by the pressure sensor reaches the peak pressure value; in the process that the foot slides backwards along with the movement of the running belt, the pressure applied on the running belt is reduced, and correspondingly, the pressure value detected by the pressure sensor is gradually reduced from the peak pressure value; when the foot is lifted from the running belt, the pressure on the running belt reaches the minimum, and correspondingly, the pressure value detected by the pressure sensor reaches the trough pressure value. That is, the action of dropping the foot portion generates a peak pressure value, and the action of raising the foot portion generates a valley pressure value.
Because the peak pressure value is associated with the action of the user on the falling foot, the change trend of the peak pressure value can reflect the change trend of the action of the user on the falling foot. Therefore, in this embodiment, a first peak pressure value currently detected by the pressure sensor and a second peak pressure value last detected by the pressure sensor are obtained, so that a change trend of the peak pressure value is analyzed in a subsequent process, and a change trend of an action of dropping a foot of a user is obtained.
Wherein, to the process of obtaining first crest pressure value, in order to determine the crest pressure value in time from each pressure value that pressure sensor detected, this embodiment can adopt the detection algorithm of crest value to detect every pressure value that pressure sensor detected:
when the pressure value detected by the pressure sensor is collected, the pressure value is compared with the pressure value collected last time by the pressure sensor, when the pressure value collected this time is larger than the pressure value collected last time, the pressure value can be known to be in the ascending trend, and when the pressure value collected this time is smaller than the pressure value collected last time, the pressure value can be known to be in the descending trend. Then, for a certain collected pressure value, if the pressure value before the pressure value is in an ascending trend and the pressure value after the pressure value is in a descending trend, the pressure value can be taken as a peak pressure value. In combination with this concept, the embodiment sets a first preset condition, and when the pressure values detected by the pressure sensor include a pressure value meeting the first preset condition, the pressure value meeting the preset condition is taken as a peak pressure value, where the first preset condition is that the pressure value is greater than a previous pressure value and greater than a next pressure value.
Further, it is considered that when a plurality of pressure values before a certain pressure value are continuously in an ascending trend, and a pressure value after the certain pressure value is in a descending trend, the pressure value is taken as a peak pressure value. Accordingly, the first preset condition may be that a plurality of pressure values before the pressure value are sequentially increased, and the pressure value is greater than the next pressure value, and the number of the plurality of pressure values may be determined according to the actual requirement.
In one possible implementation manner, in order to facilitate storing and recording of the peak pressure values, the treadmill may establish a peak queue for the pressure sensor, and store each acquired peak pressure value of the pressure sensor in the peak queue, so that the peak queue may be used to record a plurality of peak pressure values that have been detected by the pressure sensor, and the plurality of peak pressure values may be arranged in order from late to early according to the acquisition time point.
Then, when the treadmill acquires the current first peak pressure value, the peak pressure value currently arranged at the first position may be read from the peak queue, and the peak pressure value is the peak pressure value acquired last time, so that the peak pressure value may be used as the second peak pressure value, and the newly acquired first peak pressure value may be added to the first position of the peak queue.
Or, when the treadmill acquires the current first peak pressure value, the first peak pressure value may be added to the first position of the peak queue, and then the peak pressure value currently arranged at the second position is read from the peak queue as the second peak pressure value.
It should be noted that the treadmill can be configured with two pressure sensors: first pressure sensor and second pressure sensor, then in another embodiment, see fig. 4B, this step 401 may be replaced by the following step 411:
in step 411, a first peak pressure value currently detected by the first pressure sensor and a second peak pressure value last detected by the first pressure sensor, and a first peak pressure value currently detected by the second pressure sensor and a second peak pressure value last detected by the second pressure sensor are obtained.
The first pressure sensor may be configured to acquire a first peak pressure value, and the second pressure sensor may be configured to acquire a second peak pressure value, where the first peak pressure value includes a plurality of peak pressure values detected by the first pressure sensor and arranged in order from late to early at the acquisition time point, and the second peak pressure value includes a plurality of peak pressure values detected by the second pressure sensor and arranged in order from late to early at the acquisition time point.
In step 402, when the first peak pressure value is greater than the second peak pressure value, the running belt speed of the treadmill is adjusted to accelerate the running belt.
On the one hand, the smaller the distance between the foot of the user and the pressure sensor is, the larger the peak pressure value detected by the pressure sensor is, and when the first peak pressure value is larger than the second peak pressure value, the peak pressure value detected by the pressure sensor is indicated to be an ascending trend, so that the situation that the foot of the user is possibly close to the pressure sensor can be known. And since the pressure sensor is positioned at the front end of the running belt, the user is indicated to be gradually leaning forward and can accelerate.
On the other hand, the larger the impact of the foot on the running belt when the user drops the foot, the larger the peak pressure value detected by the pressure sensor is, and when the first peak pressure value is larger than the second peak pressure value, that is, the peak pressure value detected by the pressure sensor is in an ascending trend, it indicates that the force exerted by the user when the user drops the foot may be enhanced, and the user may be accelerating.
In summary, when the first peak pressure value is greater than the second peak pressure value, it can be determined that the user is accelerating, and then in order to match the speed of the user, the running belt should also accelerate.
Aiming at the mode of controlling the acceleration of the running belt, a large amount of acceleration experience data can be obtained in advance, each piece of acceleration experience data comprises the current speed, the pressure difference value of the adjacent pressure wave peak value and the accelerated speed which correspond to each other, fitting is carried out according to the obtained acceleration experience data to obtain a first acceleration control function, the input of the first acceleration control function is the current speed, the pressure difference value of the adjacent pressure wave peak value, and the output of the first acceleration control function is the accelerated speed.
The method comprises the steps of setting an original acceleration control function with undetermined coefficients aiming at the fitting process, training the coefficients of the original acceleration control function through a large amount of acceleration experience data, adjusting the coefficients to enable the accelerated speed output by the acceleration control function with the adjusted coefficients to be closer to the ideal accelerated speed in the acceleration experience data, and then adjusting the coefficients until the training is completed when the acceleration control function is matched with the acceleration experience data as much as possible to obtain a first acceleration control function.
After the first acceleration control function is obtained, when the running belt is to be controlled to accelerate, the current speed is obtained, the pressure difference value between the second peak pressure value and the first peak pressure value is calculated, the first acceleration control function is adopted to calculate the current speed and the pressure difference value, the accelerated speed can be obtained, and the speed of the running belt is adjusted to the accelerated speed.
The first point to be noted is that, corresponding to the above step 411, in another embodiment, referring to fig. 4B, this step 402 may be replaced by the following step 412:
in step 412, when the first peak pressure value currently detected by the first pressure sensor is greater than the second peak pressure value last detected by the first pressure sensor, and the first peak pressure value currently detected by the second pressure sensor is greater than the second peak pressure value last detected by the second pressure sensor, the belt running speed of the treadmill is adjusted to accelerate the belt running.
That is, when the user's feet are both near the front end or both are exerting increasing force, it is determined that the user is accelerating and the running belt should also accelerate.
In step 403, when the first peak pressure value is smaller than the second peak pressure value, the running belt speed of the treadmill is adjusted to decelerate the running belt.
On one hand, as the distance between the foot of the user and the pressure sensor is larger, the peak pressure value detected by the pressure sensor is generally smaller, and when the first peak pressure value is smaller than the second peak pressure value, the peak pressure value detected by the pressure sensor is indicated to be in a descending trend, and then it can be known that the foot of the user is possibly far away from the pressure sensor. And because the pressure sensor is positioned at the front end of the running belt, the pressure sensor indicates that the foot of the user is gradually leaning back, and the user may be decelerating.
On the other hand, the smaller the impact force of the foot on the running belt when the user falls down the foot, the smaller the peak pressure value detected by the pressure sensor is, and when the first peak pressure value is smaller than the second peak pressure value, that is, the peak pressure value detected by the pressure sensor is in a descending trend, the situation that the force generated when the user falls down the foot is weakened can be known, and the user may be decelerating.
In summary, when the first peak pressure value is smaller than the second peak pressure value, it can be determined that the user decelerates, and then the running belt should also decelerate to match the speed of the user.
Aiming at the mode of controlling the running belt to decelerate, the current speed of the running belt can be obtained, the pressure difference value of a first peak pressure value and a second peak pressure value is calculated, a first decelerating control function is adopted, the current speed and the pressure difference value are calculated to obtain the decelerated speed, the speed of the running belt is adjusted to the decelerated speed, the first decelerating control function is obtained by fitting the current speed, the pressure difference value of the adjacent peak pressure values and the decelerated speed which correspond to each other, and the fitting process is similar to the first accelerating control function.
The first point to be noted is that, corresponding to the above step 411, in another embodiment, this step 403 may be replaced by the following step 413:
in step 413, when the first peak pressure value currently detected by the first pressure sensor is smaller than the second peak pressure value last detected by the first pressure sensor, and the first peak pressure value currently detected by the second pressure sensor is smaller than the second peak pressure value last detected by the second pressure sensor, the running belt speed of the treadmill is adjusted to decelerate the running belt.
That is, when the user's feet are both away from the front end or both are gradually reducing the force, it can be determined that the user is decelerating, and the running belt should also be decelerating in order to match the user's speed.
In a further embodiment, when considering that the trend of the user's exercise condition is analyzed, the peak pressure values of two consecutive steps should be used, and the trend of the magnitude of the peak pressure values of two non-consecutive steps should not be used, for example, when the user leaves the running belt for rest during the running process of the running belt and then steps on the running belt again, the peak pressure value of the last step when leaving and the peak pressure value of the first step when stepping on are adjacent in position in the peak queue, but are not two consecutive steps actually, and cannot be used as a basis for determining the user's exercise trend. Therefore, the running gear shift may be controlled again when the time points of acquisition of the first peak pressure value and the second peak pressure value are sufficiently close, and then, referring to fig. 4C, the above step 402 may be replaced by the following step 422, and the above step 403 may be replaced by the following step 423:
in step 422, when the first peak pressure value is greater than the second peak pressure value, and when a time interval between an acquisition time point of the first peak pressure value and an acquisition time point of the second peak pressure value is smaller than a preset time interval, adjusting the running belt speed of the treadmill so as to accelerate the running belt.
In step 423, when the first peak pressure value is smaller than the second peak pressure value, and when a time interval between the time point of acquiring the first peak pressure value and the time point of acquiring the second peak pressure value is smaller than a preset time interval, adjusting the running belt speed of the treadmill so as to decelerate the running belt.
When the time interval between the acquisition time points of the first peak pressure value and the second peak pressure value is smaller than the preset time interval, the fact that the acquisition time points of the first peak pressure value and the second peak pressure value are close enough is shown, the running belt is controlled to accelerate at the moment, wherein the preset time interval is used for indicating the maximum time interval of two continuous steps, can be a default experience value, and can be set in the running machine by developers in advance.
In yet another embodiment, to avoid the effects of accidental situations, the running speed change may be controlled when the difference between the first peak pressure value and the second peak pressure value is sufficiently large. Then, referring to fig. 4D, the above step 402 may be replaced by the following step 432, and the above step 403 may be replaced by the following step 433:
in step 432, when the first peak pressure value is greater than the second peak pressure value and the difference between the first peak pressure value and the second peak pressure value is greater than a first preset difference, the running belt speed of the treadmill is adjusted to accelerate the running belt.
When the difference value between the first peak pressure value and the second peak pressure value is larger than a first preset difference value, the fact that the amplitude of the first peak pressure value larger than the second peak pressure value is large enough is shown, and the running belt can be controlled to accelerate at the moment, so that errors caused by accidental conditions are avoided. The first preset difference value indicates the minimum difference value between two adjacent peak pressure values when the running belt is triggered to accelerate, and is a standard for measuring the size of the difference value between the two adjacent peak pressure values. The first preset difference may be a default empirical value, or may be preset in the treadmill by a developer.
Regarding the setting process of the first preset difference value, the running process of the user on the running belt may be tested in advance, the difference value of the adjacent peak pressure values detected when the speed of the user relative to the running belt is large, that is, the user is accelerating, is obtained, the range in which the difference value of the peak pressure values usually falls is determined by counting a large amount of data, and the minimum pressure average value is selected from the range as the first preset pressure value.
In this step 432, for example, the difference between the first peak pressure value and the second peak pressure value is greater than a first preset difference, and when the difference between the first peak pressure value and the second peak pressure value is not greater than the first preset difference, it indicates that the first peak pressure value and the second peak pressure value are relatively close, that is, the peak pressure values detected by the pressure sensor in two adjacent times do not change greatly, in this case, the running speed may be controlled according to the last detected peak pressure value, that is, the method may further include the following step 4321 and 4322:
in step 4321, when the first peak pressure value is greater than the second peak pressure value and the difference between the first peak pressure value and the second peak pressure value is not greater than the first preset difference, a third peak pressure value detected by the pressure sensor is obtained.
The third peak pressure value is the last peak pressure value detected before the second peak pressure value. And relative to the currently detected peak pressure value, the third peak pressure value is the last detected peak pressure value. In implementation, the peak pressure value currently ranked at the third position in the peak queue may be read as the third peak pressure value.
In step 4322, when the first peak pressure value is greater than the third peak pressure value and the difference between the first peak pressure value and the third peak pressure value is greater than a third predetermined difference, the running belt speed of the treadmill is adjusted to accelerate the running belt.
The third preset difference value is used for indicating the minimum difference value between two peak pressure values which are separated by one peak pressure value and trigger the acceleration of the running belt, can be a default experience value, and can be preset in the running machine by a developer. The setting process of the third preset difference is similar to the setting process of the first preset difference, and is not described herein again.
In step 433, when the first peak pressure value is smaller than the second peak pressure value and the difference between the second peak pressure value and the first peak pressure value is greater than the second preset difference, the running belt speed of the treadmill is adjusted to decelerate the running belt.
When the difference value between the second peak pressure value and the first peak pressure value is larger than the second preset difference value, the fact that the amplitude of the second peak pressure value larger than the first peak pressure value is large enough is shown, and the running belt is controlled to decelerate so as to avoid errors caused by accidental situations. The second preset difference value indicates the minimum difference value between two adjacent peak pressure values when the running belt is triggered to decelerate, and is a standard for measuring the difference value between the two adjacent peak pressure values. The second preset difference may be a default empirical value, and may be set in advance in the treadmill by a developer. The setting process of the second preset difference is similar to the setting process of the first preset difference, and is not described herein again.
In this step 433, for example, the difference between the second peak pressure value and the first peak pressure value is greater than a second preset difference, and when the difference between the second peak pressure value and the first peak pressure value is not greater than the second preset difference, it indicates that the first peak pressure value and the second peak pressure value are relatively close, that is, the peak pressure values detected by the pressure sensor in two adjacent times do not change much, in this case, the following steps 4331 and 4332 may be continuously performed:
in step 4331, when the first peak pressure value is smaller than the second peak pressure value and the difference between the second peak pressure value and the first peak pressure value is not greater than a second preset difference, obtaining a third peak pressure value;
in step 4332, when the first peak pressure value is smaller than the third peak pressure value and the difference between the third peak pressure value and the first peak pressure value is greater than the fourth predetermined difference, the running belt speed of the treadmill is adjusted to decelerate the running belt.
The fourth preset difference value is used for indicating the minimum difference value between two peak pressure values which are used for triggering the middle interval of one peak pressure value of the running belt to decelerate, can be a default experience value, and can be preset in the running machine by developers. The setting process of the fourth preset difference is similar to the setting process of the first preset difference, and is not described herein again.
The first point to be noted is that, for the case where the pressure sensors include the first pressure sensor and the second pressure sensor, referring to fig. 4E, the time points at which the first pressure sensor and the second pressure sensor detect each peak pressure value may be the same, and the specific values detected are usually different. This is because, when the left foot of the user falls, the two pressure sensors will detect the peak pressure value at the same time, and the first pressure sensor is located on the left side, so the detected peak pressure value will be greater than the peak pressure value detected by the second pressure sensor. When the user's right foot falls down, two pressure sensor can detect the crest pressure value simultaneously, and the second pressure sensor is located the right side, and the crest pressure value that consequently detects is greater than the crest pressure value that first pressure sensor detected.
The second point to be noted is that the pressure values in this embodiment all refer to the net pressure values applied to the running belt by the user's motion process. In practical application, every pressure sensor still can detect the pressure value that the gravity of running area itself brought, and when the machine of running started, pressure sensor can the current pressure value that detects of automatic correction, subtracts the pressure value that the gravity of running area brought with the pressure value to avoid running the influence of taking gravity to the pressure value process of detection.
The method provided by the embodiment provides a mode for controlling the speed of the running belt, and can acquire two adjacent peak pressure values detected by the pressure sensor and determine the variation trend of the peak pressure values, so that the variation trend of the motion of the feet of the user is obtained, and the speed of the running belt is controlled. The method only needs to automatically control the speed change of the running belt according to the detected pressure value without being limited by the number of the pressure sensors, thereby reducing the number of the pressure sensors, reducing the hardware cost and the occupied space, reducing the difficulty in designing a matching circuit and an integration process, being easy to maintain, reducing the failure probability of the treadmill and improving the stability of the treadmill.
Fig. 5 is a flowchart illustrating a method of controlling a speed of a treadmill according to an exemplary embodiment, as shown in fig. 5, the method being performed by the treadmill shown in fig. 2A, comprising the steps of:
in step 501, the number of peak pressure values obtained within a preset time period before the current time point is counted.
The preset time period may be a value not exceeding 5s, for example, 4s, or other values. The preset duration may be preset in the treadmill by a developer. The treadmill can obtain the peak pressure value through the configured pressure sensor, and the process of obtaining the peak pressure value is similar to the step 401, which is not described herein again.
Wherein, can establish the crest queue for the crest pressure value, when detecting the crest pressure value, add the crest pressure value to the crest queue. Then, the step 501 may actually be: and counting the number of peak pressure values of the acquired time points in the peak queue within a preset time length before the current time point. For example, a specified time period with the current time point as a time end point and a time interval as a preset time length may be determined, and the number of peak pressure values in the peak queue, of which the acquisition time points belong to the specified time period, may be counted.
It should be noted that, the pressure sensors in this embodiment may include a first pressure sensor and a second pressure sensor, and since the time points when the two pressure sensors detect the peak pressure values are the same, the numbers of the peak pressure values obtained by the two pressure sensors in the same period of time are the same, so when counting the number of the peak pressure values, it is sufficient to count the number of the peak pressure values detected by a certain pressure sensor in a preset time period. Then, two pressure sensor can act as standby equipment each other, when any pressure sensor damages, directly count another pressure sensor and gather the quantity of crest pressure value can, can not influence the accuracy of the speed process of controlling the race area.
In step 502, when the number of the peak pressure values is greater than a first preset number, the running belt speed of the treadmill is adjusted to accelerate the running belt.
Because the user can produce a crest pressure value when falling foot each time, the figure of crest pressure value in the preset duration is the number of times that the user falls foot in the preset duration, namely the user's step number, therefore when the figure of crest pressure value is greater than the first preset number, it indicates that the user's step number in the preset duration is greater than the first preset number, the step frequency is fast, can think that the user is accelerating gradually, then can control the running belt to accelerate. The first preset number is used for indicating the number of peak pressure values counted at least in the preset duration for triggering running belt acceleration. The first preset number may be a default empirical value, and may be set in advance in the treadmill by a developer.
The method for setting the first preset number can be used for testing the running process of the user on the running belt in advance, obtaining the number of the peak pressure values detected when the user accelerates, determining the range in which the number of the peak pressure values generally falls by counting the number of the peak pressure values accelerated by a large number of users, and selecting the minimum number of the peak pressure values from the range as the first preset number.
Aiming at the mode of controlling the running belt to accelerate, a large amount of acceleration experience data can be obtained in advance, each acceleration experience data comprises the current speed, the number of peak pressure values and the accelerated speed which correspond to each other, fitting is carried out according to the obtained acceleration experience data to obtain a second acceleration control function, the input of the second acceleration control function is the current speed and the number of the peak pressure values, and the output of the second acceleration control function is the accelerated speed.
The method comprises the steps of setting an original acceleration control function with undetermined coefficients aiming at the fitting process, training the coefficients of the original acceleration control function through a large amount of acceleration experience data, adjusting the coefficients to enable the accelerated speed output by the acceleration control function with the adjusted coefficients to be closer to the ideal accelerated speed in the acceleration experience data, then adjusting the coefficients until the acceleration control function is matched with the acceleration experience data as much as possible, and obtaining a second acceleration control function.
And after the second acceleration control function is obtained, when the running belt is to be controlled to accelerate, obtaining the current speed and the number of the peak pressure values, calculating the current speed and the number of the peak pressure values by adopting the second acceleration control function to obtain the accelerated speed, and adjusting the speed of the running belt to the accelerated speed.
In step 503, when the number of the peak pressure values is less than a second preset number, the running belt speed of the treadmill is adjusted to decelerate the running belt.
When the number of the peak pressure values is smaller than the second preset number, the fact that the number of the steps of the user in the preset time length is smaller than the second preset number is indicated, the step frequency is slow, the user can be considered to be gradually decelerated, and the running belt is controlled to decelerate. The second preset number is used for indicating the number of peak pressure values which are counted at most in the preset duration for triggering the running belt to decelerate. The second predetermined number may be a default empirical value that may be set in advance by a developer in the treadmill. The setting process of the second preset number is similar to the setting process of the first preset number, and is not described herein again.
Aiming at the mode of controlling the acceleration of the running belt, the current speed of the running belt can be obtained, a second deceleration control function is adopted, the number of the current speed and the number of peak pressure values are calculated, the decelerated speed is obtained, and the speed of the running belt is adjusted to the decelerated speed. The second deceleration control function is obtained by fitting the current speed, the number of peak pressure values and the decelerated speed which correspond to each other, and the fitting process is similar to the process of fitting the second deceleration control function, which is not repeated herein.
In step 504, when the number of peak pressure values is 0, the running belt is controlled to stop.
When the peak pressure value is not acquired within the preset time, the situation indicates that the user may slide along with the running belt without moving on the running belt or leave the running belt, and the running belt is controlled to stop.
The method provided by the embodiment provides a mode for controlling the speed of the treadmill, and can count the number of peak pressure values in the preset time length to obtain the step frequency of the user so as to control the speed of the treadmill. The method only needs to automatically control the speed change of the running belt according to the detected pressure value without being limited by the number of the pressure sensors, thereby reducing the hardware cost and the occupied space, reducing the difficulty of designing a matching circuit and an integration process, being easy to maintain, reducing the failure probability of the treadmill and improving the stability of the treadmill.
Fig. 6A is a flowchart illustrating a method of treadmill speed control according to an exemplary embodiment, as shown in fig. 6A, the method being performed by a treadmill, comprising the steps of:
in step 601, when the peak pressure value detected by the pressure sensor configured in the treadmill is acquired, the current time point is determined as a first time point.
The process of obtaining the peak pressure value is similar to the step 401, and is not described herein again. Because the peak pressure value corresponds to the action of the user for falling the foot, the first time point for acquiring the peak pressure value can be used as the time point when the foot of the user falls to the running belt.
It should be noted that the pressure sensors in this embodiment may include a first pressure sensor and a second pressure sensor, and since the time points at which the two pressure sensors detect the peak pressure value are the same, the time point at which the peak pressure value of a certain pressure sensor is obtained may be determined as the first time point. Therefore, the two pressure sensors can serve as standby equipment, when any one pressure sensor is damaged, the acquisition time point of the peak pressure value of the other pressure sensor can be directly determined, and the accuracy of the process of controlling the running speed is not influenced.
In step 602, when the calibration pressure value detected by the pressure sensor configured in the treadmill is obtained, the current time point is determined as a second time point.
The calibration pressure value is a pressure value which can be detected by the pressure sensor when the foot part is positioned at a calibration position in the process that the user runs out one step, the calibration position is a fixed position of the running belt, and the distance between the calibration position and the front end of the running belt is a fixed calibration distance. When the pressure sensor detects the calibration pressure value, the user foot can be determined to be located at the calibration position, and the second time point when the calibration pressure value is obtained can be used as the time point when the foot is located at the calibration position.
The calibrated pressure value is a first pressure value of 0 in a landing period, or a pressure value of 0 detected by the pressure sensor is acquired for the first time in a landing period. Referring to fig. 6B, in the process that the foot of the user starts to contact with the running belt and moves backward along with the running belt, the pressure value detected by the pressure sensor gradually decreases, when the foot of the user is located at the position on the running belt corresponding to the seam, the pressure value detected by the pressure sensor decreases to 0, that is, the calibrated pressure value is detected, and in the process that the foot of the user starts to move backward along with the running belt from the position on the running belt corresponding to the seam until the foot is lifted, the pressure value detected by the pressure sensor is always 0.
Because the in-process that the user foot began the backward movement from the position that the seam corresponds, the pressure value that pressure sensor detected is 0, in order to learn in time that pressure sensor detected the calibration pressure value, acquires the pressure value that becomes 0 for the first time promptly, this embodiment can adopt every pressure value that calibration detection algorithm detection pressure sensor detected: when the pressure values detected by the pressure sensor include the pressure value meeting the second preset condition, the pressure value meeting the second preset condition is used as a calibration pressure value, the current time is determined as a second time point, and the second preset condition is that the pressure value is 0 and the last pressure value is not 0.
The embodiment can be applied to a folding treadmill, and a running board of the folding treadmill is divided into two parts by a seam and can be folded and furled at the seam. When the pressure value is used for a non-folding running machine or a running machine without seams in a running board, a certain position of the running belt can be set as a calibration position, the pressure value is fixed when the running belt passes through the calibration position, and the fixed pressure value is used as a calibration pressure value. For example, the process of a large number of users moving on the running belt can be tested, and a position with a fixed pressure value when passing on the running belt is determined as a calibration position.
In step 603, the moving distance of the running belt from the first time point to the second time point is determined.
The method comprises the following steps 6031-6033:
in step 6031, each recording period between the first point in time and the second point in time is determined.
In step 6032, the moving speed of the running belt in each recording time period is acquired, and the moving distance is calculated.
The running belt actually records the current moving speed every other recording time period in the running process, and the recording time period and the moving speed are correspondingly stored. After determining the first time point and the second time point, the treadmill may determine each recording time period between the two time points, obtain a moving speed of each recording time period, and calculate using the following formula, resulting in a moving distance S (t1, t 2).
Figure BDA0001366438720000201
m=(t2-t1)/t0;
Where S (t1, t2) denotes a moving distance, j denotes an identification of a recording period, t1 denotes a first point of time, t2 denotes a second point of time, t0 denotes a duration of a recording period, m denotes the number of recording periods, v denotes a number of recording periods, andjrepresenting the speed of movement of the running belt over the recording time period j.
The first time point is the time point when the foot falls on the running belt, and the second time point is the time point when the foot is located at the calibration position, so that the moving distance of the running belt from the first time point to the second time point is the distance between the position where the foot falls and the calibration position.
It should be noted that the moving speed of the recording time period refers to a speed of recording at a certain recording time point in the recording time period, and the recording time point may be a time end point or a time start point of the recording time period, or may be a certain time point in the recording time period. Taking the duration of the recording period as 20ms as an example, assuming that the current speed is recorded at the time end point of each recording period, the speed recorded at 20ms will be taken as the moving speed of the 1 st recording period, the speed recorded at 40ms will be taken as the moving speed of the 2 nd recording period, and so on.
In step 604, the difference between the calibration distance and the movement distance is calculated to obtain the target distance between the foot falling position and the front end.
Referring to fig. 6C, since the sum of the distance (target distance) between the front end and the position where the foot falls (i.e., the position of the foot-falling position) and the distance (moving distance) between the position where the foot falls and the calibration position is the calibration distance, when the difference between the calibration distance and the moving distance is calculated, the obtained difference is the target distance between the front end and the front end when the front end falls onto the running belt.
In step 605, when the target distance is less than the first preset distance, the running belt speed of the treadmill is adjusted to accelerate the running belt.
When the target distance is smaller than the first preset distance, the fact that the feet of the user are close to the front end when the feet fall on the running belt is indicated, the speed of the user is high relative to the running belt, and in order to avoid the user from colliding with a console at the front end, the running belt speed of the treadmill can be adjusted to accelerate the running belt, so that the distance between the feet and the front end of the user when the feet fall is increased. The first preset distance is used to indicate a maximum value of the target distance that triggers the acceleration of the running belt, may be a default empirical value, or may be manually set by a developer.
The process of running on the running belt of the user can be tested in advance aiming at the process of setting the first preset distance, the target distance between the foot and the front end of the user when the user accelerates and falls on the foot is obtained, the range in which the target distance usually falls is determined by counting the target distances of a large number of users, and the maximum distance is selected from the range to serve as the first preset distance.
Aiming at the process of controlling the acceleration of the running belt, a large amount of acceleration experience data can be obtained in advance, each acceleration experience data comprises a current speed, a target distance and an accelerated speed which correspond to each other, fitting is carried out according to the obtained acceleration experience data to obtain a fourth acceleration control function, the input of the fourth acceleration control function is the current speed and the target distance, and the output of the fourth acceleration control function is the accelerated speed.
The method comprises the steps of setting an original acceleration control function with undetermined coefficients aiming at the fitting process, training the coefficients of the original acceleration control function through a large amount of acceleration experience data, adjusting the coefficients to enable the accelerated speed output by the acceleration control function with the adjusted coefficients to be closer to the ideal accelerated speed in the acceleration experience data, then adjusting the coefficients until the acceleration control function is matched with the acceleration experience data as much as possible, and obtaining a fourth acceleration control function.
And after the fourth acceleration control function is obtained, when the running belt is to be controlled to accelerate, obtaining the current speed and the target distance, calculating the current speed and the target distance by adopting the fourth acceleration control function, obtaining the accelerated speed, and adjusting the running belt speed to the accelerated speed.
In step 606, when the target distance is greater than the second preset distance, the running belt speed of the treadmill is adjusted to decelerate the running belt.
When the target distance is larger than the second preset distance, the target distance is determined to be larger, the fact that the distance from the front end is far when the feet of the user fall onto the running belt is indicated, the speed of the user is slow relative to the running belt, and in order to avoid the user from falling from the rear end of the running belt, the running belt can be controlled to decelerate, so that the distance between the feet and the front end of the user when the feet of the user fall is reduced. The second preset distance is used for indicating the minimum value of the target distance for triggering the speed reduction of the running belt, and may be a default empirical value, or may be set manually by a developer, and the process of setting the second preset distance is similar to the process of setting the first preset distance, and is not described herein again.
Aiming at the mode of controlling the speed reduction of the running belt, the current speed and the target distance of the running belt can be obtained, a fourth speed reduction control function is adopted to calculate the current speed and the target distance to obtain the speed after speed reduction, the speed of the running belt is adjusted to be the speed after speed reduction, the fourth speed reduction control function is obtained by fitting the current speed, the target distance and the speed after speed reduction which correspond to each other, and the fitting process is similar to the fourth acceleration control function.
The method provided by this embodiment provides a way to control the speed of the running belt, which may preset a calibration position, and in the running process of the user, calculate the moving distance of the running belt from the first time point when the peak pressure value is obtained to the second time point when the foot is located at the calibration position, and calculate the target distance between the foot of the user and the front end of the running belt when the foot is located on the running belt, so as to control the speed of the running belt according to the target distance. The method only needs to automatically control the speed change of the running belt according to the detected pressure value without being limited by the number of the pressure sensors, thereby reducing the number of the pressure sensors, reducing the hardware cost and the occupied space, reducing the difficulty in designing a matching circuit and an integration process, being easy to maintain, reducing the failure probability of the treadmill and improving the stability of the treadmill.
Fig. 7 is a flowchart illustrating a method of controlling a speed of a running belt according to an exemplary embodiment, as shown in fig. 7, the method is performed by a treadmill, including the steps of:
in step 701, a plurality of pressure values detected by a pressure sensor of a treadmill configuration are obtained.
When the pressure sensors include the first pressure sensor and the second pressure sensor, obtaining the peak pressure value means obtaining a plurality of pressure values detected by any one of the pressure sensors.
Wherein a specified number of pressure values may be set in advance, the specified number being acquired each time. Alternatively, a plurality of pressure values belonging to a specific time period may also be acquired, and specifically, the following step 7011 or 7012 may be included.
In step 7011, when a peak pressure value detected by the pressure sensor is acquired at a third time point, and a trough pressure value detected by the pressure sensor is acquired at a fourth time point later, a plurality of pressure values detected from the third time point to the fourth time point are acquired.
For the running machine without seams in the running board, the pressure value detected by the pressure sensor arranged on the running board has a variation trend of 'peak pressure value-trough pressure value-peak pressure value', the process of changing the peak pressure value into the trough pressure value corresponds to one landing period of the user, and then when the peak pressure value is detected and the trough pressure value is detected again after a period of time, all the pressure values detected in the period of time can be obtained.
Specifically, when a peak pressure value is acquired at a third time point and a trough pressure value is acquired at a fourth time period later, the pressure values acquired from the third time point to the fourth time point are determined from the acquired pressure values.
The method for obtaining the peak pressure value is similar to that in step 401, and is not described herein again.
To trough pressure value and the process of obtaining trough pressure value, trough pressure value is the pressure value that pressure sensor can detect when the user runs out one step in-process foot and leaves from running the area. The present embodiment may employ a trough value detection algorithm to detect each pressure value detected by the pressure sensor: when the pressure value of the pressure sensor is collected, the pressure value is compared with the pressure value collected last time, when the pressure value collected this time is larger than the pressure value collected last time, the pressure value can be known to be in the ascending trend, and when the pressure value collected this time is smaller than the pressure value collected last time, the pressure value can be known to be in the descending trend.
Then, if a pressure value before a certain pressure value is in a descending trend and a pressure value after the certain pressure value is in an ascending trend, the pressure value may be regarded as a valley pressure value. In combination with this concept, the present embodiment sets a third preset condition, and when the pressure values detected by the pressure sensor include a pressure value meeting the third preset condition, the pressure value meeting the third preset condition is used as a trough pressure value, where the third preset condition is that the pressure value is smaller than the previous pressure value and smaller than the next pressure value.
Further, it is considered that when a plurality of pressure values before a certain pressure value are continuously in a descending trend, and a pressure value after the certain pressure value is in an ascending trend, the pressure value is taken as a trough pressure value. Accordingly, the third preset condition may be that a plurality of pressure values before the pressure value are sequentially decreased, and the pressure value is smaller than the next pressure value, and the number of the plurality of pressure values may be determined according to the actual requirement.
In a possible implementation manner, in order to facilitate storage and recording of the valley pressure values, the treadmill may establish a valley queue, and store each obtained valley pressure value in the valley queue, then the valley queue may be used to record a plurality of valley pressure values that have been detected by the pressure sensor, and the plurality of valley pressure values in the valley queue may be arranged in order from late to early according to the obtaining time point. Then, when the current valley pressure value is acquired, the newly acquired valley pressure value may be added to the first bit of the valley queue.
In step 7012, when the peak pressure value detected by the pressure sensor is acquired at the third time point and the pressure value detected by the pressure sensor is acquired for the first time at the fifth time point, a plurality of pressure values detected from the third time point to the fifth time point are acquired.
Wherein, the first pressure value of 0 in a landing period is the calibration pressure value. For the running machine with the running board having the seam, since the pressure value detected by the pressure sensor can have a cyclic change of 'peak pressure value-0-continuously being 0-peak pressure value', the process that the detected pressure value is changed from the peak pressure value to 0 corresponds to the process that the user moves from the falling foot to the position corresponding to the seam in one falling period, and when the detected pressure value is changed to 0 after a period of time when the detected peak pressure value is detected, each pressure value detected in the period of time can be obtained.
The method for determining whether the currently acquired pressure value of 0 is the pressure value of 0 acquired for the first time after the third time point is described in step 602, and details thereof are not described herein.
In step 702, a pressure average of a plurality of pressure values is determined.
In practical application, the treadmill can collect the pressure values detected by the pressure sensors every other collection period, and correspondingly store the collection time periods and the corresponding pressure values.
Corresponding to the step 7011, after the treadmill determines the third time point and the fourth time point, each collecting time period between the two time points may be determined, a pressure value corresponding to each collecting time period is obtained, and the following formula is applied to calculate, so as to obtain a pressure average value W (t3, t 4).
Figure BDA0001366438720000241
n=(t4-t3)/t0;
Where W (t3, t4) represents the pressure average, i represents the identification of the acquisition time period, t3 represents the third point in time, t4 represents the fourth point in time, t0 represents the duration of the acquisition time period, n represents the number of acquisition time periods, WiRepresenting the pressure value collected by the running belt in the collection time period i.
Corresponding to the step 7012, after the treadmill determines the third time point and the fifth time point, each collecting time period between the two time points may be determined, a pressure value corresponding to each collecting time period is obtained, and the following formula is applied to calculate, so as to obtain a pressure average value W (t3, t 5).
Figure BDA0001366438720000242
n=(t5-t3)/t0;
Wherein W (t3, t5) is as followsIndicating a pressure average value, i denotes an identification of an acquisition time period, t3 denotes a third point in time, t5 denotes a fifth point in time, t0 denotes a duration of an acquisition time period, n denotes a number of acquisition time periods, wiRepresenting the pressure value collected by the running belt in the collection time period i.
In step 703, when the pressure average value is greater than the first preset pressure value, the treadmill speed of the treadmill is adjusted to accelerate the treadmill.
The first preset pressure value is used for indicating the minimum value of the average value of the pressure when the running belt is triggered to accelerate. When the plurality of pressure average values are larger than the first preset pressure value, it is determined that the detected plurality of pressure values are larger on average, and since the closer the user is to the pressure sensor, the detected pressure value is generally larger, it may be determined that the user foot and the pressure sensor are closer, that is, the user foot and the front end are closer, and the running belt is controlled to accelerate, where the first preset pressure value may be a default empirical value, or may be manually set by a developer.
As for the setting manner of the first preset pressure value, the running process of the user on the running belt may be tested in advance, and corresponding to step 7011, a plurality of pressure values detected in the process of moving the foot from the falling position to the lifted position when the falling position and the front end of the foot of the user are closer are obtained, a pressure average value is calculated, a range in which the pressure average value normally falls is determined by counting the pressure average values of a large number of users, and the smallest pressure average value is selected from the range as the first preset pressure value. Or, corresponding to the above step 7012, a plurality of pressure values detected in the process that the foot moves from the falling position to the calibration position when the falling position and the front end of the foot of the user are closer are obtained, a pressure average value is calculated, a range in which the pressure average value normally falls is determined by counting the pressure average values of a large number of users, and the minimum pressure average value is selected from the range as the first preset pressure value.
Aiming at the mode of controlling the running belt acceleration, a large amount of acceleration experience data can be obtained in advance, each acceleration experience data comprises a current speed, a pressure average value and an accelerated speed which correspond to each other, fitting is carried out according to the obtained acceleration experience data to obtain a third acceleration control function, the input of the third acceleration control function is the current speed and the pressure average value, and the output of the third acceleration control function is the accelerated speed.
The method comprises the steps of setting an original acceleration control function with undetermined coefficients aiming at the fitting process, training the coefficients of the original acceleration control function through a large amount of acceleration experience data, adjusting the coefficients to enable the accelerated speed output by the acceleration control function with the adjusted coefficients to be closer to the ideal accelerated speed in the acceleration experience data, then adjusting the coefficients until the acceleration control function is matched with the acceleration experience data as much as possible, and obtaining a third acceleration control function.
And after the third acceleration control function is obtained, when the running belt is to be controlled to accelerate, obtaining the current average value of the speed and the pressure, calculating the current average value of the speed and the pressure by adopting the third acceleration control function to obtain the accelerated speed, and adjusting the running belt speed to the accelerated speed.
In step 704, when the pressure average value is less than a second predetermined pressure value, the running belt speed of the treadmill is adjusted to decelerate the running belt.
The second preset pressure value is used for indicating the maximum value of the average value of the pressure when the running belt is triggered to decelerate. When the plurality of pressure average values are smaller than the second preset pressure value, it is determined that the detected plurality of pressure values are smaller on average, and the farther the user is from the pressure sensor, the smaller the detected pressure value is, the farther the user is from the pressure sensor, that is, the farther the user is from the front end, the speed of the running belt is controlled to be reduced, the second preset pressure value may be a default empirical value, the setting process is similar to the setting process of the first preset pressure value, and details are not repeated here.
Aiming at the mode of controlling the running belt to decelerate, the average values of the current speed and the pressure of the running belt can be obtained, a third deceleration control function is adopted to calculate the average values of the current speed and the pressure to obtain the decelerated speed, the speed of the running belt is adjusted to the decelerated speed, the third deceleration control function is obtained by fitting the current speed, the average value of the pressure and the decelerated speed which correspond to each other, and the fitting process is similar to the third acceleration control function.
In step 705, when the pressure average value is smaller than a third preset pressure value, the running belt is controlled to stop.
The third preset pressure value is used for indicating the maximum value of the pressure average value for triggering the running belt to stop, the third preset pressure value is smaller than the second preset pressure value, when the pressure average value is smaller than the third preset pressure value, the pressure average value can be known to be very small, abnormal conditions such as the fact that a user leaves the running belt and the pressure sensor breaks down can occur, and the running belt can be controlled to stop.
The method provided by the embodiment provides a mode for controlling the speed of the running belt, the pressure average value of a plurality of pressure values detected by the pressure sensor can be obtained, the speed of the running belt is controlled according to the pressure average value, the method only needs to automatically control the speed change of the running belt according to the detected pressure values without being limited by the number of the pressure sensors, and therefore the number of the pressure sensors is reduced, the hardware cost and the occupied space are reduced, the difficulty in designing a matching circuit and an integration process is reduced, the method is easy to maintain, the probability of the running machine having faults is reduced, and the stability of the running machine is improved.
Fig. 8 is a flowchart illustrating a treadmill speed control method according to an exemplary embodiment, as illustrated in fig. 8, the method being performed by the treadmill illustrated in fig. 2A and 2B, including the steps of:
in step 801, the number of peak pressure values acquired within a preset time period before the current time point is counted.
In step 802, when the number of the peak pressure values is greater than a first preset number, the running belt speed of the treadmill is adjusted to accelerate the running belt, and the first preset number is used to indicate the number of the peak pressure values counted at least within the preset duration for triggering acceleration of the running belt. And/or the presence of a gas in the gas,
in step 803, when the number of the peak pressure values is smaller than a second preset number, the speed of the running belt is adjusted to decelerate the running belt, and the second preset number is used to indicate the number of the peak pressure values counted at most within the preset duration for triggering deceleration of the running belt.
In another possible implementation manner, the method further includes:
when the pressure values detected by the pressure sensor configured to the treadmill include a pressure value meeting a first preset condition, the pressure value meeting the first preset condition is used as a peak pressure value, and the first preset condition is that the pressure value is greater than a previous pressure value and greater than a next pressure value.
In another possible implementation manner, the method further includes:
whenever a peak pressure value is detected, adding the peak pressure value to a first bit of a peak queue, wherein the peak queue comprises a plurality of peak pressure values which are arranged in the order from late to early according to the acquisition time point;
the counting of the number of peak pressure values acquired in a preset time length before the current time point includes:
and counting the number of peak pressure values of the acquired time point in the peak queue within the preset time before the current time point.
In another possible implementation manner, the method further includes:
and when the number of the peak pressure values is 0, controlling the running belt to stop.
In another possible implementation manner, when the number of the peak pressure values is greater than a first preset number, adjusting the running belt speed of the treadmill so as to accelerate the running belt, includes:
acquiring the current speed of the running belt;
calculating the current speed and the number of the peak pressure values by adopting a second acceleration control function to obtain an accelerated speed, adjusting the speed of the running belt to the accelerated speed, and fitting the current speed, the number of the peak pressure values and the accelerated speed which correspond to each other by the second acceleration control function to obtain the second acceleration control function; and/or the presence of a gas in the gas,
when the number of this crest pressure value is less than second preset number, adjust this race area speed to make this race area slow down, include:
acquiring the current speed of the running belt;
and calculating the current speed and the number of the peak pressure values by adopting a second deceleration control function to obtain the decelerated speed, adjusting the speed of the running belt to the decelerated speed, and fitting the current speed, the number of the peak pressure values and the decelerated speed which correspond to each other by the second deceleration control function to obtain the second deceleration control function.
Fig. 9A is a view illustrating a running belt speed control apparatus according to an exemplary embodiment, the apparatus including: a statistics module 901 and an adjustment module 902.
A counting module 901, configured to count the number of peak pressure values obtained within a preset time period before a current time point;
an adjusting module 902, configured to adjust a running belt speed of the treadmill to accelerate the running belt when the number of the peak pressure values is greater than a first preset number, where the first preset number is used to indicate a number of the peak pressure values counted at least within the preset duration for triggering acceleration of the running belt; and/or the presence of a gas in the gas,
the adjusting module 902 is configured to adjust the speed of the running belt when the number of the peak pressure values is smaller than a second preset number, so as to decelerate the running belt, where the second preset number is used to indicate the number of peak pressure values counted at most in the preset duration for triggering deceleration of the running belt.
In another possible implementation, referring to fig. 9B, the apparatus further includes:
the determining module 903 is configured to, when the pressure values detected by the pressure sensor configured to the treadmill include a pressure value meeting a first preset condition, use the pressure value meeting the first preset condition as a peak pressure value, where the first preset condition is that the pressure value is greater than a previous pressure value and greater than a next pressure value.
In another possible implementation, referring to fig. 9C, the apparatus further includes:
an adding module 904, configured to, whenever a peak pressure value is detected, add the peak pressure value to a first bit of a peak queue, where the peak queue includes a plurality of peak pressure values arranged in order from late to early according to an acquisition time point;
the counting module 901 is further configured to count the number of peak pressure values in the preset duration before the current time point of the acquired time point in the peak queue.
In another possible implementation manner, the adjusting module 902 is further configured to control the running belt to stop when the number of the peak pressure values is 0.
In another possible implementation manner, referring to fig. 9D, the adjusting module 902 includes:
the acquisition submodule is used for acquiring the current speed of the running belt;
the calculation submodule is used for calculating the current speed and the number of the peak pressure values by adopting a second acceleration control function to obtain the accelerated speed;
the adjusting submodule is used for adjusting the speed of the running belt to the accelerated speed, and the second acceleration control function is obtained by fitting the current speed, the number of peak pressure values and the accelerated speed which correspond to each other; and/or the presence of a gas in the gas,
the adjusting module 902 includes:
the acquisition submodule is used for acquiring the current speed of the running belt;
the calculation submodule is used for calculating the current speed and the number of the peak pressure values by adopting a second deceleration control function to obtain a decelerated speed;
and the adjusting submodule is used for adjusting the speed of the running belt to the decelerated speed, and the second deceleration control function is obtained by fitting the current speed, the number of peak pressure values and the decelerated speed which correspond to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
It should be noted that: the treadmill speed control device provided in the above embodiment is only illustrated by dividing the functional modules when controlling the treadmill speed, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the treadmill is divided into different functional modules to complete all or part of the functions described above. In addition, the embodiments of the running belt speed control device and the running belt speed control method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 10 is a block diagram illustrating a deck tape speed control apparatus 1000 according to an exemplary embodiment. For example, the apparatus 1000 may be a mobile phone, a computer, a digital broadcaster, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 1000 may include one or more of the following components: processing component 1002, memory 1004, power component 1006, multimedia component 1008, audio component 1010, input/output (I/O) interface 1012, sensor component 1014, and communications component 1016.
The processing component 1002 generally controls the overall operation of the device 1000, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 1002 may include one or more processors 1020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 1002 may include one or more modules that facilitate interaction between processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the apparatus 1000. Examples of such data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1006 provides power to the various components of the device 1000. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 1000.
The multimedia component 1008 includes a screen that provides an output interface between the device 1000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 1000 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1010 is configured to output and/or input audio signals. For example, audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when apparatus 1000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 1004 or transmitted via the communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.
I/O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the device 1000. For example, sensor assembly 1014 may detect an open/closed state of device 1000, the relative positioning of components, such as a display and keypad of device 1000, the change in position of device 1000 or a component of device 1000, the presence or absence of user contact with device 1000, the orientation or acceleration/deceleration of device 1000, and the change in temperature of device 1000. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1016 is configured to facilitate communications between the apparatus 1000 and other devices in a wired or wireless manner. The device 1000 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1016 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 1000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 1004 comprising instructions, executable by the processor 1020 of the device 1000 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, there is also provided a computer readable storage medium, such as a memory, storing a computer program which, when executed by a processor, implements the treadmill speed control method of the above-described embodiments. For example, the computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method of tread belt speed control, the method comprising:
counting the number of peak pressure values acquired within a preset time length before the current time point;
when the number of the peak pressure values is larger than a first preset number, adjusting the running belt speed of the treadmill to accelerate the running belt, wherein the first preset number is used for indicating the number of the peak pressure values which are counted at least in the preset time length for triggering the running belt to accelerate; and/or the presence of a gas in the gas,
when the number of the peak pressure values is smaller than a second preset number, adjusting the speed of the running belt to decelerate the running belt, wherein the second preset number is used for indicating the number of the peak pressure values which are counted at most in the preset time length for triggering the running belt to decelerate,
the peak pressure value is the maximum value of a plurality of pressure values detected in a landing period, and the landing period is the process from the time when the foot of the user falls onto the running belt to the time when the foot of the user leaves the running belt.
2. The method of claim 1, further comprising:
when the pressure values detected by the pressure sensors configured to the treadmill include pressure values meeting a first preset condition, the pressure values meeting the first preset condition are used as peak pressure values, and the first preset condition is that the pressure values are larger than a previous pressure value and larger than a next pressure value.
3. The method of claim 1, further comprising:
whenever a peak pressure value is detected, adding the peak pressure value to a first bit of a peak queue, wherein the peak queue comprises a plurality of peak pressure values which are arranged in the order from late to early according to an acquisition time point;
the counting of the number of peak pressure values acquired within a preset time length before the current time point includes:
and counting the number of peak pressure values of the acquired time point in the peak queue within the preset time length before the current time point.
4. The method of claim 1, further comprising:
and when the number of the peak pressure values is 0, controlling the running belt to stop.
5. The method of any one of claims 1-4, wherein said adjusting the tread belt speed of the treadmill to accelerate the tread belt when the number of peak pressure values is greater than a first preset number comprises:
acquiring the current speed of the running belt;
calculating the current speed and the number of the peak pressure values by adopting a second acceleration control function to obtain an accelerated speed, adjusting the speed of the running belt to the accelerated speed, and fitting the current speed, the number of the peak pressure values and the accelerated speed which correspond to each other by the second acceleration control function to obtain the second acceleration control function; and/or the presence of a gas in the gas,
when the number of the peak pressure values is less than a second preset number, the speed of the running belt is adjusted to decelerate the running belt, and the method comprises the following steps:
acquiring the current speed of the running belt;
and calculating the current speed and the number of the peak pressure values by adopting a second deceleration control function to obtain a decelerated speed, adjusting the speed of the running belt to the decelerated speed, and fitting the current speed, the number of the peak pressure values and the decelerated speed which correspond to each other by the second deceleration control function to obtain the second deceleration control function.
6. A running belt speed control apparatus, the apparatus comprising:
the statistical module is used for counting the number of peak pressure values acquired within a preset time length before the current time point;
the adjustment module is used for adjusting the running belt speed of the treadmill to accelerate the running belt when the number of the peak pressure values is larger than a first preset number, and the first preset number is used for indicating the number of the peak pressure values which are counted at least within the preset time length for triggering the running belt to accelerate; and/or the presence of a gas in the gas,
the adjusting module is used for adjusting the speed of the running belt to decelerate the running belt when the number of the peak pressure values is smaller than a second preset number, the second preset number is used for indicating the number of the peak pressure values which are counted at most in the preset time length for triggering deceleration of the running belt,
the peak pressure value is the maximum value of a plurality of pressure values detected in a landing period, and the landing period is the process from the time when the foot of the user falls onto the running belt to the time when the foot of the user leaves the running belt.
7. The apparatus of claim 6, further comprising:
the determination module is configured to, when the pressure values detected by the pressure sensors configured in the treadmill include a pressure value meeting a first preset condition, use the pressure value meeting the first preset condition as a peak pressure value, where the first preset condition is that the pressure value is greater than a previous pressure value and greater than a next pressure value.
8. The apparatus of claim 6, further comprising:
the adding module is used for adding the peak pressure value to the first bit of a peak queue when the peak pressure value is detected, wherein the peak queue comprises a plurality of peak pressure values which are arranged in sequence from late to early according to the acquisition time point;
the counting module is further configured to count the number of peak pressure values within the preset time duration, where the acquired time point is located before the current time point, in the peak queue.
9. The device of claim 6, wherein the adjusting module is further configured to control the running belt to stop when the number of peak pressure values is 0.
10. The apparatus according to any one of claims 6-9, wherein the adjustment module comprises:
the acquisition submodule is used for acquiring the current speed of the running belt;
the calculation submodule is used for calculating the number of the current speed and the number of the peak pressure values by adopting a second acceleration control function to obtain the accelerated speed;
the adjusting submodule is used for adjusting the speed of the running belt to the accelerated speed, and the second acceleration control function is obtained by fitting the current speed, the number of peak pressure values and the accelerated speed which correspond to each other; and/or the presence of a gas in the gas,
the adjustment module includes:
the acquisition submodule is used for acquiring the current speed of the running belt;
the calculation submodule is used for calculating the number of the current speed and the number of the peak pressure values by adopting a second deceleration control function to obtain a decelerated speed;
and the adjusting submodule is used for adjusting the speed of the running belt to the decelerated speed, and the second deceleration control function is obtained by fitting the current speed, the number of peak pressure values and the decelerated speed which correspond to each other.
11. A running belt speed control apparatus, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
counting the number of peak pressure values acquired within a preset time length before the current time point;
when the number of the peak pressure values is larger than a first preset number, adjusting the running belt speed of the treadmill to accelerate the running belt, wherein the first preset number is used for indicating the number of the peak pressure values which are counted at least in the preset time length for triggering the running belt to accelerate; and/or the presence of a gas in the gas,
when the number of the peak pressure values is smaller than a second preset number, adjusting the speed of the running belt to decelerate the running belt, wherein the second preset number is used for indicating the number of the peak pressure values which are counted at most in the preset time length for triggering the running belt to decelerate,
the peak pressure value is the maximum value of a plurality of pressure values detected in a landing period, and the landing period is the process from the time when the foot of the user falls onto the running belt to the time when the foot of the user leaves the running belt.
12. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the tread belt speed control method according to any one of claims 1 to 5.
CN201710643899.2A 2017-07-31 2017-07-31 Treadmill speed control method and device, treadmill and storage medium Active CN107335179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710643899.2A CN107335179B (en) 2017-07-31 2017-07-31 Treadmill speed control method and device, treadmill and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710643899.2A CN107335179B (en) 2017-07-31 2017-07-31 Treadmill speed control method and device, treadmill and storage medium

Publications (2)

Publication Number Publication Date
CN107335179A CN107335179A (en) 2017-11-10
CN107335179B true CN107335179B (en) 2020-03-17

Family

ID=60217657

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710643899.2A Active CN107335179B (en) 2017-07-31 2017-07-31 Treadmill speed control method and device, treadmill and storage medium

Country Status (1)

Country Link
CN (1) CN107335179B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111228723B (en) * 2020-02-14 2021-08-17 东莞品赫电子科技有限公司 Intelligent treadmill cooperatively used with intelligent wearable device
CN114247084B (en) * 2021-12-28 2022-12-20 广州卓远虚拟现实科技有限公司 Step self-adaptive speed control method and system based on treadmill

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7381152B2 (en) * 2001-07-23 2008-06-03 Southwest Research Institute Virtual reality system locomotion interface utilizing a pressure-sensing mat
CN102357284B (en) * 2011-10-18 2013-05-22 中国科学院合肥物质科学研究院 Intelligent running machine
CN105879356A (en) * 2016-03-31 2016-08-24 乐视控股(北京)有限公司 Running machine rotating speed adjusting method and device and running machine
CN106027796B (en) * 2016-06-30 2019-11-05 京东方科技集团股份有限公司 A kind of information processing method, terminal and running shoes
CN106166365B (en) * 2016-08-31 2018-12-18 江西伊启实业有限公司 A kind of intelligent running machine

Also Published As

Publication number Publication date
CN107335179A (en) 2017-11-10

Similar Documents

Publication Publication Date Title
US10228891B2 (en) Method and apparatus for controlling display device, and intelligent pad
EP3032821B1 (en) Method and device for shooting a picture
EP3196736A1 (en) Method and apparatus for recognizing gesture
WO2021103737A1 (en) Photographing method and electronic device
CN110557547B (en) Lens position adjusting method and device
CN107335179B (en) Treadmill speed control method and device, treadmill and storage medium
EP3496391B1 (en) Method and device for capturing image and storage medium
CN107281699B (en) Treadmill speed control method and device, treadmill and storage medium
US9878208B2 (en) Method and device for determining value of consumed energy
CN111695382A (en) Fingerprint collection area determining method and fingerprint collection area determining device
CN107320904A (en) Treadbelt method for control speed, device, treadmill and storage medium
CN106924932B (en) Speed regulating method and device for treadmill
CN105472231B (en) Control method, image collecting device and electronic equipment
CN105955821B (en) Pre-reading method and device
CN107281700B (en) Treadbelt method for control speed, device, treadmill and storage medium
CN107158685B (en) Exercise verification method and apparatus
CN113534118A (en) Moving distance determining method, device and storage medium
CN106295468A (en) Face identification method and device
CN114185444A (en) Method and device for preventing mistaken touch of touch screen and storage medium
CN111435971B (en) Image acquisition parameter configuration method and device, terminal and readable storage medium
US9723218B2 (en) Method and device for shooting a picture
CN108427582B (en) Method and device for determining stuck state and computer readable storage medium
CN106325724B (en) Touch response method and device
CN111736718A (en) Touch screen control method and device
CN109670432B (en) Action recognition method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100085 Huarun Qingcai Street 68, Haidian District, Beijing, two stage, 9 floor, 01 rooms.

Patentee after: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd.

Patentee after: Beijing goldsmith Technology Co., Ltd

Address before: 100085 Huarun Qingcai Street 68, Haidian District, Beijing, two stage, 9 floor, 01 rooms.

Patentee before: BEIJING XIAOMI MOBILE SOFTWARE Co.,Ltd.

Patentee before: Beijing goldsmith Technology Co., Ltd

CP01 Change in the name or title of a patent holder