Electromagnetic encoder switch and method for calculating rotation information of a rotor
By using an LC resonant circuit with an electromagnetic encoder switch and an antenna system, the rotation information of the rotating wheel is automatically acquired, solving the problem of low efficiency in the existing technology and realizing efficient processing of the rotation information.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN HUION ANIMATION TECH
- Filing Date
- 2021-11-01
- Publication Date
- 2026-06-12
AI Technical Summary
Existing coded switches are inefficient at acquiring information about the rotation of the wheel and cannot achieve automated processing.
An electromagnetic coded switch is used, and an LC resonant circuit and an antenna are used to transmit and receive electromagnetic waves. The energy exchange of the LC resonant circuit generates a free oscillation signal, and the MCU processor analyzes the signal frequency and amplitude to determine the rotation information of the wheel.
It enables automated and high-speed acquisition of rotor rotation information, thereby improving operational efficiency.
Smart Images

Figure CN114070293B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic sensor technology, and in particular to a method for calculating the rotation information of an electromagnetic coded switch and a rotating wheel. Background Technology
[0002] Common coded switches include mechanical, photoelectric, and Hall effect switches. All of them transmit the rotation information of a manually operated rotating wheel (or disk) to a microcontroller, which then determines the rotation direction and performs a series of operations accordingly. This manual method is inefficient; therefore, providing a way to automatically acquire the wheel's rotation information is a pressing problem that needs to be solved. Summary of the Invention
[0003] In view of the shortcomings of the prior art, the present invention provides an electromagnetic coded switch, comprising: a rotating wheel assembly, the rotating wheel assembly including: an LC resonant circuit, the LC resonant circuit including an inductor L and a capacitor C connected to the inductor L, the inductor L having a magnetic core, the inductor L being used to receive and transmit electromagnetic waves; a rotating wheel, the LC resonant circuit being disposed on the rotating wheel; a transceiver unit, the transceiver unit including: an antenna, disposed below the rotating wheel, for transmitting electromagnetic waves of a preset frequency during a transmission cycle, so that the LC resonant circuit receives energy during the transmission cycle; and an antenna selection switch connected to the antenna.
[0004] Optionally, the wheel assembly further includes a bearing, through which the wheel is fixed above the antenna.
[0005] Optionally, the transceiver unit further includes: a first amplifier and a second amplifier connected in series with the antenna selection switch, a comparator, an MCU processor and a wireless module, a detector and a sample-and-hold circuit connected in series between the second amplifier and the MCU processor, and an antenna transmit signal driver connected in series between the antenna selection switch and the MCU processor.
[0006] Optionally, the electromagnetic encoder switch further includes: a USB interface connected to the MCU processor and a power management and rechargeable battery connected in series with the USB interface.
[0007] A second aspect of the present invention provides a method for calculating the rotation information of a rotating wheel. The method is based on the aforementioned electromagnetic coded switch and includes: transmitting electromagnetic waves at a preset frequency during a transmission cycle via an antenna disposed below the rotating wheel, causing an LC resonant circuit above the antenna to receive energy; during the antenna's reception cycle, exchanging energy through the inductor L and capacitor C of the LC resonant circuit to generate a free oscillation signal at its inherent resonant frequency, which is then transmitted to the antenna; amplifying and analyzing the free oscillation signal received by the antenna to obtain the frequency and amplitude of the free oscillation signal; and determining the rotation information of the rotating wheel based on the frequency and amplitude of the oscillation signal.
[0008] Optionally, the electromagnetic encoder switch includes three sets of LC resonant circuits, which are arranged at equal intervals on the PCB board of the rotating wheel. The magnetic core of the inductor L of each LC resonant circuit is cylindrical, and the axis of the magnetic core is perpendicular to the antenna. The resonant frequencies of the three sets of LC resonant circuits are different from each other.
[0009] Optionally, the inductor is placed at an angle on the PCB board of the rotating wheel.
[0010] Optionally, the inductor L of the LC resonant circuit includes an irregularly shaped magnetic core, the two ends of which have different sizes in cross-section.
[0011] A third aspect of the present invention provides a rotation information calculation device, comprising: a transceiver unit for transmitting electromagnetic waves at a preset frequency during a transmission cycle via an antenna disposed below the rotating wheel, such that an LC resonant circuit above the antenna receives energy; an exchange unit for exchanging energy through the inductor L and capacitor C of the LC resonant circuit during the reception cycle of the antenna to generate a free oscillation signal at an inherent resonant frequency, which is then transmitted to the antenna; a processing unit for amplifying and analyzing the free oscillation signal received by the antenna to obtain the frequency and amplitude of the free oscillation signal; and a determination unit for determining the rotation information of the rotating wheel based on the frequency and amplitude of the oscillation signal.
[0012] A fourth aspect of this application provides a computer-readable storage medium storing at least one executable instruction, which, when executed on a computing device, causes the computing device to perform the method for calculating the rotation information of a wheel as described in any of the above embodiments.
[0013] A fifth aspect of this application provides a computer program product including one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. Attached Figure Description
[0014] Figure 1 A system block diagram of an electromagnetic coded switch provided in an embodiment of this application;
[0015] Figure 2a A flowchart illustrating a method for calculating the rotation information of a rotating wheel, provided in an embodiment of this application;
[0016] Figure 2b An electromagnetic coded switch signal amplitude diagram is provided for an embodiment of this application;
[0017] Figure 2c Another electromagnetic coded switch signal amplitude diagram provided in this application embodiment;
[0018] Figure 2d This is a shape diagram of the electromagnetic coded switch core provided in an embodiment of this application;
[0019] Figure 2e A schematic diagram of a possible magnetic core provided for an embodiment of this application;
[0020] Figure 3 This is a schematic diagram of the structure of a possible rotation information computing device provided in an embodiment of this application;
[0021] Figure 4 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0022] The technical solutions in the embodiments of the present invention will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0023] Please see Figure 1 , Figure 1 This application provides a system block diagram of an electromagnetic coded switch 10. The electromagnetic coded switch 10 includes a rotating wheel assembly 11, which includes: an LC resonant circuit 111, which includes an inductor L and a capacitor C connected to the inductor L. The inductor L has a magnetic core and is used to receive and transmit electromagnetic waves; a rotating wheel 112 on which the LC resonant circuit 111 is disposed; and a transceiver unit 12, which includes: an antenna 121 disposed below the rotating wheel 112, used to transmit electromagnetic waves of a preset frequency during a transmission cycle, so that the LC resonant circuit 111 receives energy during the transmission cycle; and an antenna selection switch 122 connected to the antenna.
[0024] It should be noted that the rotating wheel assembly 11 may also include a coil assembly, which is used to receive electromagnetic waves and generate electrical energy, and can also be used to transmit pressure-sensitive signals. Of course, the coil assembly 10 may consist of only one coil, which can realize the functions of generating electrical energy and transmitting pressure-sensitive signals, or it may include two coils, one coil for generating electrical energy and the other coil for transmitting pressure-sensitive signals.
[0025] In the rotating wheel assembly 11, the magnetic core inductor L and the capacitor C are soldered to the PCB board inside the rotating wheel, and one to three sets of LC resonant circuits can be provided.
[0026] In practical applications, the rotating wheel 112 is fixed above the antenna by bearings, making the rotation more stable and flexible.
[0027] The LC resonant circuit 111 includes an inductor L and a capacitor C connected to the inductor L. A ferrite core is disposed in the inductor L. By changing the position of the core in the inductor L, the inductance of the inductor L is changed, thereby changing the resonant frequency of the LC resonant circuit 111.
[0028] The transceiver unit 12 includes an antenna 121 coupled to the inductor L, an antenna selection switch 122 connected to the antenna 121, a first amplifier 123, a second amplifier 124, a comparator 125, an MCU processor 126 connected in series with the antenna selection switch 122, a detector 128 and a sample-and-hold circuit 129 connected in series between the second amplifier 124 and the MCU processor 126, an antenna transmit signal driver 130 connected in series between the antenna selection switch 122 and the MCU processor 126, a USB interface (not shown) connected to the MCU processor 126, and a power management unit (not shown) and a rechargeable battery (not shown) connected in series with the USB interface (not shown).
[0029] In practical applications, the antenna 121 is constructed from a ring-shaped copper foil trace. The width and shape of the copper foil determine the electrical performance characteristics of the antenna 121. The copper foil can be distributed in both the X and Y directions, and the shape of the antenna 121 in both directions is consistent, both being a "U" shape. One end of the antenna 121 is connected to the input terminal of the first amplifier 123 through the antenna selection switch 122, and the other end of the antenna 121 is grounded or directly grounded through the antenna selection switch 122.
[0030] In an optional embodiment of the present invention, the antenna selection switch 122 is an 8-to-1 analog switch, and the number of 8-to-1 analog switches used is selected according to the number of antennas 121, generally 5 to 8. The first amplifier 123 and the second amplifier 124 are integrated operational amplifiers with a low-noise gain-bandwidth product greater than 10MHz. The MCU processor 126 has ADC, USB, and SPI interfaces, and its operating clock frequency is 40MHz. The detector 128 is a diode detector circuit. The antenna transmit signal driver 130 is an emitter follower circuit. The wireless communication module is a Bluetooth module with an SPI interface. The sample-and-hold circuit 129 is composed of an RC integrator circuit.
[0031] It should be noted that the amplification and MCU control sections can be integrated into a single chip, and then communicate with the product's main control MCU via a serial port.
[0032] This application embodiment also provides a method for calculating the rotation information of a rotating wheel. The calculation method is based on the electromagnetic coded switch described above. Please refer to Figure 2, which is a flowchart illustrating a method for calculating the rotation information of a rotating wheel provided in this application embodiment, including:
[0033] 101. Electromagnetic waves are transmitted at a preset frequency during the transmission cycle through an antenna located below the rotating wheel, so that the LC resonant circuit above the antenna receives energy;
[0034] 102. During the reception period of the antenna, energy is exchanged between the inductor L and the capacitor C of the LC resonant circuit to generate a free oscillation signal at the inherent resonant frequency, which is then transmitted to the antenna.
[0035] 103. The free oscillation signal received by the antenna is amplified and analyzed to obtain the frequency and amplitude of the free oscillation signal;
[0036] 104. Determine the rotation information of the wheel based on the frequency and amplitude of the free oscillation signal.
[0037] The MCU performs judgment and calculation based on the obtained free oscillation signal to obtain the rotation information of the wheel, which includes position information and rotation speed information. It should be noted that the free oscillation signal can be a digital voltage signal or an analog voltage signal, and is not limited here.
[0038] There are several ways to determine the rotation information of the rotating wheel, including: 1. The electromagnetic encoding switch includes three sets of LC resonant circuits. These three sets of LC resonant circuits are arranged at equal intervals on the PCB board of the rotating wheel. The magnetic cores of the inductors L in each LC resonant circuit are cylindrical, and the axis of the magnetic core is perpendicular to the antenna. The resonant frequencies of the three sets of LC resonant circuits are different, i.e., the direction is identified by frequency. The three sets of LC resonant circuits are arranged at equal intervals on the PCB inside the rotating wheel. The inductor cores are cylindrical or I-shaped, and the axis of the magnetic core is perpendicular to the loop antenna. The resonant frequencies of the three sets of LC resonant circuits are different, such as A, B, and C. Clockwise rotation will detect the ABCABCABC combination sequence, and counterclockwise rotation will detect the ACBACBACB combination sequence. This allows the determination of the frequency and amplitude of the free oscillation signal, thereby determining the rotation information of the rotating wheel.
[0039] 2. The inductor is placed at an angle on the PCB board of the rotating wheel, and the direction is identified by the amplitude of the induced signal. The inductor is placed at an angle on the PCB inside the rotating wheel, such as... Figure 2a As shown. Due to the tilt of the magnetic core, the strength of the magnetic field lines passing through the core varies with the distance from the core to the antenna, and the amplitude of the induced signal entering the antenna will be as follows. Figure 2b Or as shown in 2c, the rotation direction of the wheel can be determined based on the change in signal amplitude.
[0040] The inductor L of the LC resonant circuit includes an irregularly shaped magnetic core, the two ends of which have different sizes in cross-section. Please refer to [link / reference needed]. Figure 2d This is a schematic diagram of a possible magnetic core provided in an embodiment of this application. It utilizes the amplitude of the induced signal to identify direction. The inductor uses an irregularly shaped magnetic core; because the cross-sectional shape of the core is larger at one end and smaller at the other, the magnetic field lines passing through the core will vary with the core area. Therefore, the amplitude of the induced signal entering the transmitting antenna will vary as follows: Figure 2b or Figure 2c As shown, the direction of rotation of the wheel can be determined based on the changes in signal amplitude.
[0041] This application also provides a rotation information calculation device; please refer to [link / reference]. Figure 3 The diagram below illustrates the structure of a rotation information computing device according to an embodiment of this application, comprising:
[0042] The transceiver unit 301 is used to transmit electromagnetic waves at a preset frequency during the transmission cycle through an antenna provided below the rotating wheel, so that the LC resonant circuit above the antenna receives energy.
[0043] The switching unit 302 is used to exchange energy through the inductor L and the capacitor C of the LC resonant circuit during the reception period of the antenna to generate a free oscillation signal at the inherent resonant frequency and send it to the antenna.
[0044] The processing unit 303 is used to amplify and analyze the free oscillation signal received by the antenna to obtain the frequency and amplitude of the free oscillation signal;
[0045] The determining unit 304 is used to determine the rotation information of the wheel based on the frequency and amplitude of the oscillation signal.
[0046] This application also provides another rotation information computing device, which is deployed on a server. Please refer to... Figure 4 , Figure 4 This is a schematic diagram of a server structure provided in an embodiment of the present invention. The server 400 can vary significantly due to different configurations or performance characteristics. It may include one or more central processing units (CPUs) 422 (e.g., one or more MCU processors) and a memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) for storing application programs 442 or data 444. The memory 432 and storage media 330 can be temporary or persistent storage. The program stored in the storage media 430 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server. Furthermore, the central MCU processor 422 may be configured to communicate with the storage media 430 and execute the series of instruction operations stored in the storage media 430 on the server 400.
[0047] Server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input / output interfaces 458, and / or one or more operating systems 441, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0048] The steps performed by the rotation information computing device in the above embodiments can be based on this. Figure 4 The server structure shown.
[0049] This application also provides a computer-readable storage medium storing at least one executable instruction, which, when executed on a computing device, causes the computing device to perform the image movement method described in any of the above embodiments.
[0050] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product.
[0051] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).
[0052] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0053] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0054] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0055] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0056] If the integrated unit is implemented as 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 this application, in essence, 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0057] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. An electromagnetic coded switch, characterized in that, include: The impeller assembly includes: An LC resonant circuit, comprising an inductor L and a capacitor C connected to the inductor L, wherein the inductor L has a magnetic core and is used to receive and transmit electromagnetic waves; A rotating wheel, with a PCB board disposed inside the rotating wheel, and the LC resonant circuit disposed on the PCB board; Transceiver unit, the transceiver unit comprising: An antenna, located below the rotating wheel, is used to transmit magnetic waves of a preset frequency during the transmission cycle, so that the LC resonant circuit receives energy during the transmission cycle. An antenna selection switch connected to the antenna. The LC resonant circuit is configured in one of the following three ways to identify the rotation direction of the wheel by utilizing the frequency or amplitude variation of the free oscillation signal received by the antenna from the LC resonant circuit: The first method: The LC resonant circuit is in multiple groups, and the multiple groups of LC resonant circuits are arranged at equal intervals on the PCB board. The magnetic core of the inductor L of each group of LC resonant circuits is cylindrical, and the axis of the magnetic core is perpendicular to the antenna. The resonant frequency of each group of LC resonant circuits is different. The second method: The inductor L is placed at an angle on the PCB board; The third method: The inductor L of the LC resonant circuit includes an irregularly shaped magnetic core, the two ends of the cross-section of which are different sizes.
2. The electromagnetic encoder switch according to claim 1, characterized in that, The impeller assembly also includes bearings. The rotating wheel is fixed above the antenna by the bearing.
3. The electromagnetic encoder switch according to claim 1, characterized in that, The transceiver unit further includes: A first amplifier and a second amplifier, a comparator, an MCU processor and a wireless module are connected in series with the antenna selection switch in sequence; a detector and a sample-and-hold circuit are connected in series between the second amplifier and the MCU processor; and an antenna transmit signal driver is connected in series between the antenna selection switch and the MCU processor.
4. The electromagnetic encoder switch according to claim 3, characterized in that, The electromagnetic encoding switch also includes: A USB interface connected to the MCU processor, and a power management and rechargeable battery connected in series with the USB interface.
5. A method for calculating the rotation information of a rotating wheel, characterized in that, The calculation method is based on the electromagnetic coded switch according to any one of claims 1 to 4, and includes: Electromagnetic waves are transmitted at a preset frequency during the transmission cycle through an antenna located below the rotating wheel, so that the LC resonant circuit above the antenna receives energy. During the reception period of the antenna, energy is exchanged between the inductor L and the capacitor C of the LC resonant circuit to generate a free oscillation signal at the inherent resonant frequency, which is then transmitted to the antenna. The free oscillation signal received by the antenna is amplified and analyzed to obtain the frequency and amplitude of the free oscillation signal; The rotation information of the wheel is determined based on the frequency and amplitude of the free oscillation signal.
6. The method for calculating the rotation information of the rotating wheel according to claim 5, characterized in that, The LC resonant circuit consists of 3 sets.
7. A rotating information computing device, characterized in that, include: The transceiver unit is used to transmit electromagnetic waves at a preset frequency during the transmission cycle through an antenna set below the rotating wheel, so that the LC resonant circuit above the antenna receives energy. A PCB board is set inside the rotating wheel, and the LC resonant circuit is set on the PCB board. The switching unit is used to exchange energy through the inductor L and capacitor C of the LC resonant circuit during the reception period of the antenna, and generate a free oscillation signal at the inherent resonant frequency to be sent to the antenna. The processing unit is used to amplify and analyze the free oscillation signal received by the antenna to obtain the frequency and amplitude of the free oscillation signal; The determining unit is configured to determine the rotation information of the rotating wheel based on the frequency and amplitude of the oscillation signal, wherein the rotation information of the rotating wheel includes the rotation direction. The LC resonant circuit is configured in one of the following three ways to identify the rotation direction of the wheel by utilizing the frequency or amplitude variation of the free oscillation signal received by the antenna from the LC resonant circuit: The first method: The LC resonant circuit is in multiple groups, and the multiple groups of LC resonant circuits are arranged at equal intervals on the PCB board. The magnetic core of the inductor L of each group of LC resonant circuits is cylindrical, and the axis of the magnetic core is perpendicular to the antenna. The resonant frequency of each group of LC resonant circuits is different. The second method: The inductor L is placed at an angle on the PCB board; The third method: The inductor L of the LC resonant circuit includes an irregularly shaped magnetic core, the two ends of the cross-section of which are different sizes.
8. A computer-readable storage medium, characterized in that, The storage medium stores at least one executable instruction, which, when executed on a computing device, causes the computing device to perform the method for calculating the rotation information of the wheel according to claim 5.