Current acquisition circuit and method
By introducing multi-gear technology into the current acquisition circuit and adjusting the acquisition gear according to the real-time current, the problem of low acquisition accuracy caused by high-speed changing current in the solenoid valve is solved, and higher current acquisition accuracy is achieved.
Patent Information
- Application Number
- CN202410665710.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-08-30
AI Technical Summary
The existing technology is difficult to adapt to the high-speed changing current in the solenoid valve, resulting in poor accuracy of the collected current.
A current acquisition circuit is designed, which includes a current acquisition unit and a gear control unit. The current acquisition unit has multiple gears. The gear control unit adjusts the acquisition gear according to the real-time current to achieve accurate acquisition of the solenoid valve current.
Through multi-gear acquisition technology, the accuracy of current acquisition is improved, the problem of unsynchronized sampling is solved, and the reliability of current data is ensured.
Smart Images

Figure CN118566569A
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of vehicle technology, and in particular, to a current acquisition circuit and method. Background Art
[0002] The solenoid valve is one of the core components of the engine, and the state of the solenoid valve is related to the safe operation of the engine. Since the state of the solenoid valve is closely related to the current passing through the solenoid valve, it is crucial to collect the current passing through the solenoid valve.
[0003] In the prior art, the current passing through the solenoid valve can be collected through the following process: first, it is necessary to know the current range passing through the solenoid valve, and select a suitable current sensor in advance based on the current range, and then use the current sensor to collect the current passing through the solenoid valve.
[0004] However, the above method is difficult to adapt to the high-speed changing current in the solenoid valve, and is prone to sampling asynchrony problems, resulting in poor accuracy of the collected current. Summary of the invention
[0005] The present invention provides a current acquisition circuit and method, which solves the problem that the existing method for acquiring the current of an engine solenoid valve is difficult to adapt to the high-speed changing current in the solenoid valve, and sampling asynchronism is prone to occur, resulting in poor accuracy of the acquired current.
[0006] A first aspect of an embodiment of the present invention provides a current acquisition circuit, the circuit comprising: a current acquisition unit and a gear control unit, the current acquisition unit having N gears, N being an integer greater than or equal to 2, and different gears corresponding to different current acquisition ranges;
[0007] The current acquisition unit is connected to the target component, and is used to collect the current passing through the target component based on the target gear position among the N gear positions, and output a digital signal, and the digital signal is used to indicate the current size of the target component;
[0008] The input end of the gear control unit is connected to the output end of the current acquisition unit, and the output end of the gear control unit is connected to the input end of the current acquisition unit. The gear control unit is used to control the current acquisition unit to use the target gear according to the digital signal.
[0009] In one possible design, the current acquisition unit includes: a current acquisition subunit and a voltage sampling subunit;
[0010] The output end of the current acquisition subunit is connected to the input end of the voltage sampling subunit, and the output end of the voltage sampling subunit is connected to the input end of the gear control unit. The current acquisition subunit is used to collect the current signal passing through the target component based on the target gear among the N gears, and convert the current signal into a voltage signal. The voltage sampling subunit is used to sample the voltage signal to obtain a digital signal.
[0011] In a possible design, the current acquisition subunit includes a current sensor, the current sensor includes N groups of coils with different numbers of turns, the coils with different numbers of turns correspond to different current acquisition ranges, and the wire connecting the target component passes through the induction loop of the current sensor;
[0012] The gear control unit is connected to N groups of coils, and the gear control unit is also used to control the coil corresponding to the target gear to collect the current signal passing through the target component.
[0013] In one possible design, the gear control unit includes a gear determination subunit and a gear control subunit;
[0014] The input end of the gear determination subunit is connected to the output end of the current acquisition unit, and the gear determination subunit is used to determine the real-time current passing through the target component according to the digital signal, and determine the target gear according to the real-time current;
[0015] The input end of the gear control subunit is connected to the output end of the gear determination subunit, and the gear control subunit is used to control the current acquisition unit to use the target gear.
[0016] In one possible design, the gear control subunit includes N switches;
[0017] Each switch is connected to the output end of the gear determination subunit, and the gear determination subunit is further used to control the first switch corresponding to the target gear to be in a closed state, and control the second switch other than the first switch to be in an open state;
[0018] Each switch is connected to a coil. When the switch is in a closed state, the coil connected to the switch is used to collect the current signal passing through the target component.
[0019] A second aspect of an embodiment of the present invention provides a current acquisition method, which is applied to a current acquisition circuit. The current acquisition circuit includes: a current acquisition unit and a gear control unit. The current acquisition unit has N gears, where N is an integer greater than or equal to 2. Different gears correspond to different current acquisition ranges. The method includes:
[0020] The gear control unit receives the digital signal output by the current acquisition unit;
[0021] The gear control unit controls the current acquisition unit according to the digital signal to acquire the current passing through the target component based on the target gear among the N gears to obtain a digital signal.
[0022] In a possible design, the gear control unit controls the current acquisition unit according to the digital signal to acquire the current passing through the target component based on the target gear among the N gears to obtain the digital signal, including:
[0023] The gear control unit obtains the real-time current of the target component according to the digital signal;
[0024] The gear control unit determines the target gear according to the real-time current;
[0025] The gear control unit controls the current acquisition unit to acquire the current passing through the target component according to the target gear to obtain a digital signal.
[0026] In a possible design, the gear control unit determines the target gear according to the real-time current, including:
[0027] When the real-time current is greater than the i-th preset current, the gear control unit takes the (i+1)th gear as the target gear, where the value of i is 1 to (N-1) in sequence.
[0028] In one possible design, the method further includes:
[0029] When the real-time current is greater than the Nth preset current, the gear control unit controls the gear control subunit to disconnect the gear and stop collecting the current passing through the target component.
[0030] In a possible design, the window refers to the time taken for the current through the target component to rise from zero to a maximum value and then drop to zero, and the method further includes:
[0031] During the first window detection, the gear control unit controls the current acquisition unit to use the first gear as the target gear;
[0032] During the j-th window detection, the gear control unit controls the current acquisition unit to use the highest gear during the (j-1)-th window detection as the target gear, where j is an integer greater than or equal to 2.
[0033] A third aspect of an embodiment of the present invention provides a chip, including: a current acquisition circuit according to the first aspect of the invention.
[0034] A fourth aspect of an embodiment of the present invention provides an electronic device, including: a chip according to the invention content of the third aspect.
[0035] An embodiment of the present invention provides a current acquisition circuit and method, wherein the current acquisition circuit includes: a current acquisition unit and a gear control unit, wherein the current acquisition unit has N gears, N is an integer greater than or equal to 2, and different gears correspond to different current acquisition ranges; the current acquisition unit is connected to a target component, and the current acquisition unit is used to acquire the current passing through the target component based on a target gear among the N gears, and output a digital signal, and the digital signal is used to indicate the current size of the target component; the input end of the gear control unit is connected to the output end of the current acquisition unit, and the output end of the gear control unit is connected to the input end of the current acquisition unit, and the gear control unit is used to control the current acquisition unit to use the target gear according to the digital signal. The following technical effects are achieved: the gear control unit receives the digital signal output by the current acquisition unit, obtains the real-time current passing through the solenoid valve according to the digital signal, and adjusts the gear of the current acquisition unit according to the real-time current, and finally controls the current acquisition unit to acquire the current passing through the solenoid valve at the target gear, thereby obtaining a digital signal, thereby solving the problem that the existing method for acquiring the current of the engine solenoid valve is difficult to adapt to the high-speed changing current in the solenoid valve, and is prone to sampling asynchrony, resulting in poor accuracy of the acquired current; by allowing the current acquisition unit to include various types of sensors, such as Hall effect current sensors, small DC current sensors, and current transformers, etc., the problem of how to acquire the current passing through the solenoid valve through the current acquisition unit is solved; by setting multiple gears for the current acquisition unit in a variety of ways, the problem of how to acquire current through multiple different gears is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. 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 creative work.
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0038] Figure 1 A schematic diagram of the structure of the current acquisition circuit provided in the embodiment of the present application Figure 1 ;
[0039] Figure 2 Schematic diagram of the current acquisition method provided in the embodiment of the present application Figure 1 ;
[0040] Figure 3A schematic diagram of the structure of the current acquisition circuit provided in the embodiment of the present application Figure 2 ;
[0041] Figure 4 A schematic diagram of the structure of the current acquisition circuit provided in the embodiment of the present application Figure 3 ;
[0042] Figure 5 Schematic diagram of the current acquisition method provided in the embodiment of the present application Figure 2 ;
[0043] Figure 6 A schematic diagram of the structure of the current acquisition circuit provided in the embodiment of the present application Figure 4 ;
[0044] Figure 7 A diagram showing changes in the current passing through a solenoid valve within a window provided in an embodiment of the present application.
[0045] Reference numerals:
[0046] 110 - target components; 120 - current acquisition unit; 130 - gear control unit; 121 - current acquisition subunit; 122 - voltage sampling subunit; 131 - gear determination subunit; 132 - gear control subunit. DETAILED DESCRIPTION
[0047] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0048] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0049] The directions or positional relationships indicated by terms such as "center", "longitudinal", "lateral", "up", "down", "left", "right", "front", and "back" are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present application and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present application.
[0050] The terms "connected" and "connected" should be understood in a broad sense. For example, the "connected" or "connected" of a circuit structure can refer to not only physical connection, but also electrical connection or signal connection. For example, it can be directly connected, that is, physically connected, or indirectly connected through at least one intermediate element, as long as the circuit is connected, or it can be the internal connection of two elements; signal connection can refer to signal connection through a circuit or through a media medium, such as radio waves. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0051] It should be noted that the “at…” in the embodiments of the present application may be the instant when a certain situation occurs, or may be a period of time after the occurrence of a certain situation, and the embodiments of the present application do not specifically limit this.
[0052] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.
[0053] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail. In the engine, the solenoid valve is one of the core components of the entire engine system, and the working state of the solenoid valve is related to the safe operation of the engine. Therefore, monitoring various data of the working state of the solenoid valve is of great significance for the safe, stable and reliable operation of the engine. Among them, the current data passing through the solenoid valve is an important part of the various data. By monitoring the current data of the solenoid valve, the working state of the engine can be monitored to ensure that the engine runs efficiently and stably in the long term.
[0054] Since the current passing through the solenoid valve changes very quickly, the sampling requirements are relatively high. In the prior art, the process of collecting the current passing through the solenoid valve includes: first, it is necessary to know the current range passing through the solenoid valve, and select a suitable current sensor in advance based on the current range, and then continue to use the current sensor with a fixed current collection range to collect the current passing through the solenoid valve.
[0055] Therefore, the existing method of collecting the engine solenoid valve current is difficult to adapt to the high-speed changing current in the solenoid valve, and is prone to sampling asynchrony, resulting in low accuracy of the collected solenoid valve current and unreliable data.
[0056] In order to solve the above problems, the inventors designed a current acquisition circuit and method. When collecting current, the current of the engine solenoid valve is collected by setting multiple different collection gears, avoiding the problem of low collection accuracy and unreliable data caused by collecting the engine solenoid valve current only through a current sensor with a single gear.
[0057] In order to facilitate the understanding of the technical solution of the present application, the specific solution of the embodiment of the present invention is described in detail below in conjunction with the drawings in the specification.
[0058] Figure 1 A schematic diagram of the structure of the current acquisition circuit provided in the embodiment of the present application Figure 1 ,like Figure 1 As shown, the current acquisition circuit includes: a current acquisition unit 120 and a gear control unit 130. The current acquisition unit 120 has N gears, where N is an integer greater than or equal to 2, and different gears correspond to different current acquisition ranges. The current acquisition unit 120 may include various types of sensors, including but not limited to Hall effect current sensors, small DC current sensors, and current transformers, etc. The gear control unit includes but is not limited to computing units such as Field-Programmable Gate Array (FPGA) to calculate the real-time current passing through the solenoid valve.
[0059] The current acquisition unit 120 is connected to the target component 110, and is used to acquire the current passing through the target component 110 based on the target gear position among the N gear positions, and output a digital signal, and the digital signal is used to indicate the current magnitude of the target component 110. The target component 110 refers to the engine solenoid valve type load to be tested, and the current passing through the target component 110 is acquired by connecting the target component 110 to the current acquisition unit 120.
[0060] The input end of the gear control unit 130 is connected to the output end of the current acquisition unit 120, and the output end of the gear control unit 130 is connected to the input end of the current acquisition unit 120. The gear control unit 130 is used to control the current acquisition unit 120 to use the target gear according to the digital signal.
[0061] In the current acquisition unit 120, multiple gears can be implemented by using multiple current sensors with different current acquisition ranges; it can also be implemented by winding the wires connected to the target components on the current sensor with different numbers of turns. The more turns, the higher the current amplification factor and the corresponding acquisition accuracy. It can also be implemented by winding multiple groups of coils with different numbers of turns on a current sensor. There are no excessive restrictions here and it can be selected according to the actual situation.
[0062] The following describes in detail how to use the current collection circuit to collect the current passing through the solenoid valve in conjunction with the current collection method in the present application.
[0063] Figure 2 Schematic diagram of the current acquisition method provided in the embodiment of the present application Figure 1 ,like Figure 2 As shown, in this embodiment, the execution subject of the embodiment of the present invention is the gear control unit. The current acquisition method provided in this embodiment includes the following steps:
[0064] Step S101: the gear position control unit receives a digital signal output by a current acquisition unit.
[0065] In this embodiment, the current acquisition unit is connected to the solenoid valve, and is used to collect the current passing through the solenoid valve load based on the target gear position among the N gear positions, and output a digital signal, and the digital signal is used to indicate the magnitude of the current passing through the solenoid valve load. The gear control unit receives the digital signal output by the output end of the current acquisition unit through the input end, so as to obtain the real-time current passing through the solenoid valve load according to the digital signal, and adjust the gear position of the current acquisition unit according to the real-time current.
[0066] Step S102 : The gear control unit controls the current acquisition unit according to the digital signal to acquire the current passing through the target component based on the target gear among the N gears to obtain a digital signal.
[0067] In this embodiment, the gear control unit can control the current acquisition unit to select a target gear from N gears according to the received digital signal, and control the current acquisition unit to collect the current passing through the target component at the target gear, thereby obtaining a digital signal.
[0068] A current acquisition circuit provided in this embodiment includes: a current acquisition unit and a gear control unit, the current acquisition unit has N gears, N is an integer greater than or equal to 2, and different gears correspond to different current acquisition ranges; the current acquisition unit is connected to a target component, the current acquisition unit is used to collect the current passing through the target component based on a target gear among the N gears, and output a digital signal, the digital signal is used to indicate the current size of the target component; the input end of the gear control unit is connected to the output end of the current acquisition unit, the output end of the gear control unit is connected to the input end of the current acquisition unit, and the gear control unit is used to control the current acquisition unit to use the target gear according to the digital signal. The following technical effects are achieved: the gear control unit receives the digital signal output by the current acquisition unit, obtains the real-time current passing through the solenoid valve according to the digital signal, and adjusts the gear of the current acquisition unit according to the real-time current, and finally controls the current acquisition unit to acquire the current passing through the solenoid valve at the target gear, thereby obtaining a digital signal, thereby solving the problem that the existing method for acquiring the current of the engine solenoid valve is difficult to adapt to the high-speed changing current in the solenoid valve, and is prone to sampling asynchrony, resulting in poor accuracy of the acquired current; by allowing the current acquisition unit to include various types of sensors, such as Hall effect current sensors, small DC current sensors, and current transformers, etc., the problem of how to acquire the current passing through the solenoid valve through the current acquisition unit is solved; by setting multiple gears for the current acquisition unit in a variety of ways, the problem of how to acquire current through multiple different gears is solved.
[0069] Figure 3 A schematic diagram of the structure of the current acquisition circuit provided in the embodiment of the present application Figure 2 ,like Figure 3 As shown, the current acquisition unit 120 includes: a current acquisition subunit 121 and a voltage sampling subunit 122;
[0070] The output end of the current acquisition subunit 121 is connected to the input end of the voltage sampling subunit 122, and the output end of the voltage sampling subunit 122 is connected to the input end of the gear control unit 130. The current acquisition subunit 121 is used to collect the current signal passing through the target component 110 based on the target gear among the N gears, and convert the current signal into a voltage signal. The voltage sampling subunit 122 is used to sample the voltage signal to obtain a digital signal. Among them, the voltage sampling subunit 122 can be implemented by a high-speed analog acquisition module (High-Speed Analog-to-Digital Converter, HSADC), so as to ensure that the voltage sampling subunit 122 can capture the rapidly changing voltage signal output by the current acquisition subunit 121 through a higher sampling rate, thereby achieving higher-precision voltage acquisition, and through the high-precision analog-to-digital converter (Analog-to-Digital Converter, ADC) with a higher resolution, it is ensured that the subtle changes of the collected voltage signal can also be accurately recorded. Specifically, such as the NX-HAD401 / 402 high-speed analog module of the NX series.
[0071] The current acquisition subunit 121 includes a current sensor, which includes N groups of coils with different numbers of turns, and the coils with different numbers of turns correspond to different current acquisition ranges. The wires connected to the target component 110 pass through the induction loop of the current sensor. The gear control unit 130 is connected to the N groups of coils, and the gear control unit is also used to control the coils corresponding to the target gear to collect the current signal passing through the target component 110. The current acquisition subunit 121 here can be a Hall effect current sensor, and the wire of the target component 110 passes through the magnetic core of the Hall effect current sensor, and N groups of coils with different numbers of turns are wound around the magnetic core, and the coils with different numbers of turns correspond to different current acquisition ranges.
[0072] Figure 4 A schematic diagram of the structure of the current acquisition circuit provided in the embodiment of the present application Figure 3 ,like Figure 4 As shown, the gear control unit 130 includes a gear determination subunit 131 and a gear control subunit 132;
[0073] The input end of the gear determination subunit 131 is connected to the output end of the current acquisition unit 120. The gear determination subunit 131 is used to determine the real-time current passing through the target component 110 according to the digital signal, and determine the target gear according to the real-time current; here, the gear determination subunit 131 can calculate the real-time current passing through the target component through a field programmable gate array, thereby determining the target gear according to the real-time current.
[0074] An input end of the gear control subunit 132 is connected to an output end of the gear determination subunit 131 , and the gear control subunit is used to control the current acquisition unit 120 to use a target gear.
[0075] The following describes in detail how the gear control subunit controls the current acquisition unit 120 to use the target gear in conjunction with the current acquisition method in the present application.
[0076] Figure 5 Schematic diagram of the current acquisition method provided in the embodiment of the present application Figure 2 ,like Figure 5 As shown, in this embodiment Figure 2 Based on the embodiment, how the gear control unit controls the current acquisition unit according to the first voltage signal to acquire the current passing through the target component based on the target gear among the N gears is described in detail. Figure 5 As shown, the current acquisition method provided in this embodiment includes the following steps:
[0077] Step S201: The gear position control unit receives a first voltage signal output by a current acquisition unit.
[0078] In this embodiment, the implementation method of S201 is similar to the implementation method of S101 in the above-mentioned embodiment of the present application, and will not be repeated here.
[0079] Step S202: The gear control unit obtains the real-time current of the target component according to the digital signal.
[0080] Step S203, when the real-time current is greater than the i-th preset current, the gear control unit takes the (i+1)th gear as the target gear, where the value of i is 1 to (N-1) in sequence.
[0081] In this embodiment, the gear determination subunit in the gear control unit can determine the target gear according to the real-time current. Specifically, when it is calculated that the real-time current passing through the target component is greater than the i-th preset current, the higher gear, that is, the (i+1)th gear, is used as the target gear, so that the accuracy of current collection is ensured by selecting the corresponding gear for collection according to different real-time current values. Among them, the i-th preset current corresponds to the first (N-1) gears in sequence. When the real-time current is greater than the first preset current, the second gear is used as the target gear; when the real-time current is greater than the second preset current, the third gear is used as the target gear; and so on. When the real-time current is greater than the (N-1)th preset current, the highest gear, the Nth gear, is used as the preset gear. The specific value of the preset current can be set according to the number of gears, the value of the real-time current passing through the solenoid valve and other specific circumstances.
[0082] Step S204: the gear control unit controls the current acquisition unit to acquire the current passing through the target component according to the target gear to obtain a digital signal.
[0083] Step S205: When the real-time current is greater than the Nth preset current, the gear control unit controls the gear control subunit to disconnect the gear and stop collecting the current passing through the target component.
[0084] In this embodiment, the gear control subunit in the gear control unit can control the current acquisition unit to acquire the current passing through the target component according to the target gear to obtain a digital signal. When the real-time current is greater than the Nth preset current, that is, when the real-time current is about to exceed the current corresponding to the highest gear of the acquired current, the gear control subunit is controlled to disconnect the gear and stop acquiring the current passing through the target component to protect the current acquisition unit and prevent the current acquisition unit from being damaged due to over-range.
[0085] The method of this embodiment achieves the following technical effects: the gear control unit obtains the real-time current of the target component according to the digital signal, and selects the corresponding gear as the target gear according to different real-time current values to collect the current passing through the target component, thereby ensuring the accuracy of current collection; when the real-time current is about to exceed the current corresponding to the highest gear of the collected current, the gear control subunit disconnects the gear and stops collecting the current passing through the target component, thereby protecting the current collection unit and preventing the current collection unit from being damaged due to over-range.
[0086] Figure 6 A schematic diagram of the structure of the current acquisition circuit provided in the embodiment of the present application Figure 4 ,like Figure 6 As shown, the gear control subunit 132 includes N switches; each switch is connected to the output end of the gear determination subunit 131, and the gear determination subunit 131 is also used to control the first switch corresponding to the target gear to be in a closed state, and to control the second switch other than the first switch to be in an open state; each switch is connected to a coil, and when the switch is in a closed state, the coil connected to the switch is used to collect the current signal passing through the target component 110. Among them, the gear control subunit can include a plurality of programmable switches, the first end of each programmable switch is connected to the output end of the gear determination subunit 131, and the second end of each programmable switch is connected to a coil. The programmable switch refers to a program-controlled switch, and the specific implementation form can be a relay-controlled switch, a solid-state relay, or a micro-electromechanical system relay, and no specific restrictions are made here.
[0087] Furthermore, the time it takes for the current through the solenoid valve to rise from zero to the maximum value and then drop to zero is usually called a window. Figure 7The current through the solenoid valve in a window is provided in the embodiment of the present application. Figure 7 As shown, the horizontal axis is the time axis, the vertical axis represents the current passing through the solenoid valve, and T2 represents a window (usually about 1 second). In the time period from 0 to T1 (usually between 50 microseconds and 1000 microseconds), the current passing through the solenoid valve gradually increases with the increase of time, and at T1, the current reaches the maximum value Im; in the time period from T1 to T2, the current passing through the solenoid valve gradually decreases with the increase of time, and at the end of this window, that is, at T2, it drops to zero. When detecting the first window, the gear control unit controls the current acquisition unit to use the first gear as the target gear; when detecting the jth window, the gear control unit controls the current acquisition unit to use the highest gear at the time of the (j-1)th window detection as the target gear, where j is an integer greater than or equal to 2.
[0088] That is to say, during the first window detection, when the current value passing through the solenoid valve gradually increases from zero, the gear control unit first uses the first gear as the target gear to control the current acquisition unit to collect current, and then as the current passing through the solenoid valve gradually increases, the gear corresponding to the target gear is gradually increased.
[0089] In addition, during subsequent window detections, the gear control unit can reduce the calculation work caused by directly using the highest gear used in the previous window detection as the target gear for the next window detection. When the current value passing through the solenoid valve increases from zero in the next window detection, the lowest gear, that is, the first gear, is still used as the target gear to control the current acquisition unit to collect current and synchronously calculate the real-time current passing through the solenoid valve.
[0090] The following is a detailed description of how to use the current collection circuit in the present application to collect the current passing through the solenoid valve through a specific embodiment.
[0091] The current acquisition circuit in the present application can be applied to the hardware-in-the-Loop (HIL) test platform to collect the current of the engine solenoid valve load. In this embodiment, the current acquisition unit includes three gears, which are used to collect currents of 5 amperes (Ampere, A), 25 amperes and 50 amperes respectively. The corresponding current acquisition subunit is a Hall effect current sensor, and three groups of coils with different turns are wound on its magnetic core, corresponding to three different gears. The gear control subunit includes three programmable switches. In addition, the current value range collected by the coil with a turn number of 1 can be N times that of the coil with a turn number of N. For example, the coil corresponding to 50 amperes here is 1 turn, the coil corresponding to 25 amperes is 2 turns, and the coil corresponding to 5 amperes is 10 turns. Through the three programmable switches of the gear control subunit, coils with different turns can be selected accordingly, so as to select the target gear from the three gears, and collect the current through the engine electric valve load.
[0092] The current acquisition subunit converts the collected current signal into a voltage signal output, and the current signal is proportional to the voltage signal. The high-speed analog acquisition module in the voltage sampling subunit collects the voltage signal output by the current acquisition subunit, and converts the voltage signal into a digital signal and transmits it to the gear determination subunit. The field programmable gate array in the gear determination subunit calculates the digital signal to obtain the real-time current passing through the engine electrical valve load. The calculation step can be 1 microsecond (us) or 0.1 microsecond. The smaller the step, the faster the calculation and the faster the response. The gear determination subunit can determine the target gear according to the real-time current.
[0093] When current collection is performed for the first time, that is, when the first window is detected, the gear determination subunit first uses the lowest gear, that is, the first gear, as the target gear, and controls the current collection subunit to collect the current passing through the solenoid valve load every 1 microsecond, and calculates the real-time current passing through the solenoid valve load. When the gear determination subunit calculates that the real-time current value is greater than the first preset current, the second gear is used as the target gear, and the current collection subunit continues to be controlled to collect the current in real time; when the gear determination subunit calculates that the real-time current value is greater than the second preset current, the third gear is used as the target gear, and the current collection subunit continues to be controlled to collect the current in real time; when the gear determination subunit calculates that the real-time current value is greater than the third preset current, the gear control subunit is controlled to disconnect the gear and stop collecting current to protect the current collection subunit and prevent the current collection subunit from being damaged due to over-range.
[0094] During the second window detection, the highest gear used in the first window detection is directly used as the target gear. If the second gear is used at the end of the first window detection, the second gear is used as the target gear for the second window detection, and current collection is performed. Starting from the second gear, the current passing through the solenoid valve load is compared and collected. When the real-time current is greater than the second preset current, the third gear is used as the target gear. If the third gear is used at the end of the first window detection, the third gear is used as the target gear for the second window detection, and current collection is performed. Starting from the third gear, the current passing through the solenoid valve load is compared and collected. When the real-time current value is greater than the third preset current, the gear control subunit is controlled to disconnect the gear and stop collecting current. Among them, the value of the first preset current can be 70% of the maximum current value of the first gear, such as 3.5 amperes; the value of the second preset current can be 90% of the maximum current value of the second gear, such as 22.5 amperes; the value of the third preset current can be 95% of the maximum current value of the third gear, such as 47.5 amperes. The values of the preset currents can also be set to other appropriate values according to actual conditions, and no specific restrictions are made here.
[0095] The maximum value of the current passing through different solenoid valves is usually different, and the time for the current to rise to the maximum value will also be different. Accordingly, the frequency of the current acquisition subunit collecting the current passing through the solenoid valve can be set differently, and the field programmable gate array in the gear determination subunit and the step size of the real-time current calculation also need to be set according to the actual situation. For example, for a special type of solenoid valve, the maximum value of the current passing through is greater than 50 amperes, or the real-time current rise time is less than 50 microseconds, the step size of the field programmable gate array in the gear determination subunit to calculate the real-time current will be reduced, for example, it can be set to 0.2 microseconds.
[0096] The current acquisition circuit in the present application can adapt to the high-speed changing current in the solenoid valve, and improves the acquisition accuracy by selecting the target gear from multiple gears for current acquisition. When the real-time current is about to exceed the current corresponding to the highest gear of the collected current, the gear control subunit is controlled to disconnect the gear and stop collecting the current passing through the target component, thereby protecting the current acquisition unit and preventing the current acquisition unit from being damaged due to over-range.
[0097] An embodiment of the present application also provides a chip, including: the above-mentioned current acquisition circuit.
[0098] An embodiment of the present application also provides an electronic device, including: the above chip.
[0099] The current acquisition circuit, method, chip and electronic device provided in the embodiments of the present application have the same beneficial effects and will not be described in detail here.
[0100] The units or modules described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units or modules, that is, they may be located in one place, or they may be distributed over multiple units or modules. Some or all of the units or modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0101] In the several embodiments provided in the present application, it should be understood that the division of the above-mentioned units or modules is only a logical function division, and there may be other division methods in actual implementation. For example, the functional units in each embodiment of the present application can be integrated into one unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. For example, the functional modules in each embodiment of the present application can be integrated into one module, or each module can exist physically separately, or two or more modules can be integrated into one module.
[0102] Finally, it should be noted that the above embodiments are only specific implementation methods of the embodiments of the present application, which are used to illustrate the technical solutions of the embodiments of the present application, rather than to limit them. The protection scope of the embodiments of the present application is not limited thereto. Although the embodiments of the present application are described in detail with reference to the above embodiments, ordinary technicians in this field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the embodiments of the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application is limited only by the attached claims.
Claims
1. A current collection circuit, It is characterized in that The circuit comprises: a current acquisition unit and a gear control unit, the current acquisition unit has N gears, N is an integer greater than or equal to 2, and different gears correspond to different current acquisition ranges; The current acquisition unit is connected to the target component, and is used to collect the current passing through the target component based on the target gear position among the N gear positions, and output a digital signal, wherein the digital signal is used to indicate the current magnitude of the target component; The input end of the gear control unit is connected to the output end of the current acquisition unit, the output end of the gear control unit is connected to the input end of the current acquisition unit, and the gear control unit is used to control the current acquisition unit to use the target gear according to the digital signal.
2. The circuit according to claim 1, It is characterized in that The current acquisition unit comprises: a current acquisition subunit and a voltage sampling subunit; The output end of the current acquisition subunit is connected to the input end of the voltage sampling subunit, and the output end of the voltage sampling subunit is connected to the input end of the gear control unit. The current acquisition subunit is used to collect the current signal passing through the target component based on the target gear among the N gears, and convert the current signal into a voltage signal. The voltage sampling subunit is used to sample the voltage signal to obtain the digital signal.
3. The circuit according to claim 2, It is characterized in that The current acquisition subunit includes a current sensor, the current sensor includes N groups of coils with different numbers of turns, the coils with different numbers of turns correspond to different current acquisition ranges, and the wire connecting the target component passes through the induction loop of the current sensor; The gear control unit is connected to the N groups of coils, and the gear control unit is further used to control the coil corresponding to the target gear to collect the current signal passing through the target component.
4. The circuit according to claim 3, It is characterized in that The gear control unit includes a gear determination subunit and a gear control subunit; The input end of the gear determination subunit is connected to the output end of the current acquisition unit, and the gear determination subunit is used to determine the real-time current passing through the target component according to the digital signal, and determine the target gear according to the real-time current; The input end of the gear control subunit is connected to the output end of the gear determination subunit, and the gear control subunit is used to control the current acquisition unit to use the target gear.
5. The circuit according to claim 4, It is characterized in that The gear control subunit includes N switches; Each of the switches is connected to an output terminal of the gear position determination subunit, and the gear position determination subunit is further used to control a first switch corresponding to the target gear position to be in a closed state, and to control a second switch other than the first switch to be in an open state; Each of the switches is connected to one of the coils, and when the switch is in a closed state, the coil connected to the switch is used to collect a current signal passing through the target component.
6. A current collection method, It is characterized in that Applied to a current acquisition circuit, the current acquisition circuit comprises: a current acquisition unit and a gear control unit, the current acquisition unit has N gears, N is an integer greater than or equal to 2, different gears correspond to different current acquisition ranges, and the method comprises: The gear control unit receives the digital signal output by the current acquisition unit; The gear control unit controls the current acquisition unit according to the digital signal to acquire the current passing through the target component based on the target gear among the N gears to obtain the digital signal.
7. The method according to claim 6, It is characterized in that The gear control unit controls the current acquisition unit according to the digital signal to acquire the current passing through the target component based on the target gear among the N gears to obtain the digital signal, including: The gear control unit obtains the real-time current of the target component according to the digital signal; The gear control unit determines the target gear according to the real-time current; The gear control unit controls the current acquisition unit to acquire the current passing through the target component according to the target gear to obtain the digital signal.
8. The method according to claim 7, It is characterized in that The gear control unit determines the target gear according to the real-time current, including: When the real-time current is greater than the i-th preset current, the gear control unit uses the (i+1)th gear as the target gear, wherein the value of i is 1 to (N-1) in sequence.
9. The method according to claim 8, It is characterized in that The method further comprises: When the real-time current is greater than the Nth preset current, the gear control unit controls the current acquisition unit to disconnect the gear and stop acquiring the current passing through the target component.
10. The method according to claims 6 to 9, It is characterized in that The window refers to the time taken for the current passing through the target component to rise from zero to a maximum value and then drop to zero. The method further includes: During the first window detection, the gear control unit controls the current acquisition unit to use the first gear as the target gear; During the j-th window detection, the gear control unit controls the current acquisition unit to use the highest gear during the (j-1)-th window detection as the target gear, wherein j is an integer greater than or equal to 2.
Citation Information
Cited By
Data acquisition method and device for engine injection HIL and medium
CN119321373A
