Current detection method, current detection sensor and sensor shell
Through the uniform curve segment length method and the GWO-BP algorithm, the problem of measurement accuracy and installation complexity of current sensors in narrow spaces is solved, and efficient and compact rectangular current-carrying conductor current measurement is achieved. It is suitable for the new energy field and improved Lightweight and cost-reducing effects of the product.
Patent Information
- Application Number
- CN202410957112.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-11-08
AI Technical Summary
Existing current sensors have many limitations in measurement accuracy, production process, installation complexity and application space, especially in narrow spaces, which are not very suitable for high efficiency and compact current measurement needs in the new energy field.
The uniform curve segment length method is used to determine the position of the Hall element, form an elliptical array, and combine the GWO-BP algorithm to estimate the conductor eccentric parameters, realize high-precision measurement of the current of the rectangular current-carrying conductor, reduce the volume and weight of the sensor, and adapt to narrow spaces. Install.
Improve the applicability to narrow spaces, realize the lightweight, miniaturization and continuous cost reduction of new energy products, improve measurement accuracy and installation flexibility, and is suitable for the current detection of rectangular current-carrying conductors in high-voltage distribution boxes of electric vehicles. .
Smart Images

Figure CN118914650A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of current sensors, and more specifically, to a current detection method, a current detection sensor and a sensor housing. Background Art
[0002] With the rapid development of new energy fields such as electric vehicles, smart grids, and civil energy storage, higher requirements are placed on the measurement of various state quantities in the power system. As an important part of the power system, the measurement of current is crucial to ensure the safe and stable operation of the system. For the measurement of current, the fluxgate current sensor with a magnetic core and the shunt based on Ohm's law are currently used more. However, the former will have magnetic saturation, DC bias and other phenomena, resulting in reduced measurement accuracy, while the latter needs to be directly connected in series in the circuit, increasing the cost of electrical insulation and installation difficulty. The new Rogowski coil has high measurement accuracy, but its manufacturing process requires high requirements. The optical fiber current sensor has high measurement accuracy, flexible and light installation, but the calibration method is complicated. With the trend of gradual lightweight, miniaturization, and continuous cost reduction of products, the installation space of the current sensor is gradually narrowing. For the measurement of state quantities in a narrow space, the solution needs to be lighter and more compact. Therefore, the traditional current sensor gradually shows its disadvantages. The magnetic sensor array current measurement solution that abandons the magnetic core and combines the magnetic sensor modules has gradually attracted the attention of various fields. This current measurement solution is not affected by magnetic saturation, hysteresis and other magnetic nonlinearities, and has the advantages of small size, light weight and low cost.
[0003] As a commonly used magnetic sensitive detection device, Hall element is widely used in the field of current detection. At present, the research on magnetic sensor arrays mainly focuses on circular arrays suitable for measuring circular conductors. The current technology studies the influence of conductor eccentricity, tilt and external interference sources on the performance of circular magnetic sensor arrays and proposes optimization methods to improve accuracy. Compared with circular conductors, rectangular current-carrying conductors have better heat dissipation effect and low cost, so they are widely used in the industrial field. The use of circular arrays to measure the current of rectangular current-carrying conductors requires a large space and has poor applicability under narrow space conditions. In order to reduce the area of the magnetic sensor array, it is proposed to use a rectangular array to measure the current of rectangular current-carrying conductors. However, due to the drastic change of the magnetic field strength at the corners, two mutually perpendicular magnetic sensors need to be placed at the corners, which increases the difficulty of circuit design and easily increases the position error of the magnetic sensor. An optimization algorithm for rectangular arrays is proposed in the prior art, but it is only effective for magnetic sensors installed on the coordinate axis. The prior art studies the use of surface-mounted magnetic sensors on the upper and lower surfaces of rectangular current-carrying conductors, but the accuracy of this measurement scheme basically depends on the accuracy of the magnetic sensor pasting position. Due to its geometric characteristics, the elliptical sensor array uses a smaller area than the circular array, and has a smaller magnetic field gradient than the rectangular array. It can use fewer sampling points and obtain a more accurate closed-loop integral approximation. It is a better solution for current measurement of rectangular current-carrying conductors in narrow spaces.
[0004] In summary, the existing technology has many limitations in terms of measurement accuracy, manufacturing process, installation complexity and application space. Therefore, there is an urgent need for a more efficient, compact and narrow space-adaptable current measurement solution to overcome the shortcomings of the existing technology. Summary of the invention
[0005] In order to solve the problems of current current measurement schemes such as heavy weight, large volume, and poor applicability to narrow spaces, the present invention provides a current detection method, a current detection sensor, and a sensor housing for measuring the current of a rectangular current-carrying conductor in a narrow space. According to the acceptable measurement error in actual working conditions, the allowable eccentricity range of the conductor is given, which provides a certain reference for conductor installation, and further provides theoretical and technical support for the electrification of energy consumption, the low-carbonization of electricity production, and the development of the energy electronics industry.
[0006] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0007] In a first aspect, a current detection method is provided. The current detection method measures the current of a rectangular current-carrying conductor in a high-voltage distribution box of an electric vehicle based on a Hall element, and specifically comprises the following steps:
[0008] S1. Use the uniform curve segment length method to determine the position of each Hall element, make the length of each curve segment on the ellipse consistent, evenly distribute the Hall elements on a given elliptical closed path (closed loop), and use numerical analysis methods to solve the approximate solution. The aspect ratio of the Hall element is obtained by calculation and simulation; the Hall element array is an elliptical array;
[0009] The ellipse closed path is approximately composed of K points, where K ≥ 5000000; the point closest to the X-axis of the ellipse array in the first quadrant is the first point, and the coordinates of the nth point are E n , E n The calculation formula is:
[0010]
[0011] The length from the X axis to the kth point is s(k), and its calculation formula is:
[0012]
[0013] The circumference of the elliptical closed path is s(K). The elliptical closed path is divided into N segments using the uniform curve segment length method. The arc length of each curve segment is Δs. The calculation formula for Δs is:
[0014]
[0015] Introduce the curve segment relative offset parameter s 0,r ,s 0,r The optimal value calculation formula is:
[0016]
[0017] The arc length of the initial bias curve segment from the X-axis to the first Hall element P0 is s0, and the calculation formula of s0 is:
[0018] s0=s 0,r ×s(K);
[0019] Then the X axis to the i-th Hall element P i-1 The length of the curve segment at is s i ,s i The expression is as follows:
[0020] s i =s0+iΔs;
[0021] If there exists m such that s(m) = s i , that is, the arc length from the X axis to the mth point on the elliptical closed path is equal to the arc length from the X axis to the i-th Hall element P i-1 The length of the curve segment at the Hall element P i-1 The coordinates are calculated as follows:
[0022]
[0023] S2. Arrange N Hall elements along the integral loop according to the uniform curve segment length method to determine the current I to be measured.
[0024] Furthermore, in step S1, the major semi-axis a of the elliptical array is set to 30 mm: the aspect ratio AR of the elliptical array is the ratio of the minor semi-axis b to the major semi-axis a of the elliptical array, and the value range is 0 <AR≤1。
[0025] Furthermore, after step 1, the following steps are also included:
[0026] Get the sensitive axis direction of the Hall element, that is, the tangent vector of the elliptic curve at the Hall element The calculation formula is:
[0027]
[0028] Wherein, K represents any positive integer.
[0029] Furthermore, in step S2, the magnetic field generated by the rectangular current-carrying conductor (i.e., the long straight current-carrying wire) is regarded as a quasi-static field, that is, it satisfies Ampere's circuit theorem:
[0030] ∮Hdl=∑I;
[0031] Where H is the magnetic field strength, I is the current to be measured;
[0032] According to the uniform curve segment length method, N Hall elements are arranged along the integral loop to determine the current I to be measured. The calculation formula is:
[0033]
[0034] Among them, H i is the tangential magnetic field strength at the i-th Hall element, Δs i is the arc length of the curve segment on each ellipse.
[0035] Furthermore, step S2 further includes:
[0036] A coordinate system is established with the center of the rectangular current-carrying conductor as the origin, and the magnetic field distribution is calculated using the infinitesimal method. The magnetic field intensity induced by the rectangular current-carrying conductor at any point (a, b) on the plane is regarded as the vector sum of the magnetic field intensities induced by countless current infinitesimal elements at any point (a, b) on the plane.
[0037] The rectangular current-carrying conductor is composed of a long straight current-carrying conductor. According to the infinite straight current-carrying wire model, the magnetic field strength H generated by the infinite straight current-carrying conductor at a distance ρ from the conductor is obtained. i , H i The calculation formula is:
[0038]
[0039] Assuming the cross-sectional area of the rectangular current-carrying conductor is S, the calculation formula for the current element dI is:
[0040]
[0041] The component of the magnetic field intensity on the X-axis generated by the current element dI at point (a, b) is dH ix , and its calculation formula is:
[0042]
[0043] The component of the magnetic field intensity generated by the measured current at point (a, b) on the X-axis is H ix , and its calculation formula is:
[0044]
[0045] The component of the magnetic field strength generated by the measured current at point (a, b) on the Y axis is H iy , and its calculation formula is:
[0046]
[0047] The magnetic field strength generated by the current to be measured at point (a, b) is The calculation formula is:
[0048]
[0049] The magnetic field strength in the sensitive axis direction of the Hall element is H i,MFS , and its calculation formula is:
[0050]
[0051] According to Ampere's circuit theorem, the calculated value of the current to be measured I is obtained. cal c, which is calculated as:
[0052]
[0053] Determine the current error ε of the Hall element at any eccentric distance of the rectangular current-carrying conductor through finite element simulation calc , ε calc The calculation formula is:
[0054]
[0055] Further, the eccentric distance is decomposed into the X-axis eccentric distance X p and Y eccentric distance Y pAccording to theoretical analysis, the component H of the magnetic field intensity on the X-axis generated by the measured current I at point (a, b) under eccentricity is ixp and the Y-axis component H iyp They are:
[0056]
[0057] In a second aspect, a conductor eccentricity parameter estimation method is provided. The conductor eccentricity parameter estimation method estimates the eccentricity distance of a rectangular current-carrying conductor based on a GWO-BP algorithm, and specifically comprises the following steps:
[0058] The number of nodes in the hidden layer of the BP neural network is determined by trial and error, and the structure of the BP neural network is determined based on the input and output parameters.
[0059] Optimize the initial weights and thresholds of the BP neural network through the GWO algorithm;
[0060] Based on the obtained initial weights and thresholds of the optimized BP neural network, a GWO-BP neural network is constructed to estimate the conductor eccentricity parameters.
[0061] The performance of the GWO-BP neural network is verified by using a test set, and indicators such as mean absolute error (MAE), mean squared error (MSE) and mean absolute percentage error (MAPE) are introduced to evaluate the performance of the conductor eccentricity parameter estimation model.
[0062] Furthermore, the number of nodes in the BP neural input layer X0=12, the number of nodes in the output layer Y0=2, and the number of nodes in the hidden layer X1=4 are set to determine that the BP neural network has a "12-4-2" structure.
[0063] Furthermore, the gray wolf algorithm divides individuals into four levels according to their adaptability: α, β, δ, and ω. Assume that at the tth iteration, the position vector of the prey is X p (t), the position vector of ω is X(t), and the distance between the prey and ω is D. The mathematical model of the algorithm is as follows:
[0064]
[0065] Where A and C are group coordination coefficient vectors, r1 and r2 are random numbers between [0,1], and T is the maximum number of iterations.
[0066] Further, let D i-ω , (i=α,β,δ) is the distance between i and ω, X i(t), (i=α,β,δ) is the position of i at the tth iteration, X i-ω , (i=α,β,δ) is the distance between i and ω at the tth iteration. The gray wolf position formula is updated as follows:
[0067]
[0068]
[0069] Where X(t+1) is the position vector of ω at the next iteration.
[0070] Furthermore, the GWO algorithm parameters are set, such as the number of gray wolves pop = 20 and the maximum number of iterations Max_iteration = 30.
[0071] The initial weights and thresholds of the BP neural network are optimized by the GWO algorithm, and a model for estimating the eccentricity distance of the conductor is established. The current error of the Hall element at any eccentricity distance of the rectangular current-carrying conductor is determined by finite element simulation.
[0072] In a third aspect, a current detection sensor is provided, wherein the current detection sensor is composed of a Hall element and includes:
[0073] Multiple Hall elements, each of which is connected to a voltage follower and an adder, and the distribution position of the Hall elements is determined by a uniform curve segment length method so that the length of each curve segment on the elliptical path is consistent; the Hall elements sense the magnetic field generated by the current-carrying conductor to be measured, and output a Hall voltage, which, after being stabilized by the voltage follower, is sent to the adder to calculate the total Hall voltage output by the Hall element elliptical array;
[0074] A microcontroller is used to process the analog voltage signal output by the Hall element array, convert the analog voltage signal into a digital signal through an ADC port, and output a CAN signal;
[0075] A power supply module, used for converting the input 12V DC power into 5V DC power to power the Hall element;
[0076] A low dropout linear regulator, used for converting 5V DC power into 3.3V DC power to power the microcontroller;
[0077] The communication module is used to transmit the CAN signal output by the microcontroller to the data acquisition device.
[0078] In a fourth aspect, a sensor housing is provided, the sensor housing comprising an upper housing, a lower housing and a terminal housing, the sensor housing being used to wrap a sensor circuit board;
[0079] The upper shell and the lower shell are connected by two-liquid mixed hardening glue; the sensor circuit board is contact-connected with wiring terminals, and the wiring terminals and the wiring terminal housing are fixed by an injection molding process; the wiring terminal housing and the lower shell are fixed by a secondary injection molding process.
[0080] In a fifth aspect, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the current detection method in the first aspect or any possible implementation of the first aspect.
[0081] In a sixth aspect, an electronic device is provided, including:
[0082] at least one processor; and a memory communicatively coupled to the at least one processor;
[0083] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the current detection method in the first aspect or any possible implementation of the first aspect.
[0084] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:
[0085] The current detection method provided by the present invention includes obtaining the current error corresponding to different aspect ratios and different numbers of Hall elements of an elliptical array through calculation and simulation; based on the current error, theoretically calculating the error caused by conductor eccentricity, and performing simulation analysis through finite element simulation analysis software to determine the array parameters; experimentally verifying the feasibility and effectiveness of the array parameters, as well as the matching degree of theoretical values, simulation values and experimental values; the method improves the applicability to narrow spaces, and effectively achieves the effects of lightweight, miniaturization and continuous cost reduction of new energy products. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only 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.
[0087] Figure 1 A flow chart of a current detection method provided by an embodiment of the present invention;
[0088] Figure 2 A schematic diagram of a Hall element array provided by an embodiment of the present invention;
[0089] Figure 3A schematic diagram of a magnetic field excited by a rectangular cross-section conductor provided in an embodiment of the present invention;
[0090] Figure 4a A schematic diagram of the aspect ratio and current error of an elliptical array provided by an embodiment of the present invention;
[0091] Figure 4b A schematic diagram of the number of Hall elements and current error provided by an embodiment of the present invention;
[0092] Figure 5 A magnetic field distribution diagram of a rectangular current-carrying conductor provided by an embodiment of the present invention;
[0093] Figure 6a A schematic diagram of simulation results of aspect ratio and current error of an elliptical array provided by an embodiment of the present invention;
[0094] Figure 6b A schematic diagram of another elliptical array aspect ratio and current error simulation result provided by an embodiment of the present invention;
[0095] Figure 7 A schematic diagram of an experimental device provided for an embodiment of the present invention;
[0096] Figure 8 A circuit diagram of a Hall element provided in an embodiment of the present invention;
[0097] Fig. 9 A schematic diagram of the working principle of the PCBA provided in an embodiment of the present invention;
[0098] Fig.10a A schematic diagram of the theoretical error of the X-direction eccentric current provided by an embodiment of the present invention;
[0099] Fig.10b A schematic diagram of a theoretical error of Y-direction eccentric current provided by an embodiment of the present invention;
[0100] Fig.11 A schematic diagram of a current error provided by an embodiment of the present invention;
[0101] Fig.12 A BP neural network structure diagram provided by an embodiment of the present invention;
[0102] Fig.13 A flow chart of the GWO-BP algorithm provided by an embodiment of the present invention;
[0103] Fig.14a The deviation between the estimated value and the actual value of the X-axis eccentricity distance provided in the embodiment of the present invention;
[0104] Fig.14b The deviation between the estimated value and the actual value of the Y-axis eccentricity distance provided in the embodiment of the present invention;
[0105] Fig.15a An overall schematic diagram of a Hall element provided by an embodiment of the present invention;
[0106] Fig.15b A partial schematic diagram of a Hall element provided in an embodiment of the present invention;
[0107] Fig.15c A schematic diagram of the lower housing of a Hall element provided in an embodiment of the present invention;
[0108] Fig.15d A schematic diagram of a terminal housing of a Hall element provided in an embodiment of the present invention;
[0109] Fig.16 A schematic diagram of an electronic device provided by an embodiment of the present invention;
[0110] Explanation of the marks in the figure: 11, sensor housing; 111, upper housing; 112, lower housing; 113, sensor circuit board; 114, wiring terminal; 115, wiring terminal housing; 21, electronic device; 211, processor; 212, memory; 213, computer program. DETAILED DESCRIPTION
[0111] In order to better understand the purpose, structure and function of the present invention, the technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings and specific preferred embodiments.
[0112] Embodiment 1:
[0113] like Figure 1 As shown, the present invention provides a technical solution: a current detection method, which measures the current of a rectangular current-carrying conductor based on a Hall element, so as to improve the applicability to narrow spaces and achieve lightweight, miniaturization and continuous cost reduction of new energy products; specifically, the following steps are included:
[0114] S1. The position of each Hall element is determined by using a uniform curve segment length method, so that the length of each curve segment on the ellipse is consistent, and the Hall elements are evenly distributed on a given elliptical closed path, and the aspect ratio of the Hall element is obtained by calculation and simulation; the Hall element array is an elliptical array;
[0115] In the embodiment of the present invention, the Hall element array is an elliptical array, and a plurality of Hall elements constitute a Hall element array sensor; the typical scenario for detecting the current of a rectangular current-carrying conductor in a narrow space is to detect the current of a rectangular current-carrying conductor in a high-voltage distribution box of an electric vehicle, thereby providing reference data for power battery fault diagnosis and safety management. Although there is no clear regulation on the size of the rectangular current-carrying conductor in the high-voltage distribution box, the classic size of the rectangular current-carrying conductor used in the high-voltage distribution box of electric vehicles on the market is currently 20mm×4mm. Considering the size of the circuit layer in the actual design, the applicability of the elliptical array to conductors of different sizes, and the space in the high-voltage distribution box, the major semi-axis a of the elliptical array is set to 30mm; the aspect ratio AR of the elliptical array is the ratio of the minor semi-axis b of the ellipse to the major semi-axis a, and its value range is 0 to 1. The aspect ratio AR of the elliptical array is 1;
[0116] Multiple Hall elements are distributed along the closed loop of the current-carrying conductor to be measured. By processing the Hall voltage output by each Hall element, the integral of the magnetic field generated by the current-carrying conductor on the closed loop is simulated. The reproduction effect depends not only on the number of Hall elements but also on the distribution of the Hall elements. The Uniform Curve Segment Length Method (UCSL) is used to determine the position of each Hall element, that is, the length of each curve segment on the ellipse is consistent, and the Hall elements are evenly distributed on the given closed loop. Since the analytical solution of the arc length integral of the elliptical closed path does not exist, a numerical analysis method is used to solve the approximate solution.
[0117] In the embodiment of the present invention, the elliptical closed path is approximated to be composed of K points (K ≥ 5000000), the point closest to the X-axis in the first quadrant is the first point, and the coordinates of the nth point are E nn , and its calculation formula is:
[0118]
[0119] The length from the X axis to the kth point is s(k), and its calculation formula is:
[0120]
[0121] The circumference of the elliptical closed path is s(K). If the UCSL method is used to divide the elliptical closed path into N segments, the arc length of each curve segment is Δs, and its calculation formula is:
[0122]
[0123] Introduce the curve segment relative offset parameter s 0,r , the optimal value calculation formula is:
[0124]
[0125] The arc length of the initial bias curve segment from the X-axis to the first Hall element P0 is s0, and its calculation formula is:
[0126] s0=s 0,r ×s(K);
[0127] Then the X axis to the i-th Hall element P i-1 The length of the curve segment at is s i , i=1,2…,N,s i The expression is as follows:
[0128] s i =s0+iΔs;
[0129] If there exists m such that s(m) = s i , m=1,2,,…,K, that is, the arc length from the X axis to the mth point on the elliptical closed path is equal to the arc length from the X axis to the i-th Hall element P i-1 The length of the curve segment at the Hall element P i-11 The coordinates are calculated as follows:
[0130]
[0131] The sensitive axis direction of the Hall element is the tangent vector of the elliptic curve at the Hall element. The calculation formula is:
[0132]
[0133] In the embodiment of the present invention, Figure 2 As shown in the figure, s0 represents the initial bias curve segment, P i-1 Indicates the position of the Hall element, Indicates the sensitive axis direction of the Hall element, X p Indicates the eccentric distance in the X direction, Y p Indicates the eccentric distance in the Y direction.
[0134] S2. Arrange N Hall elements along the integral loop according to the uniform curve segment length method to determine the current I to be measured.
[0135] In the embodiment of the present invention, the magnetic field generated by the current in the long straight current-carrying wire can be regarded as a quasi-static field, that is, it satisfies Ampere's circuit theorem:
[0136] ∮Hdl=∑I;
[0137] Where H is the magnetic field strength, I is the current to be measured;
[0138] Arrange along the integration loop according to the uniform curve segment length method N Hall element, determine the current to be measured I, the calculation formula is:
[0139]
[0140] Among them, H i is the tangential magnetic field strength at the i-th Hall element, Δs i is the arc length of each curve segment.
[0141] In the embodiment of the present invention, Figure 3 As shown in the figure, a coordinate system is established with the center of the rectangular current-carrying conductor as the origin. Due to the geometric characteristics of the rectangular current-carrying conductor and the elliptical array, the magnetic field distribution around the rectangular current-carrying conductor is only symmetrical about the X-axis and the Y-axis. The magnetic field components sensed by each Hall element distributed on the elliptical closed path are different, and the output Hall voltage is also different. However, since the current on the current-carrying conductor is uniformly distributed, that is, the current density at each point on the cross section is equal, the infinitesimal method is used to calculate the magnetic field distribution, and the magnetic field intensity excited by the rectangular current-carrying conductor at any point (a, b) on the plane is regarded as the vector sum of the magnetic field intensity excited by countless current infinitesimals at that point.
[0142] According to the infinite straight current-carrying wire model, the magnetic field strength H generated by the infinite straight current-carrying conductor at a distance ρ from the conductor is obtained i , and its calculation formula is:
[0143]
[0144] Assume the cross-sectional area of the rectangular current-carrying conductor is S , then the current element dI calculation formula is:
[0145]
[0146] The component of the magnetic field intensity on the X-axis generated by the current element dI at point (a, b) is dH iix , and its calculation formula is:
[0147]
[0148] The component of the magnetic field intensity generated by the measured current I at point (a, b) on the X-axis is H ixx , and its calculation formula is:
[0149]
[0150] The component of the magnetic field strength generated by the measured current I at point (a, b) on the Y axis is H iyy , and its calculation formula is:
[0151]
[0152] The magnetic field strength generated by the measured current I at point (a, b) is The calculation formula is:
[0153]
[0154] The magnetic field strength in the sensitive axis direction of the Hall element is H i,MFS , and its calculation formula is:
[0155]
[0156] According to Ampere's circuit theorem, the calculated value of the current to be measured can be obtained: calc , and its calculation formula is:
[0157]
[0158] Calculation error ε calc , and its calculation formula is:
[0159]
[0160] In the embodiment of the present invention, the calculation results are as follows Figure 4a and 4b As shown, in order to find out the aspect ratio and number of Hall elements of the elliptical array current sensor that are most suitable for use in a narrow space, MATLAB is used to calculate the relationship between the aspect ratio of the elliptical array and the current error.
[0161] Depend on Figure 4a It can be obtained that when the aspect ratio of the elliptical array is 1:1, the theoretical value of the current error is 0, that is, the circular array still has good performance, but the circular array requires a larger area and is not suitable for use in narrow spaces. When the number of Hall elements is 4, 6, or 7, in addition to the aspect ratio AR=1:1, there are still other aspect ratios that make the theoretical value of the current error 0, such as N=4, AR=0.17, N=6, AR=0.33, and N=7, AR=0.31. Considering the applicability of elliptical arrays to rectangular current-carrying conductors of different sizes, this application does not consider the combination of N=4, AR=0.17. By Figure 4b It can be obtained that the more Hall elements are used, the smaller the current error is, that is, the better the elliptical array reproduces Ampere's loop law. In the two cases of N=6 and N=7, the circuit error is not significantly reduced. It can be inferred that when N>7, the degree of error reduction is even smaller. Considering the economy of the sensor and the current detection method proposed in this application, the case of N>7 is no longer considered, and only the two cases of N=6 and N=7 will be discussed later.
[0162] The method of the present invention further comprises: verifying the feasibility and effectiveness of the array parameters in step S2, and the matching degree between the theoretical value, the simulation value and the experimental value through experiments;
[0163] In the embodiment of the present invention, compared with the circular current-carrying conductor, the magnetic field distribution of the rectangular current-carrying conductor is relatively complex, and accurate analysis of the magnetic field distribution of the rectangular current-carrying conductor is crucial for calculating the current value to be measured. This application is modeled and analyzed by finite element simulation analysis software COMSOL Multiphysics on a Lenovo Y7000P notebook with a CPU model of i7-12700H and a graphics card of RTX 3050. The physical properties of the rectangular copper bus are: conductivity of 5.998×107S / m, density of 8960kg / m3, and the environmental area is set to air with a conductivity of 0. A probe is set at the position of the Hall element and the grid is divided using an adaptive method; Figure 5 As shown in the figure, the magnetic field distribution of the rectangular current-carrying conductor is simulated, and the LiveLink for MATLAB interface is used in COMSOL Multiphysics to realize the joint simulation of COMSOL and MATLAB.
[0164] In the embodiment of the present invention, Figure 6a and Figure 6b As shown in the figure, the relationship between the aspect ratio of the elliptical array and the current error is obtained in the two cases of N = 6 and N = 7. Due to factors such as the meshing method, simulation errors will occur during COMSOL simulation. The simulation values of the current error when N = 6 and N = 7 are basically within the standard error of the theoretical value, that is, the theoretical calculation and simulation have good consistency.
[0165] S4. Determine the current error of the Hall element at any eccentric distance of the rectangular current-carrying conductor through finite element simulation.
[0166] In the embodiment of the present invention, an experimental platform system is built using LabVIEW as the environment to implement signal transmission. The schematic diagram of the experimental device is shown in FIG. Figure 7 As shown, all control signals are sent by the host computer, and all data are transmitted to the host computer through DAQ6510. Keithley DAQ6510 data acquisition and recording multimeter system provides up to 80 channels, a resolution of 16bit, and a sampling rate of 1M samples / second. The analog-to-digital converter is used for multi-channel readings. The AMETEK high-power modular DC power supply SG series configures one to six modules in a chassis according to the required output voltage to provide 5kW to 30kW of power, with a voltage output range of 10V to 1000V and a current output range of 5A to 6000A. This application sets the AMETEK high-power modular DC power supply to output 500A DC current, which is used to provide 500A DC current to the rectangular current-carrying conductor. The commutation plate can expand the current range of the AMETEK high-power DC power supply output to -500A to 500A. The programmable DC power supply is used to power the Hall element.
[0167] In the embodiment of the present invention, according to the above analysis and simulation, it can be concluded that the Hall element elliptical array current sensor has better performance in the two cases of N=6, AR=0.33 and N=7, AR=0.31. In order to compare the performance of the elliptical array with the circular array, the present application also experiments with two sets of parameters of N=6, AR=1 and N=7, AR=1, as shown in Table 1, the positions of the Hall elements on the four circuit boards and the directions of the sensitive axes.
[0168] Table 1
[0169]
[0170] From COMSOL simulation, we know that the magnetic induction intensity at the Hall element ranges from -7.9mT to 7.9mT, so we choose AKM EQ-730L Hall element to design the elliptical array current sensor. The sensitivity of AKM EQ-730L is 130mV / mT, the supply voltage is 3V to 5V, and the induction range of magnetic induction intensity is -18mT to 18mT. Figure 8 As shown, the circuit diagram recommended in its data sheet.
[0171] In the embodiment of the present invention, the working principle of the printed circuit board assembly (PCBA) is as follows: Fig. 9 As shown in the figure, the input 12V DC is converted into 5V DC through the E1205SY power module to power the EQ-730L and the op amp circuit. At the same time, the 5V DC is converted into 3.3V DC through the TLV1117 low dropout regulator (LDO) to power the STM32F103C8T6 Hall element. The EQ-730L senses the magnetic field generated by the current-carrying conductor and outputs the Hall voltage. After being stabilized by the voltage follower, it is sent to the adder to calculate the total Hall voltage output by the Hall element elliptical array. The total voltage of the Hall element array and the Hall voltage analog output of each Hall element are input to the ADC end of the STM32F103C8T6, and the CAN signal is output through the PA11 and PA12 ports. Finally, the CAN signal is transmitted to the DAQ6510 through the TJA1050CAN transceiver Hall element.
[0172] In the embodiment of the present invention, due to the influence of factors such as the patch position of the Hall element and the processing accuracy of the circuit board, the measurement accuracy of the Hall array current sensor under the default parameter state is relatively low. In order to ensure the measurement accuracy of the Hall array current sensor, it needs to be calibrated before actual testing.
[0173] Place the rectangular current-carrying conductor to be tested at the center of the Hall element array, and control the AMETEK high-power modular DC power supply to output -500A to 500A current pulses through the host computer and the commutation board, with a step size of 10A, a current pulse length of 500ms, and a pause length of 1s to wait for the conductor to cool. The total voltage output by the Hall element array is used as a function of the set current for linear least squares fitting. The slope of the fitting line corresponds to the sensitivity SensCal of the Hall element array current sensor, and the y-intercept corresponds to the offset OffsetCal of the Hall element array current sensor. Calibrate each Hall element array current sensor three times, and calculate the average value of the sensitivity SensCal and the average value of the offset OffsetCal of the three calibrations as the final sensitivity and offset.
[0174] In the embodiment of the present invention, according to the sensitivity SensCal and the offset OffsetCal obtained by calibration, the current to be measured can be obtained from the total voltage output by the Hall element array:
[0175] I meas =SensCal×VEQ+OffsetCal;
[0176] If the current is set to I, the measurement error is:
[0177]
[0178] The conductor eccentricity device is used to change the eccentricity distance of the conductor in the X direction and the eccentricity distance of the Y direction, the working condition of the Hall element array current sensor in actual use is simulated, and the measurement current and measurement error of the rectangular current-carrying conductor when it is eccentric in the X direction and the Y direction are measured.
[0179] In the embodiment of the present invention, although the rectangular current-carrying conductor and the Hall element can be corrected by instruments to prevent the conductor from deviating from the center of the Hall element array, in actual use, due to the complexity of the working conditions and the vibration of the electric vehicle itself, the rectangular current-carrying conductor will inevitably deviate from the center position of the Hall element array current sensor, that is, eccentricity will occur. Figure 2 As shown, the eccentric distance is decomposed into the X-axis eccentric distance X p and Y eccentric distance Y p According to theoretical analysis, the component H of the magnetic field intensity on the X-axis generated by the measured current I at point (a, b) under eccentricity is ixp and the Y-axis component H iyp They are:
[0180]
[0181] In the embodiment of the present invention, as shown in Table 2, the conductor eccentricity ranges allowed by the four PCBAs are such that, due to the limitation of the PCBA geometric dimensions, the difference between the allowable eccentricity distances in the X direction of the elliptical array and the circular array is only 4.2 mm, while the allowable eccentricity distance in the Y direction of the circular array is nearly 10 times that of the elliptical array.
[0182] Table 2
[0183]
[0184] In the embodiment of the present invention, the current errors corresponding to different eccentric distances when N=6, AR=0.33, N=7, AR=0.31, N=6, AR=1 and N=7, AR=1 are calculated in MATLAB, and the results are as follows: Fig.10a and Fig.10b shown.
[0185] Depend on Fig.10a It can be seen that if the conductor is only eccentric in the X direction, when N=6, within the allowable error range of ±1%, the circular array allows the conductor's X-direction eccentricity range to be -5.8mm~5.9mm, while the elliptical array allows the conductor's X-direction eccentricity range to be -5mm~5.2mm. However, when the -X-direction eccentricity distance is greater than 9mm or the +X-direction eccentricity distance is greater than 9.1mm, the current error generated by the elliptical array is smaller than that of the circular array, that is, within the distance that the conductor can be offset, the error generated by the circular array is greater than that of the elliptical array. When N=7, within the allowable error range of ±1%, the circular array allows the conductor's X-direction eccentricity range to be -6.3mm~6.4mm, while the elliptical array allows the conductor's X-direction eccentricity range to be -2.8mm~6.7mm. Compared with the circular array, the elliptical array has better performance in the +X direction.
[0186] Depend on Fig.10b It can be seen that if the conductor is only eccentric in the Y direction, both elliptical arrays with N=6, AR=0.33 and N=7, AR=0.31 can meet the allowable error of ±1%, and the current error will decrease as the number of Hall elements increases. Due to the size characteristics of the circular array, the Y-axis eccentric range of the circular array can be extended to -20.5mm~20.5mm, resulting in the current error eventually exceeding the current error of the elliptical array. Therefore, under actual working conditions, the performance of the elliptical array is better than that of the circular array.
[0187] Although the elliptical array allows a smaller eccentric distance than the circular array within the acceptable error range of ±1%, in actual applications, the geometric characteristics of the PCBA cause the conductor under the circular array to be offset farther than the elliptical array, thus generating a larger current error. In addition, the installation area of the circular array is larger than that of the elliptical array, making it inconvenient to install in a narrow space, making the elliptical array a better choice for current measurement of rectangular current-carrying conductors in narrow spaces.
[0188] In the embodiment of the present invention, since it is difficult to accurately locate each eccentric distance during actual measurement, only the current error of the conductor at the extreme eccentric distance is measured during actual measurement. The measurement results are shown in Table 3.
[0189] Table 3
[0190]
[0191] It can be seen from Table 3 that the simulation value is closer to the measured value than the theoretical value. In order to control the variables in the theoretical derivation, the rectangular current-carrying conductor is assumed to be an infinitely long straight current-carrying wire model, and in the finite element simulation process, iterative calculations are performed based on the underlying electromagnetic formulas without simplification to obtain the numerical solution, which makes the simulation value closer to the measured value than the theoretical value.
[0192] By comparing the results of theoretical value calculation, finite element simulation analysis and actual test, it is found that compared with the N=6, AR=0.33 elliptical array, the N=7, AR=0.31 elliptical array has better characteristics only when the conductor eccentricity distance is small, and the current error is greater than that of the N=6, AR=0.33 elliptical array when the conductor is eccentric along the -X direction. Considering the overall performance and cost of the Hall element elliptical array current sensor, the N=6, AR=0.33 elliptical array has more advantages.
[0193] The weight of the measuring device and the installation area for different current measurement schemes are shown in Table 4.
[0194] Table 4
[0195]
[0196] It can be seen from Table 4 that compared with the traditional current measurement solution, the weight and installation area of the Hall element elliptical array current sensor designed in this application are effectively reduced, with the weight reduced by 82.9% and the installation area reduced by 72.4%. Therefore, while meeting the actual use requirements, the Hall element elliptical array current sensor designed in this application is more suitable for current measurement of rectangular current-carrying conductors in narrow spaces.
[0197] In the embodiment of the present invention, the LiveLink for MATLAB interface is used in COMSOL Multiphysics to simulate and analyze the absolute value of the current error corresponding to any position of the rectangular current-carrying conductor within the eccentric range when N=6 and AR=0.33. The simulation results are as follows: Fig.11 When the X-axis eccentricity of the rectangular current-carrying conductor is within the range of -4.1mm to 4.1mm and the Y-axis eccentricity is within the range of -2.1mm to 2.1mm, the measurement error of the Hall element elliptical array current sensor is within the acceptable range of ±1%, which provides a certain reference for conductor installation.
[0198] This application aims at the current measurement of rectangular current-carrying conductors in narrow spaces. After theoretical calculation and finite element simulation analysis, the parameters of the Hall element elliptical array suitable for the current measurement of rectangular current-carrying conductors in narrow spaces are given. The feasibility of the sensor and its current detection method, the effectiveness of current measurement under the eccentric state of the conductor, and the applicability to narrow spaces are verified through theoretical calculation, finite element simulation analysis, and experimental measurement. The results show that the current measurement device with N=6, AR=0.33 Hall element elliptical array proposed in this application is 82.9% lighter than the traditional current measurement device, and the installation area is reduced by 72.4%, which is more suitable for use in lightweight and miniaturized products; at the same time, this application uses the finite element simulation analysis software COMSOL to predict that if the X-axis eccentric distance of the conductor is within the range of -4.1mm~4.1mm and the Y-axis eccentric distance is within the range of -2.1mm~2.1mm, the measurement error of the current measurement device proposed in this application is within the acceptable range of ±1%, which provides a certain reference for the installation of conductors, and further provides theoretical and technical support for the electrification of energy consumption, the low-carbonization of power production, and the development of the energy electronics industry.
[0199] In this embodiment, the relatively optimal array distribution is determined through theoretical calculation and finite element simulation analysis; an experimental platform is built and the feasibility of the sensor and the current detection method proposed in this application is verified through experiments; the effectiveness of the sensor and the current detection method proposed in this application in current measurement under the eccentric state of the conductor is verified through theoretical calculation, finite element simulation analysis, and experimental measurement, and the eccentricity error of the current measurement under the eccentric state of the conductor is analyzed.
[0200] Embodiment 2:
[0201] The present invention provides a technical solution: a conductor eccentricity parameter estimation method, wherein the conductor eccentricity parameter estimation method estimates the eccentricity distance of a rectangular current-carrying conductor based on a GWO-BP algorithm, and estimates the conductor eccentricity distance according to the component of the magnetic field intensity measured at a Hall element on the X-axis and the component on the Y-axis; the method specifically comprises the following steps:
[0202] S1. Determine the number of hidden layer nodes of the BP neural network through trial and error algorithm, and determine the structure of the BP neural network based on input parameters and output parameters.
[0203] BP neural network is a statistical learning model composed of a multi-layer structure. It is a feedforward, mentored learning neural network. By learning the input training samples, discovering the potential rules in the training samples, comparing the network output with the corresponding expected value, and updating the weights and thresholds, so that the network output is close to the expected value, it can effectively solve problems such as nonlinear regression and classification. The main structure of the BP neural network is: input layer, hidden layer and output layer, and each layer is connected by neurons. The BP neural network structure is shown in the figure below. Fig.12 shown.
[0204] In the figure, x1,x2,…x i is the input value, w ij is the connection weight between the input layer and the hidden layer, w jk is the connection weight between hidden layers, w kk is the connection weight between the hidden layer and the output layer, and y1 and y2 are the output values.
[0205] The model training algorithm of the BP neural network can be divided into two steps: the first step is forward and backward propagation. Forward propagation refers to inputting the learning sample into the network, multiplying it with the connection weights of each layer and calculating the weighted sum, mapping it to the next layer through the activation function, and finally reaching the output layer, and calculating the error σ between the output value and the corresponding expected value. The BP neural network believes that the error between the output value and the expected value comes from the connection weights and thresholds between each layer, so the error σ is back-propagated to each layer of neurons. The number of input layer nodes X0 depends on the magnetic field parameters output by the 6 Hall elements. The present invention sets X0=12; the trial algorithm is used to determine the number of hidden layer nodes X1=4; the number of output layer nodes Y0 depends on the number of conductor eccentricity parameters, and the present invention sets Y0=2. Therefore, the GWO-BP neural network constructed by the present invention has a "12-4-2" structure.
[0206] The second step is to modify the weights and thresholds. The BP neural network uses the gradient descent method to modify the weights and thresholds, that is, the weights and thresholds are modified along the direction of the fastest gradient descent.
[0207] This correction method can quickly correct the weights and thresholds when the initial weights and thresholds are set reasonably, so that the BP neural network can achieve the training effect in a short time. However, when the initial weights and thresholds are set unreasonable, it is very easy to fall into the local optimum, thereby affecting the training effect of the entire neural network. Therefore, the present invention uses a meta-heuristic algorithm to optimize the initial weights and thresholds of the BP neural network, improve the regression ability of the BP neural network, and then construct a BP neural network for predicting the position of the conductor.
[0208] S2, optimize the initial weights and thresholds of the BP neural network through the GWO algorithm;
[0209] Grey Wolf Optimizer (GWO) is a new meta-heuristic search algorithm proposed by Mirjalili S et al. based on the process of gray wolf packs searching for prey, besieging prey, and attacking prey in nature.
[0210] There is a strict hierarchy in the gray wolf pack, and its status is in the form of a pyramid from high to low: α wolf is the highest level, is the leader of the gray wolf pack, and is responsible for the decision-making of the entire wolf pack; β wolf is the second highest level, is the backbone of the gray wolf pack, and is responsible for assisting α wolf in making decisions; δ wolf is lower than β wolf, is the guardian of the wolf pack, and obeys the orders of α wolf and β wolf; ω wolf is at the bottom of the pyramid, and obeys the orders of α wolf, β wolf and δ wolf to attack prey. This strict hierarchy plays an important role in the hunting process of gray wolf packs. α, β and δ search and locate prey, constantly adjust the position of the wolf pack by judging the distance between the wolf pack and the prey, and command ω to attack the prey to complete the hunt together.
[0211] The gray wolf algorithm imitates the above process and divides individuals into four levels according to their adaptability: α, β, δ, and ω. Assume that at the tth iteration, the position vector of the prey is X p (t), the position vector of ω is X(t), and the distance between the prey and ω is D. The mathematical model of the algorithm is as follows:
[0212]
[0213] Where A and C are group coordination coefficient vectors, r1 and r2 are random numbers between [0,1], and T is the maximum number of iterations.
[0214] The wolf constantly adjusts its position to surround the prey and determines the position of ω through the positions of α, β, and δ. i-ω , (i=α,β,δ) is the distance between i and ω, X i (t), (i=α,β,δ) is the position of i at the tth iteration, X i-ω , (i=α,β,δ) is the distance between i and ω at the tth iteration. The gray wolf position formula is updated as follows:
[0215]
[0216]
[0217] Where X(t+1) is the position vector of ω at the next iteration.
[0218] In the process of simulating gray wolf hunting, the GWO algorithm uses the random group coordination coefficient vector A to expand the range of gray wolves looking for prey and realize global search. At the same time, the random vector C with random values between [0, 2] is used to randomly strengthen or weaken the influence of the prey position, effectively avoiding the iterative process from falling into the local optimum.
[0219] S3, based on the initial weights and thresholds of the optimized BP neural network obtained in S2, construct a GWO-BP neural network to estimate the conductor eccentricity parameters;
[0220] The present invention combines the GWO algorithm with the BP neural network, optimizes the initial weights and thresholds of the BP neural network through the GWO algorithm, and establishes a model for estimating the eccentricity distance of the conductor. The algorithm flow chart is shown in Fig.13 shown.
[0221] The main steps of the GWO-BP algorithm for estimating conductor eccentricity parameters are as follows:
[0222] (1) Data preprocessing: The original data of X-axis and Y-axis magnetic field intensity and conductor eccentricity parameters are divided into training set and test set, and normalized.
[0223] (2) Setting the BP neural network structure. The number of input layer nodes X0 depends on the magnetic field parameters output by the six Hall elements, and the present invention sets X0 = 12; the number of hidden layer nodes X1 = 7 is determined by trial and error; the number of output layer nodes Y0 depends on the number of conductor eccentricity parameters, and the present invention sets Y0 = 2. Therefore, the GWO-BP neural network constructed by the present invention has a "12-7-2" structure.
[0224] (3) Set the GWO algorithm parameters: Set the number of gray wolves pop = 20 and the maximum number of iterations Max_iteration = 50.
[0225] (4) Calculate the position vector of the wolf pack. Use the weights and thresholds of the BP neural network as prey to calculate the position vector of the wolf pack.
[0226] (5) Calculate the fitness of the gray wolf. According to the sample size N and the predicted value of the eccentricity parameter z i and the actual value y i Calculate the fitness value, the calculation formula is:
[0227]
[0228] (6) Update the fitness of the gray wolf pack’s position vector. Calculate the information of the three gray wolves with the highest fitness, update their position vectors, and calculate the position vector of the gray wolf pack for the next iteration.
[0229] (7) Determine whether the termination condition of the iteration is met.
[0230] (8) Assign the optimized weights and thresholds to the BP neural network to construct the GWO-BP neural network.
[0231] (9) Use GWO-BP neural network to predict conductor eccentricity parameters.
[0232] S4. The performance of the GWO-BP neural network is verified through a test set, and indicators such as mean absolute error (MAE), mean squared error (MSE) and mean absolute percentage error (MAPE) are introduced to evaluate the performance of the conductor eccentricity parameter estimation model.
[0233] In order to verify the performance of the conductor eccentricity distance estimation model based on the GWO-BP algorithm proposed in the present invention, experiments were conducted using the BP and GWO-BP algorithms under the same experimental parameter settings and sample conditions. The deviations between the estimated values and the actual values of 30 sets of test data under different algorithms are shown in Figure 14. The comparison of evaluation indicators of the conductor eccentricity distance estimation models constructed by different algorithms is shown in Table 5.
[0234] Table 5
[0235]
[0236] Experimental results show that the mean absolute error, mean square error and mean absolute percentage error of the GWO-BP algorithm designed in the present invention are better than those of the BP algorithm, and the estimation of the conductor eccentricity distance is more accurate, thereby improving the accuracy of the current measurement of the eccentric conductor.
[0237] Embodiment 3:
[0238] The present invention provides a technical solution:
[0239] A current detection sensor, the current detection sensor is a Hall element, comprising:
[0240] Multiple Hall elements (EQ-730L may be used), the distribution positions of the Hall elements are determined by the uniform curve segment length method, so that the length of each curve segment on the elliptical path is consistent; the Hall elements sense the magnetic field generated by the current-carrying conductor and output the Hall voltage, which is stabilized by the voltage follower and then sent to the adder to calculate the total Hall voltage output by the Hall element elliptical array;
[0241] A microcontroller (STM32F103C8T6 can be used) is used to process the analog voltage signal output by the Hall element array, convert it into a digital signal through the ADC port, and output the CAN signal through the PA11 and PA12 ports;
[0242] E1205SY power module, used for converting the input 12V DC power into 5V DC power to power the Hall element;
[0243] A TLV1117 low dropout linear regulator, used to convert 5V DC power into 3.3V DC power to power the microcontroller;
[0244] The communication module (which may use a TJA1050 CAN transceiver Hall element) is used to transmit the CAN signal output by the microcontroller to a data acquisition device (such as DAQ6510).
[0245] Embodiment 4:
[0246] The present invention provides a technical solution:
[0247] A sensor housing, wherein the sensor housing 11 is a housing of a Hall element; the sensor housing 11 is made of polyphenylene sulfide PPS plastic material, and the polyphenylene sulfide PPS plastic has excellent electrical properties, dimensional stability, flame retardancy and insulation;
[0248] like Figures 15a to 15d As shown, the sensor housing 11 includes an upper housing 111, a lower housing 112 and a terminal housing 115, and the sensor housing 11 is used to wrap a sensor circuit board 113;
[0249] The upper shell 111 and the lower shell 112 are connected by a two-liquid mixed hardening glue; the sensor circuit board 113 is contact-connected with the terminal 114, and the terminal 114 and the terminal housing 115 are fixed by an injection molding process; the terminal housing 115 and the lower shell 112 are fixed by a secondary injection molding process.
[0250] Embodiment 5:
[0251] The present invention provides a technical solution:
[0252] A computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the current detection method described above.
[0253] Embodiment 6:
[0254] The present invention provides a technical solution:
[0255] An electronic device, comprising:
[0256] at least one processor; and
[0257] a memory communicatively connected to the at least one processor; wherein,
[0258] The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor so that the at least one processor can perform the current detection method described above.
[0259] Each step of the embodiment of the present invention may be performed by an electronic device, which includes but is not limited to a mobile phone, a tablet computer, a portable PC, a desktop computer, etc.
[0260] Fig.16 A schematic diagram of an electronic device provided by an embodiment of the present invention, such as Fig.16 As shown, the electronic device 21 includes: a processor 211, a memory 212, and a computer program 213 stored in the memory 212 and executable on the processor 211. When the computer program 213 is executed by the processor 211, the current detection method in the embodiment is implemented.
[0261] The electronic device 21 includes, but is not limited to, a processor 211 and a memory 212. Those skilled in the art will appreciate that FIG15 is merely an example of the electronic device 21 and does not limit the electronic device 21. The electronic device 21 may include more or fewer components than shown in the figure, or may combine certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0262] The processor 211 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0263] The memory 212 may be an internal storage unit of the electronic device 21, such as a hard disk or memory of the electronic device 21. The memory 212 may also be an external storage device of the electronic device 21, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 21. Further, the memory 212 may also include both an internal storage unit of the electronic device 21 and an external storage device. The memory 212 is used to store computer programs and other programs and data required by network devices. The memory 212 may also be used to temporarily store data that has been output or is to be output.
[0264] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A current detection method, characterized in that: The current detection method measures the current of a rectangular current-carrying conductor in a high-voltage distribution box of an electric vehicle based on a Hall element, and specifically comprises the following steps: S1. The position of each Hall element is determined by using a uniform curve segment length method, so that the length of each curve segment on the ellipse is consistent, and the Hall elements are evenly distributed on a given ellipse closed path, and the aspect ratio of the Hall elements is obtained by calculation and simulation; the Hall elements are arranged in an ellipse array; The ellipse closed path is approximately composed of K points, where K ≥ 5000000; the point closest to the X-axis of the ellipse array in the first quadrant is the first point, and the coordinates of the nth point are E n , E n The calculation formula is: The length from the X axis to the kth point is s(k), and its calculation formula is: The circumference of the elliptical closed path is s(K). The elliptical closed path is divided into N segments using the uniform curve segment length method. The arc length of each curve segment is Δs. The calculation formula for Δs is: Introduce the curve segment relative offset parameter s 0,r ,s 0,e The optimal value calculation formula is: The arc length of the initial bias curve segment from the X-axis to the first Hall element P0 is s0, and the calculation formula of s0 is: s0=s 0,r ×s(K); Then the X axis to the i-th Hall element P i-1 The length of the curve segment at is s i ,s i The expression is as follows: s i =s0+iΔs; If there exists m such that s(m) = s i , that is, the arc length from the X axis to the mth point on the elliptical closed path is equal to the arc length from the X axis to the i-th Hall element P i-1 The length of the curve segment at the Hall element P i-1 The coordinates are calculated as follows: S2. Arrange N Hall elements along the integral loop according to the uniform curve segment length method to determine the current I to be measured.
2. The current detection method according to claim 1, characterized in that: In step S1, the major semi-axis a of the elliptical array is set to 30 mm; the aspect ratio AR of the elliptical array is the ratio of the minor semi-axis b to the major semi-axis a of the elliptical array, and the value range is 0 <AR≤1。 3. The current detection method according to claim 1, characterized in that: After step 1, also include: Get the sensitive axis direction of the Hall element, that is, the tangent vector of the elliptic curve at the Hall element The calculation formula is: Wherein, K represents any positive integer.
4. The current detection method according to claim 1, characterized in that: In step S2, the magnetic field generated by the current in the rectangular current-carrying conductor is regarded as a quasi-static field, that is, it satisfies Ampere's circuit theorem: ∮H dl = ∑I; Where H is the magnetic field strength, I is the current to be measured; According to the uniform curve segment length method, N Hall elements are arranged along the integral loop to determine the current I to be measured. The calculation formula is: Among them, H i is the tangential magnetic field strength at the i-th Hall element, Δs i is the arc length of the curve segment on each ellipse.
5. The current detection method according to claim 4, characterized in that: Step S2 then further includes: A coordinate system is established with the center of the rectangular current-carrying conductor as the origin, and the magnetic field distribution is calculated using the infinitesimal method. The magnetic field intensity induced by the rectangular current-carrying conductor at any point (a, b) on the plane is regarded as the vector sum of the magnetic field intensities induced by countless current infinitesimal elements at any point (a, b) on the plane. The rectangular current-carrying conductor is composed of a long straight current-carrying conductor. According to the infinite straight current-carrying wire model, the magnetic field strength H generated by the infinite straight current-carrying conductor at a distance ρ from the conductor is obtained. i , H i The calculation formula is: Assuming the cross-sectional area of the rectangular current-carrying conductor is S, the calculation formula for the current element dI is: The component of the magnetic field intensity on the X-axis generated by the current element dI at point (a, b) is dH ix , and its calculation formula is: The component of the magnetic field intensity generated by the measured current I at point (a, b) on the X-axis is H ix , and its calculation formula is: The component of the magnetic field strength generated by the measured current I at point (a, b) on the Y axis is H iy , and its calculation formula is: The magnetic field strength generated by the measured current I at point (a, b) is The calculation formula is: The magnetic field strength in the sensitive axis direction of the Hall element is H i,MFS , and its calculation formula is: According to Ampere's circuit theorem, the calculated value of the current to be measured I is obtained. calc , and its calculation formula is: Determine the current error ε of the Hall element at any eccentric distance of the rectangular current-carrying conductor through finite element simulation calc , ε calc The calculation formula is:
6. A current detection sensor, used in the current detection method according to any one of claims 1 to 5, characterized in that: The current detection sensor is composed of a Hall element, including: Multiple Hall elements, each of which is connected to a voltage follower and an adder, and the distribution position of the Hall elements is determined by a uniform curve segment length method so that the length of each curve segment on the elliptical path is consistent; the Hall elements sense the magnetic field generated by the current-carrying conductor to be measured, and output a Hall voltage, which, after being stabilized by the voltage follower, is sent to the adder to calculate the total Hall voltage output by the Hall element elliptical array; A microcontroller is used to process the analog voltage signal output by the Hall element array, convert the analog voltage signal into a digital signal through an ADC port, and output a CAN signal; A power supply module, used for converting the input 12V DC power into 5V DC power to power the Hall element; A low dropout linear regulator, used for converting 5V DC power into 3.3V DC power to power the microcontroller; The communication module is used to transmit the CAN signal output by the microcontroller to the data acquisition device.
7. A sensor housing, used in the current detection sensor according to claim 6, characterized in that: The sensor housing (11) is a housing of a Hall element; the sensor housing comprises an upper housing (111), a lower housing (112) and a terminal housing (115); the Hall element is arranged on a sensor circuit board (113), and the sensor housing (11) is used to wrap the sensor circuit board (113); The upper shell (111) and the lower shell (112) are connected by two-liquid mixed hardening glue; the sensor circuit board (113) is contact-connected with a wiring terminal (114); a wiring terminal housing (115) is provided outside the wiring terminal (114) and is fixed to the wiring terminal housing (115) by an injection molding process; the wiring terminal housing (115) and the lower shell (112) are fixed by a secondary injection molding process.
8. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the current detection method according to any one of claims 1 to 5.
9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the current detection method according to any one of claims 1 to 5.
Citation Information
Cited By
Current detection system and current detection method
CN119716203A
Current detection system and current detection method
CN119716203B
