Encoder

By setting a symmetrical first magnet and a circumferentially arranged second magnet in the encoder, the magnetic field design is optimized, which solves the problem of low power generation efficiency of battery-free encoders and achieves a more efficient power generation effect.

CN119022967APending Publication Date: 2024-11-26FUJI ELECTRIC CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410517227.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-24
Filing Date
2024-04-28
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Existing battery-free encoders have low power generation efficiency when using Barkhausen characteristics to generate electricity, making it difficult to meet the demand for high-efficiency power generation.

Method used

A first magnet symmetrically arranged with respect to the axis of rotation and a plurality of second magnets arranged circumferentially on the axis of rotation are used to generate first and second magnetic fields to improve the power generation efficiency of the power generation element.

Benefits of technology

By optimizing the magnetic field design, the power generation efficiency has been improved, meeting the demand for high-efficiency power generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119022967A_ABST
    Figure CN119022967A_ABST
Patent Text Reader

Abstract

The present disclosure provides an encoder that improves the generation efficiency of generated power. The encoder includes: a first magnet provided symmetrically with respect to a rotating shaft and generating a first magnetic field to be detected by a magnetic sensor; and a plurality of second magnets arranged side by side in the circumferential direction of the rotating shaft and generating a second magnetic field for generating power by a power generating element.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to an encoder. Background Art

[0002] Patent Document 1 discloses a method for synchronizing a segment counter having a 1 pulse line (Wiegand line) sensor with a precise position sensor.

[0003] <Prior Art Literature>

[0004] <Patent Documents>

[0005] Patent Document 1: Japanese Patent No. 5730809 Summary of the invention

[0006] <Problems to be Solved by the Invention>

[0007] As a battery-less encoder, a power generation element that generates electricity using the Barkhausen characteristic is sometimes used. In the power generation element, it is desirable to increase the change in the magnetic field to increase the generated power.

[0008] The present disclosure provides an encoder that improves the efficiency of generating electric power.

[0009] <Methods used to solve the problem>

[0010] According to one aspect of the present disclosure, an encoder is provided, comprising: a first magnet, which is symmetrically arranged relative to a rotation axis and generates a first magnetic field to be detected by a magnetic sensor; and a plurality of second magnets, which are arranged in an array in the circumferential direction of the rotation axis and generate a second magnetic field that causes a generating element to generate electricity.

[0011] <Effects of the Invention>

[0012] According to the encoder of the present disclosure, it is possible to improve the efficiency of generating electric power. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is a diagram for explaining a servo motor system using the encoder according to the first embodiment.

[0014] Figure 2 This is a diagram for explaining the structure of a servo motor using the encoder according to the first embodiment.

[0015] Figure 3 This is a diagram for explaining the circuit configuration of the encoder according to the first embodiment.

[0016] Figure 4 This is a diagram for explaining the circuit configuration of the encoder according to the first embodiment.

[0017] Figure 5 This is a diagram for explaining the circuit configuration of the encoder according to the first embodiment.

[0018] Figure 6 This is a diagram for explaining the structure of the encoder according to the first embodiment.

[0019] Figure 7 This is a diagram for explaining the structure of the encoder according to the first embodiment.

[0020] Figure 8 This is a diagram for explaining the structure of the encoder according to the first embodiment.

[0021] Fig. 9 This is a diagram for explaining the structure of the encoder according to the first embodiment.

[0022] Fig.10 This is a diagram for explaining the generated electric power in the encoder according to the first embodiment.

[0023] Fig.11 This is a diagram for explaining the structure of an encoder according to the second embodiment.

[0024] Fig.12 This is a diagram for explaining the structure of an encoder according to the second embodiment.

[0025] Fig.13 This is a diagram for explaining the structure of an encoder according to the second embodiment.

[0026] Fig.14 This is a diagram for explaining the structure of an encoder according to the second embodiment.

[0027] Fig.15 This is a diagram for explaining the structure of an encoder according to the third embodiment.

[0028] Fig.16 This is a diagram for explaining the structure of an encoder according to the third embodiment.

[0029] Fig.17 This is a diagram for explaining the structure of an encoder according to the third embodiment.

[0030] Explanation of symbols

[0031] 1Servo motor system

[0032] 10Servo motor

[0033] 11 Motor

[0034] 11a Rotation axis

[0035] 11d disk

[0036] 12 Encoder

[0037] 12g power generation element

[0038] 12h1 first magnetic sensor

[0039] 12h2 Second magnetic sensor

[0040] 12j circuit board

[0041] 12m1, 12m2 magnet

[0042] 12m2a, 12m2b, 12m2c, 12m2d, 12m2e, 12m2f, 12m2g, 12m2h magnets 32m2a, 32m2c, 32m2e, 32m2g magnets

[0043] 42m2a, 42m2b, 42m2c, 42m2e, 42m2f, 42m2g magnets

[0044] 20 Servo controller DETAILED DESCRIPTION

[0045] Hereinafter, the embodiments of the present invention will be described with reference to the accompanying drawings. It should be noted that, in the descriptions and drawings of the various embodiments, the same symbols are sometimes given to the components having substantially the same or corresponding functional configurations to omit repeated descriptions. In addition, for ease of understanding, the proportions of the various parts in the drawings may sometimes be different from the actual ones.

[0046] <<First Embodiment>>

[0047] An encoder according to the first embodiment is described. An encoder according to the first embodiment includes a first magnet that is symmetrically arranged with respect to a rotation axis and generates a first magnetic field to be detected by a magnetic sensor; and a plurality of second magnets that are arranged in a circumferential direction of the rotation axis and generate a second magnetic field that causes a power generation element to generate power.

[0048] <Servo Motor System>

[0049] First, a servo motor system using the encoder according to the present embodiment will be described. Figure 1 FIG. 1 is a diagram for explaining a servo motor system 1 using an encoder 12 as an example of an encoder according to the present embodiment.

[0050] The servo motor system 1 includes a servo motor 10 and a servo controller 20. The servo controller 20 obtains at least one of position information and rotation information of a rotating shaft 11a from the servo motor 10. The servo controller 20 controls the servo motor 10 using at least one of the obtained position information and rotation information.

[0051] The servo motor 10 includes a motor 11 and an encoder 12. The motor 11 is connected to a servo controller 20 via a wiring L1. The encoder 12 is connected to the servo controller 20 via a wiring L2.

[0052] The motor 11 rotates the rotating shaft 11a in the direction of the arrow AR based on the command from the servo controller 20. Specifically, the motor 11 rotates the rotating shaft 11a in the direction of the arrow AR based on the power supplied from the servo controller 20. The servo controller 20 controls the motor 11 by supplying power controlled by the wiring L1. The motor 11 is, for example, an AC (Alternating Current) motor, a DC (Direct Current) motor, or the like.

[0053] The encoder 12 detects the change of the magnetic field and detects at least one of the position information and the rotation information of the object such as the rotating shaft 11a of the motor 11. In addition, the encoder 12 outputs at least one of the detected position information and the rotation information to the servo controller 20 via the wiring L2. It should be noted that the position information of the rotating shaft 11a refers to, for example, the angle of the rotation direction of the rotating shaft 11a. The rotation information of the rotating shaft 11a refers to, for example, the rotation speed of the rotating shaft 11a or the number of rotations indicating how many times the rotating shaft 11a has rotated since a predetermined time.

[0054] <Servo motor 10>

[0055] Next, the structure of the servo motor 10 using the encoder 12 which is an example of the encoder according to the present embodiment will be described. Figure 2 This is a diagram for explaining the structure of the servo motor 10 using the encoder 12 as an example of the encoder according to the present embodiment. In addition, the line with an arrow shows the flow of supply of electric power or current.

[0056] <Motor 11>

[0057] The motor 11 rotates the rotating shaft 11a. The motor 11 includes known components such as a bearing for supporting the rotating shaft 11a, a winding constituting a stator for rotating the rotating shaft 11a, an iron core, and a permanent magnet constituting a rotor, and the like, and description thereof is omitted here. The motor 11 includes a disk 11d provided on the encoder 12 side of the rotating shaft 11a. As described later, a magnet 12m1 symmetrically provided with respect to the rotating shaft 11a and a plurality of magnets 12m2 arranged in a circumferential direction of the rotating shaft 11a are mounted on the disk 11d.

[0058] The disk 11d is fixed to the rotating shaft 11a. The disk 11d rotates together with the rotating shaft 11a as the rotating shaft 11a rotates in the direction of the arrow AR. A magnet 12m1 and a plurality of magnets 12m2 are fixed to the surface of the disk 11d on the encoder 12 side.

[0059] The magnet 12m1 and the plurality of magnets 12m2 are each a permanent magnet formed of neodymium, etc. When the magnet 12m1 and the plurality of magnets 12m2 are each rotated together with the disk 11d, the magnetic field on the encoder 12 side changes.

[0060] The magnet 12m1 is disposed to have an N pole and an S pole in a direction parallel to the surface of the disk 11d. The magnet 12m1 generates magnetic fields which are detected by the first magnetic sensor 12h1 and the second magnetic sensor 12h2, respectively.

[0061] The plurality of magnets 12m2 generate a magnetic field that causes the power generation element 12g to generate power. The plurality of magnets 12m2 are arranged in a Halbach array along the circumferential direction of the rotation shaft 11a. The details of the plurality of magnets 12m2 will be described later.

[0062] [Encoder 12]

[0063] The encoder 12 is described. The encoder 12 detects at least one of the position information and the rotation information of the rotating shaft 11a based on the magnetic field that changes due to the rotation of the magnet 12m1 and the plurality of magnets 12m2. The encoder 12 is an absolute encoder. The encoder 12 operates at least as a multi-turn encoder. That is, the encoder 12 counts the number of turns of the rotating shaft 11a. In addition, the encoder 12 generates the power required to operate the encoder 12 through the magnetic field that changes with the rotation of the plurality of magnets 12m2.

[0064] The encoder 12 includes a power generation element 12g, a rectifier circuit 12a, a stable power supply circuit 12b, and a polarity detection circuit 12d. In addition, the encoder 12 includes a drive circuit 12e1 and a drive circuit 12e2, a first magnetic sensor 12h1 and a second magnetic sensor 12h2, a signal processing circuit 12f1 and a signal processing circuit 12f2, a control circuit 12p, and a storage unit 12r. In addition, the encoder 12 includes a magnet 12m1 and a plurality of magnets 12m2. It should be noted that the rectifier circuit 12a and the stable power supply circuit 12b are collectively referred to as a power supply circuit 12n. In addition, the polarity detection circuit 12d, the drive circuit 12e1, the drive circuit 12e2, the signal processing circuit 12f1, and the signal processing circuit 12f2 are collectively referred to as a rotation detection circuit 12k.

[0065] The encoder 12 includes a power generation element 12g that generates power by changing the magnetic flux caused by movement, and a first magnetic sensor 12h1 and a second magnetic sensor 12h2 that measure the magnetic field. The power generation element 12g, the first magnetic sensor 12h1, and the second magnetic sensor 12h2 are each arranged on the motor 11 side of the encoder 12 in a manner that is easily affected by the magnetic field generated by the magnet 12m1 and the plurality of magnets 12m2.

[0066] [Power generation element 12g]

[0067] The power generation element 12g is an element that converts magnetic energy into electric pulses to generate electricity. The power generation element 12g is an element that generates electricity using Barkhausen characteristics. The power generation element 12g is, for example, a Wiegand wire as an energy harvesting generator (EHG: Energy Harvest Generator).

[0068] The power generation element 12g includes a hard core and a soft layer wound around the hard core. The hard core is formed of a material with a large coercive force. The soft layer is formed of a material with a small coercive force. When the direction of the external magnetic field is reversed, the power generation element 12g generates a power generation pulse.

[0069] For example, near the zero point of the external magnetic field reversal, the Wiegand wire generates an electric pulse regardless of the speed of change of the external magnetic flux. Therefore, the Wiegand wire generates constant power regardless of the rotation speed of the rotating shaft 11a. The Wiegand wire generates a stable electric pulse (voltage pulse) even in a slow magnetic flux change caused by a slow rotation (movement). The Wiegand wire generates an electric pulse at the moment of magnetic field reversal.

[0070] In the power generation element 12g, by utilizing an energy collection generator, the encoder 12 does not require a battery or an external power supply. That is, the encoder 12 is a battery-free encoder. The Wiegand wire can generate constant power regardless of the rotation speed of the rotating shaft 11a, and can obtain a stable power generation waveform even at low speed rotation, so it is suitable for use as the power generation element 12g of the encoder 12 as a battery-free encoder.

[0071] It should be noted that the power generation element 12g is not limited to the Wiegand wire, and any power generation element that generates power using the Barkhausen characteristic may be used.

[0072] The power generation element 12g generates power using the magnetic field generated by the magnet 12m2.

[0073] [First Magnetic Sensor 12h1 and Second Magnetic Sensor 12h2]

[0074] The first magnetic sensor 12h1 and the second magnetic sensor 12h2 each detect a magnetic field. More specifically, the first magnetic sensor 12h1 and the second magnetic sensor 12h2 each detect a magnetic field generated by a magnet 12m1 described later.

[0075] The first magnetic sensor 12h1 and the second magnetic sensor 12h2 are each, for example, a Hall element. The Hall element detects the magnetic field of the semiconductor element through which the driving current flows. In the encoder 12, the first magnetic sensor 12h1 and the second magnetic sensor 12h2 each mainly detect the magnetic field generated by the magnet 12m1. The Hall elements constituting the first magnetic sensor 12h1 and the second magnetic sensor 12h2 are respectively constituted by, for example, semiconductor elements such as indium antimonide (InSb), gallium arsenide (GaAs), etc. The Hall element outputs a voltage proportional to the driving current and the magnetic flux density that crosses the driving current.

[0076] The first magnetic sensor 12h1 outputs a detection signal of a magnetic field to the signal processing circuit 12f1. The first magnetic sensor 12h1 is supplied with a constant current Idr from the drive circuit 12e1. In addition, the second magnetic sensor 12h2 outputs a detection signal of a magnetic field to the signal processing circuit 12f2. The second magnetic sensor 12h2 is supplied with a constant current Idr from the drive circuit 12e2.

[0077] The power generated by the power generating element 12g is rectified by the rectifier circuit 12a, and the current (constant current Idr) made constant by the drive circuit 12e1 is supplied to the first magnetic sensor 12h1. In addition, the power generated by the power generating element 12g is rectified by the rectifier circuit 12a, and the current (constant current Idr) made constant by the drive circuit 12e2 is supplied to the second magnetic sensor 12h2.

[0078] It should be noted that although the encoder 12 has two magnetic sensors, the number of magnetic sensors is not limited to two. The encoder 12 may have three or more magnetic sensors. In addition, the measurement of the magnetic field can be performed by any element (magnetic detection element) that can detect magnetism, not limited to the Hall element. For example, a magnetoresistive effect element or the like may also be used as a magnetic sensor.

[0079] Reference Figure 3 The circuit configuration of the encoder 12 will be described. Figure 3 1 is a diagram for explaining a circuit configuration of an encoder 12 as an example of an encoder according to the present embodiment.

[0080] [Rectifier circuit 12a]

[0081] The rectifier circuit 12a rectifies the electric power generated by the power generation element 12g to generate a positive voltage. The rectifier circuit 12a includes a full-wave rectifier circuit 12a1 and a capacitor 12a2.

[0082] The full-wave rectifier circuit 12a1 rectifies the positive and negative pulses of the voltage Vgn generated by the power generation element 12g into positive pulses. The full-wave rectifier circuit 12a1 is a so-called diode bridge circuit. For example, when the power generation element 12g is a Wiegand line, the power generation element 12g generates positive and negative pulses. The full-wave rectifier circuit 12a1 converts the positive and negative pulses generated by the power generation element 12g into positive pulses.

[0083] The capacitor 12a2 stores the electric power generated by the power generation element 12g. The capacitor 12a2 smoothes the positive pulse generated by the full-wave rectifier circuit 12a1. The capacitor 12a2 is provided between the output terminal of the full-wave rectifier circuit 12a1 and the common potential. By smoothing the positive pulse by the capacitor 12a2, the smoothed voltage Vrc is output from the rectifier circuit 12a.

[0084] [Stable power supply circuit 12b]

[0085] The stabilized power supply circuit 12b changes the voltage output from the rectifier circuit 12a into a substantially constant voltage and outputs the voltage. The stabilized power supply circuit 12b includes a regulator 12b1. The regulator 12b1 is, for example, an LDO (Low Dropout) regulator.

[0086] When a voltage of a predetermined magnitude is inputted to the stabilized power supply circuit 12 b , the stabilized power supply circuit 12 b outputs a substantially constant voltage Vdd.

[0087] [Polarity detection circuit 12d]

[0088] The polarity detection circuit 12d detects the polarity of the electric power generated by the power generation element 12g. Figure 41 is a diagram for explaining the circuit structure of the polarity detection circuit 12d in the encoder 12. The polarity detection circuit 12d includes a comparator 12d1, a filter circuit 12d2, and a diode 12d3. The diode 12d3 prevents current from flowing from the polarity detection circuit 12d to the power generation element 12g. The filter circuit 12d2 is a low-pass filter including a resistor 12d2a and a capacitor 12d2b.

[0089] The comparator 12d1 compares the voltage Vgns with a potential (reference potential Vref2) serving as a reference, and outputs the comparison result to the control circuit 12p. The comparator 12d1 is a so-called comparator. The comparator 12d1 includes a differential amplifier 12d1a, and resistors 12d1b, 12d1c, and 12d1d. Power having a voltage Vdd is supplied to the differential amplifier 12d1a from the stabilized power supply circuit 12b. The differential amplifier 12d1a compares the voltage Vgns obtained by smoothing the voltage Vgn outputted by the power generation element 12g by the filter circuit 12d2 with the reference potential Vref2 generated by dividing the voltage Vdd by the resistors 12d1c and 12d1d. Furthermore, the differential amplifier 12d1a outputs the comparison result as a polarity signal Sp1, which is a voltage signal, to the control circuit 12p. The resistor 12d1b is a feedback resistor.

[0090] [Drive circuit 12e1 and drive circuit 12e2]

[0091] The drive circuit 12e1 and the drive circuit 12e2 are so-called constant current circuits, which supply a constant current Idr to the first magnetic sensor 12h1 and the second magnetic sensor 12h2, respectively. The drive circuits 12e1 and 12e2 each operate as a constant current source. The encoder 12 drives the first magnetic sensor 12h1 and the second magnetic sensor 12h2, which are Hall elements, respectively with the constant current Idr.

[0092] The drive circuit 12e1 supplies drive power to the first magnetic sensor 12h1 as a Hall element so that a constant current flows as a drive current to the first magnetic sensor 12h1. In addition, the drive circuit 12e2 supplies drive power to the second magnetic sensor 12h2 as a Hall element so that a constant current flows as a drive current to the second magnetic sensor 12h2.

[0093] Figure 5 1 is a diagram for explaining the circuit structure of the drive circuit and the magnetic sensor in the encoder 12 as an example of the encoder according to the present embodiment. It should be noted that since the drive circuit 12e1 and the drive circuit 12e2 have the same circuit structure, Figure 5In the description, the driving circuit 12e1 and the driving circuit 12e2 are each described as the driving circuit 12e. Figure 5 In FIG. 1 , a bridge circuit including a resistor 12ha, a resistor 12hb, a resistor 12hc, and a resistor 12hd is used to equivalently represent a first magnetic sensor 12h1 and a second magnetic sensor 12h2 as Hall elements as magnetic sensors 12h.

[0094] The drive circuit 12e includes a transistor 12ea, a current detection resistor 12eb, and a differential amplifier 12ec. In addition, the drive circuit 12e includes a resistor 12ed, a Zener diode 12ee, and a capacitor 12ef.

[0095] The transistor 12ea is controlled so that a constant current flows in the magnetic sensor 12h. The output terminal of the differential amplifier 12ec is connected to the gate terminal of the transistor 12ea. The differential amplifier 12ec outputs a voltage based on the potential difference between the + terminal and the - terminal from the output terminal. The drive circuit 12e is controlled so that a constant current (constant current Idr) based on the voltage input to the + terminal and the resistance value of the current detection resistor 12eb flows between the drain and the source of the transistor 12ea.

[0096] The magnetic sensor 12h is driven by the constant current Idr, and outputs a voltage Vh+ and a voltage Vh- that are proportional to the constant current Idr and the magnetic flux density that crosses the magnetic sensor 12h.

[0097] It should be noted that the drive circuit 12e is driven by the voltage Vdd supplied from the stabilized power supply circuit 12b.

[0098] [Signal processing circuit 12f1 and signal processing circuit 12f2]

[0099] The signal processing circuit 12f1 and the signal processing circuit 12f2 process the detection signals from the first magnetic sensor 12h1 and the second magnetic sensor 12h2, respectively, and detect the direction of the magnetic field of the magnet 12m1. The signal processing circuit 12f1 and the signal processing circuit 12f2 output the intensity of the magnetic field of the magnet 12m1 to the control circuit 12p based on the detection signals from the first magnetic sensor 12h1 and the second magnetic sensor 12h2, respectively. Figure 3 The signal processing circuit 12f1 and the signal processing circuit 12f2 are described. It should be noted that since the signal processing circuit 12f1 and the signal processing circuit 12f2 have the same circuit structure, Figure 3 In the description, the signal processing circuit 12f1 is used.

[0100] The signal processing circuit 12f1 includes a differential amplifier 12fa, a comparator 12fb, and a quantizer 12fc.

[0101] (Differential amplifier 12fa)

[0102] The differential amplifier 12fa outputs a voltage Vd obtained by amplifying the potential difference between the voltage Vh+ and the voltage Vh- output from the magnetic sensor 12h to the comparator 12fb. Power having the voltage Vdd is supplied from the stabilized power supply circuit 12b to the differential amplifier 12fa.

[0103] (Comparator 12fb)

[0104] The comparator 12fb compares the voltage Vd output from the differential amplifier 12fa with the potential (reference potential Vref) as a reference, and outputs the comparison result to the control circuit 12p. The comparator 12fb is a so-called comparator. The comparator 12fb includes a differential amplifier 12fb1, a resistor 12fb2, a resistor 12fb3, and a resistor 12fb4. Power having a voltage Vdd is supplied to the differential amplifier 12fb1 from the stabilized power supply circuit 12b. The differential amplifier 12fb1 compares the voltage Vd output from the differential amplifier 12fa with the reference potential Vref generated by dividing the voltage Vdd with the resistors 12fb3 and 12fb4, and outputs the comparison result to the control circuit 12p as a magnetic pole signal Smg1, which is a voltage signal. The resistor 12fb2 is a feedback resistor.

[0105] (Quantizer 12fc)

[0106] The quantizer 12fc quantizes the voltage Vd output from the differential amplifier 12fa and outputs the quantized result to the control circuit 12p. The quantizer 12fc is a so-called analog / digital converter (AD converter). The quantizer 12fc quantizes the voltage Vd output from the differential amplifier 12fa and outputs, for example, an 8-bit digital value as the magnetic field intensity signal Dmg1 to the control circuit 12p.

[0107] [Control circuit 12p]

[0108] The control circuit 12p calculates at least one of the position information and the rotation information such as the rotation position and the number of revolutions of the rotating shaft 11a of the motor 11 based on the inputs from the polarity detection circuit 12d, the signal processing circuit 12f1, and the signal processing circuit 12f2. In addition, the control circuit 12p records at least one of the position information and the rotation information of the rotating shaft 11a of the motor 11 detected, or transmits it to an external control system, such as the servo controller 20.

[0109] The control circuit 12p is, for example, a microcomputer, an ASIC (application specific integrated circuit), etc. Alternatively, the control circuit 12p may be, for example, an FPGA (Field-Programmable Gate Array), a PLD (Programmable Logic Device), etc.

[0110] The control circuit 12p is connected to a storage unit 12r provided outside. It should be noted that the control circuit 12p may include a nonvolatile memory such as a ferroelectric memory inside, instead of the external storage unit 12r.

[0111] The control circuit 12 p includes at least a terminal PWR, a terminal SIG1 , a terminal row SIG1 d , a terminal SIG2 , a terminal row SIG2 d , and a terminal SIG3 .

[0112] The terminal PWR of the control circuit 12p is a terminal to which a positive power supply is supplied. Power having a voltage Vdd is supplied from the stabilized power supply circuit 12b to the terminal PWR. The control circuit 12p operates by supplying power to the terminal PWR.

[0113] The terminal SIG1, the terminal SIG2, and the terminal SIG3 of the control circuit 12p are terminals to which signals are input from the outside. The terminal array SIG1d and the terminal array SIG2d of the control circuit 12p are terminal arrays to which signals of multiple bits are input from the outside.

[0114] Terminal SIG1 is connected to signal processing circuit 12f1. Magnetic pole signal Smg1 as a detection result detected by signal processing circuit 12f1 is input from terminal SIG1. Magnetic pole signal Smg1 is a signal indicating the direction of the magnetic field detected by first magnetic sensor 12h1. Terminal SIG2 is connected to signal processing circuit 12f2. Magnetic pole signal Smg2 as a detection result detected by signal processing circuit 12f2 is input from terminal SIG2. Magnetic pole signal Smg2 is a signal indicating the direction of the magnetic field detected by second magnetic sensor 12h2.

[0115] The terminal column SIG1d is connected to the signal processing circuit 12f1. The magnetic field strength signal Dmg1 as the detection result detected by the signal processing circuit 12f1 is input from the terminal column SIG1d. The magnetic field strength signal Dmg1 is a signal indicating the strength of the magnetic field detected by the first magnetic sensor 12h1. The terminal column SIG2d is connected to the signal processing circuit 12f2. The magnetic field strength signal Dmg2 as the detection result detected by the signal processing circuit 12f2 is input from the terminal column SIG2d. The magnetic field strength signal Dmg2 is a signal indicating the strength of the magnetic field detected by the second magnetic sensor 12h2.

[0116] The terminal SIG3 is connected to the polarity detection circuit 12d. A polarity signal Sp1, which is a detection result detected by the polarity detection circuit 12d, is input from the terminal SIG3. The polarity signal Sp1 is a signal indicating the power generation polarity of the power generation element 12g.

[0117] The encoder 12 counts the number of revolutions of the rotating shaft 11a. The control circuit 12p counts the number of revolutions of the rotating shaft 11a using the magnetic pole signal Smg1 and the polarity signal Spl. In addition, the control circuit 12p detects in which area of ​​the area divided into 90 degrees for one revolution the rotating shaft 11a is located using the magnetic pole signal Smg1 and the polarity signal Spl. And the control circuit 12p stores the result obtained by counting the number of revolutions of the rotating shaft 11a and the result of detecting in which area the rotating shaft is located in the storage unit 12r. In addition, the control circuit 12p stores the magnetic pole signal Smg1, the magnetic pole signal Smg2 and the polarity signal Spl detected last in the storage unit 12r.

[0118] In addition, the control circuit 12p uses the magnetic field strength signal Dmg1 and the magnetic field strength signal Dmg2 to obtain the rotation angle of the rotation shaft 11a. For example, the control circuit 12p calculates the rotation angle of the rotation shaft 11a using an inverse tangent function based on the ratio of the magnetic field strength signal Dmg1 to the magnetic field strength signal Dmg2.

[0119] [Storage unit 12r]

[0120] The storage unit 12r stores, for example, rotation counts, etc. The storage unit 12r is, for example, a ferroelectric memory. The control circuit 12p stores at least the count value indicating how many times the rotating shaft 11a rotates, the position of the rotating shaft, and the last detected magnetic pole signal Smg1, magnetic pole signal Smg2, and polarity signal Sp1 in the storage unit 12r.

[0121] <Encoder Structure>

[0122] The structure of the encoder 12 will be described. Figures 6 to 9Each of them is a diagram for explaining the structure of the encoder 12 which is an example of the encoder according to the first embodiment. Figure 6 This is a perspective view for explaining the magnet 12m1 and the plurality of magnets 12m2 in detail. Figure 7 It is a plan view explaining the magnet 12m1 and the plurality of magnets 12m2 in detail. Figure 8 It is a plan view for explaining the power generation element 12g, the first magnetic sensor 12h1, and the second magnetic sensor 12h2 in detail. Fig. 9 It is a side view which explains the magnet 12m1, the some magnet 12m2, the power generation element 12g, the 1st magnetic sensor 12h1, and the 2nd magnetic sensor 12h2 respectively in detail.

[0123] exist Figure 6 In order to show the polarity of the magnet, arrows are used to indicate the direction of the magnetic flux. Figure 7 In order to indicate the polarity of a magnet, the N pole is represented by "N" and the S pole is represented by "S".

[0124] It should be noted that, in the drawings, for the sake of convenience, a virtual three-dimensional coordinate system (XYZ orthogonal coordinate system) consisting of mutually orthogonal X-axis, Y-axis and Z-axis (XYZ axis) is set. For example, with respect to a coordinate axis perpendicular to the paper surface of the drawings, when a black dot symbol is shown in the circle of the coordinate axis, it means that the coordinate axis is facing the front side relative to the paper surface. In addition, when a cross is shown in the circle of the coordinate axis, it means that the coordinate axis is facing the opposite direction to the front side relative to the paper surface.

[0125] However, this coordinate system is defined for explanation purposes only and does not limit the posture of the encoder or the like according to the present embodiment.

[0126] In the following drawings, the Z-axis direction is defined as the direction in which the rotation axis 11 a extends, and the X-axis direction and the Y-axis direction are defined as directions perpendicular to the Z-axis direction.

[0127] A view of an object viewed from the +Z side in the Z-axis direction toward the opposite direction of the Z-axis is referred to as a plan view, and a view of an object viewed from the -Y side in the Y-axis direction is referred to as a side view.

[0128] The encoder 12 includes a magnet 12m1 symmetrically arranged with respect to the rotating shaft 11a, and magnets 12m2a to 12m2h arranged in a circumferential direction of the rotating shaft 11a. It should be noted that the magnet 12m1 is an example of a first magnet, and the magnets 12m2a to 12m2h are examples of second magnets, respectively. The encoder 12 is an example of having eight second magnets.

[0129] (Magnet 12m1)

[0130] The magnet 12m1 has a cylindrical shape. The magnet 12m1 is a magnet magnetized in a direction parallel to the surface 11dS on the encoder 12 side of the disk 11d. The magnet 12m1 has a height H2 that is higher than the height H1 of each of the magnets 12m2a to 12m2h. In other words, the first end face of the magnet 12m1 along the first side of the rotation axis and the second end face of the first side of the magnets 12m2a to 12m2h are different in position in the direction along the rotation axis 11a. The magnet 12m1 is arranged to be close to the first magnetic sensor 12h1 and the second magnetic sensor 12h2, respectively.

[0131] It should be noted that the magnet 12m1 may not be magnetized in the entire cylindrical shape. For example, regarding the magnet 12m1, at least the nearer sides of the first magnetic sensor 12h1 and the second magnetic sensor 12h2 in the magnet 12m1 are magnetized.

[0132] (Magnet 12m2a to magnet 12m2h)

[0133] Each of the magnets 12m2a, 12m2c, 12m2e, and 12m2g has a rectangular parallelepiped shape. Each of the magnets 12m2a, 12m2c, 12m2e, and 12m2g is a magnet magnetized in a direction parallel to the surface 11dS of the disk 11d. Figure 6 The magnet 12m2c is magnetized along the Y-axis direction. Figure 6 The magnet 12m2e is magnetized along the X-axis. Figure 6 The magnet 12m2g is magnetized in the direction opposite to the Y axis. Figure 6 The magnet is magnetized along the X-axis in the direction opposite to the X-axis.

[0134] It should be noted that each of the magnet 12m2a, the magnet 12m2c, the magnet 12m2e, and the magnet 12m2g is an example of a first unit magnet having a magnetization direction in the circumferential direction.

[0135] The magnets 12m2b, 12m2d, 12m2f, and 12m2h each have a cylindrical shape. The magnets 12m2b, 12m2d, 12m2f, and 12m2h are magnets magnetized in a direction perpendicular to the surface 11dS of the disk 11d. Figure 6 The magnet 12m2d is magnetized along the Z-axis. Figure 6 The magnet 12m2f is magnetized in the direction opposite to the Z axis. Figure 6The magnet 12m2h is magnetized along the Z-axis. Figure 6 The magnet is magnetized along the Z-axis in the direction opposite to the Z-axis.

[0136] It should be noted that each of the magnet 12m2b, the magnet 12m2d, the magnet 12m2f, and the magnet 12m2h is an example of a second unit magnet having a magnetization direction in a direction along the rotation axis.

[0137] The magnets 12m2a to 12m2g are arranged in a so-called Halbach array in the circumferential direction relative to the rotation axis 11a (axis Ax). In other words, the first unit magnets having a magnetization direction in the circumferential direction and the second unit magnets having a magnetization direction in the direction along the rotation axis are arranged alternately in the circumferential direction.

[0138] (First Magnetic Sensor 12h1 and Second Magnetic Sensor 12h2)

[0139] The first magnetic sensor 12h1 and the second magnetic sensor 12h2 are arranged near the center of the surface on the disk 11d side of the circuit substrate 12j. The first magnetic sensor 12h1 and the second magnetic sensor 12h2 are each provided near a region of the circuit substrate 12j that opposes the magnet 12m1.

[0140] like Figure 8 As shown in FIG. 1 , when the right side of the axis in the X-axis direction is set to an angle of 0 degrees, the first magnetic sensor 12h1 is set at a position of an angle of 180 degrees. Figure 8 As shown, when the right side of the axis in the X-axis direction is set to an angle of 0 degrees, the second magnetic sensor 12h2 is set at a position of an angle of 90 degrees.

[0141] By setting the first magnetic sensor 12h1 and the second magnetic sensor 12h2 at positions offset by an angle of 90 degrees, the first magnetic sensor 12h1 and the second magnetic sensor 12h2 can be used to measure the magnetic field generated by the magnet 12m1 by shifting the phase. By measuring the magnetic field generated by the magnet 12m1 by shifting the phase of the first magnetic sensor 12h1 and the second magnetic sensor 12h2, the position of the rotation direction of the rotating shaft 11a can be measured.

[0142] If the height of each of the first magnetic sensor 12h1 and the second magnetic sensor 12h2 is set to a height h1, the height H2 of the magnet 12m1 is set to a degree close to that at which the magnet 12m1 does not contact the first magnetic sensor 12h1 and the second magnetic sensor 12h2.

[0143] (Power generation element 12g)

[0144] The power generation element 12g is arranged on the outer side of the surface on the disk 11d side of the circuit substrate 12j. The power generation element 12g is set on the outer side of the area (position) of the circuit substrate 12j opposite to the magnets 12m2a to 12m2g. It should be noted that the power generation element 12g can also be set in the area (position) opposite to the magnets 12m2a to 12m2g.

[0145] like Figure 8 As shown in FIG. 1 , when the right side of the axis in the X-axis direction is set to an angle of 0 degrees, the power generation element 12g is set at a position of an angle of 0 degrees.

[0146] If the height of the power generating element 12g is set to h2, the height H1 of each of the magnets 12m2a to 12m2g is set to a degree close to that each of the magnets 12m2a to 12m2g does not contact the power generating element 12g.

[0147] In addition, the radius R2 of the power generation element 12g from the rotation axis 11a (axis Ax) is larger than the radius R1 of each of the magnets 12m2a to 12m2g from the rotation axis 11a (axis Ax). In other words, the circuit board 12j has the power generation element 12g on the outer periphery at positions respectively facing the magnets 12m2a to 12m2g. Fig.10 This is a diagram for explaining the generated power in the encoder 12 which is an example of the encoder according to the first embodiment.

[0148] Fig.10 The horizontal axis represents the radius (R2 / R1) obtained by normalizing the radius from the center of the rotation axis 11a to the power generation element 12g (radius R2) by the radius from the center of the rotation axis 11a to the magnet 12m2a (radius R1) in percentage. Fig.10 The vertical axis represents the generated power obtained by normalizing the generated power when the generating element 12g is arranged at the position of the radius shown by the horizontal axis with the generated power when the generating element 12g is arranged at a position opposite to the magnet 12m2a.

[0149] like Fig.10 As shown, when the power generation element 12g is arranged outside the magnets 12m2a to 12m2g, the power generation increases compared to the case where it is arranged at a position opposite to the magnets 12m2a to 12m2g respectively. On the other hand, if it is 1.4 times or more, the magnetic field generated by each of the magnets 12m2a to 12m2g becomes smaller, and the power generation decreases.

[0150] Therefore, for example, the radius of the power generation element 12g relative to the rotation axis 11a of each of the magnets 12m2a to 12m2g can be greater than 1 times (100%) and less than 1.35 times (135%). In addition, the radius of the power generation element 12g relative to the rotation axis 11a of each of the magnets 12m2a to 12m2g is preferably greater than 1.2 times (120%) and less than 1.35 times (135%).

[0151] By arranging the magnets 12m2a to 12m2g in a Halbach array, the magnetic field generated by the magnets 12m2g to 12m2a can be concentrated on the power generation element 12g side. By concentrating the magnetic field generated by the magnets 12m2a to 12m2g on the power generation element 12g side, the efficiency of generating power in the power generation element 12g can be improved.

[0152] <<Second Embodiment>>

[0153] An encoder according to a second embodiment will be described. In the encoder according to the second embodiment, the arrangement of the plurality of second magnets is different from that of the encoder according to the first embodiment.

[0154] <Encoder Structure>

[0155] The structure of the encoder according to the second embodiment will be described. Figures 11 to 14 Each of them is a diagram for explaining the structure of the encoder according to the second embodiment. Fig.11 It is a perspective view explaining the magnet 12m1, and the magnet 32m2a, the magnet 32m2c, the magnet 32m2e, and the magnet 32m2g in detail. Fig.12 It is a plan view explaining the magnet 12m1, and the magnet 32m2a, the magnet 32m2c, the magnet 32m2e, and the magnet 32m2g in detail. Fig.13 It is a plan view for explaining the power generation element 12g, the first magnetic sensor 12h1, and the second magnetic sensor 12h2 in detail. Fig.14 It is a side view explaining the magnet 12m1, the magnet 32m2a, the magnet 32m2c, the magnet 32m2e, the magnet 32m2g, the power generating element 12g, the first magnetic sensor 12h1, and the second magnetic sensor 12h2 in detail.

[0156] exist Fig.11 In order to show the polarity of the magnet, arrows are used to indicate the direction of the magnetic flux. Fig.12 In order to indicate the polarity of a magnet, the N pole is represented by "N" and the S pole is represented by "S".

[0157] The encoder according to the second embodiment includes a magnet 12m1 symmetrically arranged with respect to the rotating shaft 11a, and magnets 32m2a, 32m2c, 32m2e, and 32m2g arranged in a circumferential direction of the rotating shaft 11a. It should be noted that the magnet 12m1 is an example of a first magnet, and the magnets 32m2a, 32m2c, 32m2e, and 32m2g are examples of second magnets.

[0158] Since the magnet 12m1 has the same structure as the magnet 12m1 in the encoder 12 as an example of the encoder according to the first embodiment, the description of the first embodiment can be referred to and the detailed description can be omitted. In addition, regarding the first magnetic sensor 12h1 and the second magnetic sensor 12h2, the description of the first embodiment can also be referred to and the detailed description can be omitted. Regarding the power generation element 12g, since it is different from the first embodiment only in direction, the description of the first embodiment can be referred to and the detailed description can be omitted.

[0159] (Magnet 32m2a, magnet 32m2c, magnet 32m2e and magnet 32m2g)

[0160] Each of the magnets 32m2a, 32m2c, 32m2e, and 32m2g has a rectangular parallelepiped shape. Each of the magnets 32m2a, 32m2c, 32m2e, and 32m2g is a magnet magnetized in a direction parallel to the surface 11dS of the disk 11d. Fig.11 The magnet 32m2c is magnetized along the X-axis direction. Fig.11 The magnet 32m2e is magnetized in the direction opposite to the Y axis. Fig.11 The magnet 32m2g is magnetized in the direction opposite to the X-axis. Fig.11 The magnet is magnetized along the Y-axis.

[0161] It should be noted that each of the magnet 32m2a, the magnet 32m2c, the magnet 32m2e, and the magnet 32m2g is an example of a third unit magnet having a magnetization direction in the radial direction with respect to the rotation axis.

[0162] <<Third Embodiment>>

[0163] An encoder according to a third embodiment will be described. In the encoder according to the third embodiment, the arrangement of the plurality of second magnets is different from that of the encoders according to the first and second embodiments, respectively.

[0164] <Encoder Structure>

[0165] The structure of the encoder according to the third embodiment is described. Figures 15 to 17 Each of them is a diagram for explaining the structure of the encoder according to the third embodiment. Fig.15 It is a perspective view explaining the magnet 12m1, and the magnet 42m2a, the magnet 42m2b, the magnet 42m2c, the magnet 42m2e, the magnet 42m2f, and the magnet 42m2g in detail. Fig.16 It is a plan view explaining the magnet 12m1, and the magnet 42m2a, the magnet 42m2b, the magnet 42m2c, the magnet 42m2e, the magnet 42m2f, and the magnet 42m2g in detail. Fig.17 It is a side view that explains the magnet 12m1, magnet 42m2a, magnet 42m2b, magnet 42m2c, magnet 42m2e, magnet 42m2f, magnet 42m2g, power generation element 12g, first magnetic sensor 12h1 and second magnetic sensor 12h2 in detail. It should be noted that since the power generation element 12g, the first magnetic sensor 12h1 and the second magnetic sensor 12h2 have the same structure as the encoder of the second embodiment, the details can be referred to. Fig.13 .

[0166] exist Fig.15 In order to show the polarity of the magnet, arrows are used to indicate the direction of the magnetic flux. Fig.16 In order to indicate the polarity of a magnet, the N pole is represented by "N" and the S pole is represented by "S".

[0167] The encoder according to the third embodiment includes a magnet 12m1 symmetrically arranged with respect to a rotating shaft 11a, and magnets 42m2a, 42m2b, 42m2c, 42m2e, 42m2f, and 42m2g arranged in a circumferential direction of the rotating shaft 11a. It should be noted that the magnet 12m1 is an example of a first magnet, and the magnets 42m2a, 42m2b, 42m2c, 42m2e, 42m2f, and 42m2g are examples of a second magnet.

[0168] Since the magnet 12m1 has the same structure as the magnet 12m1 in the encoder 12 as an example of the encoder according to the first embodiment, the description of the first embodiment can be referred to and the detailed description can be omitted. In addition, regarding the first magnetic sensor 12h1 and the second magnetic sensor 12h2, the description of the first embodiment can also be referred to and the detailed description can be omitted. Regarding the power generation element 12g, since it is different from the first embodiment only in direction, the description of the first embodiment can be referred to and the detailed description can be omitted.

[0169] (Magnet 42m2a, magnet 42m2b, magnet 42m2c, magnet 42m2e, magnet 42m2f and magnet 42m2g)

[0170] Each of the magnets 42m2a, 42m2b, 42m2c, 42m2e, 42m2f, and 42m2g has a rectangular parallelepiped shape. Each of the magnets 42m2a, 42m2b, 42m2c, 42m2e, 42m2f, and 42m2g is magnetized in a direction parallel to the surface 11dS on the disk 11d. Fig.15 The magnet 42m2e is magnetized along the X-axis direction. Fig.15 The magnet is magnetized along the X-axis in a direction opposite to the direction of the X-axis.

[0171] Magnet 42m2b in Fig.16 The N pole of magnet 42m2b is set on the side of magnet 12m1. Fig.16 The S pole of magnet 42m2c is set on the side of magnet 12m1. Fig.16 The S pole of magnet 42m2f is set on the side of magnet 12m1. Fig.16 The magnet 42m2g is magnetized in a direction with an angle of 300 degrees. The N pole of the magnet 42m2g is arranged on the magnet 12m1 side.

[0172] It should be noted that each of the magnet 42m2a, the magnet 42m2b, the magnet 42m2c, the magnet 42m2e, the magnet 42m2f, and the magnet 42m2g is an example of a third unit magnet having a magnetization direction in the radial direction with respect to the rotation axis.

[0173] It should be noted that the encoder according to the second embodiment and the encoder according to the third embodiment are examples of encoders in which the plurality of second magnets are third unit magnets having a magnetization direction in the radial direction relative to the rotation axis. The second magnet is not limited to the above examples, and the plurality of second magnets may also be first unit magnets having a magnetization direction in the circumferential direction relative to the rotation axis (for example, Figure 6 In the structure, only magnet 12m2a, magnet 12m2c, magnet 12m2e and magnet 12m2g are used. In addition, the plurality of second magnets may be second unit magnets having magnetization directions along the rotation axis (for example, Figure 6In other words, the plurality of second magnets may be any one of a first unit magnet having a magnetization direction in a circumferential direction, a second unit magnet having a magnetization direction in a direction along the rotation axis, and a third unit magnet having a magnetization direction in a radial direction relative to the rotation axis.

[0174] In addition, the combination of the second magnet is not limited to the example of the encoder according to the first embodiment. The second magnet may include at least any two of a first unit magnet having a magnetization direction in the circumferential direction, a second unit magnet having a magnetization direction in the direction along the rotation axis, and a third unit magnet having a magnetization direction in the radial direction relative to the rotation axis. For example, with respect to the second magnet, a first unit magnet having a magnetization direction in the circumferential direction and a third unit magnet having a magnetization direction in the radial direction relative to the rotation axis may be arranged alternately in the circumferential direction. In addition, a second unit magnet having a magnetization direction in the direction along the rotation axis and a third unit magnet having a magnetization direction in the radial direction relative to the rotation axis may be arranged alternately in the circumferential direction.

[0175] In addition, the number of the plurality of second magnets is not limited to the above example, and may be 2 or more. In addition, the number of the plurality of second magnets may be an even number. Two adjacent second magnets may be configured to be magnetized in different directions from each other.

[0176] In addition, the encoder according to this embodiment may also include a single-turn encoder. On the disk 11d, for example, there are slits in an M-series pattern, and the encoder according to this embodiment may include a position detection unit that, for example, irradiates light to the slits so as to have a resolution of about 20 to 24 bits in the circumferential direction.

[0177] It should be noted that the embodiments disclosed herein are illustrative and non-restrictive in all aspects. The embodiments described above may be omitted, replaced, or changed in various forms without departing from the appended claims and their gist.

Claims

1. An encoder having: a first magnet disposed symmetrically with respect to the rotation axis and generating a first magnetic field to be detected by the magnetic sensor; and The plurality of second magnets are arranged in a circumferential direction of the rotating shaft and generate a second magnetic field that causes the power generating element to generate power.

2. The encoder according to claim 1, wherein The plurality of second magnets are arranged in a Halbach array in a circumferential direction of the rotating shaft.

3. The encoder according to claim 2, wherein: The plurality of second magnets include a first unit magnet having a magnetization direction in the circumferential direction and a second unit magnet having a magnetization direction in a direction along the rotation axis. The first unit magnets and the second unit magnets are alternately arranged in the circumferential direction.

4. The encoder according to claim 2, wherein: The plurality of second magnets include a second unit magnet having a magnetization direction in a direction along the rotation axis, and a third unit magnet having a magnetization direction in a radial direction relative to the rotation axis. The second unit magnets and the third unit magnets are alternately arranged in the circumferential direction.

5. The encoder according to claim 3 or 4, wherein: A first end surface of the first magnet along a first side of the rotation axis and a second end surface of the second magnet on the first side are located at different positions in a direction along the rotation axis.

6. The encoder according to claim 5, wherein: A circuit board is provided. The circuit board includes the magnetic sensor at a position facing the first magnet. The circuit board includes the power generating element at a position facing the second magnet. The first end surface is closer to the circuit substrate than the second end surface.

7. The encoder according to claim 3 or 4, wherein: A circuit board is provided. The circuit board includes the magnetic sensor at a position facing the first magnet. The circuit board includes the power generating element at a position facing the second magnet.

8. The encoder according to claim 3 or 4, wherein: A circuit board is provided. The circuit board includes the magnetic sensor at a position facing the first magnet. The circuit board includes the power generating element at a position closer to the outer periphery than a position facing the second magnet.

9. The encoder according to claim 1, wherein: A circuit board is provided. have: The magnetic sensor is arranged at a position of the circuit substrate opposite to the first magnet; and The power generating element is disposed at a position on the circuit substrate that is closer to the outer periphery than a position facing the second magnet.

10. The encoder according to claim 9, wherein: The magnetization direction of each of the plurality of second magnets is any one of the circumferential direction, the radial direction with respect to the rotation axis, and the direction along the rotation axis.

11. The encoder according to claim 9, wherein: The plurality of second magnets include at least any two of a first unit magnet having a magnetization direction in the circumferential direction, a second unit magnet having a magnetization direction in a direction along the rotation axis, and a third unit magnet having a magnetization direction in a radial direction relative to the rotation axis.

12. The encoder according to claim 9, wherein: A first end surface of the first magnet along a first side of the rotation axis and a second end surface of the second magnet on the first side are located at different positions in a direction along the rotation axis.

13. The encoder according to claim 12, wherein: The first end surface is closer to the circuit substrate than the second end surface.

14. An encoder according to any one of claims 9 to 13, wherein: The power generating element is arranged at a position that is 1 times or more and 1.35 times or less of the radius from the rotation axis of the second magnet.

15. The encoder according to claim 14, wherein: The power generating element is arranged at a position that is 1.2 times or more and 1.35 times or less of the radius from the rotation axis of the second magnet.