Engineering machinery rotation period time capturing device and measuring method thereof
1. The utility model provides an engineering machine tool gyration cycle time capture device which characterized in that: the rotary support (1) comprises an upper support (11) and a lower support (12), the induction magnet (2) is fixed on the lower surface of the upper support (11), the Hall sensor (3) is fixed on the upper surface of the lower support (12), the output end of the Hall sensor (3) is connected with the input end of the MCU (4), and the output end of the MCU (4) is connected with the input end of the display device (5); the MCU (4) contains a timer module with input capture functionality.
2. The slewing cycle time capturing device for construction machinery as claimed in claim 1, wherein: the Hall sensor (3) is fixed on an upper sleeve support (32) through a bolt (31), the upper sleeve support (32) is connected with a disc magnetic base (33), and the disc magnetic base (33) is fixed with the lower support (12).
3. The slewing cycle time capturing device for construction machinery as claimed in claim 2, wherein: the screw rod lower support is characterized by further comprising a screw rod lower support (34), the screw rod lower support (34) is in threaded connection with the sleeve upper support (32), fastening bolts (35) used for spirally fastening the screw rod lower support (34) and the sleeve upper support (32) are arranged on the circumference of the sleeve upper support (32), and one end, far away from the sleeve upper support (32), of the screw rod lower support (34) is fixed with the disc magnetic base (33).
4. The slewing cycle time capturing device for construction machinery as claimed in claim 1, wherein: the induction magnet (2) is made of strong magnetic neodymium iron boron materials, and is in a long strip shape.
5. The slewing cycle time capturing device for construction machinery as claimed in claim 1, wherein: the power supply voltage of the Hall sensor (3) is 3.3-5V.
6. The slewing cycle time capturing device for construction machinery as claimed in claim 1, wherein: the display device (5) has LCD display and touch functions.
7. A method for measuring a rotation period by adopting the engineering machinery rotation period time capturing device is characterized in that: when the MCU (4) captures a first rising edge, the system enters a timed interrupt service program, firstly clears a timer and sets the next input capture polarity as rising edge trigger, and then exits the timed interrupt service program to wait for the arrival of the next rising edge trigger; when the MCU (4) captures a second rising edge, the system enters a timed interrupt service program again, firstly, whether the timer overflows is detected, if the timer overflows, the system counts the times of the overflow, otherwise, the counting value of the timer is recorded and the capture is marked, and then the timed interrupt service program exits; the actual count value of the timer is calculated in the main program and the calculation result is displayed through a display device (5), and the display result is the real-time rotation period of the engineering machine.
Background
When the engineering machinery is used for testing the performance of the whole machine, the rotation period of the engineering machinery needs to be measured. Since this parameter reflects the operating efficiency of the working machine from the side, it is desirable to measure it as accurately as possible. The current measurement method is to count the total time of a plurality of rotation periods by using a stopwatch, and then to obtain the time of one rotation period by averaging. The measurement mode is greatly influenced by human factors, and a large measurement error exists.
Disclosure of Invention
In order to overcome the defects of the prior art, the invention provides an engineering machinery rotation period time capturing device and a measuring method thereof, and aims to solve the problem of large measuring errors caused by the rotation period measured by a stopwatch.
The invention is realized by the following technical scheme: the utility model provides an engineering machine tool gyration cycle time capture device, includes gyration support, response magnet, hall sensor and MCU, the gyration is supported including last support and under bracing, response magnet is fixed at the lower surface of last support, hall sensor fixes the upper surface at the under bracing, hall sensor's output with MCU's input is connected, and MCU's output links to each other with display device's input, MCU contains the timer module that has the input and catches the function.
Furthermore, the Hall sensor is fixed on an upper sleeve support through a bolt, the upper sleeve support is connected with a disc magnetic base, and the disc magnetic base is fixed with a lower support.
Further, the disc magnetic force fixing device further comprises a screw lower support, the screw lower support is in threaded connection with the sleeve upper support, fastening bolts used for spirally fastening the screw lower support and the sleeve upper support are arranged on the circumference of the sleeve upper support, and one end, far away from the sleeve upper support, of the screw lower support is fixed with the disc magnetic force seat.
Furthermore, the induction magnet is composed of a strong magnetic neodymium iron boron material, and is in a long strip shape.
Furthermore, the power supply voltage of the Hall sensor is 3.3-5V.
Further, the display device has an LCD display and touch function.
The invention also provides a method for measuring the rotation period by adopting the rotation period time capturing device of the engineering machinery, wherein a rising edge capturing program and a display control program are prefabricated in the MCU, the rising edge capturing program and the display control program are prefabricated in the MCU, when the MCU captures the first rising edge, the system enters a timed interrupt service program, firstly, the timer is cleared and the next input capturing polarity is set to be triggered by the rising edge, and then the timed interrupt service program is exited to wait for the next rising edge to be triggered; when the MCU captures a second rising edge, the system enters a timed interrupt service program again, firstly, whether the timer overflows is detected, if the timer overflows, the system counts the times of the overflow, otherwise, the counting value of the timer is recorded, the capture is marked, and then the timed interrupt service program exits; and calculating the actual count value of the timer in the main program and displaying the calculation result through a display device, wherein the display result is the real-time rotation period of the engineering machine.
The invention has the beneficial effects that: the input capturing function of the timer is combined with the Hall sensor to realize the purpose, when the Hall sensor senses the change of a magnetic field, a high level is output, low levels are output in the rest time, then the MCU processor collects the output signals to capture the time of the high and low levels, so that the accurate time of the rotation period of the engineering machinery is measured, and the problem of large measurement error caused by the fact that a stopwatch measures the rotation period of the engineering machinery is effectively solved. The system has the advantages of simple structure, convenient operation, accurate and reliable measuring result, and can display more directly in real time without errors caused by human factors.
Drawings
FIG. 1 is a schematic view of the present invention;
FIG. 2 is a schematic view of the Hall sensor of the present invention installed;
in the figure, 1, a rotary support, 11, an upper support, 12, a lower support, 2, an induction magnet, 3, a Hall sensor, 31, a bolt, 32, a sleeve upper support, 33, a disc magnetic base, 34, a screw lower support, 35, a fastening bolt, 4, an MCU, 5 and a display device.
Detailed Description
The invention is further illustrated below with reference to the figures and examples.
As shown in fig. 1, the engineering machinery revolution period time capturing device comprises a revolution support 1, an induction magnet 2, a hall sensor 3, an MCU4 and a display device 5. The rotary support 1 comprises an upper support 11 and a lower support 12, and when the rotary period of the engineering machinery is actually measured, the lower support 12 is required to be fixed, and the upper support 11 rotates around a central shaft. Induction magnet 2 adsorbs the lower surface that supports 11 at last, and induction magnet 2 comprises strong magnetism neodymium iron boron material, and the shape is rectangular shape, and induction magnet 2 mainly provides magnetic field change for hall sensor 3, and in addition, induction magnet 2's structural requirement not only can provide magnetic field for hall sensor 3 and can also lean on self magnetic force to adsorb on last support 11. The hall sensor 3 is fixed to the upper surface of the lower support 12. The specific fixing mode of the hall sensor 3 and the lower support 12 is as follows: as shown in fig. 2, the hall sensor 3 is fixed on the upper sleeve support 32 through a bolt 31, one end of the upper sleeve support 32, which is far away from the hall sensor 3, is in threaded connection with the lower screw support 34, a fastening bolt 35 for spirally fastening the lower screw support 34 and the upper sleeve support 32 is arranged on the circumference of the upper sleeve support 32, one end of the lower screw support 34, which is far away from the upper sleeve support 32, is fixed with the disc magnetic base 33, and the disc magnetic base 33 is adsorbed on the upper surface of the lower support 12. Loosen the vertical distance between the mode regulation hall sensor 3 that can pass through rotatory sleeve upper bracket 32 after fastening bolt 35 and the response magnet 2, above-mentioned regulation is mainly to following two kinds of condition, one, when the vertical distance is far away between hall sensor 3 and response magnet 2, hall sensor 3 can sense the magnetic field of response magnet 2 and be relatively weak, be unfavorable for accurate measurement, two, to different gyration supports, because the interval between upper support and lower support is different, need be in order to satisfy the measurement demand through the relative height who adjusts hall sensor 3 for this.
The output end of the Hall sensor 3 is connected with the input end of the MCU4, and the output end of the MCU4 is connected with the input end of the display device 5.
When the hall sensor 3 senses the induction magnet 2 every time, it outputs a high level, and when it does not sense the induction magnet 2, it outputs a low level. The MCU4 receives the high and low level change signals, and then the input capturing function carried by the MCU4 captures the high and low level changes, so that the time difference of the high and low level changes is calculated, namely the accurate time of the rotation period of the engineering machinery is obtained. The MCU4 is connected to an input terminal of the display device 5 through a cable to control the display device 5 to display corresponding contents.
The power supply voltage of the Hall sensor 3 is 3.3-5V, and clear square wave signals can be output. The MCU4 is provided with a timer module, and the timer module has an input capture function. The display device 5 has LCD display and touch functions.
The invention also provides a method for measuring the rotation period by adopting the rotation period time capturing device of the engineering machinery, wherein a rising edge capturing program and a display control program are prefabricated in the MCU4, and a rising edge capturing program and a display control program are prefabricated in the MCU4, when the MCU4 captures the first rising edge, the system enters a timed interrupt service program, firstly, the timer is cleared and the next input capturing polarity is set to be triggered by the rising edge, and then the timed interrupt service program is exited to wait for the next rising edge to be triggered; when the MCU4 captures a second rising edge, the system enters a timed interrupt service routine again, firstly, whether the timer overflows is detected, if the timer overflows, the system counts the times of the overflow, otherwise, the counting value of the timer is recorded and the capture is marked, and then the timed interrupt service routine is exited; the actual count value of the timer is calculated in the main routine and the calculation result is displayed by the display device 5, which is the real-time rotation period of the construction machine.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:测试设备