Sensing circuit for sensing rotation of wheel axle and method for sensing steering and rotating speed of wheel axle
Technical Field
The invention relates to a sensing circuit, in particular to a sensing circuit for sensing rotation of an axle and a method for sensing rotation direction and rotation speed of the axle based on the sensing circuit.
Background
As known to those skilled in the art, since the hall dual-channel sensor is not in contact with the object to be measured, there is no wear and tear, and the installation is convenient, and the output waveform of the hall dual-channel sensor is a square wave with a duty ratio of about 50%, the hall dual-channel sensor has the characteristics of wide speed measurement range, wide temperature adaptation range and strong shock resistance, and thus the hall dual-channel sensor is widely applied to speed measurement of various wheel shafts. However, in practical application, because the number of I/O pins of the microprocessor in the control circuit is limited, when only one I/O pin is used for speed measurement sampling, the type has to be reselected, and a microprocessor with many more I/O pins is selected, so that on one hand, the cost is increased, on the other hand, the space occupied by the microprocessor is also increased, and under the condition of very strict space arrangement, the difficulty of arrangement is increased, and meanwhile, the cost is further increased.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the sensing circuit capable of sensing the rotation of the wheel shaft and outputting by a single pin is provided.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows: an inductive circuit for sensing rotation of an axle, comprising: hall device, its characterized in that: the hall device be hall binary channels sensor, perception shaft pivoted induction circuit still including: and two output ends of the Hall double-channel sensor are respectively connected with the position end and the reset end of the RS trigger, and one output end of the RS trigger is used as the output end of the sensing circuit for sensing the rotation of the wheel shaft.
The invention also provides a method for sensing the steering and rotating speed of the wheel axle based on the induction circuit, which comprises the following steps: the method comprises the following steps of sensing the steering and rotating speed of a wheel axle according to an output waveform obtained by sampling of a Hall dual-channel sensor and processing of an RS trigger, and comprises the following specific processes: calculating to obtain the rotating speed of the wheel axle according to the pulse width of the output waveform, wherein the narrower the pulse width of the output waveform is, the faster the rotating speed of the wheel axle is, and conversely, the wider the pulse width of the output waveform is, the slower the rotating speed of the wheel axle is; the steering of the wheel axle is determined according to the ratio of the high and low levels in the output waveform, assuming: when the ratio of the high-level pulse width to the low-level pulse width is larger than or equal to 1.5, the wheel shaft is indicated to rotate forwards, and conversely, when the ratio of the high-level pulse width to the low-level pulse width is smaller than or equal to 0.67, the wheel shaft is indicated to rotate backwards.
As a preferable scheme, in the method for sensing the wheel axle steering and the rotating speed based on the sensing circuit, when the steering of the wheel axle is judged according to the ratio of high level to low level in the output waveform, when the ratio of the pulse width of the high level to the pulse width of the low level is more than or equal to 2.5, the wheel axle is indicated to rotate forwards; when the ratio of the pulse width of the high level to the pulse width of the low level is less than or equal to 0.4, the wheel shaft is indicated to be reversely rotated.
The invention has the beneficial effects that: the invention skillfully utilizes the RS trigger to change two paths of outputs of the Hall dual-channel sensor into one path of output, thus reducing the requirement on I/O pins, leading the design of the control circuit to be more convenient, and reducing the burden of a microprocessor in the control circuit through the preprocessing of the RS trigger, thereby improving the processing rotating speed and leading the response to be more timely. In addition, the invention provides a method for sensing the steering and rotating speed of the wheel axle based on the sensing circuit, and discloses a method for measuring the speed and sensing the rotating direction, which achieves two purposes and is very convenient; in addition, an induction circuit for sensing the rotation direction of the wheel shaft is not additionally arranged, so that the cost can be greatly saved.
Drawings
Fig. 1 is an electrical schematic structure diagram of the RS flip-flop according to the present invention.
FIG. 2 is a diagram of waveforms of the Hall dual channel sensor and the RS trigger processed in forward rotation.
Fig. 3 is a waveform diagram of a hall dual-channel sensor and a processed waveform diagram of an RS trigger in the reverse rotation.
Detailed Description
The following describes in detail a detailed embodiment of the lifting device of the hand die holder in the stripper according to the present invention with reference to the accompanying drawings.
As shown in fig. 1, the sensing circuit for sensing the rotation of the wheel axle according to the present invention includes: hall two channel sensor and RS trigger, the output of two passageways of Hall two channel sensor respectively with the set end S and the end R that resets of RS trigger link to each other, promptly: the output end of the first channel of the Hall double-channel sensor is connected with the set end S of the trigger, the output end of the first channel of the Hall double-channel sensor is connected with the reset end R of the trigger, and the output end Q of the RS trigger serves as the output end of the sensing wheel shaft rotating sensing circuit.
The invention also provides a method for sensing the steering and rotating speed of the wheel axle based on the induction circuit, which comprises the following steps: the method comprises the following steps of sensing the steering and rotating speed of a wheel axle according to an output waveform obtained by sampling of a Hall dual-channel sensor and processing of an RS trigger, and comprises the following specific processes: calculating to obtain the rotating speed of the wheel axle according to the pulse width of the output waveform, wherein the narrower the pulse width of the output waveform is, the faster the rotating speed of the wheel axle is, and conversely, the wider the pulse width of the output waveform is, the slower the rotating speed of the wheel axle is; the steering of the wheel axle is judged according to the ratio of high level and low level in the output waveform, as shown in fig. 2, when the ratio of the pulse width of the high level to the pulse width of the low level is more than or equal to 1.5 (preferably 2.5), the wheel axle is indicated to rotate forwards; on the contrary, as shown in FIG. 3, when the ratio of the high level pulse width to the low level pulse width is less than or equal to 0.67 (preferably 0.4), it indicates that the wheel axle is reversely rotated.
In summary, the present invention is only a preferred embodiment, and not intended to limit the scope of the invention, and all equivalent changes and modifications made in the shape, structure, characteristics and spirit of the present invention described in the claims should be included in the scope of the present invention.