Current detection device, control method, control device, equipment, medium and vehicle
By designing a current detection device including a controller and a parallel current detection branch, using a switching device and a resistor of different resistance values for current detection, the problem of difficult to meet the accuracy of large current and small current detection in the prior art is solved. Accurate detection of currents of different sizes is achieved.
Patent Information
- Application Number
- CN202310979939.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-04
- Publication Date
- 2025-02-14
AI Technical Summary
The prior art is difficult to meet the detection accuracy of large current and small current at the same time. When a single current sensor is detected, its accuracy can only meet the one requirement of large current or small current.
A current detection device is designed, including a controller, a first current detection branch and a second current detection branch, and the conduction and disconnection of the second current detection branch is controlled by a switching device, and the first current sampling resistor and the first The parallel connection of the two current sampling resistors forms different current detection paths to adapt to different currents for detection.
Accurate detection of currents of different sizes is achieved, ensuring the detection accuracy of large and small currents, and avoiding the problem of reducing detection accuracy caused by current changes in traditional methods.
Smart Images

Figure CN119438664A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of circuit technology, and in particular relates to a current detection device, a control method, a control device, equipment, a medium and a vehicle. Background Art
[0002] Currently, in scenarios where current detection is required, current detection is usually performed by setting up a current sensor. However, when a single current sensor performs current detection, its accuracy can only meet the accuracy requirements of large currents or small currents, and it is difficult to meet the detection accuracy requirements of large and small currents at the same time. Summary of the Invention
[0003] Embodiments of the present application provide a current detection device, a control method, a control device, equipment, a medium, and a vehicle, which can simultaneously meet the detection accuracy of currents of different sizes.
[0004] In a first aspect, an embodiment of the present application provides a current detection device, comprising: a controller, a first current detection branch, and a second current detection branch;
[0005] The first current detection branch and the second current detection branch are connected in parallel;
[0006] The first current detection branch includes a first current sampling resistor, and the first current sampling resistor is used to sample the current flowing through the first current detection branch;
[0007] The second current detection branch includes a second current sampling resistor and a switch device, the second current sampling resistor is used to sample the current flowing through the second current detection branch, and the switch device is used to control the conduction and disconnection of the second current detection branch;
[0008] Wherein, the resistance of the first current sampling resistor is greater than the resistance of the second current sampling resistor;
[0009] The controller is used to control the switching device to turn on the second current detection branch when the second current detection branch is disconnected and the detection current value is greater than the first current threshold, and to control the switching device to disconnect the second current detection branch when the second current detection branch is turned on and the detection current value is less than the second current threshold, wherein the detection current value is the total current value flowing through the current detection device.
[0010] In a second aspect, an embodiment of the present application provides a current detection control method, which is applied to a controller in the current detection device according to any one of the first aspects. The method includes:
[0011] In response to the current detection device being powered on, controlling the switch device to disconnect the second current detection branch;
[0012] When the second current detection branch is disconnected, determining whether the detection current value is greater than a first current threshold;
[0013] In response to the detected current value being greater than the first current threshold, controlling the switch device to turn on the second current detection branch;
[0014] When the second current detection branch is turned on, determining whether the detection current value is less than a second current threshold;
[0015] In response to the detected current value being less than the second current threshold, the switching device is controlled to disconnect the second current detection branch, and the process returns to the step of determining whether the detected current value is greater than the first current threshold.
[0016] In a third aspect, an embodiment of the present application provides a current detection control device, which is applied to a controller in the current detection device according to any one of the first aspects, and the device includes:
[0017] a first control module, configured to control the switch device to disconnect the second current detection branch in response to the current detection device being powered on;
[0018] a first judgment module, configured to determine whether the detection current value is greater than a first current threshold when the second current detection branch is disconnected;
[0019] a first switching module, configured to control the switch device to turn on the second current detection branch in response to the detection current value being greater than the first current threshold;
[0020] A second judgment module is used to determine whether the detection current value is less than a second current threshold when the second current detection branch is turned on;
[0021] The second switching module is configured to control the switch device to disconnect the second current detection branch in response to the detection current value being less than the second current threshold.
[0022] In a fourth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;
[0023] When the processor executes the computer program instructions, the steps of the current detection control method as described in any one of the first aspects are implemented.
[0024] In a fifth aspect, an embodiment of the present application provides a readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the steps of the current detection control method as described in any one of the first aspects are implemented.
[0025] In a sixth aspect, an embodiment of the present application provides a vehicle, comprising a current detection control device as described in the third aspect.
[0026] The current detection device, control method, control device, equipment, medium and vehicle of the embodiment of the present application include a controller, a first current detection branch and a second current detection branch, the first current detection branch and the second current detection branch are connected in parallel, the first current detection branch includes a first current sampling resistor, the second current detection branch includes a second current sampling resistor and a switching device, the resistance of the first current sampling resistor is greater than the resistance of the second current sampling resistor, the controller controls the switching device to turn on the second current detection branch when the second current detection branch is disconnected and the detection current value is greater than the first current threshold, and controls the switching device to disconnect the second current detection branch when the second current detection branch is turned on and the detection current value is less than the second current threshold, wherein the detection current value is the total current value flowing through the current detection device. According to this embodiment, when the current is low, the entire current flows through the first current sampling resistor with a larger resistance. This allows for a larger voltage drop across the first current sampling resistor, facilitating sampling of the low current and improving the sampling accuracy of the low current, thereby ensuring the detection accuracy of the low current. When the current is high, current detection is performed using a parallel resistor with a smaller resistance, consisting of the first and second current sampling resistors connected in parallel. This reduces the resistor voltage divider, thereby ensuring the detection accuracy of the high current. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0028] Figure 1 is a schematic diagram of a current detection device provided in an embodiment of the present application;
[0029] Figure 2 is a schematic diagram of another current detection device provided in an embodiment of the present application;
[0030] Figure 3 is a schematic diagram of another current detection device provided in an embodiment of the present application;
[0031] Figure 4 is a schematic diagram of another current detection device provided in an embodiment of the present application;
[0032] Figure 5 This is a flow chart of a current detection control method provided by an embodiment of the present application;
[0033] Figure 6 is a schematic diagram of a current detection control device provided in an embodiment of the present application;
[0034] Figure 7This is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0035] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.
[0036] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0037] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, the elements defined by the phrase "comprising..." do not exclude the presence of other identical elements in the process, method, article, or device comprising the elements.
[0038] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the prior art:
[0039] As previously mentioned, the inventors of this application have discovered that in existing related technical solutions, a single current sensor is typically used for current detection. This has the disadvantage of being difficult to simultaneously meet the detection accuracy requirements for both large and small currents. In their solution, the maximum output voltage typically corresponds to the maximum output current. When the current is small, noise and resolution may affect the detection accuracy of small currents. This means that when a current sensor is used for current detection, if a current change occurs, in order to improve the accuracy of current detection, it is often necessary to replace the current sensor. However, replacing the current sensor requires disassembling the circuit, which is a cumbersome process and difficult to implement.
[0040] To solve the problems of the prior art, the embodiments of the present application provide a current detection device, control method, device, equipment, medium and vehicle. A circuit in which current flows through a sampling resistor, samples the voltage drop across the sampling resistor and converts it into voltage or current inside the chip. Based on the current circuit provided by this embodiment, under low current conditions, a current sampling resistor with a larger equivalent resistance can be used for current detection. Under high current conditions, a current sampling resistor with a smaller equivalent resistance can be used for current detection, thereby meeting the detection accuracy of both large and small currents.
[0041] See also Figure 1 , is a schematic diagram of a current detection device provided in an embodiment of the present application, such as Figure 1 As shown, the current detection device includes: a controller 110 and a first current detection branch and a second current detection branch connected in parallel;
[0042] The first current detection branch includes a first current sampling resistor 120, and the first current sampling resistor 120 is used to detect the current value flowing through the first current detection branch;
[0043] The second current detection branch includes a second current sampling resistor 130 and a switch device 140. The second current sampling resistor 130 is used to detect the current value flowing through the second current detection branch, and the switch device 140 is used to control the conduction and disconnection of the second current detection branch.
[0044] The resistance of the first current sampling resistor 120 is greater than the resistance of the second current sampling resistor 130 .
[0045] The controller 110 is used to control the switching device to turn on the second current detection branch when the second current detection branch is disconnected and the detection current value is greater than the first current threshold, and to control the switching device to disconnect the second current detection branch when the second current detection branch is turned on and the detection current value is less than the second current threshold, wherein the detection current value is the total current value flowing through the current detection device.
[0046] The current detection device provided in this embodiment can detect the current of two current gears, wherein the two current gears are respectively a large current gear and a small current gear, and the maximum current that can be collected by the small current gear is I a The maximum current that can be collected in the high current mode is I b , I b >I a . Among them I a and I b The specific value of can be determined according to actual conditions.
[0047] In this embodiment, the first current sampling resistor 120 is a resistor with a relatively large resistance. Therefore, in a low current range, the first current detection branch can be used to detect a relatively small current. The second current sampling resistor 130 is a resistor with a relatively small resistance. When the second current sampling resistor 130 is connected in parallel with the first current sampling resistor 120, the total resistance obtained is also relatively small. Therefore, in a high current range, the first current detection branch and the second current detection branch can be connected in parallel to jointly detect a large current.
[0048] In practical applications, the total current value to be detected by the current detection device, that is, the detection current value, can be less than or equal to I a When the current value is greater than I a When the current is detected, the first current detection branch and the second current detection branch are used together to perform current detection.
[0049] In practical applications, the current values of the same circuit to be detected (i.e., the circuit requiring current detection) at different times may belong to different current ranges, and the current values of different circuits to be detected generally also belong to different current ranges. Therefore, to ensure that the current detection device provided by this embodiment can adapt to the current range to which the detection current value belongs when detecting the current value in the circuit to be detected (i.e., the detection current value), the current detection circuit provided by this embodiment is further provided with a controller 110. The controller 110 controls the switch device 140 to switch the current detection branch used for current detection in the current detection device.
[0050] In this embodiment, a first current threshold and a second current threshold are pre-set, wherein the first current threshold is a switching current value for entering a large current gear from a small current gear, and the second current threshold is a switching current value for entering a small current gear from a large current gear. In this way, the controller 110 can control the switching device 140 to switch the current detection branch based on the first current threshold and the second current threshold.
[0051] The first current threshold and the second current threshold may be based on I a To set up, because I a It can be regarded as the boundary current between the low current gear and the high current gear. a The set first current threshold and second current threshold can identify the current range to which the detection current value belongs, and then control the switch device 140 to switch the current detection branch for current detection based on the identified current range.
[0052] As an example, I a As the first current threshold, I a -I h As the second current threshold, Ih is the hysteresis current, I h The value can be set according to the actual situation. The reason for setting the hysteresis current is to prevent the current level from being too high or too low in the I a Frequent switching.
[0053] For ease of understanding, the following is based on a As the first current threshold, I a -I h The second current threshold is taken as an example for description.
[0054] For example, the controller 110 may determine that the detection current value is less than or equal to I a In the case of , it is determined that the detection current value belongs to the low current gear, so the switch device 140 is controlled to disconnect the second current detection branch, and only the first current detection branch is used for current detection. In this way, the current value detected by the first current detection branch is the detection current value. When it is determined that the detection current value is greater than I a In this case, it is determined that the detection current value belongs to the large current range, so the switch device 140 is controlled to turn on the second current detection branch, and then the first current detection branch and the second current detection branch are used to perform current detection together. In this way, the sum of the current value detected by the first current detection branch and the current value detected by the second current detection branch is the detection current value.
[0055] The current detection device provided in this embodiment includes a controller, a first current detection branch, and a second current detection branch. The first current detection branch and the second current detection branch are connected in parallel. The first current detection branch includes a first current sampling resistor, and the second current detection branch includes a second current sampling resistor and a switching device. The resistance of the first current sampling resistor is greater than the resistance of the second current sampling resistor. When the second current detection branch is disconnected and the detection current value is greater than a first current threshold, the controller controls the switching device to turn on the second current detection branch. When the second current detection branch is turned on and the detection current value is less than a second current threshold, the controller controls the switching device to disconnect the second current detection branch. The detection current value is the total current value flowing through the current detection device. According to this embodiment, when the current is low, the entire current flows through the first current sampling resistor having a larger resistance. This allows for a larger voltage drop across the first current sampling resistor, facilitating sampling of low currents and improving the sampling accuracy of low currents, thereby ensuring low current detection accuracy. When the current is high, current detection is performed using a parallel resistor having a smaller resistance, formed by connecting the first and second current sampling resistors in parallel. This reduces the voltage divider, thereby ensuring high current detection accuracy.
[0056] In some embodiments, the first current sampling resistor 120 and the second current sampling resistor 130 may be precision resistors, and the resistance relationship between the two may be as follows:
[0057] R sense1 =kR sense2
[0058] Among them, R sense1 represents the resistance of the first current sampling resistor 120, R sense2 represents the resistance of the second current sampling resistor 130 , k is a value greater than 1, and usually k is greater than 5.
[0059] Precision resistors are resistors with high precision, low temperature drift, and high reliability. Using precision resistors as current sampling resistors can improve the detection accuracy and reliability of current detection devices.
[0060] In some embodiments, the switch device 140 may be a switch tube, such as a MOSFET or an IGBT.
[0061] The switch tube has high efficiency and can switch quickly in the circuit. Using the switch tube as the switching device 140 can increase the switching speed of the current detection branch.
[0062] In some embodiments, the controller 110 may determine the magnitude relationship between the detection current value and the first current threshold and the second current threshold based on the range of the detection current value input by the user.
[0063] For some circuits to be tested whose circuit structure is known, users can determine the approximate range of the detection current value based on the device composition, application scenario, etc. of the circuit to be tested, but they do not know the specific detection current value. For such circuits to be tested, when using a current detection device to detect the current of the circuit to be tested, the detection current value range can be input into the controller 110. The controller 110 determines the relationship between the detection current value and the first current threshold and the second current threshold based on the input detection current value range, and then controls the operation of the switching device 140.
[0064] In this way, only through Figure 1 The circuit composition shown can realize accurate current detection, and the circuit structure is simple and the cost is low.
[0065] In some embodiments, the controller 110 may also determine the magnitude relationship between the detected current value and the first current threshold and the second current threshold based on the current value detected by the first current detection branch and / or the second current detection branch. In order to enable the controller 110 to obtain the current value detected by the first current detection branch and / or the second current detection branch, see Figure 2The current detection device may further include: a feedback module 150.
[0066] The feedback module 150 is configured to obtain first voltage information corresponding to the first current sampling resistor when the second current detection branch is disconnected, and transmit the first voltage information to the controller.
[0067] The feedback module 150 is further configured to obtain the first voltage information or the second voltage information corresponding to the second current sampling resistor when the second current detection branch is turned on, and transmit the first voltage information or the second voltage information to the controller.
[0068] The first voltage information includes the amplified first voltage value across the first current sampling resistor. A specific mathematical relationship exists between the first voltage value and the current flowing through the first current sampling resistor, and a specific mathematical relationship exists between the current flowing through the first current sampling resistor and the detection current value. Therefore, a specific mathematical relationship also exists between the first voltage value and the detection current value. In this way, the controller 140 can determine whether the detection current value is greater than the first current threshold or determine whether the detection current value is less than the second current threshold based on the first voltage value and the specific mathematical relationship between the first voltage value and the detection current value.
[0069] The second voltage information includes the amplified second voltage value across the second current sampling resistor. Similar to the first voltage value, there is also a specific mathematical relationship between the second voltage value and the detection current value. Thus, the controller 140 can also determine whether the detection current value is less than the second current threshold based on the second voltage value and the specific mathematical relationship between the second voltage value and the detection current value. Through the above configuration, the feedback module 150 feeds back the first voltage information and / or the second voltage information to the controller 110. In this way, the controller 110 can understand the actual detection current value of the circuit to be detected in real time, thereby achieving precise control of the switching device 140. Moreover, the entire control process does not require human intervention, with a higher degree of automation, thereby improving the user experience.
[0070] In some embodiments, see Figure 3 , the feedback module 150 may include: a first current amplifier 310, a first operational amplifier 310 and an analog-to-digital converter 330;
[0071] The first current amplifier 310 is used to collect a first actual voltage value across the first current sampling resistor 120 and amplify the first actual voltage value to obtain a first amplified voltage value;
[0072] The first operational amplifier 320 is used to amplify the first amplified voltage value to obtain a first voltage value;
[0073] The analog-to-digital converter 330 is configured to perform analog-to-digital conversion on the first voltage value to obtain first voltage information, and transmit the first voltage information to the controller 110 .
[0074] Typically, to reduce the voltage division across the first current sampling resistor 120, the resistance of the first current sampling resistor 120 is relatively small. This results in a relatively small voltage across the first current sampling resistor 120, making it difficult for the analog-to-digital converter 330 to detect. Therefore, to ensure that the analog-to-digital converter 330 can detect the voltage across the current sampling resistor, a first current amplifier 310 is typically used to amplify the voltage across the first current sampling resistor 120. However, because the amplification factor of the first current amplifier 310 is typically fixed, the voltage amplified by the first current amplifier 310 still cannot match the input voltage of the analog-to-digital converter 330. Therefore, to ensure that the resulting voltage value is compatible with the analog-to-digital converter 330, a first operational amplifier 320 is also provided. The first voltage value ultimately received by the analog-to-digital converter 330 is the first voltage value across the first current sampling resistor 120 after being amplified by the first current amplifier 310 and the first operational amplifier 320.
[0075] As an example, the amplification factor of the first current amplifier 310 is k11, and the current value flowing through the first current sampling resistor 120 is I1. Then, the first current amplifier 310 amplifies the voltage across the first current sampling resistor 120 and outputs a first amplified voltage value V 11 It can be calculated according to the following formula:
[0076] V 11 =k 11 I1R sense1
[0077] As an example, the amplification factor of the first operational amplifier 320 is k12, and the first operational amplifier 320 amplifies the first voltage value V 11 After amplification, the output first voltage value V chr1 It can be calculated according to the following formula:
[0078] V cur1 =k 12 k 11 I1R sense1
[0079] Since the controller 110 can usually only process digital signals, and the first voltage value is an analog signal, after receiving the first voltage value, the analog-to-digital converter 330 needs to perform analog-to-digital conversion on the first voltage value, convert it into a corresponding digital signal, and then input the digital signal as the first voltage information into the controller 110.
[0080] As an example, the number of bits of the analog-to-digital converter 330 is N, and the reference voltage is V ref , then V cur1 The corresponding first voltage information CODE1 can be determined based on the following formula:
[0081]
[0082] based on Figure 3 In the current detection device shown, the feedback module 150 is used to obtain the first voltage information corresponding to the first current sampling resistor when the second current detection branch is disconnected, and transmit the first voltage information to the controller 110, and to obtain the first voltage information when the second current detection branch is turned on, and transmit the first voltage information to the controller 110.
[0083] Correspondingly, when the second current detection branch is disconnected, after receiving the first voltage information, the controller 110 can determine the first voltage value based on the first voltage signal, and then compare the first voltage value with the first voltage threshold. If the first voltage value is greater than the first voltage threshold, it is determined that the detection current value is greater than the first current threshold, thereby controlling the switching device 140 to turn on the second current detection branch.
[0084] The controller 110 can determine the first voltage value V according to the following formula based on the first voltage information CODE1: cur1 :
[0085]
[0086] After obtaining the first voltage value, it is compared with a first voltage threshold, wherein the first voltage threshold is pre-set based on the first current threshold, and the first voltage threshold is the amplified voltage value across the first current sampling resistor when the detection current value is equal to the first current threshold.
[0087] As an example, the first current threshold I th1 For I a , then the first voltage threshold V th1 It can be set according to the following formula:
[0088] V th1 =I th1 k 12 k 11 R sense1 =I a k 12 k 11 R sense1
[0089] Based on this, when it is determined that the first voltage value is greater than the first voltage threshold, it can be determined that the detection current value is greater than the first current threshold, thereby controlling the switch device 140 to turn on the second current detection branch.
[0090] Furthermore, if the first voltage value is determined to be less than or equal to the first voltage threshold, then the detected current value is determined to be less than or equal to the first current threshold. In this case, there is no need to control the switch device 140 to switch the current detection branch, and the second current detection branch remains disconnected. Furthermore, in this case, the detected current value can be determined based on the first voltage value and then output as the current detection result.
[0091] Because noise may be added during the signal transmission process, in order to improve the accuracy of the current detection result, before determining the detection current value based on the first voltage value, the first voltage information can be filtered, and then the detection current value can be determined based on the first voltage value determined according to the filtered first voltage information, and then output.
[0092] According to the first voltage value, the detection current value I can be determined according to the following formula: det1 :
[0093]
[0094] Correspondingly, when the second current detection branch is turned on, after the controller 110 receives the first voltage information, it can determine the first voltage value based on the first voltage signal, and then compare the first voltage value with the second voltage threshold. If the first voltage value is less than the second voltage threshold, it is determined that the detection current value is less than the second current threshold, thereby controlling the switching device 140 to disconnect the second current detection branch.
[0095] The controller 110 determines the first voltage value based on the first voltage signal in the same manner as previously described, and will not be further described herein to avoid repetition.
[0096] After obtaining the first voltage value, it is compared with the second voltage threshold, where the second voltage threshold is pre-set based on the second current threshold, and the second voltage threshold is the amplified voltage value across the first current sampling resistor when the detection current value is equal to the second current threshold.
[0097] As an example, the second current threshold I th2 For I a -I h , then the second voltage threshold V th2 It can be set according to the following formula:
[0098]
[0099] Where R ds(on) represents the on-state internal resistance of the switching device 140 .
[0100] Based on this, when it is determined that the first voltage value is less than the second voltage threshold, it can be determined that the detection current value is greater than the first current threshold, thereby controlling the switch device 140 to disconnect the second current detection branch.
[0101] Furthermore, if it is determined that the first voltage value is greater than or equal to the second voltage threshold, and the detected current value is determined to be greater than or equal to the second current threshold, then it is determined that there is no need to control the switch device 140 to switch the current detection branch, so that the second current detection branch remains conductive. Furthermore, at this time, the detected current value can be determined based on the first voltage value, and then output as the current detection result.
[0102] Because noise may be added during the signal transmission process, in order to improve the accuracy of the current detection result, before determining the detection current value based on the first voltage value, the first voltage information can be filtered, and then the detection current value can be determined based on the first voltage value determined according to the filtered first voltage information, and then output.
[0103] According to the first voltage value, the detection current value I can be determined according to the following formula: det1 ′ :
[0104]
[0105] In the above manner, when the second current detection branch is turned on and off, the feedback module always transmits the first voltage information to the controller without switching the transmitted information. The control logic is simple and easy to implement.
[0106] In some embodiments, when the second current detection branch is turned on, the current flowing through the second current detection branch is larger than the current flowing through the first current detection branch. Therefore, in this case, the detection current value determined based on the second voltage value is more accurate than the detection current value determined based on the first voltage value. Therefore, in order to further improve the detection accuracy of the current detection device, see Figure 4 The feedback module 150 may include: a first current amplifier 410 , a first operational amplifier 420 , a second current amplifier 430 , a second operational amplifier 440 , a multiplexer 450 and an analog-to-digital converter 460 .
[0107] The first current amplifier 410 is used to collect a first actual voltage value across the first current sampling resistor 120 and amplify the first actual voltage value to obtain a first amplified voltage value;
[0108] The first operational amplifier 420 is used to amplify the first amplified voltage value to obtain a first voltage value;
[0109] The second current amplifier 430 is used to collect the second actual voltage value across the second current sampling resistor 130 and amplify the second actual voltage value to obtain a second amplified voltage value;
[0110] The second operational amplifier 440 is used to amplify the second amplified voltage value to obtain a second voltage value;
[0111] The multiplexer 450 is configured to transmit the first voltage value to the analog-to-digital converter upon receiving a first control signal from the controller 110 , and transmit the second voltage value to the analog-to-digital converter 460 upon receiving a second control signal from the controller 110 ;
[0112] The analog-to-digital converter 460 is configured to, upon receiving a first voltage value, perform analog-to-digital conversion on the first voltage value to obtain first voltage information, and transmit the first voltage information to the controller 110; and upon receiving a second voltage value, perform analog-to-digital conversion on the second voltage value to obtain second voltage information, and transmit the second voltage information to the controller 110;
[0113] The controller 110 is further configured to send a first control signal to the multiplexer 450 when the detected current value is greater than a first current threshold, and to send a second control signal to the multiplexer 450 when the detected current value is less than a second current threshold.
[0114] The first current amplifier 410 and the second current amplifier 430 have the same working principle as the first current amplifier 310 and are not described in detail here. The first operational amplifier 420 and the second operational amplifier 440 have the same working principle as the first operational amplifier 320 and are not described in detail here.
[0115] The first amplified voltage value V output by the first current amplifier 410 is 11 It can be calculated according to the following formula:
[0116] V 11 =k 11 I1R sense1
[0117] The amplification factor of the first operational amplifier 420 is the first voltage value V output by k12. cur1 It can be calculated according to the following formula:
[0118] V cur1 =k 12 k 11 I1R sense1
[0119] The second amplified voltage value V output by the second current amplifier 430 21 It can be calculated according to the following formula:
[0120] V 11 =k 21 I2R sense2
[0121] Where I2 represents the current value flowing through the second current detection branch, k 21 represents the amplification factor of the second current amplifier 430 .
[0122] The first voltage value V output by the second operational amplifier 440 cur2 It can be calculated according to the following formula:
[0123] V cur2 =k 22 k 21 I2R sense2
[0124] Where k 22 represents the amplification factor of the second operational amplifier 440 .
[0125] After receiving the first voltage value, the analog-to-digital converter 450 performs analog-to-digital conversion on the first voltage value, converts it into a corresponding digital signal, and then inputs the digital signal as the first voltage information to the controller 110. After receiving the second voltage value, the analog-to-digital converter 450 performs analog-to-digital conversion on the second voltage value, converts it into a corresponding digital signal, and then inputs the digital signal as the second voltage information to the controller 110.
[0126] As an example, the number of bits of the analog-to-digital converter 450 is N, and the reference voltage is V ref , then V cur1 The corresponding first voltage information CODE1 can be determined based on the following formula:
[0127]
[0128] V cur2 The corresponding first voltage information CODE2 can be determined based on the following formula:
[0129]
[0130] based on Figure 4 In the current detection device shown, the feedback module 150 is used to obtain first voltage information corresponding to the first current sampling resistor when the second current detection branch is disconnected, and transmit the first voltage information to the controller 110, and to obtain second voltage information when the second current detection branch is turned on, and transmit the second voltage information to the controller 110.
[0131] Correspondingly, when the second current detection branch is disconnected, after the controller 110 receives the first voltage information, its processing method is consistent with the processing method of the controller 110 after receiving the first voltage information when the second current detection branch is disconnected in the above embodiment. To avoid repetition, it will not be repeated here.
[0132] Correspondingly, when the second current detection branch is turned on, after the controller 110 receives the second voltage information, it can determine the second voltage value based on the second voltage signal, and then compare the second voltage value with the third voltage threshold. If the second voltage value is less than the third voltage threshold, it is determined that the detection current value is less than the second current threshold, thereby controlling the switching device 140 to disconnect the second current detection branch.
[0133] The controller 110 can determine the second voltage value V according to the second voltage information CODE2 according to the following formula: cur2 :
[0134]
[0135] After obtaining the second voltage value, it is compared with a third voltage threshold, where the third voltage threshold is pre-set based on the second current threshold, and the third voltage threshold is the amplified voltage value across the second current sampling resistor when the detection current value is equal to the second current threshold.
[0136] As an example, the second current threshold I th For I a -I h , then the third voltage threshold V th3 It can be set according to the following formula:
[0137]
[0138] Based on this, when it is determined that the second voltage value is less than the third voltage threshold, it can be determined that the detection current value is less than the second current threshold, thereby controlling the switch device 140 to disconnect the second current detection branch.
[0139] Furthermore, if it is determined that the second voltage value is greater than or equal to the third voltage threshold, then it is determined that the detection current value is greater than or equal to the second current threshold. Therefore, it is determined that there is no need to control the switch device 140 to switch the current detection branch, so that the second current detection branch remains conductive. Furthermore, at this point, the detection current value can be determined based on the second voltage value, and then output as the current detection result.
[0140] Because noise may be added during the signal transmission process, in order to improve the accuracy of the current detection result, before determining the detection current value based on the second voltage value, the second voltage information can be filtered first, and then the detection current value can be determined based on the second voltage value determined according to the filtered second voltage information, and then output.
[0141] According to the second voltage value, the detection current value I can be determined according to the following formula: det2 :
[0142]
[0143] By adopting the above-mentioned method, when the second current detection branch is turned on, the detection current value is determined according to the second voltage value, which is more accurate.
[0144] It is understandable that, in addition to Figures 1-4 In addition to the devices shown in the figure, the current detection device may also include components such as a power supply, a reference source, and a memory, wherein the power supply is used to power each device that requires power, the reference source is used to provide a reference voltage for the analog-to-digital converter 330 or the analog-to-digital converter 440, and the memory is used to store preset information such as the first voltage threshold, the second voltage threshold, and the third voltage threshold.
[0145] An embodiment of the present application further provides a current detection control method, which is applied to the controller in the current detection device provided in the above embodiment.
[0146] See also Figure 5 , is a flow chart of a current detection control method provided in an embodiment of the present application, such as Figure 5 As shown, the method may include the following steps:
[0147] S51. In response to the current detection device being powered on, the switch device is controlled to disconnect the second current detection branch;
[0148] S52. When the second current detection branch is disconnected, determining whether the detection current value is greater than the first current threshold;
[0149] S53. In response to the detection current value being greater than the first current threshold, controlling the switch device to turn on the second current detection branch;
[0150] S54. When the second current detection branch is turned on, determining whether the detection current value is less than the second current threshold;
[0151] S55. In response to the detected current value being less than the second current threshold, control the switch device to disconnect the second current detection branch, and return to execute S52.
[0152] The control method provided in this embodiment controls the switching device to use a first current sampling resistor with a larger resistance to detect current in the low current range, and uses a parallel resistor with a smaller resistance composed of the first current sampling resistor and the second current sampling resistor in parallel to detect current in the high current range, thereby achieving accurate detection of current values in different ranges.
[0153] In some embodiments, the current sensing device such as Figure 3 shown or Figure 4 In the case shown, when S52 determines whether the detection current value is greater than the first current threshold, the following steps may be included:
[0154] receiving first voltage information, where the first voltage information includes a first voltage value amplified across a first current sampling resistor;
[0155] Comparing the first voltage value with a first voltage threshold, wherein the first voltage threshold is a first voltage value of a voltage value amplified across the first current sampling resistor when the detection current value is equal to the first current threshold;
[0156] In response to the first voltage value being greater than a first voltage threshold, determining that the detection current value is greater than a first current threshold;
[0157] In response to the first voltage value being less than or equal to the first voltage threshold, it is determined that the detection current value is less than or equal to the first current threshold.
[0158] Furthermore, after determining that the detection current value is less than or equal to the first current threshold, the method further includes:
[0159] filtering the first voltage information, determining a detection current value according to a first voltage value in the filtered first voltage information, and outputting the detection current value as a current detection result;
[0160] After delaying for the set time, the process returns to executing the receiving of the first voltage information.
[0161] The specific implementation details of the above steps can be found in Figure 3 and Figure 4 To avoid repetition, the relevant descriptions in the corresponding embodiments are not repeated here.
[0162] In some embodiments, the current sensing device such as Figure 3 In the case shown, when determining whether the detection current value is less than the second current threshold, S54 may include:
[0163] receiving first voltage information, where the first voltage information includes a first voltage value amplified across a first current sampling resistor;
[0164] Comparing the first voltage value with a second voltage threshold, wherein the second voltage threshold is a first voltage value of a voltage value amplified across the first current sampling resistor when the detection current value is equal to the second current threshold;
[0165] In response to the first voltage value being less than the second voltage threshold, determining that the detection current value is less than the second current threshold;
[0166] In response to the first voltage value being greater than or equal to the second voltage threshold, it is determined that the detection current value is greater than or equal to the second current threshold.
[0167] Furthermore, after determining that the detection current value is greater than or equal to the second current threshold, the method further includes:
[0168] filtering the first voltage information, determining a detection current value according to a first voltage value in the filtered first voltage information, and outputting the detection current value as a current detection result;
[0169] After delaying for the set time, the process returns to executing the receiving of the first voltage information.
[0170] The specific implementation details of the above steps can be found in Figure 3 To avoid repetition, the relevant descriptions in the corresponding embodiments are not repeated here.
[0171] In some embodiments, in a current detection device such as Figure 4 In the case shown, when determining whether the detection current value is less than the second current threshold, S54 may include:
[0172] receiving second voltage information, where the second voltage information includes a second voltage value amplified across the second current sampling resistor;
[0173] Comparing the second voltage value with a third voltage threshold, wherein the third voltage threshold is a first voltage value of a voltage value amplified across the second current sampling resistor when the detection current value is equal to the second current threshold;
[0174] In response to the second voltage value being less than the third voltage threshold, determining that the detection current value is less than the second current threshold;
[0175] In response to the second voltage value being greater than or equal to the third voltage threshold, it is determined that the detection current value is greater than or equal to the second current threshold.
[0176] Furthermore, after determining that the detection current value is greater than or equal to the second current threshold, the method further includes:
[0177] filtering the second voltage information, determining a detection current value according to a second voltage value in the filtered second voltage information, and outputting the detection current value as a current detection result;
[0178] After delaying for the set time, the process returns to executing receiving the second voltage information.
[0179] The specific implementation details of the above steps can be found in Figure 4 To avoid repetition, the relevant descriptions in the corresponding embodiments are not repeated here.
[0180] Based on the current detection control method provided in the above embodiment, the present application also provides a specific implementation of a current detection control device. Please refer to the following embodiment.
[0181] See also Figure 6 The current detection control device provided in the embodiment of the present application includes the following modules:
[0182] The first control module 601 is used to control the switch device to disconnect the second current detection branch in response to the current detection device being powered on.
[0183] A first judgment module 602 is configured to determine whether the detection current value is greater than a first current threshold when the second current detection branch is disconnected;
[0184] A first switching module 603 is configured to control the switch device to turn on the second current detection branch in response to the detection current value being greater than the first current threshold;
[0185] A second judgment module 604 is configured to determine whether the detection current value is less than a second current threshold when the second current detection branch is turned on;
[0186] The second switching module 605 is configured to control the switch device to disconnect the second current detection branch in response to the detected current value being less than the second current threshold.
[0187] In some embodiments, the first determination module 602 is specifically configured to:
[0188] receiving first voltage information, where the first voltage information includes a first voltage value amplified across a first current sampling resistor;
[0189] Comparing the first voltage value with a first voltage threshold, wherein the first voltage threshold is an amplified voltage value across the first current sampling resistor when the detection current value is equal to the first current threshold;
[0190] In response to the first voltage value being greater than a first voltage threshold, determining that the detection current value is greater than a first current threshold;
[0191] In response to the first voltage value being less than or equal to the first voltage threshold, it is determined that the detection current value is less than or equal to the first current threshold.
[0192] In some embodiments, the apparatus may further include:
[0193] a filtering module, configured to filter the first voltage information after determining that the detection current value is less than or equal to the first current threshold;
[0194] a detection result determination module, configured to determine a detection current value according to a first voltage value in the filtered first voltage information;
[0195] The detection result output module is used to output the detected current value as the current detection result.
[0196] In some embodiments, the second determination module 604 is specifically configured to:
[0197] receiving first voltage information, where the first voltage information includes a first voltage value amplified across a first current sampling resistor;
[0198] Comparing the first voltage value with a second voltage threshold, wherein the second voltage threshold is an amplified voltage value across the first current sampling resistor when the detection current value is equal to the second current threshold;
[0199] In response to the first voltage value being less than the second voltage threshold, determining that the detection current value is less than the second current threshold;
[0200] In response to the first voltage value being greater than or equal to the second voltage threshold, it is determined that the detection current value is greater than or equal to the second current threshold.
[0201] In some embodiments, the filtering module is further configured to filter the first voltage information after determining that the detected current value is greater than or equal to the second current threshold;
[0202] The detection result determination module is further used to determine the detection current value according to the first voltage value in the first voltage information after filtering;
[0203] The detection result output module is also used to output the detected current value as the current detection result.
[0204] In some embodiments, the second determination module 604 is specifically configured to:
[0205] receiving second voltage information, where the second voltage information includes a second voltage value amplified across the second current sampling resistor;
[0206] Comparing the second voltage value with a third voltage threshold, wherein the third voltage threshold is an amplified voltage value across the second current sampling resistor when the detection current value is equal to the second current threshold;
[0207] In response to the second voltage value being less than the third voltage threshold, determining that the detection current value is less than the second current threshold;
[0208] In response to the second voltage value being greater than or equal to the third voltage threshold, it is determined that the detection current value is greater than or equal to the second current threshold.
[0209] In some embodiments, the filtering module is further configured to filter the second voltage information after determining that the detected current value is greater than or equal to the second current threshold;
[0210] The detection result determination module is further used to determine the detection current value according to the second voltage value in the second voltage information after filtering;
[0211] The detection result output module is also used to output the detected current value as the current detection result.
[0212] The current detection control device provided in the embodiment of the present application can implement each process implemented in the above-mentioned method embodiments. To avoid repetition, they will not be described here.
[0213] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0214] The electronic device may include a processor 701 and a memory 702 storing computer program instructions.
[0215] Specifically, the processor 701 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0216] The memory 702 may include a large-capacity memory for data or instructions. By way of example and not limitation, the memory 702 may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 702 may include removable or non-removable (or fixed) media. Where appropriate, the memory 702 may be internal or external to the integrated gateway disaster recovery device. In a specific embodiment, the memory 702 is a non-volatile solid-state memory. The memory 702 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Therefore, generally, the memory 702 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it may perform the operations described in any of the current detection control methods in the above-described embodiments.
[0217] The processor 701 reads and executes computer program instructions stored in the memory 702 to implement any one of the current detection control methods in the above embodiments.
[0218] In one example, the electronic device may further include a communication interface 703 and a bus 710. Figure 7 As shown, the processor 701, the memory 702, and the communication interface 703 are connected via a bus 710 and communicate with each other.
[0219] The communication interface 703 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0220] Bus 710 includes hardware, software or both, and the parts of online data flow metering equipment are coupled to each other. For example, but not limitation, bus can include accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industry standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 710 can include one or more buses. Although the present application embodiment describes and shows specific bus, the application considers any suitable bus or interconnection.
[0221] In addition, in conjunction with the current detection control method in the above embodiments, embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any of the current detection control methods in the above embodiments is implemented.
[0222] In addition, in combination with the current detection control device in the above embodiment, an embodiment of the present application can provide a vehicle, including the current detection control device provided by the above embodiment.
[0223] It should be understood that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated. Those skilled in the art can make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present application.
[0224] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memories, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0225] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps. In other words, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0226] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It is also understood that each box in the block diagram and / or flowchart and the combination of the boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0227] The above description is only a specific embodiment of the present application. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the scope of protection of the present application.
Claims
1. A current detection device, characterized in that: include: A controller, a first current detection branch and a second current detection branch; The first current detection branch is connected in parallel with the second current detection branch; The first current detection branch includes a first current sampling resistor, and the first current sampling resistor is used to sample the current flowing through the first current detection branch; The second current detection branch includes a second current sampling resistor and a switch device, the second current sampling resistor is used to sample the current flowing through the second current detection branch, and the switch device is used to control the conduction and disconnection of the second current detection branch; Wherein, the resistance value of the first current sampling resistor is greater than the resistance value of the second current sampling resistor; The controller is used to control the switch device to turn on the second current detection branch when the second current detection branch is disconnected and the detection current value is greater than a first current threshold, and to control the switch device to disconnect the second current detection branch when the second current detection branch is turned on and the detection current value is less than a second current threshold, wherein the detection current value is a total current value flowing through the current detection device.
2. The current detection device according to claim 1, characterized in that: The current detection device further includes: a feedback module; The feedback module is used to obtain first voltage information corresponding to the first current sampling resistor and transmit the first voltage information to the controller, or to obtain the first voltage information or second voltage information corresponding to the second current sampling resistor and transmit the first voltage information or the second voltage information to the controller; Among them, the first voltage information includes a first voltage value amplified across the first current sampling resistor, and the first voltage value is used to determine whether the detection current value is greater than the first current threshold or to determine whether the detection current value is less than the second current threshold; the second voltage information includes a second voltage value amplified across the second current sampling resistor, and the second voltage value is used to determine whether the detection current value is less than the second current threshold.
3. The current detection device according to claim 2, characterized in that: The feedback module includes: a first current amplifier, a first operational amplifier and an analog-to-digital converter; The first current amplifier is used to collect a first actual voltage value across the first current sampling resistor, and amplify the first actual voltage value to obtain a first amplified voltage value; The first operational amplifier is used to amplify the first amplified voltage value to obtain the first voltage value; The analog-to-digital converter is used to perform analog-to-digital conversion on the first voltage value to obtain the first voltage information, and transmit the first voltage information to the controller.
4. The current detection device according to claim 2, characterized in that: The feedback module includes: a first current amplifier, a first operational amplifier, a second current amplifier, a second operational amplifier, a multiplexer and an analog-to-digital converter; The first current amplifier is used to collect a first actual voltage value across the first current sampling resistor, and amplify the first actual voltage value to obtain a first amplified voltage value; The first operational amplifier is used to amplify the first amplified voltage value to obtain the first voltage value; The second current amplifier is used to collect a second actual voltage value across the second current sampling resistor, and amplify the second actual voltage value to obtain a second amplified voltage value; The second operational amplifier is used to amplify the second amplified voltage value to obtain the second voltage value; The multiplexer is used to transmit the first voltage value to the analog-to-digital converter when receiving a first control signal sent by the controller, and to transmit the second voltage value to the analog-to-digital converter when receiving a second control signal sent by the controller; The analog-to-digital converter is used to, when receiving the first voltage value, perform analog-to-digital conversion on the first voltage value to obtain the first voltage information, and transmit the first voltage information to the controller; and, when receiving the second voltage value, perform analog-to-digital conversion on the second voltage value to obtain the second voltage information, and transmit the second voltage information to the controller; The controller is further configured to send the first control signal to the multiplexer when the detected current value is greater than the first current threshold, and to send the second control signal to the multiplexer when the detected current value is less than the second current threshold.
5. The current detection device according to any one of claims 2 to 4, characterized in that: The controller is further configured to determine the detection current value according to the first current information and output the detection current value as a current detection result when the second current detection branch is disconnected and the detection current value is determined according to the first current information to be less than or equal to the first current threshold; The controller is also used to determine the detection current value according to the first current information or the second current information when the second current detection branch is turned on and the detection current value is determined to be greater than or equal to the second current threshold according to the first current information or the second current information, and output the detection current value as a current detection result.
6. A current detection control method, characterized in that: A controller used in a current detection device according to any one of claims 1 to 5, wherein the method comprises: In response to the current detection device being powered on, controlling the switch device to disconnect the second current detection branch; When the second current detection branch is disconnected, determining whether the detection current value is greater than the first current threshold; In response to the detection current value being greater than the first current threshold, controlling the switch device to turn on the second current detection branch; When the second current detection branch is turned on, determining whether the detection current value is less than the second current threshold; In response to the detection current value being less than the second current threshold, the switch device is controlled to disconnect the second current detection branch, and the step of determining whether the detection current value is greater than the first current threshold is returned to be executed.
7. The method according to claim 6, characterized in that The determining whether the detected current value is greater than the first current threshold comprises: receiving first voltage information, wherein the first voltage information includes a first voltage value amplified across two ends of the first current sampling resistor; comparing the first voltage value with a first voltage threshold, wherein the first voltage threshold is an amplified voltage value across the first current sampling resistor when the detection current value is equal to the first current threshold; In response to the first voltage value being greater than the first voltage threshold, determining that the detection current value is greater than the first current threshold; In response to the first voltage value being less than or equal to the first voltage threshold, it is determined that the detection current value is less than or equal to the first current threshold.
8. The method according to claim 7, characterized in that After determining that the detection current value is less than or equal to the first current threshold, the method further includes: performing filtering processing on the first voltage information; Determine the detection current value according to the first voltage value in the first voltage information after filtering; The detected current value is output as a current detection result.
9. The method according to claim 6, characterized in that The determining whether the detection current value is less than the second current threshold comprises: receiving first voltage information, wherein the first voltage information includes a first voltage value amplified across two ends of the first current sampling resistor; Comparing the first voltage value with a second voltage threshold, wherein the second voltage threshold is an amplified voltage value across the first current sampling resistor when the detection current value is equal to the second current threshold; In response to the first voltage value being less than the second voltage threshold, determining that the detection current value is less than the second current threshold; In response to the first voltage value being greater than or equal to the second voltage threshold, it is determined that the detection current value is greater than or equal to the second current threshold.
10. The method according to claim 9, characterized in that After determining that the detection current value is greater than or equal to the second current threshold, the method further includes: performing filtering processing on the first voltage information; Determine the detection current value according to the first voltage value in the first voltage information after filtering; The detected current value is output as a current detection result.
11. The method according to claim 6, characterized in that The determining whether the detection current value is less than the second current threshold comprises: receiving second voltage information, wherein the second voltage information includes a second voltage value amplified across the second current sampling resistor; Compare the second voltage value with a third voltage threshold, wherein the third voltage threshold is the amplified voltage value across the second current sampling resistor when the detection current value is equal to the second current threshold; In response to the second voltage value being less than the third voltage threshold, determining that the detection current value is less than the second current threshold; In response to the second voltage value being greater than or equal to the third voltage threshold, it is determined that the detection current value is greater than or equal to the second current threshold.
12. The method according to claim 11, characterized in that After determining that the detection current value is greater than or equal to the second current threshold, the method further includes: performing filtering processing on the second voltage information; Determine the detection current value according to the second voltage value in the second voltage information after filtering; The detected current value is output as a current detection result.
13. A current detection control device, characterized in that: A controller used in a current detection device according to any one of claims 1 to 5, the device comprising: a first control module, configured to control the switch device to disconnect the second current detection branch in response to the current detection device being powered on; A first judgment module, used for determining whether the detection current value is greater than the first current threshold value when the second current detection branch is disconnected; A first switching module, configured to control the switch device to turn on the second current detection branch in response to the detection current value being greater than the first current threshold; A second judgment module, used for determining whether the detection current value is less than the second current threshold value when the second current detection branch is turned on; The second switching module is used to control the switch device to disconnect the second current detection branch in response to the detection current value being less than the second current threshold.
14. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the steps of the current detection control method according to any one of claims 6 to 12 are implemented.
15. A readable storage medium, characterized in that: The readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the steps of the current detection control method according to any one of claims 6 to 12 are implemented.
16. A vehicle, characterized in that: It comprises the current detection control device as claimed in claim 13.
Citation Information
Cited By
Current sampling method, multi-stage dimming circuit and lighting equipment
CN120390332A