Device and method for reducing power consumption of magnetic grid displacement sensor and magnetic grid displacement sensor
By inducing the magnetic period of magnetic stripe movement by magnetic switch, the reading head is awakened and the displacement is calculated, and it is controlled to enter a low-power state, which solves the problems of high power consumption and high production costs, and achieves low suitable for small-volume products Power consumption sensor.
Patent Information
- Application Number
- CN202411120798.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional incremental magnetic gate displacement sensors are highly power consumption due to dense periodic reading head data, which cannot be applied to small-volume products, and have high production costs.
The magnetic switch senses the magnetic period changes during the movement of the magnetic stripes, generates electric frequency conversion information as a trigger signal to wake up the reading head, reduces the sampling rate, and calculates the displacement through the MCU processor to control the reading head to enter a low-power sleep state to avoid External power supply or use of large-volume batteries.
It effectively reduces sensor power consumption and production costs, realizes applications without external power supply or large-volume batteries, is suitable for more small-volume products, and reduces sampling rate without losing data.
Smart Images

Figure CN119123953A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of sensor technology, and in particular to a device and method for reducing power consumption of a magnetic grating displacement sensor, and the magnetic grating displacement sensor. Background Art
[0002] The incremental magnetic grating displacement sensor is a sensor used to measure the displacement of an object. The traditional implementation method of the incremental magnetic grating displacement sensor is to use the MCU to read the reading head data at high speed and densely periodically to determine whether the displacement exceeds the magnetic pole spacing (i.e. one cycle). If it exceeds 1 magnetic pole spacing cycle, add 1 or subtract 1. The final position = number of cycles * magnetic pole spacing + position in the current cycle.
[0003] Since the reading head needs to be powered all the time, the intensive and periodic reading of the reading head data causes the magnetic grating displacement sensor to consume a lot of power. The existing method requires external power supply or built-in large-capacity battery, which cannot be applied to small-volume products, resulting in high production costs. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a device, method and magnetic grating displacement sensor for reducing power consumption in view of the shortcomings of the prior art. The change of the electrical frequency of the magnetic switch electrode is used as a trigger signal for waking up the reading head, thereby reducing the sampling rate without losing data, achieving the goal of using without external power supply or large-volume batteries, and effectively reducing the power consumption and production cost of the sensor.
[0005] In one aspect, the present invention provides a device for reducing power consumption of a magnetic grating displacement sensor, comprising an MCU processor, a magnetic switch and a reading head.
[0006] The magnetic switch is parallel to the signal sensing surface of the magnetic stripe, and is connected to the MCU processor, and is used to sense the periodic change of the magnetic force when the magnetic stripe moves, and obtain the electrical frequency conversion information of the electrode based on the magnetic switch threshold and the periodic change of the magnetic force, and generate an external interrupt signal through the electrical frequency conversion information;
[0007] The MCU processor is connected to the reading head, and is used to receive the external interrupt signal and connect the power supply of the reading head to wake up the reading head;
[0008] The reading head is parallel to the signal sensing surface of the magnetic strip, and when awakened, is used to sense the periodic change of the magnetic force of the magnetic strip from the start of movement to the stop, and determine the periodic absolute position of the magnetic strip based on the magnetic force when the magnetic strip stops;
[0009] The MCU processor is also used to obtain the number of cycles based on the periodic change of the magnetic force of the magnetic strip from the start to the stop of movement, and calculate and output the displacement according to the magnetic pole spacing on the magnetic strip, the periodic absolute position of the magnetic strip and the number of cycles, and turn off the power of the reading head to enter a low-power sleep state.
[0010] Furthermore, the MCU processor is also used to reconnect the power supply of the reading head to wake up the reading head when receiving the external interrupt signal again;
[0011] When the reading head is awakened again, it is used to sense the new periodic change of the magnetic force when the magnetic strip moves, and obtain the new periodic absolute position of the magnetic strip;
[0012] The MCU processor is also used to obtain a new cycle number based on the new magnetic cycle change, and calculate and output the new displacement based on the magnetic pole spacing on the magnetic strip, the new periodic absolute position of the magnetic strip and the new cycle number, and turn off the power of the reading head to enter a low-power sleep state again, and repeat this cycle.
[0013] Furthermore, in the magnetic switch, the magnetic force periodic change when the magnetic strip moves is sensed, and the electrical frequency conversion information of the electrode is obtained based on the magnetic switch threshold and the magnetic force periodic change, specifically:
[0014] The magnetic switch threshold is set according to the magnetization amount of the magnetic strip. When the magnetic strip moves, the magnetic force periodic changes from the S pole to the N pole and from the N pole to the S pole on the magnetic strip are sensed. When the magnetic force is lower than the magnetic switch threshold, the magnetic switch is at the junction of the S pole and the N pole. When the magnetic force is higher than the magnetic switch threshold, the magnetic switch is biased to the S pole or the N pole. The electrical frequency conversion data of the electrode from high to low and from low to high are obtained according to the periodic changes of the magnetic force.
[0015] Furthermore, in the MCU processor, the number of cycles is obtained based on the change in the magnetic force cycle of the magnetic strip from the start to the stop of the movement, specifically:
[0016] A plurality of magnetic cycle changes are obtained from the start to stop of the movement of the induction magnetic strip. Whether the displacement of the reading head exceeds the magnetic pole spacing within the cycle is determined according to each magnetic cycle change. The number of displacements exceeding the magnetic pole spacing is counted to obtain the number of cycles.
[0017] Furthermore, the MCU processor is also used to set the time for waking up the reading head. When the time is reached, the power supply of the reading head is connected to wake up the reading head.
[0018] On the other hand, the present invention also provides a method for reducing the power consumption of a magnetic grating displacement sensor, the method comprising:
[0019] The magnetic switch senses the periodic change of the magnetic force when the magnetic strip moves, obtains the electrical frequency conversion information of the electrode based on the magnetic switch threshold and the periodic change of the magnetic force, and generates an external interrupt signal through the electrical frequency conversion information;
[0020] The MCU processor connects the power supply of the reading head to wake up the reading head according to the external interrupt signal;
[0021] When the reading head is awakened, it senses the periodic change of the magnetic force of the magnetic strip from the start of movement to the stop, and determines the periodic absolute position of the magnetic strip based on the magnetic force when the magnetic strip stops;
[0022] The MCU processor obtains the number of cycles based on the periodic change of the magnetic force of the magnetic strip from the start to the stop of movement, calculates and outputs the displacement according to the magnetic pole spacing on the magnetic strip, the periodic absolute position of the magnetic strip and the number of cycles, and turns off the power of the reading head to enter a low-power sleep state.
[0023] Further, the method further comprises the steps of:
[0024] When the MCU processor receives the external interrupt signal again, it reconnects the power supply of the reading head to wake up the reading head;
[0025] When the reading head is awakened again, it senses the new periodic change of the magnetic force during the movement of the magnetic stripe and obtains the new periodic absolute position of the magnetic stripe;
[0026] The MCU processor is also used to obtain a new cycle number based on the new magnetic cycle change, and calculate and output the new displacement based on the magnetic pole spacing on the magnetic strip, the new periodic absolute position of the magnetic strip and the new cycle number, and turn off the power of the reading head to enter a low-power sleep state again, and repeat this cycle.
[0027] On the other hand, the present invention also provides a magnetic grating displacement sensor, including a PCB circuit board and a magnetic strip, and a device for reducing the power consumption of the magnetic grating displacement sensor as described above, wherein the device is used to execute the method for reducing the power consumption of the magnetic grating displacement sensor as described above.
[0028] Furthermore, the magnetic grating displacement sensor also includes a hard substrate, the magnetic strip is attached to the hard substrate, the magnetic strip is distributed with S level and N level, and the S level and the N level are alternately distributed with a set magnetic moment period; the PCB circuit board is fixed above the magnetic strip, and the device for reducing the power consumption of the magnetic grating displacement sensor is packaged or integrated on the PCB circuit board.
[0029] Furthermore, the reading head and the magnetic switch in the device for reducing the power consumption of the magnetic grating displacement sensor are packaged or integrated on a PCB circuit board and are parallel to the signal sensing surface of the magnetic stripe, and the MCU processor in the device for reducing the power consumption of the magnetic grating displacement sensor is distributed on the PCB circuit board; the number of magnetic switches in the device for reducing the power consumption of the magnetic grating displacement sensor is at least one, and at least one magnetic switch is distributed on the PCB circuit board.
[0030] The beneficial effects of the present invention are as follows: the magnetic switch is combined with the reading head, and the periodic change of the magnetic force when the magnetic strip moves is sensed by the magnetic switch to obtain the electric frequency conversion data of the electrode and generate an external interrupt signal to wake up the reading head to determine the periodic absolute position of the magnetic strip. The MCU processor calculates the displacement based on the data of the reading head, and controls the reading head to power off and enter a low-power sleep state, and uses the new electric frequency change of the magnetic switch as a trigger signal to wake up the reading head. The present invention can reduce the sampling rate without losing data. Compared with the prior art, it does not require external power supply or large-volume battery to be used in conjunction, and can effectively reduce the power consumption and production cost of the sensor. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A schematic diagram of the structure of a device for reducing power consumption of a magnetic grating displacement sensor according to an embodiment of the present invention;
[0032] Figure 2 A flow chart of a method for reducing power consumption of a magnetic grating displacement sensor according to an embodiment of the present invention;
[0033] Figure 3 A control logic diagram of the magnetic grating displacement sensor of the present invention;
[0034] Figure 4 It is an overall structural diagram of a magnetic grating displacement sensor according to an embodiment of the present invention;
[0035] Figure 5 4 is a side view of a magnetic grating displacement sensor according to an embodiment of the present invention.
[0036] In the accompanying drawings, the names of the components represented by the various marks are as follows:
[0037] 1. MCU processor; 2. Magnetic switch; 3. Reading head; 4. PCB circuit board; 5. Magnetic strip; 6. Hard substrate. DETAILED DESCRIPTION
[0038] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0039] The embodiment of the present invention provides a device for reducing the power consumption of a magnetic grating displacement sensor. In a traditional incremental magnetic grating displacement sensor, an MCU is used to read the data of a reading head at high speed and densely and periodically to calculate the displacement. The reading head needs to be powered all the time. The dense and periodic reading of the reading head data causes the magnetic grating displacement sensor to consume a lot of power. It requires external power supply or built-in large-capacity batteries to be used in conjunction. It cannot be applied to small-volume products and also causes the problem of high production costs. Therefore, a device combining a magnetic switch and a reading head is proposed, which can enable the magnetic grating displacement sensor to be applied in a low-power environment.
[0040] Specifically, Figure 1 As shown, this embodiment provides a device for reducing the power consumption of a magnetic grating displacement sensor, including an MCU processor 1, a magnetic switch 2, and a reading head 3.
[0041] The magnetic switch 2 is parallel to the signal sensing surface of the magnetic stripe 5, and is connected to the MCU processor 1, and is used to sense the periodic change of the magnetic force when the magnetic stripe 5 moves, and obtain the electrical frequency conversion information of the electrode based on the magnetic switch threshold and the periodic change of the magnetic force, and generate an external interrupt signal through the electrical frequency conversion information;
[0042] The reading head 3 is parallel to the signal sensing surface of the magnetic stripe 5, and when awakened, is used to sense the periodic change of the magnetic force of the magnetic stripe 5 from the start of movement to the stop, and determine the periodic absolute position of the magnetic stripe based on the magnetic force of the magnetic stripe 5 when it stops;
[0043] The MCU processor 1 is also used to obtain the number of cycles based on the periodic change of the magnetic force of the magnetic stripe 5 from the start to the stop of movement, and calculate and output the displacement according to the magnetic pole spacing on the magnetic stripe 5, the periodic absolute position of the magnetic stripe and the number of cycles, and turn off the power of the reading head to enter a low-power sleep state.
[0044] In this embodiment, the magnetic switch 2 and the reading head 3 are combined. The magnetic switch 2 senses the periodic change of the magnetic force when the magnetic stripe 5 is running to obtain the electrical frequency conversion data of the electrode, and generates an external interrupt signal based on the electrical frequency conversion data to wake up the reading head to determine the periodic absolute position of the magnetic stripe. It should be understood that the magnetic pole spacing (i.e., S pole or N pole) is a cycle, that is, the position of the reading head 3 in this cycle when the magnetic stripe 5 stops. The MCU processor 1 calculates the displacement based on the magnetic pole spacing, the data of the reading head 3, and the number of cycles, and controls the reading head 3 to power off and enter a low-power sleep state. After that, the external interrupt signal is generated again through the new electrical frequency change of the magnetic switch 2, that is, as a trigger signal for waking up the reading head, the sampling rate can be reduced without losing data. Compared with the prior art, the present invention can effectively reduce the power consumption of the sensor, does not require external power supply or large-volume battery for use, and can be more widely used in more small-volume products. As the product volume and battery capacity decrease, downstream enterprises use this technology, and the production cost can be effectively reduced.
[0045] Specifically, the solution of combining the magnetic switch 2 and the reading head 3 is not limited to presenting the magnetic switch 2 and the reading head 3 as separate components, but can also be presented as a whole, for example, the magnetic switch 2 is integrated into the reading head 3.
[0046] In some embodiments, the MCU processor 1 is further configured to reconnect the power supply of the reading head 3 to wake up the reading head 3 when receiving the external interrupt signal again;
[0047] When the reading head 3 is awakened again, it is used to sense the new periodic change of the magnetic force when the magnetic strip 5 moves, and obtain the new periodic absolute position of the magnetic strip;
[0048] The MCU processor 1 is also used to obtain a new cycle number based on the new magnetic cycle change, and calculate and output the new displacement based on the magnetic pole spacing on the magnetic stripe 5, the new absolute position of the magnetic stripe periodicity and the new cycle number, and turn off the power of the reading head 3 to enter the low-power sleep state again, and repeat this cycle.
[0049] In the present embodiment, it should be understood that when the MCU processor 1 calculates the displacement, it can be calculated by the calculation formula "final position = number of cycles * magnetic pole spacing + position in the current cycle". The MCU processor 1 takes the absolute position of the reading head 3 in the periodicity of the magnetic strip as the "position in the current cycle", and the calculated "final position" is the displacement corresponding to the current moment. At this time, the power supply of the reading head 3 is turned off to enter a low-power sleep state. When the magnetic strip 5 is in a stationary state, the reading head 3 can be in a low-power sleep state all the time, thereby greatly reducing power consumption; and when the magnetic strip 5 moves again, first the magnetic switch 2 is subjected to the periodic change of the magnetic force, and obtains the new electric frequency conversion data and generates the external interrupt signal again, and then the MCU processor 1 connects the power supply of the reading head 3 again to wake up the reading head according to the external interrupt signal obtained by the magnetic switch 2 sensing the magnetic force change again, and the reading head 3 obtains a new absolute position in the periodicity of the magnetic strip, calculates the new displacement corresponding to the current moment through the calculation formula, and turns off the power supply of the reading head 3 again to enter a low-power sleep state, and repeats this cycle.
[0050] The above embodiment is a case where the magnetic switch 2 is externally interrupted in a low-power sleep state. The MCU processor 1 can also be set to timer interrupt the low-power sleep state. Specifically, the MCU processor 1 sets the time to wake up the reading head 3. When the time is reached, the power supply of the reading head 3 is connected to wake up the reading head 3.
[0051] For example, a certain time node can be set, and when the time node is reached, the power supply of the reading head 3 is connected to wake up the reading head 3. Alternatively, multiple intervals of the same or different time periods can be set, and when the timing reaches the time period, the power supply of the reading head 3 is connected to wake up the reading head 3.
[0052] It should be understood that when the timing interrupt and the magnetic switch external interrupt are generated simultaneously, the priority of the magnetic switch external interrupt is higher than the priority of the timing interrupt.
[0053] In this embodiment, a device for reducing the power consumption of the magnetic grating displacement sensor is used to keep the working state of the reading head 3 consistent with the actual measured state of the magnetic stripe movement. The MCU quickly reads data by obtaining the electrical frequency conversion of the magnetic switch to ensure that each magnetic pole will not lose data due to rapid movement, thereby reducing the power consumption to less than 10% of the original traditional magnetic grating sensor.
[0054] In some embodiments, in the magnetic switch 2, the magnetic force periodic change when the magnetic strip 5 moves is sensed, and the electrical frequency conversion information of the electrode is obtained based on the magnetic switch threshold and the magnetic force periodic change, specifically:
[0055] The magnetic switch threshold is set according to the magnetization amount of the magnetic stripe. When the magnetic stripe 5 moves, the magnetic force periodic changes of the magnetic poles on the magnetic stripe 5 from the S pole to the N pole and from the N pole to the S pole are sensed. When the magnetic force is lower than the magnetic switch threshold, the magnetic switch 2 is at the junction of the S pole and the N pole. When the magnetic force is higher than the magnetic switch threshold, the magnetic switch 2 is biased to the S pole or the N pole. The electrical frequency conversion data of the electrodes from high to low and from low to high are obtained according to the periodic changes of the magnetic force.
[0056] In this embodiment, a magnetic switch threshold needs to be set. The magnetic switch threshold can select a suitable threshold magnetic switch according to the magnetic force of the magnetic field on the surface of the magnetic switch. When it is lower than the threshold for opening the magnetic switch, the magnetic switch is at the junction of the S pole and the N pole; when it is higher than the threshold for opening the magnetic switch, the magnetic switch 2 is biased to the S pole or the N pole, so that each junction between the S pole and the N pole can be monitored. When the magnetic switch 2 is turned from on to off, or from off to on, the electrode output of the magnetic switch 2 changes in height, and within one cycle (i.e., the displacement of the magnetic pole spacing), the electrical frequency conversion of 1 or more magnetic switch electrodes can be obtained.
[0057] In some embodiments, in the MCU processor 1, the number of cycles is obtained based on the periodic change of the magnetic force of the magnetic strip 5 from the start of movement to the stop, specifically:
[0058] A plurality of magnetic periodic changes are obtained from the start to the stop of the movement of the induction magnetic strip 5. Whether the displacement of the reading head exceeds the magnetic pole spacing within the period is determined according to each magnetic periodic change. The number of displacements exceeding the magnetic pole spacing is counted to obtain the number of periods.
[0059] For example, if the magnetic pole spacing is 2 mm, the periodic change of the magnetic force is used to determine whether the reading head displacement passes through a magnetic pole spacing. If so, it is recorded as a period number.
[0060] like Figure 2 As shown, an embodiment of the present invention also provides a method for reducing the power consumption of a magnetic grating displacement sensor, the method comprising:
[0061] S1. The magnetic switch senses the periodic change of the magnetic force when the magnetic strip moves, obtains the electrical frequency conversion information of the electrode based on the magnetic switch threshold and the periodic change of the magnetic force, and generates an external interrupt signal through the electrical frequency conversion information;
[0062] S2, the MCU processor connects the power supply of the reading head to wake up the reading head according to the external interrupt signal;
[0063] S3, when the reading head is awakened, it senses the periodic change of the magnetic force of the magnetic strip from the start of movement to the stop, and determines the periodic absolute position of the magnetic strip based on the magnetic force when the magnetic strip stops;
[0064] S4, the MCU processor obtains the number of cycles based on the periodic change of the magnetic force of the magnetic strip from the start to the stop of movement, and calculates and outputs the displacement according to the magnetic pole spacing on the magnetic strip, the periodic absolute position of the magnetic strip and the number of cycles, and turns off the power of the reading head to enter a low-power sleep state.
[0065] In some embodiments, when the reading head is awakened, it also includes:
[0066] Step S30: When the MCU processor receives the external interrupt signal again, it reconnects the power supply of the reading head to wake up the reading head;
[0067] When the reading head is awakened again, it senses the new periodic change of the magnetic force during the movement of the magnetic stripe and obtains the new periodic absolute position of the magnetic stripe;
[0068] The MCU processor is also used to obtain a new cycle number based on the new magnetic cycle change, and calculate and output the new displacement based on the magnetic pole spacing on the magnetic strip, the new periodic absolute position of the magnetic strip and the new cycle number, and turn off the power of the reading head to enter a low-power sleep state again, and repeat this cycle.
[0069] In some embodiments, the magnetic periodic change when the magnetic strip moves is sensed, and the electrical frequency conversion information of the electrode is obtained based on the magnetic switch threshold and the magnetic periodic change, specifically:
[0070] The magnetic switch threshold is set according to the magnetization amount of the magnetic strip. When the magnetic strip moves, the magnetic force periodic changes from the S pole to the N pole and from the N pole to the S pole on the magnetic strip are sensed. When the magnetic force is lower than the magnetic switch threshold, the magnetic switch is at the junction of the S pole and the N pole. When the magnetic force is higher than the magnetic switch threshold, the magnetic switch is biased to the S pole or the N pole. The electrical frequency conversion data of the electrode from high to low and from low to high are obtained according to the periodic changes of the magnetic force.
[0071] The above embodiment is a case where the magnetic switch externally interrupts the low-power sleep state. The MCU processor can also set a timer to interrupt the low-power sleep state. Specifically, the MCU processor sets the time to wake up the reading head. When the time is reached, the power supply of the reading head is connected to wake up the reading head.
[0072] Next, combine the timing interrupt with the magnetic switch external interrupt, such as Figure 3 As shown in the figure, the overall logic control principle is explained:
[0073] In the main program, start and initialize the MCU processor;
[0074] Start the timing interrupt subroutine and the magnetic switch external interrupt subroutine;
[0075] When the magnetic switch senses a change in magnetic force, the MCU processor connects the power supply of the reading head (interrupt wake-up), executes the Nth magnetic switch external interrupt subroutine, reads the reading head data from the reading head and performs displacement calculation processing, the MCU processor outputs the displacement through the output port, and performs display and key processing, and turns off the power supply of the reading head to enter a low-power sleep state;
[0076] When the timing is reached, the MCU processor connects the power supply of the reading head (interrupt wake-up), executes the timing interrupt subroutine, reads the reading head data from the reading head and performs displacement calculation processing, the MCU processor outputs the displacement through the output port, and performs display and key processing, and turns off the power supply of the reading head to enter a low-power sleep state.
[0077] It should be understood that when the timing interrupt and the magnetic switch external interrupt are generated simultaneously, the priority of the magnetic switch external interrupt is higher than the priority of the timing interrupt.
[0078] In the MCU processor, the number of cycles is obtained based on the change in the magnetic force cycle of the magnetic strip from the start to the stop of the movement, specifically:
[0079] A plurality of magnetic cycle changes are obtained from the start to stop of the movement of the induction magnetic strip. Whether the displacement of the reading head exceeds the magnetic pole spacing within the cycle is determined according to each magnetic cycle change. The number of displacements exceeding the magnetic pole spacing is counted to obtain the number of cycles.
[0080] In the above embodiment, the MCU processor controls the power on and off of the reading head, powers on to quickly read data before reading data, and quickly disconnects the reading head power supply after reading data, thereby greatly reducing the power consumption of the reading head.
[0081] like Figure 4-Figure 5 As shown, an embodiment of the present invention further provides a magnetic grating displacement sensor, including a PCB circuit board 4 and a magnetic strip 5, and a device for reducing the power consumption of the magnetic grating displacement sensor as described above, wherein the device is used to execute the method for reducing the power consumption of the magnetic grating displacement sensor as described above.
[0082] In some embodiments, the magnetic grating displacement sensor also includes a hard substrate 6, the magnetic stripe 5 is attached to the hard substrate 6, and the magnetic stripe 5 is distributed with S level and N level, and the S level and the N level are alternately distributed with a set magnetic moment period; the PCB circuit board 4 is fixed above the magnetic stripe 5, and the device for reducing the power consumption of the magnetic grating displacement sensor is packaged or integrated on the PCB circuit board 4.
[0083] Specifically, the magnetic moment period of the S level and the N level is 2 mm.
[0084] In some embodiments, the reading head 3 and the magnetic switch 2 in the device for reducing the power consumption of the magnetic grating displacement sensor are packaged or integrated on the PCB circuit board 4 and are parallel to the signal sensing surface of the magnetic stripe 5, and the MCU processor 1 in the device for reducing the power consumption of the magnetic grating displacement sensor is distributed on the upper surface of the PCB circuit board 4; the number of the magnetic switch 2 in the device for reducing the power consumption of the magnetic grating displacement sensor is at least one, and at least one magnetic switch 2 is distributed on the PCB circuit board 4.
[0085] Among them, the above-mentioned setting of packaging or integrating the reading head 3 and the magnetic switch 2 on the PCB circuit board 4 can be that the magnetic switch 2 and the reading head 3 are directly packaged or integrated on the lower surface of the PCB circuit board 4; or it can be that windows are opened on the PCB circuit board 4 corresponding to the sizes of the reading head 3 and the magnetic switch 2 respectively, the magnetic switch 2 and the reading head 3 are inverted to face the signal sensing surface of the magnetic stripe 5, and are embedded in the corresponding windows of the PCB circuit board 4, which can reduce the volume of the PCB circuit board 4 after packaging.
[0086] Preferably, the gap between the reading head 3 and the magnetic strip 5 is 0.4 to 0.6 mm.
[0087] In the magnetic stripe sensing area, multiple magnetic switches 2 can be set, and the multiple magnetic switches 2 can be arbitrarily distributed around the reading head 3.
[0088] The magnetic grating displacement sensor of the present invention is not limited to linear displacement, and can be deformed and applied to other shapes, for example, circular and annular displacement products.
[0089] The solution of combining the magnetic switch 2 and the reading head 3 is not limited to presenting the magnetic switch 2 and the reading head 3 as separate components, but can also be presented as a whole, for example, the magnetic switch 2 is integrated into the reading head 3.
[0090] The advantages of the present invention are:
[0091] The magnetic switch is combined with the reading head. The magnetic switch senses the periodic change of the magnetic force when the magnetic strip moves, and obtains the electrical frequency conversion data of the electrode and generates an external interrupt signal to wake up the reading head to determine the periodic absolute position of the magnetic strip. The MCU processor calculates the displacement based on the data of the reading head, and controls the reading head to enter a low-power sleep state, and uses the new electrical frequency change of the magnetic switch as a trigger signal to wake up the reading head, reducing the sampling rate without losing data during rapid movement. Compared with the prior art, the technology of the present invention can effectively reduce the power consumption of the sensor, is low-carbon and environmentally friendly, has strong anti-interference, does not require external power supply or large-volume batteries, and can be more widely used in more small-volume products. As the product volume and battery capacity are reduced, downstream enterprises use the technology of the present invention, and the production cost can be effectively reduced, especially in the huge portable waterproof measuring tool market. There is a broad prospect.
[0092] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0093] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0094] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0095] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0096] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0097] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0098] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A device for reducing power consumption of a magnetic grating displacement sensor, characterized in that: Including MCU processor, magnetic switch and reading head, The magnetic switch is parallel to the signal sensing surface of the magnetic stripe, and is connected to the MCU processor, and is used to sense the periodic change of the magnetic force when the magnetic stripe moves, and obtain the electrical frequency conversion information of the electrode based on the magnetic switch threshold and the periodic change of the magnetic force, and generate an external interrupt signal through the electrical frequency conversion information; The MCU processor is connected to the reading head, and is used to receive the external interrupt signal, and connect the power supply of the reading head to wake up the reading head according to the external interrupt signal; The reading head is parallel to the signal sensing surface of the magnetic strip, and when awakened, is used to sense the periodic change of the magnetic force of the magnetic strip from the start of movement to the stop, and determine the periodic absolute position of the magnetic strip based on the magnetic force when the magnetic strip stops; The MCU processor is also used to obtain the number of cycles based on the periodic change of the magnetic force of the magnetic strip from the start to the stop of movement, and calculate and output the displacement according to the magnetic pole spacing on the magnetic strip, the periodic absolute position of the magnetic strip and the number of cycles, and turn off the power of the reading head to enter a low-power sleep state.
2. The device for reducing power consumption of a magnetic grating displacement sensor according to claim 1, characterized in that: The MCU processor is also used to reconnect the power supply of the reading head to wake up the reading head when receiving the external interrupt signal again; When the reading head is awakened again, it is used to sense the new periodic change of the magnetic force when the magnetic strip moves, and obtain the new periodic absolute position of the magnetic strip; The MCU processor is also used to obtain a new cycle number based on the new magnetic cycle change, and calculate and output the new displacement based on the magnetic pole spacing on the magnetic strip, the new periodic absolute position of the magnetic strip and the new cycle number, and turn off the power of the reading head to enter a low-power sleep state again, and repeat this cycle.
3. The device for reducing power consumption of a magnetic grating displacement sensor according to claim 1, characterized in that: In the magnetic switch, the magnetic force periodic change when the magnetic strip moves is sensed, and the electrical frequency conversion information of the electrode is obtained based on the magnetic switch threshold and the magnetic force periodic change, specifically: The magnetic switch threshold is set according to the magnetization amount of the magnetic strip. When the magnetic strip moves, the magnetic force periodic changes from the S pole to the N pole and from the N pole to the S pole on the magnetic strip are sensed. When the magnetic force is lower than the magnetic switch threshold, the magnetic switch is at the junction of the S pole and the N pole. When the magnetic force is higher than the magnetic switch threshold, the magnetic switch is biased to the S pole or the N pole. The electrical frequency conversion data of the electrode from high to low and from low to high are obtained according to the periodic changes of the magnetic force.
4. The device for reducing power consumption of a magnetic grating displacement sensor according to claim 1, characterized in that: In the MCU processor, the number of cycles is obtained based on the change in the magnetic force cycle of the magnetic strip from the start to the stop of the movement, specifically: A plurality of magnetic cycle changes are obtained from the start to stop of the movement of the induction magnetic strip. Whether the displacement of the reading head exceeds the magnetic pole spacing within the cycle is determined according to each magnetic cycle change. The number of displacements exceeding the magnetic pole spacing is counted to obtain the number of cycles.
5. The device for reducing power consumption of a magnetic grating displacement sensor according to any one of claims 1 to 4, characterized in that: The MCU processor is also used to set the time to wake up the reading head. When the time is reached, the power supply of the reading head is connected to wake up the reading head.
6. A method for reducing power consumption of a magnetic grating displacement sensor, characterized in that: Methods include: The magnetic switch senses the periodic change of the magnetic force when the magnetic strip moves, obtains the electrical frequency conversion information of the electrode based on the magnetic switch threshold and the periodic change of the magnetic force, and generates an external interrupt signal through the electrical frequency conversion information; The MCU processor connects the power supply of the reading head to wake up the reading head according to the external interrupt signal; When the reading head is awakened, it senses the periodic change of the magnetic force of the magnetic strip from the start of movement to the stop, and determines the periodic absolute position of the magnetic strip based on the magnetic force when the magnetic strip stops; The MCU processor obtains the number of cycles based on the periodic change of the magnetic force of the magnetic strip from the start to the stop of movement, calculates and outputs the displacement according to the magnetic pole spacing on the magnetic strip, the periodic absolute position of the magnetic strip and the number of cycles, and turns off the power of the reading head to enter a low-power sleep state.
7. The method for reducing power consumption of a magnetic grating displacement sensor according to claim 6, characterized in that: Also includes the steps: When the MCU processor receives the external interrupt signal again, it reconnects the power supply of the reading head to wake up the reading head; When the reading head is awakened again, it senses the new periodic change of the magnetic force during the movement of the magnetic stripe and obtains the new periodic absolute position of the magnetic stripe; The MCU processor is also used to obtain a new cycle number based on the new magnetic cycle change, and calculate and output the new displacement based on the magnetic pole spacing on the magnetic strip, the new periodic absolute position of the magnetic strip and the new cycle number, and turn off the power of the reading head to enter a low-power sleep state again, and repeat this cycle.
8. A magnetic grating displacement sensor, characterized in that: It comprises a PCB circuit board and a magnetic strip, and a device for reducing the power consumption of a magnetic grating displacement sensor as described in any one of claims 1 to 5, wherein the device is used to execute a method for reducing the power consumption of a magnetic grating displacement sensor as described in any one of claims 6 to 7.
9. The magnetic grating displacement sensor according to claim 8, characterized in that: The magnetic grating displacement sensor also includes a hard substrate, the magnetic strip is attached to the hard substrate, S-level and N-level magnetic gratings are distributed on the magnetic strip, and the S-level and N-level are alternately distributed with a set magnetic moment period; the PCB circuit board is fixed above the magnetic strip, and the device for reducing the power consumption of the magnetic grating displacement sensor is integrated on the PCB circuit board.
10. The magnetic grating displacement sensor according to claim 9, characterized in that: The reading head and the magnetic switch in the device for reducing the power consumption of the magnetic grating displacement sensor are packaged or integrated on the PCB circuit board and are parallel to the signal sensing surface of the magnetic stripe; the MCU processor in the device for reducing the power consumption of the magnetic grating displacement sensor is distributed on the PCB circuit board; the number of magnetic switches in the device for reducing the power consumption of the magnetic grating displacement sensor is at least one, and at least one magnetic switch is distributed on the PCB circuit board.
Citation Information
Patent Citations
Low-power-consumption door magnetic state detection controller and system
CN108179927A
High-speed long-stroke linear displacement sensor
CN111780656A
Communication type linear magnetic encoder
CN115342716A
Absolute value magnetic grid linear encoder system
CN115388917A
Soil layer settlement displacement monitoring device and monitoring method
CN118110209A
