Two-way output angle sensor circuit

By designing a dual-output angle sensor circuit, using the combination of Hall chip module and signal processing module, the problem of instability of traditional single-output sensor signals is solved, achieving higher stability and reliability.

CN222837532UActive Publication Date: 2025-05-06SHANGHAI JINGCHUAN ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202421664363.0
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2025-05-06
Estimated Expiration
2034-07-15

AI Technical Summary

Technical Problem

Traditional single-channel output angle sensors have limitations in their application, and cannot effectively judge the correctness of the signal, resulting in unstable or inability to work normally.

Method used

A dual-channel output angle sensor circuit is designed to output two independent signals through the Hall chip module, and the signal processing module is used for processing and comparison to judge the authenticity and correctness of the signal.

Benefits of technology

It achieves the stability and reliability of the sensor output signal, can ensure the normal operation of the sensor under the influence of the external environment, and improves the accuracy of angle detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222837532U_ABST
    Figure CN222837532U_ABST
Patent Text Reader

Abstract

The utility model discloses a dual-output angle sensor circuit, which comprises a power supply module, a Hall chip module and a signal processing module which are sequentially connected according to a signal transmission direction, the power supply module is used for providing a power supply for the whole circuit, and the Hall chip module comprises two Hall circuits and is used for sensing and outputting two independent signals, namely a signal 1 and a signal 2; the signal processing module is used for receiving and processing an output signal output by the Hall chip module, the signal processing module comprises a first processing module and a second processing module which are independent, and the first processing module is used for processing the signal 1; the second processing module is used for processing the signal 2; and the two independent processing modules form a signal processing redundancy design, so that two paths of independent signals can be output at the same time for comparison, and the authenticity and correctness of the two paths of signals can be judged so as to overcome the influence of the external environment on the normal work of the sensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the field of motor angle control, in particular to a dual-channel output angle sensor circuit. Background Art

[0002] Traditional single-channel output angle sensors usually use a magnet mounted on a mechanical shaft. The rotation of the mechanical shaft causes the magnetic field of the magnet to change. After the sensor chip senses the change in the magnetic field, the data is transmitted to the microcontroller for processing. The processed data is output through a digital-to-analog conversion circuit, thereby realizing the sensor's angle detection function.

[0003] However, with the continuous updating and iteration of the market, the traditional single-channel output angle sensor has certain limitations in application. Because it can only output one signal, it is not very practical. If the sensor fails during use, the angle signal output by the sensor will be significantly different from the actual angle size. However, if the output angle signal is within the normal signal range of the angle sensor output, the controller cannot determine the correctness of the angle signal, resulting in unstable sensor output signal or malfunction, so it needs to be solved urgently. Summary of the invention

[0004] In order to avoid and overcome the technical problems existing in the prior art, the utility model provides a dual-output angle sensor circuit, which can simultaneously output two independent signals for comparison, and can be used to judge the authenticity and correctness of the two signals to overcome the influence of the external environment on the normal operation of the sensor.

[0005] In order to achieve the above purpose, the utility model provides the following technical solutions:

[0006] A dual-channel output angle sensor circuit, the dual-channel output angle sensor circuit comprises: a power supply module, a Hall chip module and a signal processing module connected in sequence according to a signal transmission direction;

[0007] The power module is used to provide power to the entire circuit.

[0008] The Hall chip module includes two Hall circuits for sensing and outputting two independent signals, namely signal 1 and signal 2;

[0009] The signal processing module is used to receive and process the output signal output by the Hall chip module. The signal processing module includes an independent first processing module and a second processing module. The first processing module is used to process signal 1 to ultimately output the current voltage value corresponding to signal 1; the second processing module is used to process signal 2 to ultimately output the current voltage value corresponding to signal 2.

[0010] As a further solution of the utility model: the current voltage values ​​corresponding to the signal 1 and the signal 2 are used to calculate the rotation angle of the sensor.

[0011] As a further solution of the utility model: the first processing module and the second processing module both include a single chip unit and a digital-to-analog conversion unit connected in sequence according to the signal transmission direction;

[0012] The single chip microcomputer unit is used to process the received signal 1 or signal 2 to obtain a digital signal;

[0013] The digital-to-analog conversion unit is used to process the received digital signal.

[0014] As a further solution of the utility model: the power module includes a power input interface unit and a two-way power stabilization unit, the power stabilization unit is used to output two-way voltage signals,

[0015] The power input interface unit includes an input voltage line VSUP+, a ground line GND-0, a TVS tube T1, a capacitor C1 and an anti-reverse diode D1;

[0016] Among them, the input voltage line VSUP+ and the ground line GND-0 are arranged in parallel to form a complete loop for the dual-output angle sensor circuit. The TVS tube T1, the capacitor C1 and the power supply voltage stabilizing unit are connected to the input voltage line VSUP+ and the ground line GND-0 in sequence according to the signal transmission direction. The anti-reverse diode D1 is connected to the input voltage line VSUP+ between the capacitor C1 and the power supply voltage stabilizing unit. The two independent power supply voltage stabilizing units are connected to the power input interface unit via the PER_IN terminal on the input voltage line VSUP+.

[0017] As a further solution of the utility model: the power supply voltage stabilizing unit includes two magnetic beads, two capacitors, a linear voltage stabilizing chip and a capacitor in sequence according to the signal transmission direction;

[0018] Among them, the magnetic beads are respectively connected to the input voltage line and the ground line. After the two ends of the two capacitors are respectively connected to the input voltage line and the ground line, the end connected to the ground line is grounded, and the end connected to the input voltage line is connected to the input end of the linear voltage regulator chip for power input. The ground end of the linear voltage regulator chip is grounded, and the output end is used to connect with the Hall chip module and the single-chip microcomputer module. The ground end and the output end of the linear voltage regulator chip are connected by a capacitor to stabilize the output voltage.

[0019] As a further solution of the utility model: the Hall chip module includes a Hall chip and two resistors, and the Hall chip has two built-in sensing circuits, so that the Hall chip has two power ports and two output ports;

[0020] Among them, the power supply port of the first sensing circuit is the VDD1 pin and the CSN1 pin of the Hall chip, and the power supply port of the second sensing circuit is the VDD2 pin and the CSN2 pin of the Hall chip;

[0021] The output ports of the first sensing circuit are the SCK1 pin, MOSI1 pin and MISO1 pin of the Hall chip, which are used to output signal 1. The output ports of the second sensing circuit are the SCK2 pin, MOSI2 pin and MISO2 pin of the Hall chip, which are used to output signal 2.

[0022] As a further solution of the utility model: the single-chip microcomputer model in the single-chip microcomputer unit is: PIC16F1829_I / ML;

[0023] Among them, the RA5 pin of the microcontroller outputs the PROG_IN1 signal or the PROG_IN2 signal.

[0024] As a further solution of the utility model: the model of the digital-to-analog conversion chip in the digital-to-analog conversion unit is: DAC121S101-Q1;

[0025] Among them, the VOUT pin of the digital-to-analog conversion chip is connected to a resistor and an RC circuit in sequence according to the signal transmission direction to output an OUTA signal or an OUTB signal.

[0026] As a further solution of the utility model: the dual-channel output angle sensor circuit further includes: an output interface module for outputting only one channel of analog signal;

[0027] The output interface module includes a data interface and two TVS tubes. The input ports of the data interface, i.e., pins 4 and 5, are respectively connected to the output ends of the VOUT pins of the two data conversion chips for receiving OUTA signals or OUTB signals, and pins 4 or 5 are respectively connected in parallel with one end of a TVS tube, and the other end of the TVS tube is grounded.

[0028] As a further solution of the utility model: the dual-channel output angle sensor circuit further includes: a first zeroing circuit and a second zeroing circuit;

[0029] The first zeroing circuit or the second zeroing circuit is connected to the RA5 pin of the single-chip microcomputer. The zeroing circuit is used by the internal program in the single-chip microcomputer and cooperates with the hardware circuit to make the signal 1 or the signal 2 zeroed;

[0030] The first zeroing circuit includes, in order according to the direction of signal transmission, a transmission path along the PROG_IN1 signal, the resistor R23, and the TPW output end, and another transmission path along the PROG_IN1 signal, the TVS tube, and the ground end, and a test point TP15 is connected in parallel between the TVS tube and the ground end;

[0031] Resistors R24 and T2 are connected in parallel between the PROG_IN1 signal and the resistor R23 in the direction of signal transmission. The other end of the resistor R24 ​​is connected to the input end of T2 and then grounded. The input end of T2 is simultaneously connected between the TVS tube and the ground end.

[0032] The second zeroing circuit is connected to the RA5 pin of the microcontroller through the PROG_IN1 signal and the PROG_IN2 signal. The PROG_IN1 signal is connected in parallel with the PROG_IN2 signal after passing through the resistor R25.

[0033] The second zeroing circuit is sequentially connected to the PROG_IN1 signal or the PROG_IN2 signal, the TVS tube and the ground terminal according to the direction of signal transmission. A test point TP16 is connected in parallel between the TVS tube and the ground terminal.

[0034] Compared with the prior art, the beneficial effects of the utility model are:

[0035] 1. The utility model forms two independent signals through two independently connected signal processing modules respectively connected to the output end of the Hall chip module. Two completely independent sensing circuits are built into the Hall integrated circuit, i.e., the Hall chip, and have two independent signal output pins, so that the two output voltage signals do not interfere with each other.

[0036] 2. The utility model determines the rotation direction of the sensor according to the output signal 1 and signal 2, and the sum of the voltages is 5V. When signal 1 rotates clockwise, the output voltage of the OUTB signal rises; when signal 2 rotates clockwise, the output voltage of the OUTA signal drops. The clockwise rotation angle of the angle sensor is calculated based on the current voltage values ​​finally output by OUTA and OUTB, thereby achieving the complementarity of the two output signals and utilizing the redundant design of multiple modules to complete the identification of the authenticity of the two output signals, thereby reducing the impact of the outside world on the operation of the sensor and improving the stability of the product output.

[0037] 3. The utility model ensures that the power supplies of the two signals are independent of each other and do not interfere with each other through the redundant design of the power supply module, thereby improving the power supply stability and the circuit anti-interference ability.

[0038] 4. The utility model adopts a redundant design at the signal processing module, so that the first processing module and the second processing module are independent of each other and are not interfered by other signals, thereby improving the reliability of the product.

[0039] 5. The utility model optimizes the power input interface unit in the power module so that the circuit has wide voltage, surge protection and isolation functions to better output stable power.

[0040] 6. The utility model has a compact structure, small installation space, strong stability, and good reliability and anti-interference ability. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 The utility model is a schematic diagram of the overall circuit principle of a dual-output angle sensor circuit.

[0042] Figure 2 This is a circuit schematic diagram of the power module in the utility model.

[0043] Figure 3 This is a circuit schematic diagram of the Hall chip module in the utility model.

[0044] Figure 4 The schematic diagram of the circuit of the single chip microcomputer in the signal processing module of the utility model is shown in FIG.

[0045] Figure 5 The circuit schematic diagram of the digital-to-analog conversion circuit module in the signal processing module of the utility model.

[0046] Figure 6 This is a circuit schematic diagram of the output interface module in the data output module of the utility model.

[0047] Figure 7 The circuit diagram of the zeroing signal module in the data output module of the utility model is shown in FIG. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0049] See also Figure 1-Figure 7In an embodiment of the utility model, a dual-channel output angle sensor circuit includes: a power module, a Hall chip module and a signal processing module connected in sequence according to the signal transmission direction; the power module is used to provide power for the entire circuit, the Hall chip module includes two Hall circuits, which are used to sense and output two independent signals, namely signal 1 and signal 2; the signal processing module is used to receive and process the output signal output by the Hall chip module, and the signal processing module includes an independent first processing module and a second processing module, which are used to process signal 1; the second processing module is connected to the output end of signal 2 in the Hall chip module, and is used to process signal 2; according to the current voltage values ​​of the final output signals 1 and 2, the angle of rotation of the angle sensor is calculated; and the first processing module and the second processing module form a redundant design at the signal processing module to complete the judgment of the authenticity of the two final output signals, and through two independent and complementary signals, the accuracy and authenticity of the output signal finally applied are ensured to improve the stability of the product output.

[0050] The current voltage values ​​corresponding to signal 1 and signal 2 are used to calculate the rotation angle of the sensor. The angle calculation formula is as follows:

[0051]

[0052] The voltage of signal 1 or signal 2 is determined according to the clockwise or counterclockwise rotation of the sensor shaft, and the clockwise rotation angle of the angle sensor is calculated according to the current voltage value finally output by OUTA and OUTB.

[0053] By using the angle calculation formula, the angle of the angle sensor rotating in the clockwise or counterclockwise direction can be directly obtained, which is more convenient.

[0054] When the sensor is rotating, the Hall chip U3 senses the change in the magnetic field of the magnet in the sensor and transmits the sensed data (i.e., the generated signal 1 and signal 2) to the single-chip microcomputer. The single-chip microcomputer then transmits the digital signal to the digital-to-analog conversion circuit to convert it into an analog signal output. After passing through the RC filtering circuit, the signals are output to OUTA and OUTB respectively. Finally, OUTA and OUTB are output to the external signal through the TVS tube to convert the rotation angle of the sensor.

[0055] There is only one TPW in the zeroing signal circuit. After the sensor's zeroing signal circuit is powered on by a 24V power supply, it generates a rectangular square wave every 1s and sends it to the inside of the microcontroller through the PROG_IN1 signal and the PROG_IN2 signal. The circuit synchronously connects the PROG_IN1 signal to the RA5 pin of U4 and the PROG_IN2 signal to the RA5 pin of U5 through resistor R25, achieving the synchronous zeroing effect of signal 1 and signal 2, so as to facilitate the next angle conversion of the angle sensor.

[0056] refer to Figure 2 :

[0057] The power module includes a power input interface unit and two power supply stabilizing units. The power supply stabilizing units are used to output two voltage signals. The power input interface unit includes an input voltage line VSUP+, a ground line GND-0, a TVS tube T1, a capacitor C1 and an anti-reverse diode D1. The input voltage line VSUP+ and the ground line GND-0 are arranged in parallel to form a complete loop for a dual-channel output angle sensor circuit. The TVS tube T1, the capacitor C1 and the power supply stabilizing unit are connected to the input voltage line VSUP+ and the ground line GND-0 in sequence according to the signal transmission direction. The anti-reverse diode D1 is connected to the input voltage line VSUP+ between the capacitor C1 and the power supply stabilizing unit. The two independent power supply stabilizing units are connected to the power input interface unit by the PER_IN terminal on the input voltage line VSUP+;

[0058] The power supply voltage stabilization unit includes two magnetic beads, two capacitors, a linear voltage stabilization chip and a capacitor in sequence according to the signal transmission direction;

[0059] In the power supply voltage stabilizing unit providing power for the first processing module, magnetic beads FB1 and FB2 are respectively connected to the input voltage line VSUP+ and the ground line GND-0. After the two ends of the two capacitors C2 and C3 are respectively connected to the input voltage line VSUP+ and the ground line GND-0, the end connected to the ground line GND-0 is grounded, that is, connected to the AGND end, and the end connected to the input voltage line VSUP+ is connected to the input end of the linear voltage regulator chip U1 for power input. The ground end of the linear voltage regulator chip U1 is grounded, that is, connected to the AGND end, and the output end is used to connect to the Hall chip module and the single-chip microcomputer module. The AGND end and the output end VDD end of the linear voltage regulator chip U1 are connected by a capacitor C4 for outputting a stable voltage for the first processing module.

[0060] In the power supply voltage stabilizing unit providing power for the second processing module, magnetic beads FB3 and FB4 are respectively connected to the input voltage line VSUP+ and the ground line GND-0. After the two ends of the two capacitors C5 and C6 are respectively connected to the input voltage line VSUP+ and the ground line GND-0, the end connected to the ground line GND-0 is grounded, that is, connected to the AVSS end, and the end connected to the input voltage line VSUP+ is connected to the input end of the linear voltage regulator chip U2 for power input. The ground end of the linear voltage regulator chip U2 is grounded, that is, connected to the AVSS end, and the output end is used to connect to the Hall chip module and the single-chip microcomputer module. The AVSS end and the output end VCC end of the linear voltage regulator chip U2 are connected by a capacitor C7 for outputting a stable voltage for the second processing module.

[0061] Among them, TVS tube T1 can prevent surge damage to the circuit, anti-reverse diode D1 is used to ensure unidirectional conduction of the circuit, capacitor C2, capacitor C3, capacitor C4, capacitor C5, capacitor C6 and capacitor C7 provide filtering for the circuit, magnetic beads FB1, magnetic beads FB2, magnetic beads FB3 and magnetic beads FB4 improve the power supply stability and the anti-interference ability of the circuit, linear voltage regulator chip U1 and linear voltage regulator chip U2 both output a stable 5V voltage, providing the same voltage for the subsequent two output circuits, ensuring that the power supply size of the two output circuits is the same. In this embodiment, linear voltage regulator chip U1 and linear voltage regulator chip U2 both use ZCC5650BTS model.

[0062] Reference Figure 3 and Figure 4 :

[0063] The Hall chip module includes a Hall chip U3 and two resistors, namely R1 and R2. The resistors R1 and R2 protect the internal circuit of the Hall chip U3 and also resist interference, making the signal output more stable. The Hall chip U3 in this embodiment adopts the HAR3900GU model. The Hall chip has two built-in sensing circuits, so that the Hall chip has two power ports and two output ports, and forms a redundant design at the Hall chip module.

[0064] Among them, the power supply port of the first sensing circuit is the VDD1 pin and the CSN1 pin of the Hall chip U3, and the power supply port of the second sensing circuit is the VDD2 pin and the CSN2 pin of the Hall chip;

[0065] The VDD1 pin is connected to a resistor R1 and then connected to the VDD1 pin and CSN1 pin of the Hall chip U3. The CSN1 pin of the Hall chip U3 is connected to the resistor R1. The CSN1 pin is connected to a resistor R2 and then connected to the VDD2 pin and CSN2 pin of the Hall chip U3. The CSN2 pin of the Hall chip U3 is connected to the resistor R2.

[0066] The output ports of the first sensing circuit are the SCK1 pin, MOSI1 pin and MISO1 pin of the Hall chip U3, which are used to output signal 1. The output ports of the second sensing circuit are the SCK2 pin, MOSI2 pin and MISO2 pin of the Hall chip, which are used to output signal 2.

[0067] The WAKE1 pin and WAKE2 pin of the Hall chip U3 are both suspended, its GND1 pin and TEST1 pin are connected in parallel to the AGND terminal, and its GND2 pin and TEST2 pin are connected in parallel to the AVSS terminal.

[0068] Reference Figure 4 and Figure 5 :

[0069] The first processing module and the second processing module both include a single-chip unit and a digital-to-analog conversion unit connected in sequence according to the signal transmission direction; the single-chip unit is used to process the received signal 1 or signal 2 to obtain a digital signal; the digital-to-analog conversion unit is used to process the received digital signal. In this embodiment, the single-chip microcomputer adopts a single-chip microcomputer of model PIC16F1829-I / ML, and the digital-to-analog conversion circuit module adopts a digital-to-analog conversion chip of model DAC121S101-Q1. The first processing module and the second processing module finally output analog signals, and the sum of their voltages is 5V. When signal 1: rotates clockwise, the output voltage of OUTA decreases; when signal 2: rotates clockwise, the output voltage of OUTB increases, thereby realizing the complementarity of the two output signals, and utilizing the redundant design of multiple modules to complete the identification of the authenticity of the two output signals, so as to reduce the influence of the outside world on the operation of the sensor and improve the stability of the product output;

[0070] The single chip microcomputer is used for processing the received signal 1 or signal 2 to convert the received signal 1 or signal 2 into a digital signal, and the digital-to-analog conversion unit is used for processing the received digital signal and converting the digital signal into an analog signal;

[0071] Among them, the VPP pin of the single-chip microcomputer U4 in the first processing module is the single-chip microcomputer burning test point, which is used to output the VPP1 signal, and its RC7 pin, RB6 pin and RB4 pin are the input ends of the single-chip microcomputer U4, and its RC7 pin is connected to the resistor R4, and the RB6 pin is connected to the resistor R5, and the RB4 pin is connected to the resistor R6, and then they are respectively connected to the MOSI1 pin, SCK1 pin, and MISO1 pin of the Hall chip U3, and are used to receive the separate signal 1 output by the Hall chip U3, so as to convert the signal 1 into an analog signal;

[0072] The RC5 pin, RC4 pin, RC3 pin, RA2 pin and RA4 pin of its single-chip computer U4 are all suspended;

[0073] The RC6 pin of the microcontroller U4 is connected to a resistor R3 and then connected to the CSN1 pin of the Hall chip U3 to achieve maintenance of the power supply end;

[0074] The RB7 pin and the RB5 pin are connected to the test point TP1 and the test point TP3 respectively, and are used to implement external testing on the single-chip microcomputer U4;

[0075] After the RC2 pin is connected to the resistor R10, the RC1 pin is connected to the resistor R9 and the RC0 pin is connected to the resistor R8, they are respectively connected to the SYNC pin, SCLK pin and DIN pin of the digital-to-analog conversion chip U6, so as to output the digital signal processed by the single-chip microcomputer U4 to the digital-to-analog conversion chip U6;

[0076] The RA1 pin of the microcontroller is used to output the PCLK1 signal to the TP9 test point on the signal board. The TP9 test point is on one side of the signal board.

[0077] The RA0 pin is used to output the PDATA1 signal to the TP7 test point on the signal board. The TP7 test point is on one side of the signal board.

[0078] The VSS pin and EPAD pin are directly connected to the AGND terminal;

[0079] The VDD pin is the power input terminal, and a capacitor C8 and a resistor R7 are connected in parallel thereto. The end of the capacitor C8 away from the microcontroller U4 is connected to the AGND terminal, and the capacitor C8 plays a filtering role. The end of the resistor R7 away from the microcontroller U4 is connected to the output terminal VDD of the linear voltage regulator chip U1, and is used to input power to the microcontroller U4. The resistor R7 plays a role in stabilizing the power supply of the microcontroller U4.

[0080] The RA5 pin is used to output the PROG_IN1 signal, and transmit the PROG_IN1 signal to the first zero-setting signal circuit and the second zero-setting signal circuit.

[0081] The VOUT pin of the digital-to-analog conversion chip U6 in the first processing module is connected to a resistor and an RC circuit in sequence according to the signal transmission direction to output the OUTA signal. In the direction of signal transmission, it is connected to a resistor R19, a capacitor C12 in parallel, one end of a resistor R20 and the OUTA signal. The other end of the capacitor C12 in parallel and a resistor R20 is connected to the AGND end. The capacitor C12 and the resistor R20 play a filtering role to output a stable analog signal voltage value.

[0082] The GND pin is directly connected to the AGND terminal;

[0083] The VA pin is connected to the output terminal VDD of the linear voltage regulator chip U1 after connecting two parallel capacitors C10 and one end of the capacitor C11, and the other end of the two parallel capacitors C10 and the capacitor C11 is connected to the AGND terminal; the capacitors C10 and C11 are filter capacitors used to stabilize the power supply of the digital-to-analog conversion chip U6.

[0084] Among them, the VPP pin of the single-chip microcomputer U5 in the second processing module is the single-chip microcomputer burning test point, which is used to output the VPP2 signal, and its RC7 pin, RB6 pin and RB4 pin are the input ends of the single-chip microcomputer U5, and its RC7 pin is connected to the resistor R12, the RB6 pin is connected to the resistor R13, and the RB4 pin is connected to the resistor R14, and then they are respectively connected to the MOSI2 pin, SCK2 pin, and MISO2 pin of the Hall chip U3, and are used to receive the separate signal 2 output by the Hall chip U3, so as to convert the signal 2 into an analog signal;

[0085] The RC5, RC4, RC3, RA2 and RA4 pins of the microcontroller U5 are all left floating;

[0086] The RC6 pin of the microcontroller U5 is connected to a resistor R11 and then connected to the CSN2 pin of the Hall chip U3 to achieve maintenance of the power supply end;

[0087] The RB7 pin and the RB5 pin are connected to the test point TP2 and the test point TP4 respectively, and are used to implement external testing of the microcontroller U5;

[0088] After the RC2 pin is connected to the resistor R18, the RC1 pin is connected to the resistor R17 and the RC0 pin is connected to the resistor R16, they are respectively connected to the SYNC pin, SCLK pin and DIN pin of the digital-to-analog conversion chip U7, so as to output the digital signal processed by the single-chip microcomputer U5 to the digital-to-analog conversion chip U7;

[0089] The RA1 pin of the microcontroller is used to output the PCLK2 signal to the TP10 test point on the signal board. The TP10 test point is on one side of the signal board.

[0090] The RA0 pin is used to output the PDATA2 signal to the TP8 test point on the signal board. The TP8 test point is on one side of the signal board.

[0091] The VSS pin and EPAD pin are directly connected to the AVSS terminal;

[0092] The VDD pin is the power input terminal, and a capacitor C9 and a resistor R15 are connected in parallel thereto. The end of the capacitor C9 away from the microcontroller U5 is connected to the AVSS terminal, and the capacitor C9 plays a filtering role. The end of the resistor R15 away from the microcontroller U5 is connected to the output terminal VCC of the linear voltage regulator chip U2, and is used to input power to the microcontroller U5. The resistor R15 plays a role in stabilizing the power supply of the microcontroller U5.

[0093] The RA5 pin is used to output the PROG_IN2 signal and transmit the PROG_IN2 signal to the second zeroing signal circuit.

[0094] The VOUT pin of the digital-to-analog conversion chip U7 in the second processing module is connected to a resistor and an RC circuit in sequence according to the signal transmission direction to output the OUTB signal. In the direction of signal transmission, it is connected to a resistor R21, a capacitor C15 in parallel, one end of a resistor R22 and the OUTB signal. The other end of the capacitor C15 in parallel and a resistor R22 is connected to the AVSS terminal. The capacitor C15 and the resistor R22 play a filtering role to output a stable analog signal voltage value.

[0095] The GND pin is directly connected to the AVSS terminal;

[0096] The VA pin is connected to the output terminal VCC of the linear voltage regulator chip U3 after connecting one end of the two parallel capacitors C13 and C14, and the other end of the two parallel capacitors C13 and C14 is connected to the AVSS terminal; the capacitors C13 and C14 are filter capacitors used to stabilize the power supply of the digital-to-analog conversion chip U7.

[0097] Reference Figure 6 :

[0098] The dual-channel output angle sensor circuit also includes: an output interface module, which is used to output only one channel of analog signal;

[0099] The output interface module includes a data interface model Header 5H and two TVS tubes. The input ports of the data interface, namely pins 4 and 5, are respectively connected to the output ends of the VOUT pins of the two data conversion chips for receiving OUTA signals or OUTB signals, and pins 4 or 5 are respectively connected in parallel to one end of a TVS tube, and the other end of the TVS tube is grounded.

[0100] Pin 1 of the output interface P3 is connected to the ground line GND-0 of the power input interface unit;

[0101] Pin 2 is connected to the input voltage line VSUP+ of the power input interface unit;

[0102] Pin 3 is the soldering pad TPW corresponding to the output interface harness.

[0103] Reference Figure 7 :

[0104] The dual-output angle sensor circuit also includes: a first zeroing circuit and a second zeroing circuit;

[0105] The first zeroing circuit or the second zeroing circuit is connected to the RA5 pin of the single-chip microcomputer. The zeroing circuit uses the internal program in the single-chip microcomputer and cooperates with the hardware circuit to achieve a synchronous zeroing effect for signal 1 and signal 2;

[0106] Among them, the first zeroing circuit is respectively the PROG_IN1 signal, the resistor R23, the TPW output terminal, the PROG_IN1 signal, the TVS tube, and the AGND terminal according to the direction of signal transmission, and a test point TP15 is connected in parallel between the TVS tube and the AGND terminal;

[0107] A resistor R24 ​​and T2 are connected in parallel between the resistor R23 and the PROG_IN1 signal in the direction of signal transmission. T2 appears as a component on the circuit board, but is composed of four voltage-stabilizing diodes inside the schematic diagram. The other end of the resistor R24 ​​is connected to the input end of T2 and then to the AGND end. The input end of T2 is simultaneously connected between the voltage-stabilizing diode D2 and the AGND end.

[0108] The second zeroing circuit is connected to the RA5 pin of the microcontroller through the PROG_IN1 signal and the PROG_IN2 signal, and the PROG_IN1 signal is connected in parallel with the PROG_IN2 signal after passing through the resistor R25;

[0109] The second zeroing circuit is sequentially connected to PROG_IN1 signal or PROG_IN2 signal, TVS tube and ground terminal according to the direction of signal transmission. A test point TP16 is connected in parallel between the TVS tube and the AVSS terminal. The zeroing signal circuit can be tested from the outside using the test point TP16.

[0110] Of course, it is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, but also includes the same or similar structures that can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-limiting, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any reference numerals in the claims should not be regarded as limiting the claims involved.

[0111] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

[0112] The techniques, shapes, and structural parts not described in detail in the present invention are all well-known techniques.

Claims

1. A dual-output angle sensor circuit, characterized in that: The dual-output angle sensor circuit includes: a power module, a Hall chip module and a signal processing module which are sequentially connected according to the signal transmission direction; The power module is used to provide power to the entire circuit. The Hall chip module includes two Hall circuits for sensing and outputting two independent signals, namely signal 1 and signal 2; The signal processing module is used to receive and process the output signal output by the Hall chip module. The signal processing module includes an independent first processing module and a second processing module. The first processing module is used to process signal 1 to ultimately output the current voltage value corresponding to signal 1; the second processing module is used to process signal 2 to ultimately output the current voltage value corresponding to signal 2.

2. A dual-output angle sensor circuit according to claim 1, characterized in that: The current voltage values ​​corresponding to the signal 1 and the signal 2 are used to calculate the rotation angle of the sensor.

3. A dual-output angle sensor circuit according to claim 1, characterized in that: The first processing module and the second processing module both include a single chip unit and a digital-to-analog conversion unit which are sequentially connected according to the signal transmission direction; The single chip microcomputer unit is used to process the received signal 1 or signal 2 to obtain a digital signal; The digital-to-analog conversion unit is used to process the received digital signal.

4. A dual-output angle sensor circuit according to claim 1, characterized in that: The power module includes a power input interface unit and two power stabilizing units. The power stabilizing units are used to output two voltage signals. The power input interface unit includes an input voltage line VSUP+, a ground line GND-0, a TVS tube T1, a capacitor C1 and an anti-reverse diode D1; Among them, the input voltage line VSUP+ and the ground line GND-0 are arranged in parallel to form a complete loop for the dual-output angle sensor circuit. The TVS tube T1, the capacitor C1 and the power supply voltage stabilizing unit are connected to the input voltage line VSUP+ and the ground line GND-0 in sequence according to the signal transmission direction. The anti-reverse diode D1 is connected to the input voltage line VSUP+ between the capacitor C1 and the power supply voltage stabilizing unit. The two independent power supply voltage stabilizing units are connected to the power input interface unit via the PER_IN terminal on the input voltage line VSUP+.

5. A dual-output angle sensor circuit according to claim 4, characterized in that: The power supply voltage stabilization unit includes two magnetic beads, two capacitors, a linear voltage stabilization chip and a capacitor in sequence according to the signal transmission direction; Among them, the magnetic beads are respectively connected to the input voltage line and the ground line. After the two ends of the two capacitors are respectively connected to the input voltage line and the ground line, the end connected to the ground line is grounded, and the end connected to the input voltage line is connected to the input end of the linear voltage regulator chip for power input. The ground end of the linear voltage regulator chip is grounded, and the output end is used to connect with the Hall chip module and the single-chip microcomputer module. The ground end and the output end of the linear voltage regulator chip are connected by a capacitor to stabilize the output voltage.

6. A dual-output angle sensor circuit according to claim 1, characterized in that: The Hall chip module includes a Hall chip and two resistors. The Hall chip has two built-in sensing circuits, so that the Hall chip has two power ports and two output ports. Among them, the power supply port of the first sensing circuit is the VDD1 pin and the CSN1 pin of the Hall chip, and the power supply port of the second sensing circuit is the VDD2 pin and the CSN2 pin of the Hall chip; The output ports of the first sensing circuit are the SCK1 pin, MOSI1 pin and MISO1 pin of the Hall chip, which are used to output signal 1. The output ports of the second sensing circuit are the SCK2 pin, MOSI2 pin and MISO2 pin of the Hall chip, which are used to output signal 2.

7. A dual-output angle sensor circuit according to claim 3, characterized in that: The microcontroller model in the microcontroller unit is: PIC16F1829_I / ML; Among them, the RA5 pin of the microcontroller outputs the PROG_IN1 signal or the PROG_IN2 signal.

8. A dual-output angle sensor circuit according to claim 3, characterized in that: The model of the digital-to-analog conversion chip in the digital-to-analog conversion unit is: DAC121S101-Q1; Among them, the VOUT pin of the digital-to-analog conversion chip is connected to a resistor and an RC circuit in sequence according to the signal transmission direction to output an OUTA signal or an OUTB signal.

9. A dual-output angle sensor circuit according to claim 3, characterized in that: The dual-channel output angle sensor circuit also includes: an output interface module, which is used to output only one channel of analog signal; The output interface module includes a data interface Header 5H and two TVS tubes. The input ports of the data interface, i.e., pins 4 and 5, are respectively connected to the output ends of the VOUT pins of the two data conversion chips for receiving OUTA signals or OUTB signals, and pins 4 or 5 are respectively connected in parallel with one end of a TVS tube, and the other end of the TVS tube is grounded.

10. The dual-output angle sensor circuit according to claim 7, characterized in that: The dual-output angle sensor circuit also includes: a first zero-setting circuit and a second zero-setting circuit; The first zeroing circuit or the second zeroing circuit is connected to the RA5 pin of the single-chip microcomputer. The zeroing circuit uses the internal program in the single-chip microcomputer and cooperates with the hardware circuit to make the signal 1 and the signal 2 zeroed at the same time; The first zeroing circuit includes, in order according to the direction of signal transmission, a transmission path along the PROG_IN1 signal, the resistor R23, and the TPW output end, and another transmission path along the PROG_IN1 signal, the TVS tube, and the ground end, and a test point TP15 is connected in parallel between the TVS tube and the ground end; Resistors R24 and T2 are connected in parallel between the PROG_IN1 signal and the resistor R23 in the direction of signal transmission. The other end of the resistor R24 ​​is connected to the input end of T2 and then grounded. The input end of T2 is simultaneously connected between the TVS tube and the ground end. The second zeroing circuit is connected to the RA5 pin of the microcontroller through the PROG_IN1 signal and the PROG_IN2 signal. The PROG_IN1 signal is connected in parallel with the PROG_IN2 signal after passing through the resistor R25. The second zeroing circuit is sequentially connected to the PROG_IN1 signal or the PROG_IN2 signal, the TVS tube and the ground terminal according to the direction of signal transmission. A test point TP16 is connected in parallel between the TVS tube and the ground terminal.