CN111680780A - Encoder counting device, counting method, equipment and readable storage medium - Google Patents

Encoder counting device, counting method, equipment and readable storage medium Download PDF

Info

Publication number
CN111680780A
CN111680780A CN202010438760.6A CN202010438760A CN111680780A CN 111680780 A CN111680780 A CN 111680780A CN 202010438760 A CN202010438760 A CN 202010438760A CN 111680780 A CN111680780 A CN 111680780A
Authority
CN
China
Prior art keywords
encoder
counting
magnet
circuit board
printed circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010438760.6A
Other languages
Chinese (zh)
Other versions
CN111680780B (en
Inventor
孙立强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weton Electronics Co ltd
Original Assignee
Weton Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weton Electronics Co ltd filed Critical Weton Electronics Co ltd
Priority to CN202010438760.6A priority Critical patent/CN111680780B/en
Publication of CN111680780A publication Critical patent/CN111680780A/en
Application granted granted Critical
Publication of CN111680780B publication Critical patent/CN111680780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/08Design features of general application for actuating the drive
    • G06M1/10Design features of general application for actuating the drive by electric or magnetic means
    • G06M1/102Design features of general application for actuating the drive by electric or magnetic means by magnetic or electromagnetic means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06MCOUNTING MECHANISMS; COUNTING OF OBJECTS NOT OTHERWISE PROVIDED FOR
    • G06M1/00Design features of general application
    • G06M1/27Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum
    • G06M1/274Design features of general application for representing the result of count in the form of electric signals, e.g. by sensing markings on the counter drum using magnetic means; using Hall-effect devices

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Electromagnetism (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

The invention discloses a counting device of an encoder, which comprises: the counting assembly comprises a printed circuit board, an elastic sheet arranged on the printed circuit board, a first coil and a second coil; the elastic sheet is arranged between the first coil and the second coil, the elastic sheet is provided with a first magnet away from the printed circuit board, the encoder assembly comprises an encoder shaft and a second magnet, and the outer surface of the encoder shaft is provided with the second magnet so as to drive the second magnet to rotate; the invention also discloses a counting method, a device and a readable storage medium. According to the invention, when the encoder is powered off, the encoder shaft is rotated by an external force, so that the first magnet swings, regular induced current is generated in the metal coil, the generated induced current can be used for calculating the power supply required by the number of turns of the rotation of the encoder shaft, and the multi-turn counting of the encoder is realized by analyzing the regularity generated by the induced current under the condition that the encoder is powered off.

Description

Encoder counting device, counting method, equipment and readable storage medium
Technical Field
The invention relates to the technical field of battery testing, in particular to a counting device, a counting method, equipment and a readable storage medium of an encoder.
Background
At present, the number-of-turns counting mode of an encoder comprises the steps of using a gear structure, utilizing a Vickers principle and utilizing a built-in battery, wherein the built-in battery of the encoder is used for counting a plurality of turns by utilizing a reed switch or a magnetic resistance device or a Hall device and other low-power consumption devices under the condition that the encoder is powered off.
However, the counting mode has certain defects, the counting accuracy of the gear structure is also dependent on the machining precision of gear parts and corresponding separation coded discs while the self weight and the volume of the encoder are increased, the complex structure of the gear also brings reliability risks, the more the number of turns of the encoder is counted, the more the gear structure is complex, and the service life of the encoder is also dependent on the service life of the gear; sensitive alloy wires are needed for counting by utilizing the Wechsler principle, and the sensitive alloy wires are complex in manufacturing process, high in product complexity and not universal in application; the mode of the built-in battery of encoder, absolute value encoder's life rely on the live time of battery, and the change of battery is also very troublesome, and at industrial field, ambient temperature's change in volume, and the use occasion of battery is also restricted, and the battery is more the volume of occupying, is unfavorable for the miniaturization of encoder.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The embodiment of the invention mainly aims to provide a counting device and a counting method for an encoder, and aims to solve the technical problems that a rotation turn number counting mode of the encoder in the prior art has the defects of complex structure, limited service life and no universal applicability.
To solve the above problem, an embodiment of the present invention provides an encoder counting apparatus, including:
the counting assembly comprises a printed circuit board, an elastic sheet arranged on the printed circuit board, a first coil and a second coil; the elastic piece is arranged between the first coil and the second coil, and a first magnet is arranged on the elastic piece away from the printed circuit board;
the encoder assembly comprises an encoder shaft and a second magnet, wherein the second magnet is arranged on the outer surface of the encoder shaft so as to drive the second magnet to rotate; the second magnet passes through the printed circuit board area where the elastic piece is located.
Optionally, the encoder counting apparatus further comprises:
the detection assembly is arranged on the printed circuit board, is electrically connected with the counting assembly based on the printed circuit board and is used for detecting the power supply voltage of the encoder counting device and the induced current generated on the first coil and the second coil; the detection assembly is also electrically connected with the encoder assembly and is used for detecting the rotating speed of the encoder shaft;
an output component;
the processor is arranged on the printed circuit board, is respectively electrically connected with the detection assembly and the output assembly, and is used for determining the power supply state of the encoder counting device according to the power supply voltage detected by the detection assembly and controlling the output assembly to output the induced current.
Optionally, the track circular arc of the second magnet rotation intersects with the extending direction of the elastic sheet departing from the printed circuit board.
Optionally, at least two counting assemblies are arranged, and the extending direction of the elastic sheet on each counting assembly, which deviates from the printed circuit board, intersects with the circular arc of the track along which the second magnet rotates.
Optionally, the encoder comprises a housing and at least one encoder counting device according to any one of claims 1 to 4, the housing being accommodated on the exterior of the encoder shaft, the printed circuit board being arranged on an inner wall of the housing facing the encoder shaft.
In addition, to solve the above problem, an embodiment of the present invention further provides a counting method, including:
receiving the power supply voltage and the rotation speed sent by the detection assembly;
judging whether the encoder counting device is in a power-down state or not according to the power supply voltage, and judging whether the encoder shaft is in a rotating state or not according to the rotating speed;
if the encoder counting device is in the power-down state and the encoder shaft is in the rotating state, acquiring induced current information output by the output assembly;
and calculating the rotation number of the encoder counting device according to the induction current information.
Optionally, the determining, according to the power supply voltage, whether the encoder counting device is in a power-down state, and the determining, according to the rotation speed, whether the encoder shaft is in a rotation state includes:
comparing the power supply voltage with a first preset threshold value, and comparing the rotation speed with a second preset threshold value;
if the power supply voltage is less than or equal to the first preset threshold, judging that the encoder counting device is in a power-down state;
and if the rotating speed is greater than the second preset threshold value, judging that the encoder shaft is in a rotating state.
Optionally, the step of calculating the number of turns of the encoder counting device according to the induced current information includes:
generating a target oscillogram according to the induction current value and the induction time in the induction current information;
acquiring each wave crest of the target oscillogram, and calculating a time difference value between adjacent wave crests;
and generating a variation trend oscillogram based on the time difference, counting the number of wave crests in the variation trend oscillogram, and taking the number of the wave crests as the number of rotation turns.
Further, to achieve the above object, the present invention also provides a counting apparatus comprising: a memory, a processor and a counting program stored on the memory and executable on the processor, the counting program when executed by the processor implementing the steps of the counting method as described above.
Furthermore, to achieve the above object, the present invention further provides a readable storage medium having a counting program stored thereon, the counting program, when executed by a processor, implementing the steps of the counting method as described above.
According to the encoder counting device provided by the embodiment of the invention, under the condition that the encoder counting device is powered off, the encoder shaft is rotated through external force, so that the second magnet fixed on the encoder shaft is driven to rotate, attractive force and repulsive force exist between the second magnet and the first magnet fixed on the elastic sheet, the first magnet swings in opposite directions under the action of the attractive force and the repulsive force, the swing of the first magnet enables magnetic fluxes passing through the first metal coil and the second metal coil positioned on opposite sides of the elastic sheet to change, so that induced currents are generated in the first metal coil and the second metal coil, the generated induced currents can be used for multi-turn counting of the encoder counting device, the power supply requirement of the multi-turn counting is met under the condition that the power is off, and the multi-turn counting of the encoder is realized.
Drawings
Fig. 1 is a schematic hardware structure diagram of an encoder counting apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a counting assembly and an encoder shaft assembly according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a counting device of an encoder according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure diagram of an embodiment of a counting apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart of a first embodiment of the counting method according to the present invention;
FIG. 6 is a graph of current versus time for a first embodiment of a counting method according to the invention;
FIG. 7 is a waveform diagram of a variation trend in the first embodiment of the counting method according to the present invention;
fig. 8 is a functional block diagram of a counting device according to an embodiment of the present invention.
The reference numbers illustrate:
reference numerals Name (R) Reference numerals Name (R)
100 Encoder for encoding a video signal 312 Elastic sheet
10 Shell body 313 First coil
20 Encoder shaft 314 Second coil
30 Encoder counting device 315 First magnet
311 Printed circuit board 321 Second magnet
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
Fig. 1 and fig. 2 show a hardware structure diagram of a counting assembly and an encoder assembly according to an embodiment of the present invention, fig. 2 shows a structure diagram of a counting assembly and an encoder assembly according to an embodiment of the present invention, and fig. 2 is an enlarged view of a portion a in fig. 1.
Optionally, a counting assembly including a printed circuit board 311, an elastic sheet 312 disposed on the printed circuit board 311, a first coil 313 and a second coil 314; the elastic piece is arranged between the first coil and the second coil, and the elastic piece is provided with a first magnet 315 deviating from the printed circuit board;
optionally, the encoder assembly includes an encoder shaft 20 and a second magnet 321, and the second magnet 321 is disposed on an outer surface of the encoder shaft 20 to drive the second magnet 321 to rotate; the second magnet 321 passes through the region of the printed circuit board 311 where the resilient tab 312 is located.
Optionally, the circular arc of the track rotated by the second magnet 321 intersects with the extending direction of the elastic piece 312 away from the printed circuit board 311.
Optionally, at least two counting assemblies are provided, and the extending direction of the elastic piece 312 on each counting assembly away from the printed circuit board 311 intersects with the circular arc of the track of the second magnet 321.
Optionally, the encoder comprises a housing 10 and at least one encoder counting device, the housing 10 is arranged outside the encoder shaft 20, and the printed circuit board 311 is arranged on the inner wall of the housing 10 facing the encoder shaft 20.
When the encoder cuts down the power supply in this embodiment, the encoder axle takes place to rotate under the effect of external force, the drive sets up the second magnet that sets up in encoder axle surface and encloses the encoder axle and rotate, and the rotation orbit of second magnet is adjacent with first magnet, because have the characteristics that homopolar repulsion, heteropolar attraction mutually between the magnet, first magnet will be under the effect of effect between the magnet, the swing of producing first metal coil of erroneous tendency or second metal coil, thereby the magnetic flux that makes to pass in first metal coil and the second metal coil changes, according to Faraday's law of electromagnetism, will produce induced current between first metal coil and the second metal coil, the induced current of production can be used to the required power consumption of encoder count.
When the encoder shaft rotates slowly, the induced current in the first metal coil and the second metal coil is generated due to the swinging of the first magnet, when the encoder shaft rotates quickly, the second magnet is close to the first magnet quickly and is far away from the first magnet quickly, the first magnet does not swing under the action of the acting force between the magnets, the second magnet is far away from the first magnet, and under the condition, the magnetic flux passing through the first metal coil and the second metal coil is changed due to the quick rotation of the second magnet, so that the induced current is generated.
The inner wall of the encoder shell facing the encoder shaft can be provided with a plurality of counting assemblies, the extending direction of the elastic sheet on each counting assembly, which deviates from the printed circuit board, is intersected with the track circular arc of the second magnet in a rotating mode, the plurality of counting assemblies can be arranged to determine the rotating direction of the encoder shaft, and specifically, the rotating direction of the encoder shaft is determined by acquiring the sequence of induced currents generated in the metal coils on each counting assembly.
Fig. 3 is a schematic diagram of a hardware structure of an encoder counting apparatus according to an embodiment of the present invention.
In this embodiment, the encoder counting device is used for generating an induced current meeting the power supply requirement of the encoder counting.
Alternatively, the encoder counting device may be disposed in the encoder internal structure.
The encoder counting apparatus comprises a processor 101, an output component 102, a detection component 103, a counting component 104 and an encoder component 105. The processor 101 is arranged on the printed circuit board, the processor 101 is electrically connected with the detection component 103 and the output component 102 respectively, and the processor 101 is used for determining the power supply state of the encoder counting device according to the power supply voltage detected by the detection component 103 and controlling the output component 102 to output an induced current; the detection component 103 is arranged on the printed circuit board, and the detection component 103 is electrically connected with the counting component 104 based on the printed circuit board and is used for detecting the power supply voltage of the encoder counting device and the induced current generated on the first coil and the second coil; the detecting element 103 is further electrically connected to the encoder element 105 for detecting the rotational speed of the encoder shaft.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The counting terminal (also called terminal, equipment or terminal equipment) in the embodiment of the invention can be a mobile terminal equipment with data processing function and data storage function, such as a PC, a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 4, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 3 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 4, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a counting program.
In the terminal shown in fig. 4, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a counting program stored in the memory 1005, which when executed by the processor implements the operations in the counting method provided by the embodiments described below.
Based on the above-mentioned encoder counting apparatus, a first embodiment of the present invention is provided, and referring to fig. 5, fig. 5 is a schematic flow chart of the first embodiment of the counting method of the present invention, where the counting method includes the following steps:
and step S10, receiving the power supply voltage and the rotating speed sent by the detection component.
In this embodiment, the detection assembly is connected with the internal circuit board of the encoder, so that the power supply voltage of the encoder can be acquired, and the detection assembly can also be connected with the encoder assembly to acquire the rotation speed of the encoder shaft. The technical problem to be solved by the method is to judge whether the encoder is in a power-down state or not, and the technical problem to be solved by the method is to judge whether the encoder is in the power-down state or not and how to supply power to the encoder counting device when the encoder shaft rotates under the action of external force so as to count the number of rotation turns of the encoder shaft and to obtain the rotation speed is to judge whether the encoder shaft is in the rotation state or not.
And step S20, judging whether the encoder counting device is in a power-down state or not according to the power supply voltage, and judging whether the encoder shaft is in a rotating state or not according to the rotating speed.
According to the method, a counting assembly and an encoder assembly are installed in the main structure of the encoder, when the encoder is in a power failure state and an encoder shaft rotates under the action of external force, induced current can be generated through the counting assembly and the encoder assembly, the generated induced current can be used for counting work of the encoder, the generated induced current is regular in time, and the regularity can be used for calculating the number of rotation turns of the encoder shaft.
And step S30, if the encoder counting device is in the power-down state and the encoder shaft is in the rotating state, acquiring the induced current information output by the output assembly.
As shown in fig. 2, when the encoder is in a power-down state and the encoder shaft rotates under an external force, the second magnet is driven to rotate (the rotation direction is not limited), and when an attractive force and a repulsive force (opposite poles attract and same poles repel) exist between the first magnet and the second magnet, the first magnet fixed on the elastic sheet swings (shown as left-right swing in fig. 2) due to the movement of the second magnet, and the magnetic flux passing through the metal coils on the two sides of the elastic sheet changes due to the swing of the first magnet. The first magnet swings to enable the metal coil to generate induction current, and the induction current shows a certain regularity along with the time of the rotation of the encoder shaft.
And step S40, calculating the rotation number of the encoder counting device according to the induction current information.
It can be appreciated that when the encoder shaft starts to rotate, the first magnet swings, so that an induced current is generated in the metal coil, and by acquiring information (current value and corresponding time) of the generated induced current, a current-time relationship graph can be plotted in a current-time coordinate system, as shown in fig. 6, for example only. When the second magnet passes through the first magnet each time, attractive force and repulsive force are brought to the first magnet, but no matter the attractive force or the repulsive force, the first magnet is assisted, namely, the first magnet swings with increased force, the swinging speed of the first magnet is higher, the frequency of wave peaks in fig. 6 is higher, namely, the frequency of occurrence of induced current peak values is higher, and the frequency of the second magnet passing through the first magnet, namely the number of turns of rotation of the encoder shaft can be calculated according to the rule expressed by the induced current in the induced current information.
Specifically, the step S20 is a step of refining, including:
step a1, comparing the power supply voltage with a first preset threshold value, and comparing the rotation speed with a second preset threshold value.
Step a2, if the power supply voltage is less than or equal to the first preset threshold, determining that the encoder counting device is in a power-down state.
Step a3, if the rotation speed is greater than the second preset threshold, determining that the encoder shaft is in a rotation state.
In this embodiment, the first preset threshold may be zero, or may also be a value slightly greater than zero, for example, 0.5, a value of the first preset threshold is also related to a unit of the power supply voltage, and when the unit of the power supply voltage is V (volt) or mV (millivolt), the value of the first preset threshold will be different, and considering that even though the encoder is in a power-down state, an electromotive force may exist in an internal circuit thereof, and the electromotive force (i.e., the power supply voltage) acquired by the detection component may not be zero, but is certainly a very small value; the second preset threshold may be zero or a value slightly larger than zero, and a value of the second preset threshold is related to a value unit of the speed, and considering that if a slow rotation speed of the encoder shaft occurs, the first magnet will also slightly swing, and according to the faraday's law of electromagnetic induction, the induced current generated in this way is very small, which may not be enough to supply power for the counting operation of the encoder, which is also a reason for leading out the second preset threshold.
Specifically, the step S40 is a step of refining, including:
and b1, generating a target waveform according to the induction current value and the induction time in the induction current information.
And b2, acquiring each wave peak of the target oscillogram, and calculating the time difference between adjacent wave peaks.
And b3, generating a variation trend waveform chart based on the time difference, counting the number of wave crests in the variation trend waveform chart, and taking the number of the wave crests as the number of turns.
In this embodiment, the target waveform diagram refers to a diagram of a corresponding relationship between the induced current and the time for generating the induced current, as shown in fig. 6, the purpose of calculating the time difference between adjacent peaks is to know that, according to faraday's law of electromagnetic induction, when the first magnet is closest to the metal coil, the induced current will reach the maximum value (of this oscillation), i.e. the peak in fig. 6, when the time difference between two peaks is small, it indicates that the first magnet oscillates faster, in an actual application scenario, when the second magnet just passes through the first magnet, the oscillation speed of the first magnet is the maximum, when the second magnet is far away from the first magnet, due to inertia, the oscillation speed of the first magnet will be slower, when the second magnet next passes through the first magnet, the first magnet is stressed, the oscillation speed will be faster, and then the oscillation speed of the first magnet will be slower after the second magnet leaves, according to the rule, the time difference between adjacent peaks is calculated, which can represent the swing speed of the first magnet, after the time differences between all the peaks are calculated, the time differences are processed according to the sequence of the peaks to generate a trend waveform diagram, as shown in fig. 7, the first point from left to right in fig. 7 is the time difference between the first peak and the second peak in fig. 6, the second point is the time difference between the second peak and the third peak, and so on, and as can be seen from the rule, the number of the peaks in fig. 7 is the number of turns of the encoder shaft.
According to the counting method provided by the embodiment of the invention, whether the counting device of the encoder is in a power-down state or not and whether the encoder shaft is in a rotating state or not are judged by receiving the power supply voltage and the rotating speed sent by the detection assembly, when the encoder is in the power-down state and the encoder shaft is in the rotating state, the induced current information output by the output assembly is obtained, and the number of rotating turns of the encoder is calculated according to the obtained induced current information. The rotation turns of the encoder are calculated through the regularity of the induction current in the induction current information in time, and the accurate counting of the encoder is realized.
In addition, referring to fig. 8, an embodiment of the present invention further provides a counting apparatus, where the counting apparatus includes:
the receiving module 10 is used for receiving the power supply voltage and the rotation speed sent by the detection component;
the judging module 20 is configured to judge whether the encoder counting device is in a power-down state according to the power supply voltage, and judge whether the encoder shaft is in a rotating state according to the rotating speed;
an induced current information obtaining module 30, configured to obtain induced current information output by the output component if the encoder counting apparatus is in the power-down state and the encoder shaft is in the rotation state;
and the calculating module 40 is used for calculating the rotation number of the encoder counting device according to the induction current information.
In an embodiment, the determining module 20 includes:
and the comparison unit is used for comparing the power supply voltage with a first preset threshold value and comparing the rotating speed with a second preset threshold value.
And the first judgment unit is used for judging that the encoder counting device is in a power-down state if the power supply voltage is less than or equal to the first preset threshold value.
And the second judging unit is used for judging that the encoder shaft is in a rotating state if the rotating speed is greater than the second preset threshold value.
In one embodiment, the computing module 40 includes:
the target oscillogram generating unit is used for generating a target oscillogram according to the induction current value and the induction time in the induction current information;
the time difference value calculation unit is used for acquiring each wave crest of the target oscillogram and calculating the time difference value between adjacent wave crests;
and the counting unit is used for generating a variation trend oscillogram based on the time difference, counting the number of wave crests in the variation trend oscillogram, and taking the number of the wave crests as the number of turns.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An encoder counting apparatus, characterized in that the encoder counting apparatus comprises:
the counting assembly comprises a printed circuit board, an elastic sheet arranged on the printed circuit board, a first coil and a second coil; the elastic piece is arranged between the first coil and the second coil, and a first magnet is arranged on the elastic piece away from the printed circuit board;
the encoder assembly comprises an encoder shaft and a second magnet, wherein the second magnet is arranged on the outer surface of the encoder shaft so as to drive the second magnet to rotate; the second magnet passes through the printed circuit board area where the elastic piece is located.
2. The encoder counting apparatus of claim 1, wherein the encoder counting apparatus further comprises:
the detection assembly is arranged on the printed circuit board, is electrically connected with the counting assembly based on the printed circuit board and is used for detecting the power supply voltage of the encoder counting device and the induced current generated on the first coil and the second coil; the detection assembly is also electrically connected with the encoder assembly and is used for detecting the rotating speed of the encoder shaft;
an output component;
the processor is arranged on the printed circuit board, is respectively electrically connected with the detection assembly and the output assembly, and is used for determining the power supply state of the encoder counting device according to the power supply voltage detected by the detection assembly and controlling the output assembly to output the induced current.
3. The encoder counting device of claim 1 or 2, wherein the second magnet rotates along an arc of a track intersecting a direction of extension of the resilient tab away from the printed circuit board.
4. The encoder counting device of claim 1 or 2, wherein the number of the counting assemblies is at least two, and the extending direction of the elastic piece on each counting assembly away from the printed circuit board intersects with the track arc of the second magnet.
5. An encoder comprising a housing and at least one encoder counting device according to any one of claims 1 to 4, the housing being accommodated on the exterior of an encoder shaft, the printed circuit board being arranged on an inner wall of the housing facing the encoder shaft.
6. A counting method applied to the encoder counting device according to any one of claims 1 to 4, the counting method comprising the steps of:
receiving the power supply voltage and the rotation speed sent by the detection assembly;
judging whether the encoder counting device is in a power-down state or not according to the power supply voltage, and judging whether the encoder shaft is in a rotating state or not according to the rotating speed;
if the encoder counting device is in the power-down state and the encoder shaft is in the rotating state, acquiring induced current information output by the output assembly;
and calculating the rotation number of the encoder counting device according to the induction current information.
7. The counting method of claim 6, wherein said determining whether said encoder counting assembly is in a power-down state based on said supply voltage, and said determining whether said encoder shaft is in a rotational state based on said rotational speed comprises:
comparing the power supply voltage with a first preset threshold value, and comparing the rotation speed with a second preset threshold value;
if the power supply voltage is less than or equal to the first preset threshold, judging that the encoder counting device is in a power-down state;
and if the rotating speed is greater than the second preset threshold value, judging that the encoder shaft is in a rotating state.
8. The counting method of claim 6 or 7, wherein the step of calculating the number of rotations of the encoder counting device based on the induced current information comprises:
generating a target oscillogram according to the induction current value and the induction time in the induction current information;
acquiring each wave crest of the target oscillogram, and calculating a time difference value between adjacent wave crests;
and generating a variation trend oscillogram based on the time difference, counting the number of wave crests in the variation trend oscillogram, and taking the number of the wave crests as the number of rotation turns.
9. A counting device, characterized in that it comprises: memory, processor and a counting program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the counting method according to any one of claims 6 to 8.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a counting program which, when executed by a processor, carries out the steps of the counting method according to any one of claims 6 to 8.
CN202010438760.6A 2020-05-21 2020-05-21 Encoder counting device, counting method, apparatus and readable storage medium Active CN111680780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010438760.6A CN111680780B (en) 2020-05-21 2020-05-21 Encoder counting device, counting method, apparatus and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010438760.6A CN111680780B (en) 2020-05-21 2020-05-21 Encoder counting device, counting method, apparatus and readable storage medium

Publications (2)

Publication Number Publication Date
CN111680780A true CN111680780A (en) 2020-09-18
CN111680780B CN111680780B (en) 2023-05-23

Family

ID=72434214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010438760.6A Active CN111680780B (en) 2020-05-21 2020-05-21 Encoder counting device, counting method, apparatus and readable storage medium

Country Status (1)

Country Link
CN (1) CN111680780B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112762836A (en) * 2020-12-23 2021-05-07 长春汇通光电技术有限公司 Grating scale, grating scale reading method and device and computer storage medium
CN113505872A (en) * 2021-08-10 2021-10-15 长春禹衡光学有限公司 Wiegand signal circle counting device
CN115204347A (en) * 2022-08-17 2022-10-18 山东方能毅装备科技有限公司 Wave counting assembly based on floater

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050192727A1 (en) * 1994-05-09 2005-09-01 Automotive Technologies International Inc. Sensor Assemblies
CN101261140A (en) * 2008-04-23 2008-09-10 江西蓝天学院 Increment type optical-electric encoder code disc for digital method discriminating rotary direction
CN103269198A (en) * 2013-05-17 2013-08-28 浙江大学 Permanent magnet synchronous motor control method and system based on encoder automatic zero set
CN205482989U (en) * 2016-03-30 2016-08-17 长春汇通光电技术有限公司 Many rings of encoders based on hall sensor
CN109959400A (en) * 2017-12-25 2019-07-02 深圳市优必选科技有限公司 The method, apparatus and terminal device that absolute encoder parameter calculates
CN110417133A (en) * 2019-07-17 2019-11-05 杭州奥立达电梯有限公司 A kind of ultra-thin permanent magnetic synchronous traction machine of preposition dish-style of encoder

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050192727A1 (en) * 1994-05-09 2005-09-01 Automotive Technologies International Inc. Sensor Assemblies
CN101261140A (en) * 2008-04-23 2008-09-10 江西蓝天学院 Increment type optical-electric encoder code disc for digital method discriminating rotary direction
CN103269198A (en) * 2013-05-17 2013-08-28 浙江大学 Permanent magnet synchronous motor control method and system based on encoder automatic zero set
CN205482989U (en) * 2016-03-30 2016-08-17 长春汇通光电技术有限公司 Many rings of encoders based on hall sensor
CN109959400A (en) * 2017-12-25 2019-07-02 深圳市优必选科技有限公司 The method, apparatus and terminal device that absolute encoder parameter calculates
CN110417133A (en) * 2019-07-17 2019-11-05 杭州奥立达电梯有限公司 A kind of ultra-thin permanent magnetic synchronous traction machine of preposition dish-style of encoder

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
KLAAS P. PRUESSMANN等: "Advances in sensitivity encoding with arbitrary k-space trajectories", 《WILEY ONLINE LIBRARY》 *
印波等: "微电子封装设备精密定位***的分析", 《装备制造技术 》 *
黄巍等: "基于增量式光电编码器的永磁同步电机转子位置初始定位", 《伺服控制》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112762836A (en) * 2020-12-23 2021-05-07 长春汇通光电技术有限公司 Grating scale, grating scale reading method and device and computer storage medium
CN113505872A (en) * 2021-08-10 2021-10-15 长春禹衡光学有限公司 Wiegand signal circle counting device
CN115204347A (en) * 2022-08-17 2022-10-18 山东方能毅装备科技有限公司 Wave counting assembly based on floater
CN115204347B (en) * 2022-08-17 2023-02-24 山东方能毅装备科技有限公司 Wave counting assembly based on floater

Also Published As

Publication number Publication date
CN111680780B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN111680780A (en) Encoder counting device, counting method, equipment and readable storage medium
US20030117132A1 (en) Contactless sensing input device
EP1194833B1 (en) Method for pointing out information and a pointing device
US7304446B2 (en) Sensorless and brushless DC motor
KR101553960B1 (en) Angle detecting apparatus and torque detecting apparatus using the same
US20170070132A1 (en) Linear Vibrator
EP1542340A3 (en) Electric machine with position sensor and controlling circuit
EP3839504A2 (en) Sensor
JP2017072170A (en) Bearing with wireless sensor
JP2019103322A (en) Outer rotor type motor
EP0909962A2 (en) Pulse signal generation method and apparatus
EP1180847A1 (en) Electric motor
US6483294B1 (en) Transducer featuring magnetic rotor concentrically arranged in relation to multi-phase coil
CN114509930B (en) Electronic watch crown module and electronic equipment
JPH07198736A (en) Rotation sensor and its manufacture
EP1456807A1 (en) Contactless sensing input device
CN101053148B (en) Counter electro-motoric force based functional status detection of an electro-motor
JP2007166450A (en) Portable device and input method of portable device
Jagadish et al. Hand gesture recognition system for deaf and dumb persons
JP2018048902A (en) Encoder device, driving device, stage device, and robot device
EP3644658B1 (en) Optimizing utilization of a wireless position sensor
JP2018054573A (en) Encoder device, driving device, stage device, and robot device
CN112689765A (en) Flexible electronic equipment and bending speed detection device thereof
US20180248437A1 (en) Motor and spinning machine
CN211193867U (en) Rotary joint device and exoskeleton apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant