Step counting system for dust collector and step counting method thereof
Technical Field
The invention belongs to the field of dust collectors, and particularly relates to a step counting system for a dust collector and a step counting method thereof.
Background
The triaxial acceleration sensor is based on the basic principle of acceleration to realize work, and has the characteristics of small volume and light weight. Most of the existing triaxial acceleration sensors adopt piezoresistive, piezoelectric and capacitive working principles, and the generated acceleration is in direct proportion to the change of resistance, voltage and capacitance and is acquired through corresponding amplifying and filtering circuits.
In the existing pedometer, a three-axis acceleration sensor is generally used for measuring steps. However, the existing dust collecting equipment is lack of a step counting device, the step number cannot be detected in real time, and the step judgment in the existing pedometer is not accurate enough, so that the step counting accuracy is poor.
Disclosure of Invention
The invention aims to: the step counting system and the step counting method for the dust collector are provided, the step is counted in real time through the pedometer arranged in the handheld part of the main machine of the dust collector, and the step counting accuracy is high.
In order to achieve the above object, in one aspect, the present invention provides a step counting system for a vacuum cleaner, including a vacuum cleaner host, a step counter is disposed in a handheld portion of the vacuum cleaner host, the step counter includes an acquisition module, a data processing module and an information output module, the acquisition module is a three-axis acceleration sensor, the three-axis acceleration sensor is used for acquiring three-axis acceleration information of a swing of a hand arm, the data processing module is used for processing the acceleration information acquired by the acquisition module and counting steps, and the information output module is used for outputting a step counting statistical result of the data processing module to a display device on the vacuum cleaner host.
As a further description of the above technical solution:
the display equipment is an LCD (liquid crystal display) screen, an OEDL (organic electronic device display) screen or other display screens with touch functions.
In another aspect, the present invention further provides a step counting method for a step counting system of a vacuum cleaner, comprising the steps of:
s1, the acquisition module uninterruptedly acquires three-axis acceleration information of the swing of the human arm;
s2, the data processing module acquires triaxial acceleration information sampled by the acquisition module, performs smooth filtering and noise reduction processing, and records the maximum value and the minimum value of the acceleration;
s3, the acquisition module samples for a certain number of times N1, and the data processing module generates a dynamic threshold according to the maximum value and the minimum value of triaxial acceleration;
and S4, the data processing module updates the dynamic threshold once every N2 times of sampling by the acquisition module, and the step is taken when the dynamic threshold of the next time is larger than the dynamic threshold of the previous time, otherwise, the step is not taken.
S5, the data processing module calculates the variation of the dynamic threshold value at a time T1 every other interval to form continuous step counting.
As a further description of the above technical solution:
in step S3, the number of times N1 has a value of 10.
As a further description of the above technical solution:
in step S4, the number of times N2 has a value of 10.
As a further description of the above technical solution:
in step S5, the time T1 is 100 milliseconds.
In summary, due to the adoption of the technical scheme, the invention has the beneficial effects that:
1. in the invention, when a user uses the dust collector, the acquisition module uninterruptedly acquires the three-axis acceleration information of the swinging of the human arm, the data processing module acquires the three-axis acceleration information acquired by the acquisition module, and carries out smooth filtering and noise reduction processing, and records the maximum value and the minimum value of the acceleration. The acquisition module samples 10 times, the data processing module generates a dynamic threshold (the difference between the maximum value of the acceleration and the minimum value of the acceleration), the dynamic threshold is updated every 10 times of sampling, the step is taken when the dynamic threshold of the next time is larger than the dynamic threshold of the previous time, otherwise, the step is not taken. The dynamic threshold is dynamic and adaptive, so that the response speed of the pedometer is high and the statistical accuracy of the steps is high. The data processing module calculates the variation of the dynamic threshold (i.e. every time 10 dynamic thresholds are generated, the steps taken out are counted) at intervals of 100 milliseconds, and a continuous step counting is formed.
2. In the invention, the host machine of the dust collector is provided with the LCD screen, the OEDL screen or other display screens with touch control functions, so that the pace statistics can be displayed in real time, and people can conveniently master the exercise condition in real time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a system architecture diagram of a step counting system for a vacuum cleaner.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the present invention provides a technical solution: in one aspect, the invention provides a step counting system for a dust collector, which comprises a dust collector host, wherein a step counter is arranged in a handheld part of the dust collector host, the step counter comprises an acquisition module, a data processing module and an information output module, the acquisition module is a three-axis acceleration sensor, the three-axis acceleration sensor is used for acquiring three-axis acceleration information of arm swing of a human hand, the data processing module is used for processing the acceleration information acquired by the acquisition module and counting steps, and the information output module is used for outputting a step counting statistical result of the data processing module to display equipment on the dust collector host.
The display equipment is an LCD (liquid crystal display) screen, an OEDL (organic electronic device display) screen or other display screens with touch functions.
In another aspect, the present invention further provides a step counting method for a step counting system of a vacuum cleaner, comprising the steps of:
s1, the acquisition module uninterruptedly acquires three-axis acceleration information of the swing of the human arm;
s2, the data processing module acquires triaxial acceleration information sampled by the acquisition module, performs smooth filtering and noise reduction processing, and records the maximum value and the minimum value of the acceleration;
s3, the acquisition module samples for a certain number of times N1(N1 is 10), and the data processing module generates a dynamic threshold according to the maximum value and the minimum value of triaxial acceleration;
and S4, the data processing module updates the dynamic threshold once every sampling N2(N2 is 10), and the step is taken when the dynamic threshold of the last time is larger than the dynamic threshold of the previous time, otherwise, the step is not taken.
And S5, the data processing module updates the dynamic threshold once by a time T1(T1 is 100 milliseconds) every other time, the dynamic threshold needs 10 milliseconds, the dynamic threshold can be updated 10 times by 100 milliseconds, and the change of the dynamic threshold is calculated to form continuous step counting.
The working principle is as follows: when a user uses the dust collector, the acquisition module uninterruptedly acquires the three-axis acceleration information of the swinging of the human arm, the data processing module acquires the three-axis acceleration information acquired by the acquisition module, and carries out smooth filtering and noise reduction processing to record the maximum value and the minimum value of the acceleration. The acquisition module samples 10 times, the data processing module generates a dynamic threshold (the difference between the maximum value of the acceleration and the minimum value of the acceleration), the dynamic threshold is updated every 10 times of sampling, the step is taken when the dynamic threshold of the next time is larger than the dynamic threshold of the previous time, otherwise, the step is not taken. The dynamic threshold is dynamic and adaptive, so that the response speed of the pedometer is high and the statistical accuracy of the steps is high. The data processing module calculates the variation of the dynamic threshold (i.e. every time 10 dynamic thresholds are generated, the steps taken out are counted) at intervals of 100 milliseconds, and a continuous step counting is formed. Be provided with LCD screen, 0EDL display screen or other display screens of taking touch-control function on the dust catcher host computer, show the paces statistics in real time, the people of being convenient for master the exercise condition in real time.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.