Summary of the invention
The technical problem to be solved by the present invention is providing precision data acquisition device and the side of a kind of strength exercise instrument
Method, the data of acquisition include the distance of the number of movement, the counterweight block number lifted and counterweight movement, later by collected number
Be sent to Android mainboard according to by wired (or wireless) transmission mode, user can real time inspection oneself on the screen movement
Data, movement terminate after, the exercise data of user is uploaded onto the server, allow users to by wechat small routine at any time with
The exercise data for checking and sharing oneself on ground.
The technical solution of the invention is as follows: the present invention provides a kind of data acquisition device of strength exercise instrument, described
Strength exercise instrument includes rack and several counterweight pieces in the rack, and each counterweight on piece is equipped with induction
Part, the data acquisition device include the Weight acquisition module being connected as one and stroke acquisition module, the Weight acquisition mould
Block and stroke acquisition module are equipped with MCU, energy supply control module and multiple approach switch sensors, the MCU respectively with it is described
Energy supply control module and approach switch sensor electrical connection, sense of the approach switch sensor to incude the counterweight on piece
Answer the motion process of part;
The Weight acquisition module is located at the lower section of the stroke acquisition module, described when the counterweight piece is lifted
Induction pieces pass through the approach switch sensor, all close on the Weight acquisition module and stroke acquisition module by detecting
The level of switch sensor, determines the motion process of the counterweight piece, thus acquire times of exercise, the counterweight block number lifted and
The data of counterweight move distance.
Further, it is corresponding when the approach switch sensor is that magnetic induction is switched close to switch or optoelectronic induction are close
The induction pieces be magnet or reflector;When the approach switch sensor be metal approach switch when, the induction pieces or
Counterweight piece is metal material.
Further, multiple approach switch sensors are uniformly equipped on the stroke acquisition module.
Further, the stroke acquisition module being formed by connecting or being integrated for multiple portions are detachable;
It is also detachable connection between the Weight acquisition module and stroke acquisition module.
Further, the induction pieces and approach switch sensor are located at the same side of the counterweight piece.
Further, the height of the data acquisition device is equal to or more than the largest motion that the counterweight piece can lift
Distance.
In order to solve the technical problem, the present invention also provides a kind of collecting method of strength exercise instrument, including it is as follows
Step:
S1, above-mentioned data acquisition device is installed in strength exercise instrument;
S2, strength instrument start to act, and counterweight piece is lifted up, and the induction pieces of the first piece of counterweight piece side in top are the bottom of by
Approach switch sensor on portion's stroke acquisition module passes through the electricity of all approach switch sensors on detection stroke acquisition module
It is flat, the number for the approach switch sensor that level is low level or high level is successively retrieved, using the number close to switch
Position where sensor calculates the real-time range that counterweight piece is lifted, and the highest distance that counterweight piece lifts is according to highest low
The approach switch sensor of level or high level calculates, and compares judgement with the maximum distance that the highest distance can be lifted with counterweight piece
Whether vertex is reached;
S3, strength instrument reach vertex, i.e., after counterweight piece reaches vertex, Weight acquisition module starts to detect lifted weight
Code number: a part of approach switch sensor in Weight acquisition module is blocked, and another part is not blocked, main control chip from
Under up detect, the position of the sensor is returned to when detecting first approach switch sensor not being blocked, according to this
The position of sensor calculates the quantity of lifted counterweight piece, the weight according to single counterweight piece can calculate lift it is all
The total weight of counterweight piece;
After S4, strength instrument decline a distance, locomotory apparatus is detected by distance or the counterweight number lifted
Whether tool reaches movement bottom point: after counterweight piece declines a distance, detecting that the displacement of counterweight piece within a certain period of time does not have
It changes, or the counterweight block number currently lifted is 0, then it is assumed that reach movement bottom point, complete a sports apparatus
The process lifted-put down;
S5, counterweight piece record a maximum displacement x in uphill process, when the displacement for detecting the counterweight piece a certain moment
Y is less than maximum displacement x, then maximum displacement x is subtracted to the displacement y at a certain moment, presets when the difference of the two is greater than one
Threshold value, then it is assumed that user starts to put down sports apparatus, and times of exercise adds 1 at this time;
The counterweight number and weight and step acquired in the counterweight move distance that is acquired in S6, storing step S2, step S3
The data of the times of exercise acquired in rapid S5.
Further, in step S5 when the x difference for subtracting y is less than preset threshold, then it is assumed that be trembling in motion process
It is dynamic, do not increase times of exercise.
Further, further include following steps:
S7, the step S6 data acquired are encapsulated in unified data format, pass through wireless WiFi, 3G/4G net later
Packaged data are uploaded to cloud server by network or cable network.
The data acquisition device and method for implementing strength exercise instrument of the invention, have the advantages that by adopting
With the motion process of approach switch sensor induction counterweight, exercise data when precise acquisition user for body-building solves and utilizes pressure
The defect for causing collected weight data inaccurate is influenced by acceleration when force snesor or tension sensor acquisition weight, with
And it is influenced to lead to collected run-length data data not by inertia when using photoelectric sensor or grating sensor acquisition stroke
Quasi- defect, while exercise data can be uploaded to cloud server in real time, user can check and share anywhere or anytime
The exercise data of oneself.
Specific embodiment
Fig. 1 to Fig. 5 shows a preferred embodiment of the data acquisition device of strength exercise instrument of the present invention, strength fortune
Dynamic instrument includes rack 1 and several counterweight pieces 2 in rack 1, and induction pieces 3, data acquisition are equipped on each counterweight piece 2
Device includes the Weight acquisition module 4 being connected as one and stroke acquisition module 5, Weight acquisition module 4 and stroke acquisition module 5
It is equipped with MCU, energy supply control module and multiple approach switch sensors 6, MCU is passed with energy supply control module and close to switch respectively
Sensor 6 is electrically connected, motion process of the approach switch sensor 6 to incude the induction pieces 3 on counterweight piece 2;Weight acquisition module 4
Positioned at the lower section of stroke acquisition module 5, when counterweight piece 2 is lifted, induction pieces 3 pass through approach switch sensor 6, pass through detection
The level of all approach switch sensors in Weight acquisition module 4 and stroke acquisition module 5 determines the motion process of counterweight piece 2,
To the data of the counterweight block number and counterweight move distance that acquire times of exercise, lift.Counterweight piece 2 is set to strength exercise instrument
Rack 1 in, when user push, pull or rotation fitness equipment when, counterweight piece 2 be towed power rising, according to all kinds of instruments
Difference setting, the quantity and weight of counterweight piece 2 also different from.For all data of record user during the motion, this hair
Bright that data acquisition device is arranged in rack 1, which is equipped with Weight acquisition module 4 and stroke acquisition module 5, under
The Weight acquisition module 4 in portion is used to acquire the quantity of counterweight piece 2 to extrapolate weight, and the stroke acquisition module 5 on top is used for
Determine whether counterweight piece 2 reaches vertex, while being combined with Weight acquisition module 4 to record lifting and putting down for sports apparatus
Complete procedure will be explained in detail the composition and working principle of data acquisition device below.
Weight acquisition module 4 and stroke acquisition module 5 are equipped with MCU, energy supply control module and multiple close to switch sensing
Device 6, MCU are electrically connected with energy supply control module and approach switch sensor 6 respectively, for controlling power supply and other modules.It is close
The working principle of switch sensor are as follows: when having induction pieces around it, approach switch sensor exports low level or high level, nothing
High level or low level are exported when induction pieces, level height is related with the peripheral circuit of specific sensor model number or sensor,
Therefore one or more induction pieces 3 are set on 2 side of counterweight piece of strength exercise instrument, be provided with induction pieces 3 are ipsilateral
The Weight acquisition module 4 and stroke acquisition module 5 of approach switch sensor are incuded on counterweight piece 2 by approach switch sensor
The motion profile of induction pieces 3, the motion process and all data of you can get it counterweight piece 2.It is multiple close in Weight acquisition module 4
Switch sensor, the approach switch sensor can be both uniformly arranged, and make the spacing between two neighboring approach switch sensor
Equal with the thickness of counterweight piece 2, counterweight piece 2 each in this way is a weight by the move distance of two approach switch sensors
The thickness of chip can extrapolate the quantity of counterweight piece according to the distance between multiple approach switch sensors, calculate more
Simply, while approach switch sensor can also be unevenly arranged, and mutual distance is unequal, corresponding different-thickness and again
The counterweight piece 2 of amount.Weight detecting principle is that a part when counterweight piece 2 is lifted, in Weight acquisition module 4 is passed close to switch
Sensor is blocked, and another part is not blocked, and main control chip detects from the bottom up, when detect first be not blocked it is close
The position that the sensor is returned when switch sensor calculates lifted counterweight piece according to the alternate position spike of approach switch sensor
Quantity and weight.
Induction pieces 3 and approach switch sensor 6 in the present embodiment can there are many combinations, such as magnet to connect with magnetic induction
Nearly switch (such as Hall switch, tongue tube) and reflector and optoelectronic induction are close to switch, when induction pieces 3 are metal material
When, approach switch sensor 6 is also possible to metal approach switch.In addition it when the material of counterweight piece 2 is metal, does not need to incude
Inducing function also may be implemented in part 3.
Also multiple approach switch sensors are equipped in the present embodiment on stroke acquisition module 5, uniformly to guarantee that stroke is adopted
The accuracy of collection can set 1cm for the spacing between two neighboring approach switch sensor, and certain spacing can also basis
Applicable cases increase or reduce.Stroke detection principle in the present invention are as follows: when user lifts counterweight, as shown in figure 4, bottom
Dotted portion is the original position of counterweight, and the induction pieces 3 after rising on the first piece of counterweight piece 2 in top can be through overtravel acquisition module 5
Approach switch sensor, by detect all approach switch sensors of stroke collecting part level, successively retrieve level
For low level or the number of the approach switch sensor of high level, finally it can calculate what user was lifted using the number
Real-time range, and the highest distance that user lifts then is determined by the Hall of highest low level or high level number, thus
Extrapolate the maximum distance X of the rising of counterweight piece 2.
Stroke acquisition module 5 being formed by connecting or being integrated for multiple portions are detachable in the present embodiment, row
Journey acquisition module 5 had both been divided into the part of multiple equalizations, was detachable connection between each part, thus can be random
Change the height of stroke acquisition, while can also be made with integrated setting, the dedicated stroke acquisition module as a certain fitness equipment
With;Also be detachable connection between Weight acquisition module 4 and stroke acquisition module 5, for different counterweight spacing and
Number, other instruments can be adapted to by only needing to change corresponding Weight acquisition part.
Since stroke collecting part may be too long, multiple CPU Discrete control stroke acquisition modules, bottommost are used
CPU be known as host CPU, remaining be sub- CPU.Data communication is carried out by the way of serial ports between every sub- CPU and host CPU, often
A sub- CPU is only responsible for acquiring the Hall data of oneself this section, is transferred to the host CPU of bottommost by serial ports later, bottommost
The data of all sub- CPU are uniformly processed in host CPU, calculate the traveled distance of counterweight movement, the sliceable electricity of stroke collecting part
Road communication scheme is as shown in Figure 5.
The height of data acquisition device is equal to or more than the largest motion distance that counterweight piece 2 can lift in the present embodiment,
Guarantee that data acquisition device can be with the motion process of complete documentation counterweight piece 2, it can also be with when a counterweight piece 2 is only installed
The motion process of complete record counterweight piece 2.
The times of exercise counting principle of data acquisition device of the present invention an are as follows: motion process of instrument refers to user by one
Determine counterweight from the displacement for the process counterweight for being raised to the process put down, therefore moving be first increases and then decreases, in uphill process
Record a maximum displacement x, when detect a certain moment displacement y be less than maximum displacement x, then maximum displacement x is subtracted
The displacement y for going a certain moment, when the difference of the two is greater than a scheduled threshold value, then it is assumed that user starts to put down, and moves at this time
Number increases.If the difference of the two is less than preset threshold, then it is assumed that be the shake in motion process, do not increase times of exercise.It should
Predetermined threshold is arranged according to different types of strength exercise instrument, is can react user using the moving situation of such instrument
It is quasi-.
The approach switch sensor that Weight acquisition module and stroke acquisition module use in the present embodiment, the sensor
It can be replaced with infrared reflection type sensor or infrared opposite-radiation type sensor, can equally reach identical technical effect,
It also is design concept of the invention.The exercise data measured using data acquisition device of the invention, is avoided and is passed using pressure
The defect for causing collected weight data inaccurate is influenced by acceleration when sensor or tension sensor acquisition weight, is also avoided
It is influenced to lead to collected run-length data data not by inertia when using photoelectric sensor or grating sensor acquisition stroke
Quasi- defect, provides accurate exercise data for user, while can be real-time by the exercise data that above-mentioned acquisition device obtains
Be uploaded to cloud server, user can check anywhere or anytime and share the exercise data of oneself, the historical data side of checking
Wechat small routine can be used in formula, and cell phone application replacement also can be used.
In order to solve the technical problem, the present invention also provides a kind of collecting method of strength exercise instrument, including it is as follows
Step:
S1, above-mentioned data acquisition device is installed in strength exercise instrument;
S2, strength instrument start to act, and counterweight piece is lifted up, and the induction pieces of the first piece of counterweight piece side in top are the bottom of by
Approach switch sensor on portion's stroke acquisition module passes through the electricity of all approach switch sensors on detection stroke acquisition module
It is flat, the number for the approach switch sensor that level is low level or high level is successively retrieved, using the number close to switch
Position where sensor calculates the real-time range that counterweight piece is lifted, and the highest distance that counterweight piece lifts is according to highest low
The approach switch sensor of level or high level calculates, and compares judgement with the maximum distance that the highest distance can be lifted with counterweight piece
Whether vertex is reached;
S3, strength instrument reach vertex, i.e., after counterweight piece reaches vertex, Weight acquisition module starts to detect lifted weight
Code number: a part of approach switch sensor in Weight acquisition module is blocked, and another part is not blocked, main control chip from
Under up detect, the position of the sensor is returned to when detecting first approach switch sensor not being blocked, according to this
The position of sensor calculates the quantity of lifted counterweight piece, the weight according to single counterweight piece can calculate lift it is all
The total weight of counterweight piece;
After S4, strength instrument decline a distance, locomotory apparatus is detected by distance or the counterweight number lifted
Whether tool reaches movement bottom point: after counterweight piece declines a distance, detecting that the displacement of counterweight piece within a certain period of time does not have
It changes, or the counterweight block number currently lifted is 0, then it is assumed that reach movement bottom point, complete a sports apparatus
The process lifted-put down;
S5, instrument a motion process refer to the process of that user puts down certain counterweight from being raised to, therefore move
The displacement of process counterweight is first increases and then decreases, and counterweight piece records a maximum displacement x in uphill process, when detecting weight
The displacement y at chip a certain moment is less than maximum displacement x, then maximum displacement x is subtracted to the displacement y at a certain moment, works as the two
Difference be greater than a preset threshold, then it is assumed that user starts to put down sports apparatus, and times of exercise adds 1 at this time;If the difference of the two
Value is less than preset threshold, then it is assumed that is the shake in motion process, does not increase times of exercise, stabilization processing is in order to more accurate
To motion process carry out identification record;Above-mentioned predetermined threshold is arranged according to different types of strength exercise instrument, can react
User uses subject to the moving situation of such instrument;
The counterweight number and weight and step acquired in the counterweight move distance that is acquired in S6, storing step S2, step S3
The data of the times of exercise acquired in rapid S5.
Further, further include following steps:
S7, the step S6 data acquired are encapsulated in unified data format, pass through wireless WiFi, 3G/4G net later
Packaged data are uploaded to cloud server by network or cable network, and such user can pass through wechat small routine or mobile phone
APP checks anywhere or anytime and shares the exercise data of oneself.
Using the data acquisition device and method of strength exercise instrument of the invention, by using approach switch sensor sense
Answer the motion process of counterweight, exercise data when precise acquisition user for body-building solves and utilizes pressure sensor or pull sensing
Is influenced to cause the inaccurate defect of collected weight data by acceleration when device acquires weight, and utilization photoelectric sensor or
The defect for causing collected run-length data data inaccurate is influenced by inertia when grating sensor acquires stroke, while moving number
According to that can be uploaded to cloud server in real time, user can check anywhere or anytime and share the exercise data of oneself.
The above is only a preferred embodiment of the present invention, for those of ordinary skill in the art, according to the present invention
Thought, in specific embodiments and applications can be with many changes may be made, as long as these variations are without departing from structure of the invention
Think, all belongs to the scope of protection of the present invention.