Current sensor modeling method

By constructing current conversion, bias and voltage detection circuits and encapsulating them into an integrated model, the problems of single function and limited application range of current sensor models are solved, and the adaptability and performance of current sensors in different electrical equipment and simulation circuits are improved.

CN120633549APending Publication Date: 2025-09-12QINGDAO HISENSE BOSCH AIR CONDITIONING SYSTEM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410275398.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-11
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

The existing current sensor model has a single function and a limited application scope, which makes it difficult to meet the needs of different electrical equipment. In addition, the parameters cannot be adjusted in the simulation circuit, making the design of complex models difficult to implement.

Method used

Build a current conversion circuit, bias circuit and voltage detection circuit, and encapsulate them into an integrated model. By adjusting the model parameters to adapt to different scenario requirements, build a bias circuit to bias the voltage signal to a set value that can be recognized by the back-end chip. Build a voltage detection circuit to simulate different working conditions, and use common electronic components to build a simulation circuit.

Benefits of technology

The current sensor model is able to detect different detection currents, simulate the working voltage changes of the current sensor in the actual circuit, expand the scope of use, and improve the parameter debugging effect in the simulation circuit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120633549A_ABST
    Figure CN120633549A_ABST
Patent Text Reader

Abstract

The invention discloses a current sensor modeling method, which comprises the steps that a current conversion circuit is constructed, the current conversion circuit is provided with a detection current input end and a detection current output end, and the current conversion circuit samples a detection current signal, converts the detection current signal into a voltage signal and outputs the voltage signal; constructing a biasing circuit which is used for biasing the voltage signal output by the current conversion circuit to a set value and then outputting the voltage signal; constructing a voltage detection circuit which is used for detecting the working voltage input by the current sensor and controlling the output of the biasing circuit according to the detection result; and the current conversion circuit, the bias circuit and the voltage detection circuit are packaged into an integrated model. According to the current sensor modeling method, different detection currents can be detected. By constructing the voltage detection circuit, the working condition of different working voltages input by the current sensor in an actual circuit can be simulated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a current sensor modeling method. Background Art

[0002] A current sensor is a detection device that can sense the information of the measured current and convert the sensed information into an electrical signal or other required form of information output that meets certain standards according to certain rules to meet the requirements of information transmission, processing, storage, display, recording and control.

[0003] As is known, when using an induction coil to measure current, the current to be measured passes through the induction coil, inducing a current in the secondary coil of the induction coil. This current then flows through a resistor in a loop, generating a voltage. This voltage is amplified by an amplifier and then input into an MCU for data processing. With the advancement of technology, a variety of new electrical devices are emerging. These new electrical devices often need to be connected to different power supply systems, and different devices have different requirements for current sensors. Therefore, it is necessary to design more types of current sensors to meet the needs of different devices.

[0004] Electrical equipment circuits are simulated and debugged before manufacturing. Different simulation environments have different requirements for current sensors. Currently, current sensor models have simple structures, fixed and non-adjustable parameters, and a limited scope of application. This makes the design of complex models in simulation circuits difficult to implement. Summary of the Invention

[0005] The present invention aims to solve the technical problems in the prior art that current sensor models have single functions and limited application scope, and proposes a current sensor modeling method to solve the above problems.

[0006] In order to achieve the above-mentioned purpose, the present invention adopts the following technical solutions: A current sensor modeling method, comprising: Constructing a current conversion circuit having a detection current input terminal and a detection current output terminal, wherein the current conversion circuit samples the detection current signal and converts it into a voltage signal and outputs the voltage signal; Constructing a bias circuit for biasing the voltage signal output by the current conversion circuit to a set value and outputting the biased signal; Constructing a voltage detection circuit for detecting the operating voltage input by the current sensor and controlling the output of the bias circuit according to the detection result; The current conversion circuit, bias circuit and voltage detection circuit are packaged into an integrated model.

[0007] In some embodiments, the current conversion circuit is a current-controlled voltage source, which has a voltage signal output terminal, two detection current input terminals and two detection current output terminals. The current-controlled voltage source has a current input loop and a voltage output loop. One end of the current input loop is respectively connected to the two detection current input terminals, and the other end of the current input loop is respectively connected to the two detection current output terminals.

[0008] In some embodiments, the method of constructing the bias circuit includes: Construct an adder, which has two input terminals and one output terminal. One of the input terminals of the adder is connected to the output terminal of the current conversion module, and the other input terminal inputs a bias voltage. The adder sums the two input signals and outputs the sum. It is used to bias the voltage signal output by the current conversion circuit to the bias value and output it through its output terminal.

[0009] In some embodiments, the current sensor modeling method further includes: A bias voltage generating circuit is constructed, and the bias voltage generating circuit is used to control the generation of a bias voltage according to the signal output by the current conversion circuit and output it to the bias circuit, so that the voltage signal output by the bias circuit can be recognized by the processing chip.

[0010] In some embodiments, the method for constructing the bias voltage generating circuit includes: A DC voltage source is provided, which outputs a DC voltage; A voltage stabilizing module is provided, which is connected to the DC voltage source and is used to stabilize the DC voltage output by the DC voltage source and then output it; Constructing a voltage divider circuit, which is connected to the output end of the voltage stabilizing module and is used to divide the voltage output by the voltage stabilizing module to generate the bias voltage, and the output end of the voltage divider circuit is connected to the bias circuit and is used to output the bias voltage to the bias circuit; The voltage division ratio of the voltage division circuit is adjusted so that the voltage signal output by the bias circuit can be recognized by the processing chip.

[0011] In some embodiments, a current limiting resistor is further connected between the voltage stabilizing module and the DC voltage source.

[0012] In some embodiments, the method for constructing the bias voltage generating circuit further includes: A first DC-DC circuit is constructed, wherein one of the output terminals of the voltage divider circuit is connected to the input terminal of the first DC-DC circuit, and is used to convert the bias voltage output by the voltage divider circuit according to a set gain and output the converted bias voltage.

[0013] In some embodiments, the method for constructing the voltage detection circuit includes: Constructing a comparison circuit, wherein the input end of the comparison circuit is used to input the operating voltage of the current sensor, and the comparison circuit can compare the operating voltage with a set range. When the operating voltage is within the set range, the comparison circuit outputs a high level, otherwise it outputs a low level; A multiplication circuit is constructed, wherein one input end of the multiplication circuit is connected to the output end of the comparison circuit, and the other input end of the multiplication circuit is connected to the output end of the bias circuit. The multiplication circuit performs multiplication operation on its two inputs and then outputs the result.

[0014] In some embodiments, the current sensor modeling method further includes: A second DC-DC circuit is constructed, and the second DC-DC circuit is connected to the output end of the multiplication circuit. The conversion gain of the second DC-DC circuit is adjustable, and is used to convert the signal output by the multiplication circuit according to the set gain and output it, so that the voltage value of the output signal meets the requirements of the signal receiving end.

[0015] In some embodiments, the current sensor modeling method further includes: A voltage limiting circuit is constructed, wherein the input end of the voltage limiting circuit is connected to the output end of the current conversion circuit, and is used to limit the voltage signal output by the current conversion circuit to a set range and output it.

[0016] Compared with the prior art, the advantages and positive effects of the present invention are: The current sensor modeling method of the present invention constructs a bias circuit to bias the voltage signal output by the current conversion circuit to a set value that can be recognized by the back-end receiving chip. Therefore, the current sensor model can detect different detection currents. By constructing a voltage detection circuit, it can simulate different operating conditions of the current sensor input in the actual circuit. By adjusting the parameters in the model, any type of current sensor can be designed based on the model, which can meet the needs of different scenarios and has a wide range of applications.

[0017] Furthermore, the electronic components used in the circuit construction are commonly used, allowing for the construction of corresponding circuits in reality and matching the electronic components in the simulation circuit, allowing for the construction of simulated circuits in a simulation environment. This facilitates debugging of corresponding device parameters in the simulation circuit to achieve ideal conditions, thereby improving the performance of the current sensor.

[0018] Other features and advantages of the present invention will become more apparent after reading the detailed description of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 This is a principle block diagram of an embodiment of a circuit modeled by the current sensor modeling method proposed in the present invention; Figure 2 1 is a circuit schematic diagram of an embodiment of a circuit modeled by the current sensor modeling method proposed in the present invention; Figure 3 1 is a schematic diagram of a comparison circuit in an embodiment of a circuit modeled by the current sensor modeling method proposed by the present invention; Figure 4 1 is a schematic diagram of a power supply circuit in an embodiment of a circuit modeled by the current sensor modeling method proposed in the present invention; Figure 5 This is a schematic diagram of the packaging principle of an embodiment of a circuit modeled by the current sensor modeling method proposed by the present invention; Figure 6 This is a schematic diagram of an embodiment of the connection between the modeled circuit and the peripheral circuit of the current sensor modeling method proposed by the present invention; Figure 7 1 is a schematic diagram of an embodiment of the input waveform and output waveform of a circuit modeled by the current sensor modeling method proposed in the present invention; Figure 8 This is a circuit schematic diagram of another embodiment of a circuit modeled by the current sensor modeling method proposed in the present invention; Figure 9 This is a circuit principle block diagram of another embodiment of the circuit modeled by the current sensor modeling method proposed by the present invention; Figure 10 This is a circuit principle block diagram of another embodiment of the circuit modeled by the current sensor modeling method proposed in the present invention. DETAILED DESCRIPTION

[0021] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0022] It should be noted that, in the description of the present invention, the terms "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings. This is merely for the convenience of description and does not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it cannot be understood as a limitation on the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance. In the description of the present invention, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0023] In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "connect," "fixed," etc. should be understood broadly. For example, they may refer to fixed connection, detachable connection, or integration; mechanical connection or electrical connection; direct connection or indirect connection through an intermediate medium; internal communication between two components or interaction between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.

[0024] In the first embodiment, the current sensor is a detection device that can sense the information of the measured current and convert the sensed information into an electrical signal or other required form of information output that meets certain standard requirements according to a certain rule to meet the requirements of information transmission, processing, storage, display, recording and control.

[0025] As a current sensing device, a current sensor operates on the following principle: Based on the Hall effect principle, when using an induction coil to measure current, the current to be measured passes through the induction coil, inducing a current in the secondary coil of the induction coil. This current then flows through the circuit and through the resistor, generating a voltage whose magnitude is proportional to the product of the control current and the magnetic induction intensity. By measuring the magnitude of this voltage, the current in the current-carrying conductor can be indirectly measured. The generated voltage is amplified by an amplifier and input into the MCU for data processing.

[0026] Electrical equipment circuits are simulated and debugged before manufacturing. Different simulation environments have different requirements for current sensors. Currently, current sensor models have simple structures, fixed and non-adjustable parameters, and a limited scope of application. This makes the design of complex models in simulation circuits difficult to implement.

[0027] With the emergence of various new electrical devices, these devices often need to be connected to different power supply systems, and different devices have different requirements for current sensors. Therefore, it is necessary to design more types of current sensors to meet the needs of different devices. During the simulation and debugging of electrical device circuits before manufacturing, the current sensor, as one of the electronic components of the electrical device circuit, inevitably involves parameter debugging. Existing current sensor circuits often do not match the current sensor circuits in the simulation circuit, making the design of complex models difficult to implement.

[0028] Based on the above, this embodiment proposes a current sensor modeling method, including: A current conversion circuit is constructed, which has a detection current input terminal and a detection current output terminal. The current conversion circuit samples the detection current signal and converts it into a voltage signal and outputs it.

[0029] The current sensor simulation circuit includes a current conversion circuit, which is used to sample the input current signal and convert it into a voltage signal for output. The current conversion circuit has a current input circuit and a voltage output circuit. The current input circuit of the current conversion circuit is connected to the current circuit to be detected. When the input current signal is the current to be detected, it can be sensed by the current conversion circuit when it flows through the input circuit of the current conversion circuit, and converted into a voltage signal, which is output through the output circuit of the current conversion circuit.

[0030] A bias circuit is constructed to bias the voltage signal output by the current conversion circuit to a set value and output it.

[0031] Since the waveform of the voltage signal output by the current conversion module is a sine wave or cosine wave, its voltage value may be negative, and negative values ​​cannot be recognized by the back-end processing chip. Therefore, a bias voltage is applied to the voltage signal. The bias voltage is a DC voltage. The bias circuit superimposes the input bias voltage on the voltage signal output by the current conversion module, thereby increasing the voltage value of the voltage signal output by the current conversion module by the voltage value of the bias voltage. This makes the voltage signal output by the current conversion module no longer have negative voltage values, making it recognizable.

[0032] A voltage detection circuit is constructed to detect the operating voltage of the current sensor input and control the output of the bias circuit based on the detection result.

[0033] In order to simulate and identify the working state of the current sensor, in some embodiments, the current sensor simulation circuit also includes a voltage detection circuit, which is used to detect the working voltage input to the current sensor simulation circuit and control the output of the bias circuit according to the detection result.

[0034] The current conversion circuit, bias circuit and voltage detection circuit are encapsulated into an integrated model.

[0035] By encapsulating the model, it can be directly used in simulation work. For different simulation environments, it can be adapted by adjusting the parameters in the corresponding circuit.

[0036] This current sensor modeling method constructs a bias circuit to bias the voltage signal output by the current conversion circuit to a set value that can be recognized by the back-end receiving chip. Therefore, the current sensor model can detect different detection currents. By constructing a voltage detection circuit, it can simulate the different operating conditions of the current sensor input in the actual circuit. By adjusting the parameters in the model, any type of current sensor can be designed based on this model, meeting the needs of different scenarios and having a wide range of applications.

[0037] In some embodiments, Figure 9 As shown, the current conversion circuit is a current-controlled voltage source, which has a voltage signal output terminal, two detection current input terminals IP+ and two detection current output terminals IP-. The current-controlled voltage source has a current input loop and a voltage output loop. One end of the current input loop is respectively connected to the two detection current input terminals, and the other end of the current input loop is respectively connected to the two detection current output terminals.

[0038] By setting two current input terminals, when the input detection current is large, it is greater than the carrying capacity of the detection current input terminal. The detection current is divided into two paths in parallel and input into the current-controlled voltage source through the two detection current input terminals respectively, so as to protect the detection current input terminal.

[0039] In some embodiments, a method of constructing a bias circuit includes: Construct an adder, which has two input terminals and one output terminal. One of the input terminals of the adder is connected to the output terminal of the current conversion module, and the other input terminal inputs the bias voltage. The adder sums the two input signals and outputs the sum. It is used to bias the voltage signal output by the current conversion circuit to the bias value and output it through its output terminal.

[0040] Specifically, the waveform of the voltage signal output by the current conversion module is a sine wave or a cosine wave. The signal is input into one of the adders, and the other input of the adder is a bias voltage Vos. The adder adds the voltage signal output by the current conversion module and the bias voltage Vos, that is, the input bias voltage Vos is superimposed on the voltage signal output by the current conversion module, so that the voltage value of the voltage signal output by the current conversion module is increased as a whole, and the increase amplitude is the voltage value of the bias voltage, so that the voltage signal output by the current conversion module no longer has a negative voltage value so that it can be recognized.

[0041] In some embodiments, Figure 10 As shown, the current sensor modeling method also includes: A bias voltage generating circuit is constructed. The bias voltage generating circuit is used to control the generation of a bias voltage according to the signal output by the current conversion circuit and output it to the bias circuit, so that the voltage signal output by the bias circuit can be recognized by the processing chip.

[0042] In order to provide a stable bias voltage output to the bias circuit, in some embodiments, the current sensor simulation circuit further includes a bias voltage generating circuit, such as Figure 2 As shown, the bias voltage generating circuit includes a DC voltage source, which is used to output a DC voltage, and the bias voltage Vos can be generated by converting the DC voltage.

[0043] In some embodiments, a method for constructing a bias voltage generating circuit includes: A DC voltage source is provided, which outputs a DC voltage.

[0044] A voltage stabilizing module is provided, which is connected to the DC voltage source and is used for stabilizing the DC voltage output by the DC voltage source and then outputting it.

[0045] A voltage divider circuit is constructed and connected to the output end of the voltage stabilizing module to divide the voltage output by the voltage stabilizing module to generate a bias voltage. The output end of the voltage divider circuit is connected to the bias circuit to output the bias voltage to the bias circuit.

[0046] In order to ensure that the DC voltage source can output a stable DC voltage to the back end, in some embodiments, the voltage stabilizing module is connected to the DC voltage source to stabilize the DC voltage output by the DC voltage source and then output it.

[0047] The DC voltage output by the DC voltage source is generally greater than the bias voltage Vos. To convert this DC voltage into a bias voltage Vos for output, in some embodiments, the bias voltage generation circuit further includes a voltage divider circuit connected to the output of the voltage stabilization module and configured to divide the voltage output by the voltage stabilization module to generate the bias voltage. The output of the voltage divider circuit is connected to the bias circuit for outputting the bias voltage to the bias circuit.

[0048] The voltage divider ratio of the voltage divider circuit is adjusted so that the voltage signal output by the bias circuit can be recognized by the processing chip.

[0049] In some embodiments, Figure 2As shown, the voltage divider circuit includes a first resistor R1 and a second resistor R2 connected in series. The two ends of the series circuit are respectively connected to the two ends of the voltage regulator module, which is used to divide the voltage output by the voltage regulator module. The output end of the bias voltage is connected between the first resistor R1 and the second resistor R2. By selecting the appropriate resistance values ​​of the first resistor R1 and the second resistor R2, the output bias voltage meets the requirements of the bias circuit.

[0050] In order to prevent the DC voltage source from being short-circuited when the voltage regulator module is broken down, Figure 8 As shown, in some embodiments, a current limiting resistor R3 is further connected between the voltage stabilizing module U1 and the DC voltage source V1. The current limiting resistor R3 can limit the short-circuit current of the DC voltage source to prevent the short-circuit current from generating high temperature and causing greater harm.

[0051] In some embodiments, the method for constructing the bias voltage generating circuit further includes: A first DC-DC circuit is constructed, wherein one of the output ends of the voltage divider circuit is connected to the input end of the first DC-DC circuit, and is used to convert the bias voltage output by the voltage divider circuit according to a set gain and output it.

[0052] The first DC-DC circuit is used to provide a DC voltage for other devices with DC voltage requirements in the current sensor simulation circuit. The voltage value output by the first DC-DC circuit can be achieved by adjusting the gain according to the requirements of the device to be powered.

[0053] In some embodiments, a method for constructing a voltage detection circuit includes: Construct a comparison circuit. The input end of the comparison circuit is used to input the working voltage of the current sensor. The input end of the comparison circuit is used to input the working voltage of the current sensor simulation circuit. The other input end of the comparison circuit is connected to the ground end. The comparison circuit can compare the working voltage with the set range. When the working voltage is within the set range, the comparison circuit outputs a high level, otherwise it outputs a low level.

[0054] The comparison circuit is used to detect whether the operating voltage input to the current sensor simulation circuit is reasonable. In actual current sensors, if the input voltage is too high or too low, they will not function properly. The set range is also the operating voltage range of the current sensor. In this embodiment, the comparison circuit is provided to perform comparisons and judgments to simulate the reasonableness of the operating voltage input of a real current sensor.

[0055] A multiplication circuit is constructed, wherein one input terminal of the multiplication circuit is connected to the output terminal of the comparison circuit, and the other input terminal of the multiplication circuit is connected to the output terminal of the bias circuit. The multiplication circuit performs multiplication operation on its two inputs and then outputs the result.

[0056] When the comparison circuit E2 outputs a high level, it indicates that the operating voltage input to the current sensor simulation circuit is reasonable and the current sensor simulation circuit can work normally. The high level output by the comparison circuit is input to the multiplication circuit, and after multiplication with the output signal of the bias circuit, it is still the output signal of the bias circuit itself, thus indicating that the current sensor simulation circuit works normally.

[0057] When the comparison circuit E2 outputs a low level, it indicates that the operating voltage input to the current sensor simulation circuit is unreasonable and the current sensor simulation circuit cannot work normally. The low level output by the comparison circuit is input to the multiplication circuit and is multiplied by the output signal of the bias circuit to form a low level. Therefore, it indicates that the current sensor simulation circuit cannot work normally.

[0058] In order to improve the adaptability of the current sensor simulation circuit so that the current detection result output can adapt to receiving chips with different input voltage requirements, in some embodiments, the current sensor modeling method further includes: A second DC-DC circuit is constructed. The second DC-DC circuit is connected to the output end of the multiplication circuit. The conversion gain of the second DC-DC circuit is adjustable. It is used to convert the signal output by the multiplication circuit according to the set gain and output it so that the voltage value of the output signal meets the requirements of the signal receiving end.

[0059] In some embodiments, the current sensor modeling method further includes: A voltage limiting circuit is constructed, and the input end of the voltage limiting circuit is connected to the output end of the current conversion circuit to limit the voltage signal output by the current conversion circuit to a set range and output it. The input end of the bias circuit is connected to the output end of the voltage limiting circuit to protect the back-end electronic devices.

[0060] Embodiment 2: This embodiment proposes a current sensor simulation circuit, such as Figure 1 As shown, the current sensor simulation circuit includes a current conversion circuit, which is used to sample the input current signal and convert it into a voltage signal for output. The current conversion circuit has an input circuit and an output circuit. The input circuit of the current conversion circuit is connected to the current circuit to be tested. When the input current signal is the current to be tested, it can be sensed by the current conversion circuit when it flows through the input circuit of the current conversion circuit and converted into a voltage signal, which is output through the output circuit of the current conversion circuit.

[0061] In some embodiments, the current sensor simulation circuit also includes a bias circuit, one of the input terminals of the bias circuit is connected to the output terminal of the current conversion module, and the other input terminal inputs a bias voltage. The bias circuit is used to bias the voltage signal output by the current conversion circuit to a bias value and then output it.

[0062] Specifically, since the waveform of the voltage signal output by the current conversion module is a sine wave or a cosine wave, its voltage value may be negative, and negative values ​​cannot be recognized by the back-end processing chip. Therefore, a bias voltage is applied to the voltage signal. The bias voltage is a DC voltage. The bias circuit superimposes the input bias voltage on the voltage signal output by the current conversion module, thereby increasing the voltage value of the voltage signal output by the current conversion module as a whole. The increase amplitude is the voltage value of the bias voltage, so that the voltage signal output by the current conversion module no longer has negative voltage values, so that it can be recognized.

[0063] The bias circuit outputs the signal to the amplifier circuit for amplification, and then the AD sampling circuit samples it and inputs it into the back-end processing chip.

[0064] A current sensor can only operate when an external operating voltage is applied, meaning it can only detect current. Current sensor circuits typically include a power supply circuit to control the conversion and supply of the operating voltage for the current sensor. When powered on and operating normally, the current sensor produces a detection output. If powered off, it has no detection output and is unable to output a detection signal. For the detection receiving end, the received signal remains low.

[0065] In order to simulate and identify the working state of the current sensor, in some embodiments, the current sensor simulation circuit also includes a voltage detection circuit, which is used to detect the working voltage input to the current sensor simulation circuit and control the output of the bias circuit according to the detection result.

[0066] When the current sensor simulation circuit has an operating voltage input, the voltage detection circuit outputs a signal that controls the bias circuit to properly output a biased voltage signal. When the current sensor simulation circuit does not have an operating voltage input, the voltage detection circuit outputs a signal that controls the bias circuit to output a low-level signal. Upon receiving the signal, the detection receiving end detects that the bias circuit is unable to properly output the detection signal.

[0067] In some embodiments, Figure 2 、 Figure 3As shown, the voltage detection circuit includes a comparison circuit E2, the input end of which is used to input the operating voltage of the current sensor simulation circuit, and the other input end of the comparison circuit is connected to the ground end. When the operating voltage input to the comparison circuit is within a set range, the comparison circuit outputs a high level, otherwise it outputs a low level. The comparison circuit is used to detect whether the operating voltage input to the current sensor simulation circuit is reasonable. In an actual current sensor, if the input voltage is too high or too low, it will not work properly. The set range is also the operating voltage range of the current sensor. In this embodiment, a comparison circuit is set to perform comparison and judgment to simulate the rationality of the operating voltage input of the actual current sensor.

[0068] In some embodiments, the voltage detection circuit further includes a multiplication circuit M1, one of the input terminals of the multiplication circuit M1 is connected to the output terminal of the comparison circuit E2, and the other input terminal of the multiplication circuit M1 is connected to the output terminal of the bias circuit. The multiplication circuit performs a multiplication operation on its two inputs and then outputs the result.

[0069] When the comparison circuit E2 outputs a high level, it indicates that the operating voltage input to the current sensor simulation circuit is reasonable and the current sensor simulation circuit can work normally. The high level output by the comparison circuit is input to the multiplication circuit, and after multiplication with the output signal of the bias circuit, it is still the output signal of the bias circuit itself, thus indicating that the current sensor simulation circuit works normally.

[0070] When the comparison circuit E2 outputs a low level, it indicates that the operating voltage input to the current sensor simulation circuit is unreasonable and the current sensor simulation circuit cannot work normally. The low level output by the comparison circuit is input to the multiplication circuit and is multiplied by the output signal of the bias circuit to form a low level. Therefore, it indicates that the current sensor simulation circuit cannot work normally.

[0071] In some embodiments, Figure 2 As shown in FIG, in the current sensor simulation circuit, the comparison circuit can be implemented using EVALUE.

[0072] In some embodiments, Figure 2 As shown, the bias circuit includes an adder S1, one of the input terminals of the adder S1 is connected to the output terminal of the current conversion module, and the other input terminal inputs the bias voltage Vos. The adder sums the two input signals and outputs the sum, which is used to bias the voltage signal output by the current conversion circuit to the bias value.

[0073] Specifically, the waveform of the voltage signal output by the current conversion module is a sine wave or a cosine wave. The signal is input to one of the channels of the adder S1, and the other channel of the adder S1 inputs the bias voltage Vos. The adder S1 adds the voltage signal output by the current conversion module and the bias voltage Vos, that is, superimposes the input bias voltage Vos on the voltage signal output by the current conversion module, so that the voltage value of the voltage signal output by the current conversion module is increased as a whole, and the increase amplitude is the voltage value of the bias voltage, so that the voltage signal output by the current conversion module no longer has a negative voltage value so that it can be identified.

[0074] The voltage value of the bias voltage Vos should not be less than the amplitude of the voltage signal waveform output by the current conversion module to ensure that the trough of the sum of the bias voltage Vos and the voltage signal output by the current conversion module is at or above zero level, and to ensure that the voltage signal output by the current conversion module no longer has a negative voltage value so that it can be recognized by the back-end circuit or chip.

[0075] In order to provide a stable bias voltage output to the bias circuit, in some embodiments, the current sensor simulation circuit further includes a bias voltage generating circuit, such as Figure 2 As shown, the bias voltage generating circuit includes a DC voltage source V1, which is used to output a DC voltage, and the bias voltage Vos can be generated by converting the DC voltage.

[0076] In order to ensure that the DC voltage source V1 can output a stable DC voltage to the back end, in some embodiments, the bias voltage generating circuit also includes a voltage stabilizing module U1, which is connected to the DC voltage source V1 and is used to stabilize the DC voltage output by the DC voltage source and then output it.

[0077] The DC voltage output by the DC voltage source V1 is generally greater than the bias voltage Vos. To convert this DC voltage into a bias voltage Vos for output, in some embodiments, the bias voltage generation circuit further includes a voltage divider circuit connected to the output of the voltage stabilization module and configured to divide the voltage output by the voltage stabilization module to generate the bias voltage. The output of the voltage divider circuit is connected to the bias circuit for outputting the bias voltage to the bias circuit.

[0078] In some embodiments, Figure 2 As shown, the voltage divider circuit includes a first resistor R1 and a second resistor R2 connected in series. The two ends of the series circuit are respectively connected to the two ends of the voltage regulator module, which is used to divide the voltage output by the voltage regulator module. The output end of the bias voltage is connected between the first resistor R1 and the second resistor R2. By selecting the appropriate resistance values ​​of the first resistor R1 and the second resistor R2, the output bias voltage meets the requirements of the bias circuit.

[0079] In order to prevent the DC voltage source from being short-circuited when the voltage regulator module is broken down, Figure 8 As shown, in some embodiments, a current limiting resistor R3 is further connected between the voltage stabilizing module U1 and the DC voltage source V1. The current limiting resistor R3 can limit the short-circuit current of the DC voltage source to prevent the short-circuit current from generating high temperature and causing greater harm.

[0080] In some embodiments, the bias voltage generation circuit further includes a first DC-DC circuit E1. One of the output terminals of the voltage divider circuit is connected to an input terminal of the first DC-DC circuit E1, and is configured to convert the bias voltage Vos output by the voltage divider circuit according to a set gain and output the converted voltage. The first DC-DC circuit E1 is configured to provide a DC voltage to other devices in the current sensor simulation circuit that require a DC voltage. The voltage output by the first DC-DC circuit E1 can be adjusted by setting the gain according to the requirements of the device to be powered.

[0081] In order to improve the adaptability of the current sensor simulation circuit, its current detection result output can adapt to receiving chips with different input voltage requirements. In some embodiments, the current sensor simulation circuit also includes a second DC-DC circuit E3, and the second DC-DC circuit E3 is connected to the output end of the multiplication circuit M1, and is used to convert and output the signal output by the multiplication circuit M1 according to the set gain, and convert and output it by setting an appropriate gain according to the requirements of the receiving end.

[0082] In some embodiments, Figure 2 As shown, the current sensor simulation circuit also includes a voltage limiting circuit P1. The input end of the voltage limiting circuit P1 is connected to the output end of the current conversion circuit H1, and is used to limit the voltage signal output by the current conversion circuit H1 to a set range and output it. The input end of the bias circuit is connected to the output end of the voltage limiting circuit to protect the back-end electronic devices.

[0083] like Figure 5 As shown, the current sensor simulation circuit can be packaged as an integrated component, which has two sampling input terminals IP+, two sampling output terminals IP- and an output terminal VIOUT for connecting to an external circuit.

[0084] like Figure 6 As shown in FIG, a schematic diagram of an embodiment of the connection between the current sensor simulation circuit and the peripheral circuit is shown, wherein the input current waveform is collected at the J1 position, and the output voltage waveform of the current sensor simulation circuit is collected at the J2 position. The waveform diagrams of J1 and J2 are shown in FIG. Figure 7 As shown by Figure 7 It can be seen that the two waveforms are consistent.

[0085] In order to provide a stable operating voltage VCC to the current sensor simulation circuit, in some embodiments, such as Figure 4 As shown, a fourth DC-DC circuit E4 is also included. The fourth DC-DC circuit E4 is connected to an external DC power supply and is used to convert and output the voltage signal output by the DC power supply according to a set gain. In this embodiment, the gain is set to 1.

[0086] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for a person skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to replace some of the technical features therein with equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions claimed to be protected by the present invention.

[0087] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

[0088] For ease of explanation, the above description has been presented in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations are possible. The above embodiments have been selected and described to better explain the principles and practical applications, thereby enabling those skilled in the art to better utilize the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A current sensor modeling method, characterized in that: include: Constructing a current conversion circuit having a detection current input terminal and a detection current output terminal, wherein the current conversion circuit samples the detection current signal and converts it into a voltage signal and outputs the voltage signal; Constructing a bias circuit for biasing the voltage signal output by the current conversion circuit to a set value and outputting the biased signal; Constructing a voltage detection circuit for detecting the operating voltage input by the current sensor and controlling the output of the bias circuit according to the detection result; The current conversion circuit, bias circuit and voltage detection circuit are packaged into an integrated model.

2. The current sensor modeling method according to claim 1, characterized in that: The current conversion circuit is a current-controlled voltage source, which has a voltage signal output terminal, two detection current input terminals and two detection current output terminals. The current-controlled voltage source has a current input loop and a voltage output loop. One end of the current input loop is respectively connected to the two detection current input terminals, and the other end of the current input loop is respectively connected to the two detection current output terminals.

3. The current sensor modeling method according to claim 1, characterized in that: The method of constructing the bias circuit includes: Construct an adder, which has two input terminals and one output terminal. One of the input terminals of the adder is connected to the output terminal of the current conversion module, and the other input terminal inputs a bias voltage. The adder sums the two input signals and outputs the sum. It is used to bias the voltage signal output by the current conversion circuit to the bias value and output it through its output terminal.

4. The current sensor modeling method according to claim 1, characterized in that: The current sensor modeling method further includes: A bias voltage generating circuit is constructed, and the bias voltage generating circuit is used to control the generation of a bias voltage according to the signal output by the current conversion circuit and output it to the bias circuit, so that the voltage signal output by the bias circuit can be recognized by the processing chip.

5. The current sensor modeling method according to claim 4, characterized in that: The method for constructing the bias voltage generating circuit includes: A DC voltage source is provided, which outputs a DC voltage; A voltage stabilizing module is provided, which is connected to the DC voltage source and is used to stabilize the DC voltage output by the DC voltage source and then output it; Constructing a voltage divider circuit, which is connected to the output end of the voltage stabilizing module and is used to divide the voltage output by the voltage stabilizing module to generate the bias voltage, and the output end of the voltage divider circuit is connected to the bias circuit and is used to output the bias voltage to the bias circuit; The voltage division ratio of the voltage division circuit is adjusted so that the voltage signal output by the bias circuit can be recognized by the processing chip.

6. The current sensor modeling method according to claim 5, characterized in that: A current limiting resistor is further connected between the voltage stabilizing module and the DC voltage source.

7. The current sensor modeling method according to claim 5, characterized in that: The method for constructing the bias voltage generating circuit further includes: A first DC-DC circuit is constructed, wherein one of the output terminals of the voltage divider circuit is connected to the input terminal of the first DC-DC circuit, and is used to convert the bias voltage output by the voltage divider circuit according to a set gain and output the converted bias voltage.

8. The current sensor modeling method according to any one of claims 1 to 7, characterized in that: The method for constructing the voltage detection circuit includes: Constructing a comparison circuit, wherein the input end of the comparison circuit is used to input the operating voltage of the current sensor, and the comparison circuit can compare the operating voltage with a set range. When the operating voltage is within the set range, the comparison circuit outputs a high level, otherwise it outputs a low level; A multiplication circuit is constructed, wherein one input end of the multiplication circuit is connected to the output end of the comparison circuit, and the other input end of the multiplication circuit is connected to the output end of the bias circuit. The multiplication circuit performs multiplication operation on its two inputs and then outputs the result.

9. The current sensor modeling method according to claim 8, characterized in that: The current sensor modeling method further includes: A second DC-DC circuit is constructed, and the second DC-DC circuit is connected to the output end of the multiplication circuit. The conversion gain of the second DC-DC circuit is adjustable, and is used to convert the signal output by the multiplication circuit according to the set gain and output it, so that the voltage value of the output signal meets the requirements of the signal receiving end.

10. The current sensor modeling method according to any one of claims 1 to 7, characterized in that: The current sensor modeling method further includes: A voltage limiting circuit is constructed, wherein the input end of the voltage limiting circuit is connected to the output end of the current conversion circuit, and is used to limit the voltage signal output by the current conversion circuit to a set range and output it.