A new type of electronic zero adjustment circuit for magnetic encoder
By designing the electronic zero -regulating circuit of the new magnetic coder, the zero -zero -adjustment process is used to simplify the zero -adjustment process, which solves the problem of complexity and low accuracy of the traditional zero, and achieves the effect of high precision unlimited times.
Patent Information
- Application Number
- CN201910784561.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-23
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2039-08-23
AI Technical Summary
The traditional mechanical zeroing process is complicated and has errors in accuracy. Software zeroing is troublesome and the number of zero writing times is limited.
A new type of electronic zero-adjustment circuit for magnetic encoders is designed, using four independent signal conversion differential output chips and an 8-bit MCU microprocessor to simplify the zero-adjustment operation, improve accuracy, and write zeros an unlimited number of times.
This simplifies the zero-adjustment operation, improves the accuracy of the zero-adjustment position, and eliminates the limit on the number of times to write zero.
Smart Images

Figure CN110567501B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of automated measurement, and in particular to an electronic zero adjustment circuit of a novel magnetic encoder. Background Art
[0002] The permanent magnet synchronous motor that uses the encoder UVW signal for initial positioning needs to perform encoder zeroing operation to make the encoder zero position correspond to the motor electrical angle zero position, so that the permanent magnet synchronous motor can be started after power-on.
[0003] Traditional mechanical zeroing is usually based on its internal zeroing circuit and mechanical zeroing method. The steps are usually as follows: use a DC power supply to pass a DC current less than the rated current to the UV winding of the motor, U in, V out, and orient the motor shaft to a balanced position; use an oscilloscope to observe the U phase signal and Z signal of the encoder; adjust the relative position of the encoder shaft and the motor shaft; while adjusting, observe the encoder U phase signal jump edge and Z signal until the Z signal stabilizes at a high level, and lock the relative position relationship between the encoder and the motor; twist the motor shaft back and forth, and after letting go, if the Z signal can stabilize at a high level every time the motor shaft freely returns to the balanced position, the alignment is effective. From the above steps, it can be seen that the traditional mechanical zeroing process is relatively complicated and there are errors in accuracy.
[0004] The traditional magnetic encoder software zeroing requires 7 wires to connect the host computer to the encoder board, including two power lines and five communication lines. The wiring is more complicated, and the number of zero writing is limited, and the maximum number of times can only be written is four. Summary of the invention
[0005] The purpose of the present invention is to provide a novel electronic zeroing circuit for a magnetic encoder to solve the problem that the traditional mechanical zeroing process proposed in the above background technology is relatively complicated and has errors in accuracy. To achieve the above purpose, the present invention provides the following technical solutions: a novel electronic zeroing circuit for a magnetic encoder, comprising a signal output port, wherein pins 1 to 6 of the signal output port are respectively connected to pins 2, 3, 6, 5, 10 and 11 of a four-way separate signal to differential output chip I, and pins 7 to 12 of the signal output port are respectively connected to pins 14, 13, 10, 11, 6 and 5 of a four-way separate signal to differential output chip II, and pins 4 and 12 of the four-way separate signal to differential output chip I and the four-way separate signal to differential output chip II are both grounded, and pins 1, 7 and 9 of the four-way separate signal to differential output chip I are respectively connected to pins 16, 15 and 14 of the magnetic encoder chip, and pins 1 to 3 of the magnetic encoder chip are respectively connected to the ground. The four-way separate signal to differential output chip II is respectively connected to pin 15, pin 9 and pin 7, the pin 16 of the four-way separate signal to differential output chip I is connected in series with a diode D2 and then grounded, the pin 4 of the magnetic encoder chip is connected in series with a capacitor C6 and then grounded, the pin 9 and pin 12 are respectively connected to the power supply and the ground, the capacitor C7 is connected between the pin 9 and the pin 12 of the magnetic encoder chip, the pins 5 to 8 of the magnetic encoder chip are respectively connected to the pin 17, pin 16, pin 15 and pin 14 of the 8-bit MCU microprocessor, the pin 3 of the 8-bit MCU microprocessor is connected in series with an LED lamp LC and then connected to the power supply, the pin 4 of the 8-bit MCU microprocessor is respectively connected to the resistor R1 and one end of the capacitor C2, the other ends of the resistor R1 and the capacitor C2 are respectively connected to the power supply and the ground, and the pin 1 of the 8-bit MCU microprocessor is connected to the resistor R37 and then left floating.
[0006] Preferably, the capacitance value of the capacitor C6 is 1 μF, the capacitance value of the capacitor C7 is 1 μF, the capacitance value of the capacitor C2 is 100 nF, the resistance value of the resistor R1 is 10 KΩ, and the resistance value of the resistor R38 is 300Ω.
[0007] Preferably, the diode D2 is a Schottky diode.
[0008] Preferably, the 8-bit MCU microprocessor is NUVOTON's N76E003.
[0009] The technical effects and advantages of the present invention are as follows: the present invention can simplify the zeroing operation steps; the zeroing position accuracy is high; and there is no limit to the number of zeroing times. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 is a circuit schematic diagram of the present invention;
[0011] Figure 2 This is a schematic diagram of the pins of the chip for converting four independent signals into differential outputs according to the present invention;
[0012] Figure 3 This is a schematic diagram of the pins of the magnetic encoder chip of the present invention;
[0013] Figure 4 It is a schematic diagram of the pins of an 8-bit MCU microprocessor of the present invention.
[0014] In the figure: 1- signal output port, 2- four-way separate signal to differential output chip I, 3- four-way separate signal to differential output chip II, 4- magnetic encoder chip, 5- 8-bit MCU microprocessor. DETAILED DESCRIPTION
[0015] In order to make the technical means for realizing the present invention, the creative features, the objectives and effects to be achieved easy to understand, the present invention is further explained below in conjunction with specific diagrams. In the description of the present invention, it should be noted that, unless otherwise clearly stipulated and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, an integral connection or a mechanical connection, or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal connection of two components.
[0016] Example 1
[0017] like Figure 1 to Figure 4The electronic zeroing circuit of a novel magnetic encoder shown in the figure includes a signal output port 1, which is the signal output port of the entire encoder board, including an ABZ differential signal output port and a UVW differential signal output port. The 12 differential output signals can be output to the servo controller through a shielded cable. The pins 1 to 6 corresponding to the ABZ differential signal output port of the signal output port 1 are respectively connected to the pins 2, 3, 6, 5, 10 and 11 of the four-way separate signal to differential output chip Ⅰ2. The signal Pins 7 to 12 corresponding to the UVW differential signal output port of the output chip 1 are respectively connected to pins 14, 13, 10, 11, 6 and 5 of the four-way separate signal to differential output chip II3, and pins 4 and 12 of the four-way separate signal to differential output chip I2 and the four-way separate signal to differential output chip II3 are both grounded, and pins 1, 7 and 9 of the four-way separate signal to differential output chip I2 are respectively connected to pins 16, 15 and 14 of the magnetic encoder chip 4, and the magnetic encoder chip 4 Pins 1 to 3 are respectively connected to pins 15, 9 and 7 of the four-way separate signal to differential output chip II3, pin 16 of the four-way separate signal to differential output chip I2 is connected in series with a diode D2 and then grounded, pin 4 of the magnetic encoder chip 4 is connected in series with a capacitor C6 and then grounded, pin 9 and pin 12 are respectively connected to the power supply and ground, capacitor C7 is connected between pin 9 and pin 12 of the magnetic encoder chip 4, and pins 5 to 8 of the magnetic encoder chip 4 are respectively connected to pins 17, pin 16, pin 15 and pin 8 of the 8-bit MCU microprocessor 5 Pin 14, the 8-bit MCU microprocessor 5 and the magnetic encoder chip 4 can communicate with each other, and the internal register configuration and the zero point position of the magnetic encoder chip 4 can be modified. The pin 3 of the 8-bit MCU microprocessor 5 is connected in series with the LED lamp LC and then connected to the power supply. The pin 4 of the 8-bit MCU microprocessor 5 is respectively connected to the resistor R1 and one end of the capacitor C2, and the other ends of the resistor R1 and the capacitor C2 are respectively connected to the power supply and ground. The pin 1 of the 8-bit MCU microprocessor 5 is connected to the resistor R37 and then suspended. This resistor R37 is used for writing zero to enable input operation. One end of it is connected to the IO input port of the MCU, and the other end is suspended as a via. After the motor rotor is positioned at the zero position, the suspended via and GND are short-circuited for more than three seconds. The MCU will communicate with the magnetic encoder chip through the communication ports such as MISO to realize the write zero operation. After the write zero is successful, the LED lamp LC will flash.
[0018] Example 2
[0019] like Figure 1 to Figure 4The electronic zeroing circuit of a novel magnetic encoder shown in the figure includes a signal output port 1, which is the signal output port of the entire encoder board, and outputs 12 differential output signals to the servo controller through a shielded cable. Pins 1 to 6 of the signal output port 1 are respectively connected to pins 2, 3, 6, 5, 10 and 11 of a four-way separate signal to differential output chip Ⅰ2, and pins 7 to 12 of the signal output port 1 are respectively connected to pins 14, 13, 10, 11, 6 and 5 of a four-way separate signal to differential output chip Ⅱ3. Pins 4 and 12 of the four-way separate signal to differential output chip Ⅰ2 and the four-way separate signal to differential output chip Ⅱ3 are both grounded, and pins 1, 7 and 9 of the four-way separate signal to differential output chip Ⅰ2 are respectively connected to pins 16, 15 and 14 of a magnetic encoder chip 4, and pins 1 to 3 of the magnetic encoder chip 4 are respectively connected to pins 14, 13, 10, 11, 6 and 5 of a four-way separate signal to differential output chip Ⅱ3. Pin 15, pin 9 and pin 7, pin 16 of the four-way separate signal conversion differential output chip Ⅰ2 is connected in series with a diode D2 and then grounded, pin 4 of the magnetic encoder chip 4 is connected in series with a capacitor C6 and then grounded, pin 9 and pin 12 are respectively connected to the power supply and ground, capacitor C7 is connected between pin 9 and pin 12 of the magnetic encoder chip 4, pins 5 to pin 8 of the magnetic encoder chip 4 are respectively connected to pin 17, pin 16, pin 15 and pin 14 of the 8-bit MCU microprocessor 5, the 8-bit MCU microprocessor 5 and the magnetic encoder chip 4 can communicate, and the internal register configuration and the zero point position of the magnetic encoder chip 4 can be modified, pin 3 of the 8-bit MCU microprocessor 5 is connected in series with an LED lamp LC and then connected to the power supply, pin 4 of the 8-bit MCU microprocessor 5 is respectively connected to a resistor R1 and one end of a capacitor C2, and the other ends of the resistor R1 and the capacitor C2 are respectively connected to the power supply and ground, pin 1 of the 8-bit MCU microprocessor 5 is connected to a resistor R37 and then suspended, and this resistor R37 is used for write zero enable input operation. One end of it is connected to the IO input port of the MCU, and the other end is left hanging as a via. After the motor rotor is positioned at the zero position, short-circuit the hanging via and GND for more than three seconds, and the MCU will communicate with the magnetic encoding chip through the MISO and other communication ports to achieve the zero write operation. After the zero write is successful, the LED light LC will flash, and the zero point will be saved in the MCU internal Flash.
[0020] Preferably, the capacitance value of the capacitor C6 is 1 μF, the capacitance value of the capacitor C7 is 1 μF, the capacitance value of the capacitor C2 is 100 nF, the resistance value of the resistor R1 is 10 KΩ, and the resistance value of the resistor R38 is 300Ω.
[0021] Preferably, the diode D2 is a Schottky diode, which is used for power input protection. When the power supply is reversed or over-voltage occurs, the diode will be turned on, allowing current to flow through it to protect the internal circuit from being damaged.
[0022] Preferably, the 8-bit MCU microprocessor is NUVOTON's N76E003.
[0023] The process flow and working principle of the present invention are as follows: the motor is connected to the encoder and the power is turned on, the motor will be pulled to 0°; the zero writing input on the encoder board is short-circuited for more than 3 seconds, the indicator light flashes, and the zero writing is completed.
[0024] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An electronic zero adjustment circuit for a magnetic encoder, comprising a signal output port, characterized in that: Pins 1 to 6 of the signal output port are respectively connected to pins 2, 3, 6, 5, 10 and 11 of the four-way separate signal to differential output chip I, and pins 7 to 12 of the signal output port are respectively connected to pins 14, 13, 10, 11, 6 and 5 of the four-way separate signal to differential output chip II, and pins 4 and 12 of the four-way separate signal to differential output chip I and the four-way separate signal to differential output chip II are both grounded, and pins 1, 7 and 9 of the four-way separate signal to differential output chip I are respectively connected to pins 16, 15 and 14 of the magnetic encoder chip. , Pins 1 to 3 of the magnetic encoder chip are respectively connected to pins 15, 9 and 7 of the four-way separate signal to differential output chip II, pin 16 of the four-way separate signal to differential output chip I is connected in series with a diode D2 and then grounded, pin 4 of the magnetic encoder chip is connected in series with a capacitor C6 and then grounded, pin 9 and pin 12 are respectively connected to the power supply and ground, capacitor C7 is connected between pin 9 and pin 12 of the magnetic encoder chip, pins 5 to 8 of the magnetic encoder chip are respectively connected to pins 17, 16, 15 and 14 of the 8-bit MCU microprocessor, pin 3 of the 8-bit MCU microprocessor is connected in series The LED lamp LC is connected to the power supply, the pin 4 of the 8-bit MCU microprocessor is respectively connected to the resistor R1 and one end of the capacitor C2, the other ends of the resistor R1 and the capacitor C2 are respectively connected to the power supply and the ground, the pin 1 of the 8-bit MCU microprocessor is connected to the resistor R37 and then left floating, the 8-bit MCU microprocessor is NUVOTON's N76E003, after the motor rotor is positioned to the zero position, the suspended via and GND are short-circuited for more than three seconds, the MCU will communicate with the magnetic encoding chip through the MISO communication port to implement the write zero operation, after the write zero is successful, the LED lamp LC will flash, and the zero point will be saved in the MCU's internal Flash.
2. The electronic zeroing circuit of a magnetic encoder according to claim 1, characterized in that: The capacitance value of the capacitor C6 is 1 μF, the capacitance value of the capacitor C7 is 1 μF, the capacitance value of the capacitor C2 is 100 nF, the resistance value of the resistor R1 is 10 KΩ, and the resistance value of the resistor R38 is 300Ω.
3. The electronic zeroing circuit of a magnetic encoder according to claim 1, characterized in that: The diode D2 is a Schottky diode.
Citation Information
Patent Citations
Magnetic encoder and permanent magnet motor
CN106899240A
Electronic zero setting circuit of novel magnetic encoder
CN210400438U