Disclosure of Invention
In view of this, embodiments of the present invention provide a steering engine current detection circuit and system, which are used to solve the problems of PCB area waste, a small applicable current detection range, and low versatility in the conventional current detection technology.
The first aspect of the embodiments of the present invention provides a steering engine current detection circuit, including:
a first direct current power supply module for providing a direct current signal;
the control module is used for outputting an adjusting signal to control and adjust the current detection range;
the half-bridge module is connected with the first direct current power supply module and used for current sampling and overcurrent protection triggering;
the first digital potentiometer is connected with the control module and the half-bridge module and used for collecting voltage drop signals on the conduction internal resistance of the half-bridge module and selecting a first resistance value according to the adjusting signal;
the second digital potentiometer is connected with the control module and the half-bridge module and used for collecting voltage drop signals on the conduction internal resistance of the half-bridge module and selecting a second resistance value according to the adjusting signal; and the operational amplifier module is connected with the first digital potentiometer and the second digital potentiometer, is configured to receive the voltage drop signal, and is configured to amplify and output the voltage drop signal after adjusting the operational amplifier gain of the operational amplifier according to the first resistance value and the second resistance value.
Optionally, the half-bridge module includes:
the first switch tube and the second switch tube;
the input end of the first switch tube is connected with the direct-current power supply module, and the output end of the first switch tube is connected with the input end of the second switch tube; the output end of the second switch tube is grounded.
Optionally, the first digital potentiometer and the second digital potentiometer are implemented by using a first digital potential chip and a second digital potential chip, respectively;
the resistance values of the first digital potential chip and the second digital potential chip respectively comprise 5K omega, 10K omega, 50K omega and 100K omega.
Optionally, the control module is a single chip microcomputer;
the single chip microcomputer is connected with a first controlled pin and a second controlled pin of the first digital potential chip through an integrated circuit bus, and is connected with a first controlled pin and a second controlled pin of the second digital potential chip through the integrated circuit bus.
Optionally, the operational amplifier module includes an operational amplifier,
the positive phase input end of the operational amplifier is connected with the first output pin and the second output pin of the first digital potential chip, and the negative phase input end of the operational amplifier is connected with the first output pin and the second output pin of the second digital potential chip.
Optionally, the steering engine current detection circuit further includes a first decoupling capacitor and a second decoupling capacitor;
the first end of the first decoupling capacitor is connected with the power supply pin of the first digital potential chip, and the second end of the first decoupling capacitor is grounded; and the first end of the second decoupling capacitor is connected with the power supply pin of the second digital potential chip, and the second end of the second decoupling capacitor is grounded.
Optionally, the steering engine current detection circuit further includes a second direct current power supply module;
the second DC power supply module is configured to supply power to the first digital potentiometer, the second digital potentiometer and the operational amplifier module.
The second aspect of the embodiment of the invention provides a steering engine current detection system, which comprises the steering engine current detection circuit and a motor, wherein a stator winding of the motor is connected with the half-bridge module.
The steering engine current detection circuit and the steering engine current detection system control and adjust the first resistance value of the first digital potentiometer and the second resistance value of the second digital potentiometer through the control module to adjust the gain of the operational amplifier module, so that the effects of widening the current detection range and improving the universality of the circuit are achieved under the condition that the hardware of the circuit does not need to be changed. In addition, the on-resistance of the half-bridge module is directly adopted as the sampling resistor, and a power resistor is not required to be additionally connected in series in the circuit for current sampling, so that the effects of saving the area of the PCB and reducing the cost are achieved, and the problems of PCB area waste, small applicable current detection range and low universality in the traditional current detection technology are solved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, a schematic block structure diagram of a steering engine current detection circuit according to an embodiment of the present invention is shown, for convenience of description, only the parts related to the embodiment are shown, and detailed descriptions are as follows:
a steering engine current detection circuit comprises a first direct current power supply module 10, a control module 20, a half-bridge module 30, a first digital potentiometer 40, a second digital potentiometer 50 and an operational amplifier module 60.
The first dc power supply module 10 is configured to provide a dc power signal.
The control module 20 is configured to output a regulation signal to control the regulation of the current detection range.
The half-bridge module 30 is connected to the first dc power module 10, and is used for current sampling and overcurrent protection triggering.
The first digital potentiometer 40 is connected to the control module 20 and the half-bridge module 30, and is configured to collect a voltage drop signal on the on-resistance of the half-bridge module 30, and select a first resistance value according to the adjustment signal.
The second digital potentiometer 50 is connected to the control module 20 and the half-bridge module 30, and is configured to collect a voltage drop signal on the on-resistance of the half-bridge module 30, and select a second resistance value according to the adjustment signal.
The operational amplifier module 60 is connected to the first digital potentiometer 40 and the second digital potentiometer 50, and configured to receive the voltage drop signal, adjust an operational amplifier gain of the operational amplifier according to the first resistance value and the second resistance value, and amplify and output the voltage drop signal.
The first dc power supply module 10 provides a dc signal to the half-bridge module 30. The control module 30 is realized by a single chip microcomputer; in an alternative embodiment, the control module 30 is connected to the first digital potentiometer 40 and the second digital potentiometer 50 through an Inter-Integrated Circuit bus (IIC bus), outputs the adjustment signal to the first digital potentiometer 40 and the second digital potentiometer 50 through a serial data line (denoted by MCU _ SDA in fig. 1) in the IIC bus, and controls the output of the adjustment signal through a serial clock line (denoted by MCU _ SCL in fig. 1) in the IIC bus.
The on-resistance of the half-bridge module 30 is the internal resistance generated when the internal elements of the half-bridge module are on, and the on-resistance of the half-bridge module 30 is used as a sampling resistor for current sampling, so that a power resistor does not need to be additionally connected in series for current sampling, the area of a PCB (printed circuit board) is saved, and the cost is reduced.
According to the steering engine current detection circuit, the control module controls and adjusts the first resistance value of the first digital potentiometer 40 and the second resistance value of the second digital potentiometer 50 to adjust the gain of the operational amplifier module, so that the effects of widening the current detection range and improving the universality of the circuit are achieved under the condition that the hardware of the circuit does not need to be changed. In addition, the on-resistance of the half-bridge module is directly adopted as the sampling resistor, and the power resistor does not need to be additionally connected in series in the half-bridge module for current sampling, so that the effects of saving the area of the PCB and reducing the cost are achieved, and the problems of PCB area waste, small applicable current detection range and low universality in the traditional current detection technology are solved.
Fig. 2 is a schematic diagram of an exemplary steering engine current detection circuit shown in fig. 1. For convenience of explanation, only the parts related to the present embodiment are shown, and detailed as follows:
in an alternative embodiment, the half-bridge module 30 includes a first switch Q5 and a second switch Q6. The input end of the first switching tube Q5 is connected with the direct-current power supply module, and the output end of the first switching tube Q5 is connected with the input end of the second switching tube Q6; the output end of the second switching tube Q6 is grounded. The controlled ends of the first switch tube Q5 and the second switch tube Q6 are connected with a driving signal, the working states of the first switch tube Q5 and the second switch tube Q6 are controlled by the driving signal, and when the driving signal is input into the controlled ends, the first switch tube Q5 and the second switch tube Q6 are conducted to work.
The on-resistance provided by the half-bridge module 30 for current sampling is provided by the second switching tube Q6, and when the second switching tube Q6 is turned on, the generated internal resistance is the on-resistance.
In a specific application, the first switching tube Q5 and the second switching tube Q6 are implemented by NMOS tubes, and a gate, a drain and a source of the NMOS tube correspond to the controlled terminal, the input terminal and the output terminal of the first switching tube Q5 and the controlled terminal, the input terminal and the output terminal of the second switching tube Q6, respectively. In an alternative embodiment, the first switch transistor Q5 and the second switch transistor Q6 may also be implemented by PMOS transistors, and the gate, the source and the drain of the PMOS transistor correspond to the controlled terminal, the input terminal and the output terminal of the first switch transistor Q5 and the controlled terminal, the input terminal and the output terminal of the second switch transistor Q6, respectively.
The first switching tube Q5 and the second switching tube Q6 form a half-bridge network, and the number of the half-bridge networks of the half-bridge module 30 of the steering engine current detection circuit provided by the technical scheme of the invention can be more than or equal to 1.
Fig. 3 is a schematic diagram of an exemplary steering engine current detection circuit according to another embodiment of the present invention. For convenience of explanation, only the parts related to the present embodiment are shown, and detailed as follows:
the half-bridge module 30 includes: the switch comprises a first switch tube Q5, a second switch tube Q6, a third switch tube Q7, a fourth switch tube Q8, a fifth switch tube Q9 and a sixth switch tube Q10. A half-bridge network is formed by the first switching tube Q5 and the second switching tube Q6, the third switching tube Q7 and the fourth switching tube Q8 form a second half-bridge network, and the fifth switching tube Q9 and the sixth switching tube Q10 form a third half-bridge network.
The first switching tube Q5, the third switching tube Q7, and the fifth switching tube Q9 are connected to the first dc power module 10, and are used for current sampling and overcurrent protection triggering.
The second switching tube Q6, the fourth switching tube Q8 and the sixth switching tube Q10 are respectively connected with the first switching tube Q5, the third switching tube Q7 and the fifth switching tube Q9, and are used for current sampling and overcurrent protection triggering.
In an embodiment of the present invention, the first dc power module 10 outputs a dc signal to the half-bridge module 30 composed of the first switching tube Q5, the second switching tube Q6, the third switching tube Q7, the fourth switching tube Q8, the fifth switching tube Q9 and the sixth switching tube Q10, so that the half-bridge module 30 generates three-phase ac power, that is, U-phase ac power generated by the first switching tube Q5 and the second switching tube Q6, V-phase ac power generated by the third switching tube Q7 and the fourth switching tube Q8, and W-phase ac power generated by the fifth switching tube Q9 and the sixth switching tube Q10.
Specifically, the first digital potentiometer 40 is connected to the control module, and is connected to at least any one of the second switching tube Q6, the fourth switching tube Q8 and the sixth switching tube Q10, and is configured to collect a voltage drop signal on the on-state internal resistance of at least any one of the second switching tube Q6, the fourth switching tube Q8 and the sixth switching tube Q10, and select the first resistance value according to the adjustment signal.
The second digital potentiometer 50 is connected to the control module 20, connected to at least any one of the second switching tube Q6, the fourth switching tube Q8 and the sixth switching tube Q10, and configured to collect a voltage drop signal on the on internal resistance of at least any one of the second switching tube Q6, the fourth switching tube Q8 and the sixth switching tube Q10, and select a second resistance value according to the adjustment signal.
The input ends of the first switch tube Q5, the third switch tube Q7 and the fifth switch tube Q9 are connected to the first direct current power module 10, the output ends are respectively connected to the input ends of the second switch tube Q6, the fourth switch tube Q8 and the sixth switch tube Q10, and the output ends of the second switch tube Q6, the fourth switch tube Q8 and the sixth switch tube Q10 are grounded. The input end of the second switch tube Q6 is connected to the voltage drop sampling pin of the first digital potentiometer 40, the output end is connected to the voltage drop sampling pin of the second digital potentiometer 50, and the first digital potentiometer 40 and the second digital potentiometer 50 respectively receive the voltage drop signal through their own voltage drop sampling pins.
The steering engine current detection circuit adjusts the gain of the operational amplifier module 60 by controlling and adjusting the first resistance value of the first digital potentiometer 40 and the second resistance value of the second digital potentiometer 50 through the control module 20, so that the effects of widening the current detection range and improving the universality of the circuit are achieved without changing the hardware of the circuit.
In addition, the on-state internal resistance of any one or more of the second switch tube Q6, the fourth switch tube Q8 and the sixth switch tube Q10 is directly adopted as the sampling resistor, and no power resistor needs to be additionally connected in series under the second switch tube Q6, the fourth switch tube Q8 and the sixth switch tube Q10 for current sampling, so that the effects of saving the area of a PCB (printed circuit board) and reducing the cost are achieved.
Fig. 3 only shows the acquisition of the voltage drop signal on the on-state internal resistance of the second switching tube Q6 by the steering engine current detection circuit of the present invention, so that the detected current value of the U-phase alternating current is output by the operational amplifier module 60. In specific application, the steering engine current detection circuit provided by the embodiment of the invention can detect any one or more of current values of U-phase, V-phase and W-phase alternating currents of three-phase alternating currents by taking the on-resistance of any one or more of the second switching tube Q6, the fourth switching tube Q8 and the sixth switching tube Q10 as a sampling resistor, that is, low-side current detection is performed on the three-phase alternating currents. In addition, the steering engine current detection circuit provided by the embodiment of the invention can also detect any one or more of current values of U-phase, V-phase and W-phase alternating currents of three-phase alternating currents by using the on-resistance of any one or more of the first switching tube Q5, the third switching tube Q7 and the fifth switching tube Q9 as the sampling resistor, that is, detect high-side currents of the three-phase alternating currents.
In an embodiment of the present invention, the first switch transistor Q5, the second switch transistor Q6, the third switch transistor Q7, the fourth switch transistor Q8, the fifth switch transistor Q9, and the sixth switch transistor Q10 are implemented by NMOS transistors.
The input ends of the first switch tube Q5, the second switch tube Q6, the third switch tube Q7, the fourth switch tube Q8, the fifth switch tube Q9 and the sixth switch tube Q10 are drains of NMOS tubes, and the output end is a source of the NMOS tube. The first switch tube Q5, the second switch tube Q6, the third switch tube Q7, the fourth switch tube Q8, the fifth switch tube Q9 and the sixth switch tube Q10 further have controlled ends, which are gates of NMOS tubes, and the gates receive PWM signals output by the single chip microcomputer to serve as driving signals, so as to drive the first switch tube Q5, the second switch tube Q6, the third switch tube Q7, the fourth switch tube Q8, the fifth switch tube Q9 and the sixth switch tube Q10 to work.
Referring to fig. 2 or fig. 3, the first digital potentiometer 40 and the second digital potentiometer 50 are respectively implemented by a first digital level chip U2 and a second digital level chip U3; the resistance values of the first digital potential chip U2 and the second digital potential chip U3 each include 5K Ω, 10K Ω, 50K Ω and 100K Ω. In a preferred embodiment, the first digital potentiometer 40 and the second digital potentiometer 50 are digital potentiometer chips of the type MCP 4632.
As an embodiment of the present invention, the control module 20 is a single chip, the single chip is connected to a first controlled pin (indicated by SCL pin in fig. 2 and 3) and a second controlled pin (indicated by SDA pin in fig. 2 and 3) of the first digital potential chip U2 through an integrated circuit bus, and is connected to a first controlled pin (indicated by SCL pin in fig. 2 and 3) and a second controlled pin (indicated by SDA pin in fig. 2 and 3) of the second digital potential chip U3 through an integrated circuit bus.
The single chip microcomputer outputs adjusting signals to a first controlled pin and a second controlled pin of the first digital potential chip U2 and a first controlled pin and a second controlled pin of the second digital potential chip U3 through an integrated circuit bus, so that the first digital potential chip U2 and the second digital potential chip U3 select a first resistance value or a second resistance value of the single chip microcomputer according to the adjusting signals, the purpose of adjusting and controlling the gain of the operational amplifier module is achieved, the final effect is that a proper current detection range can be selected and configured according to actual requirements, the hardware structure of the circuit does not need to be changed, and the universality is high.
As an embodiment of the invention, the operational amplifier module comprises an operational amplifier, wherein a non-inverting input terminal of the operational amplifier U1 is connected with a first output pin (indicated by P0W pin in FIGS. 2 and 3) and a second output pin (indicated by P1W pin in FIG. 2) of the first digital potential chip U2, and an inverting input terminal of the operational amplifier U1 is connected with a first output pin (indicated by P0W pin in FIGS. 2 and 3) and a second output pin (indicated by P1W pin in FIGS. 2 and 3) of the second digital potential chip U3.
As an embodiment of the present invention, the steering engine current detection circuit further includes a first decoupling capacitor C1 and a second decoupling capacitor C2. A first end of the first decoupling capacitor C1 is connected to a power supply pin (indicated by VDD pin in fig. 2 and 3) of the first digital potential chip U2, and a second end is grounded; the first end of the second decoupling capacitor C2 is connected to the power supply pin (VDD pin in fig. 2 and 3) of the second digital potential chip U3, and the second end is grounded. The first decoupling capacitor C1 and the second decoupling capacitor C2 are used as protection capacitors, which can filter high-frequency interference signals in the power signals input to the first digital chip U2 and the second digital chip U3, provide stable power signals for the chips, and protect the chips.
As an embodiment of the present invention, the steering engine current detection circuit further includes a second dc power supply module configured to supply power to the first digital potentiometer 40, the second digital potentiometer 50, and the operational amplifier module 60. The second dc power supply module is implemented by a dc power supply having a preset voltage value (VCC 1V _65 and VCC _3V3 are used in fig. 2 and 3), and the preset voltage value ranges from 1.65V to 3.3V.
Fig. 4 is a schematic diagram of an exemplary steering engine current detection circuit according to another embodiment of the present invention. The following takes the second switch tube Q6 as an example to describe how to implement the sampling and detection of the current by the on-state internal resistance of the switch tube without connecting the power resistor in series.
The input end of the second switching tube Q6 is connected in series with the gain resistor R326 and then is connected to the positive input end of the operational amplifier, the first end of the gain resistor R328 is connected to the 1.65V dc power supply, and the second end is connected between the positive input end of the operational amplifier and the gain resistor R326; the output end of the second switch tube Q6 is connected in series with the gain resistor R327 and then connected to the positive input end of the operational amplifier, the first end of the gain resistor R329 is connected to the output end of the operational amplifier, and the second end is connected between the positive input end of the operational amplifier and the gain resistor R327. The gain resistors R326 and R327 have the same resistance, and the gain resistors R328 and R329 have the same resistance. The on internal resistance of the second switching tube Q6 is Ron, the current of the U-phase alternating current of the three-phase alternating current flowing into the motor 70 is Iu, and the voltage value corresponding to the detected current value output by the operational amplifier is VI _ U ═ 1.65V + (R328/R326) × Iu Ron. In practical application, a suitable gain resistor can be selected according to the difference of the on-resistance Ron of the second switch tube Q6.
The steering engine current detection circuit provided by the embodiment performs current detection for the sampling resistor by directly adopting the on-state internal resistance of any one or more of the second switching tube Q6, the fourth switching tube Q8 and the sixth switching tube Q10, and does not need to additionally connect power resistors in series under the second switching tube Q6, the fourth switching tube Q8 and the sixth switching tube Q10 for current sampling, so that the effects of saving the area of a PCB (printed circuit board) and reducing the cost are achieved.
Fig. 4 only shows the acquisition of the voltage drop signal on the on-state internal resistance of the second switching tube Q6 by the steering engine current detection circuit of the present invention, so that the operational amplifier module 60 outputs the current value of the U-phase alternating current in the three-phase alternating current. In specific application, the steering engine current detection circuit provided by the embodiment of the invention can detect any one or more of current values of U-phase, V-phase and W-phase alternating currents of three-phase alternating currents by taking the on-resistance of any one or more of the second switching tube Q6, the fourth switching tube Q8 and the sixth switching tube Q10 as a sampling resistor, that is, low-side current detection is performed on the three-phase alternating currents. In addition, the steering engine current detection circuit provided by the embodiment of the invention can also detect any one or more of current values of U-phase, V-phase and W-phase alternating currents of three-phase alternating currents by using the on-resistance of any one or more of the first switching tube Q5, the third switching tube Q7 and the fifth switching tube Q9 as the sampling resistor, that is, detect high-side currents of the three-phase alternating currents. The current detection is performed by using the on-resistance of any one or more of the first switch tube Q5, the third switch tube Q7, the fourth switch tube Q8, the fifth switch tube Q9 and the sixth switch tube Q10 as the sampling resistor, which is similar to the current detection performed by using the on-resistance of the second switch tube Q6 as the sampling resistor, and therefore, the description thereof is omitted.
The second aspect of the embodiment of the present invention provides a steering engine current detection system, which includes the above steering engine current detection circuit, and further includes a motor 70, and a stator winding of the motor 70 is connected to the half-bridge module 30. The half-bridge module 30 outputs ac power for the operation of the motor 70.
Specifically, referring to fig. 2 or fig. 3, the stator winding of the motor 70 is connected between the first switching tube Q5 and the second switching tube Q6; or respectively connected between the first switching tube Q5 and the second switching tube Q6, between the third switching tube Q7 and the fourth switching tube Q8, and between the fifth switching tube Q9 and the sixth switching tube Q10.
According to the steering engine current detection circuit and the steering engine current detection system, the control module controls and adjusts the first resistance value of the first digital potentiometer 40 and the second resistance value of the second digital potentiometer to adjust the gain of the operational amplifier module, so that the effects of widening the current detection range and improving the universality of the circuit are achieved under the condition that the hardware of the circuit does not need to be changed. In addition, the on-resistance of the internal elements of the half-bridge module is directly adopted as the sampling resistor, and the power resistor does not need to be additionally connected in series in the circuit for current sampling, so that the effects of saving the area of the PCB and reducing the cost are achieved.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.