Automatic calibration device for linear Hall IC device
Through the automatic calibration device, the magnetic field excitation source and magnetic field generation unit are controlled by relay components, and efficient automatic calibration of linear Hall IC devices is achieved, solving the problems of manual operation dependence and low efficiency in the prior art, significantly improving calibration efficiency and accuracy sex.
Patent Information
- Application Number
- CN202323670218.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2033-12-29
AI Technical Summary
The existing linear Hall IC device calibration methods rely on manual operation, resulting in long calibration time and error-prone. Different devices require frequent manual on and off magnetic field excitation sources, which is inefficient.
Design an automatic calibration device, including a computer, a programmer, a relay component, a magnetic field excitation source and a magnetic field generating unit, through a one-time electrical connection, the relay component is used to control the on-off state of the magnetic field excitation source and a magnetic field generating unit, and automatically collect and Adjust the amplification coefficient to achieve efficient automatic calibration of linear Hall IC devices.
It greatly improves calibration efficiency and reduces human operation errors. The calibration time is shortened from the traditional 20 seconds to about 6 seconds, which increases efficiency by more than three times, and reduces errors caused by human factors.
Smart Images

Figure CN222105628U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of Hall device performance testing equipment, in particular to an automatic calibration device for a linear Hall IC device. Background Art
[0002] The OFFSET of a single Hall device approaches 0V, and the Gain is extremely small, only in the millivolt range. In order to make the OFFSET reach the expected value (2.5V, etc.) and a specific Gain, the Hall signal needs to be amplified. In order to obtain a fixed value, the IC's amplification factor needs to be calibrated. A linear Hall IC is a device that combines an integrated IC with an adjustable amplification factor with a Hall. Among them, OFFSET is defined as the device output at zero magnetism, and Gain is defined as the difference between the device output and OFFSET at full magnetism.
[0003] The current mainstream calibration methods for linear Hall IC devices are as follows:
[0004] Communication → Write coefficient → Collect full magnetic output → Collect zero magnetic output → Fine-tune coefficient → Collect full magnetic output → Collect zero magnetic output → Second fine-tune coefficient → Collect full magnetic output → Collect zero magnetic output → Write MTP → Collect full magnetic output → Collect zero magnetic output → Determine whether the calibration target is achieved.
[0005] The write coefficient step writes a specific set of gain factors into the device register. Due to differences between devices, the same gain factor cannot be applied to all devices. Therefore, it is necessary to collect the output first, and then fine-tune the gain factor based on the collected output results to ensure that each device can achieve the expected output value. In order to ensure the accuracy of the results, it is necessary to repeatedly collect the output values and fine-tune the gain factor based on the collected values. During the entire calibration process, in order to obtain the OFFSET and Gain output values, the magnetic field needs to be turned on and off 8 times.
[0006] However, in the electronic device manufacturing industry, the existing linear Hall IC device calibration method is often carried out manually, which requires high technical skills of the tester and is prone to errors. During the calibration process, the magnetic field excitation source needs to be frequently turned on and off manually, which greatly prolongs the device calibration time. Utility Model Content
[0007] The purpose of the embodiment of the utility model is to provide an automatic calibration device for a linear Hall IC device, which can realize high-efficiency automatic calibration of the linear Hall IC device through a one-time electrical connection. During the test process, it is no longer necessary to frequently manually turn on and off the magnetic field excitation source, thereby improving the calibration efficiency.
[0008] In a first aspect, a linear Hall IC device automatic calibration device is provided, which may include:
[0009] A host computer, a programmer, a relay component, a magnetic field excitation source and a magnetic field generating unit; wherein the host computer is communicatively connected to the programmer; the control end of the programmer is connected to the first control end of the relay component; the second control end of the relay component is connected to one end of the magnetic field excitation source, the other end of the magnetic field excitation source is connected to one end of the magnetic field generating unit, and the other end of the magnetic field generating unit is connected to the third control end of the relay component; the calibrated linear Hall IC device is placed in the magnetic field area of the magnetic field generating unit, the data transmission end of the programmer is connected to the data transmission end of the linear Hall IC device; the first amplification coefficient of the output data is stored in the linear Hall IC device;
[0010] The programmer is used to receive the signal acquisition instruction sent by the host computer; based on the signal acquisition instruction, send a control signal to the relay component to control the working state of the relay component;
[0011] The magnetic field excitation source is used to control the current working state of the magnetic field generating unit on the loop where the magnetic field excitation source is located according to the working state of the relay assembly;
[0012] The programmer is further used to obtain the output data collected by the linear Hall IC device under the current working state of the magnetic field generating unit, and send it to the host computer;
[0013] The host computer is used to adjust the first amplification factor based on the error value between the output data and the corresponding expected output data to obtain a second amplification factor, and replace the first amplification factor in the linear Hall IC device with the second amplification factor through the programmer, and then send a new signal acquisition instruction to the programmer to make the programmer return to the execution step: receive the signal acquisition instruction sent by the host computer until the host computer detects that the output data is the same as the expected output data.
[0014] In an optional implementation, the first amplification factor of the output data stored in the linear Hall IC device includes a first amplification factor of the full-magnetic output data and a first amplification factor of the zero-magnetic output data;
[0015] The linear Hall IC device is used for:
[0016] When the working state of the relay assembly is the on state, the magnetic field generating unit generates a magnetic field on the loop where the magnetic field excitation source is located, and collects full magnetic output data Gain;
[0017] When the working state of the relay assembly is the disconnected state, and the magnetic field generating unit does not generate a magnetic field on the loop where the magnetic field excitation source is located, collecting zero magnetic output data OFFSET;
[0018] The host computer is specifically used to adjust the first amplification factor based on the error values between the full magnetic output data and the zero magnetic output data and the corresponding expected output data, to obtain the corresponding second amplification factor, and replace the corresponding first amplification factor in the linear Hall IC device with the corresponding second amplification factor through the programmer.
[0019] In an optional implementation, the relay assembly is a 5-pin normally open relay;
[0020] The first end of the 5-pin normally open relay is connected to VCC; the second end of the 5-pin normally open relay is the first control end of the relay assembly, connected to the control end of the programmer; the third end of the 5-pin normally open relay is the second control end of the relay assembly, connected to one end of the magnetic field excitation source; the fourth end of the 5-pin normally open relay is the third control end of the relay assembly, connected to the other end of the magnetic field generating unit; the fifth end of the 5-pin normally open relay is grounded.
[0021] In an optional implementation, the relay assembly includes a first 4-pin normally open relay and a second 4-pin normally open relay;
[0022] The first end of the first 4-pin normally open relay is grounded; the second end of the first 4-pin normally open relay is the first control end of the relay assembly, connected to the control end of the programmer; the third end of the first 4-pin normally open relay is connected to VCC; the fourth end of the first 4-pin normally open relay is connected to the second end of the second 4-pin normally open relay; the third end of the second 4-pin normally open relay is the second control end of the relay assembly, connected to one end of the magnetic field excitation source; the fourth end of the second 4-pin normally open relay is the third control end of the relay assembly, connected to the other end of the magnetic field generating unit; the first end of the second 4-pin normally open relay is grounded.
[0023] In an optional implementation, the relay assembly includes a 5-pin normally open relay and a 4-pin normally open relay;
[0024] The first end of the 5-pin normally open relay is connected to VCC; the second end of the 5-pin normally open relay is the first control end of the relay assembly, which is connected to the control end of the programmer;
[0025] The third terminal of the 5-pin normally open relay is connected to VCC; the fifth terminal of the 5-pin normally open relay is grounded; the fourth terminal of the 5-pin normally open relay is connected to the second terminal of the 4-pin normally open relay; the third terminal of the 4-pin normally open relay is the second control terminal of the relay assembly, connected to one end of the magnetic field excitation source; the fourth terminal of the 4-pin normally open relay is the third control terminal of the relay assembly, connected to the other end of the magnetic field generating unit; the first terminal of the 4-pin normally open relay is grounded.
[0026] In an optional implementation, the programmer includes a microcontroller unit MCU and an analog-to-digital converter ADC;
[0027] The microcontroller unit MCU is used to receive the signal acquisition instruction sent by the host computer; based on the signal acquisition instruction, send a control signal to the relay component;
[0028] The analog-to-digital converter ADC is used to obtain the output data collected by the linear Hall IC device and send it to the host computer.
[0029] In an optional implementation, the magnetic field generating unit is a magnetic coil or a magnetic core.
[0030] The utility model provides an automatic calibration device for a linear Hall IC device, comprising: a host computer, a programmer, a relay assembly, a magnetic field excitation source and a magnetic field generating unit; the host computer is communicatively connected to the programmer; a control end of the programmer is connected to a first control end of the relay assembly; a second control end of the relay assembly is connected to one end of the magnetic field excitation source, the other end of the magnetic field excitation source is connected to one end of the magnetic field generating unit, and the other end of the magnetic field generating unit is connected to a third control end of the relay assembly; the calibrated linear Hall IC device is placed in a magnetic field region of the magnetic field generating unit, the data transmission end of the programmer is connected to the data transmission end of the linear Hall IC device; a first amplification coefficient of output data is stored in the linear Hall IC device; the programmer sends a signal to the calibrated linear Hall IC device based on a signal acquisition instruction sent by the host computer. The relay component sends a control signal to control the working state of the relay component; the magnetic field excitation source controls the current working state of the magnetic field generating unit on the loop where the magnetic field excitation source is located according to the working state of the relay component; the programmer obtains the output data collected by the linear Hall IC device under the current working state of the magnetic field generating unit and sends it to the host computer; the host computer adjusts the first amplification factor based on the error value between the output data and the corresponding expected output data to obtain the second amplification factor, and replaces the first amplification factor in the linear Hall IC device with the second amplification factor through the programmer, and then sends a new signal acquisition instruction to the programmer so that the programmer returns to the execution step: receiving the signal acquisition instruction sent by the host computer until the host computer detects that the output data is the same as the expected output data. The device realizes high-efficiency automatic calibration of the linear Hall IC device, and it is no longer necessary to frequently manually turn on and off the magnetic field excitation source during the test process, thereby improving the calibration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the utility model, the drawings required for use in the embodiments of the utility model will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the utility model and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying creative work.
[0032] Figure 1 A schematic diagram of the structure of an automatic calibration device for a linear Hall IC device provided by an embodiment of the utility model;
[0033] Figure 2 A schematic diagram of the structure of a relay assembly provided in an embodiment of the utility model;
[0034] Figure 3 A schematic diagram of the structure of another relay assembly provided by an embodiment of the utility model;
[0035] Figure 4A schematic structural diagram of another relay assembly provided in an embodiment of the utility model. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0037] The preferred embodiments of the present invention are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention. In addition, the embodiments of the present invention and the features in the embodiments may be combined with each other if there is no conflict.
[0038] Figure 1 A schematic diagram of a linear Hall IC device automatic calibration device provided by an embodiment of the utility model is shown in FIG. Figure 1 As shown, the device may include:
[0039] Host computer 100, programmer 200, relay assembly 300, magnetic field excitation source 400 and magnetic field generating unit 500;
[0040] Among them, the host computer 100 is communicatively connected with the programmer 200; the control end of the programmer 200 (such as pin 5 of the programmer in the figure) is connected to the first control end of the relay assembly 300; the second control end of the relay assembly 300 is connected to one end of the magnetic field excitation source 400, the other end of the magnetic field excitation source 400 is connected to one end of the magnetic field generating unit 500, and the other end of the magnetic field generating unit 500 is connected to the third control end of the relay assembly 300; the calibrated linear Hall IC device 600 is placed in the magnetic field area of the magnetic field generating unit 500, and the data transmission end of the programmer 200 (such as pin 2 of the programmer in the figure) is connected to the data transmission end of the linear Hall IC device 600 (such as pin 2 of the linear Hall IC device in the figure); the first amplification coefficient of the output data is stored in the host computer, that is, the first amplification coefficient of the zero magnetic output data before calibration and the first amplification coefficient of the full magnetic output data. The pin 1 of the linear Hall IC device 600 is connected to the pin 1 of the programmer and connected to VCC; the pin 3 of the linear Hall IC device 600 is connected to the pin 3 of the programmer; the pin 4 of the linear Hall IC device 600 is connected to the pin 4 of the programmer and connected to ground. The linear Hall IC device 600 is used to store the calibrated amplification factor. The amplification factor is not stored in the register of the linear Hall IC before calibration.
[0041] The programmer 200 is used to receive the signal acquisition instruction sent by the host computer; based on the signal acquisition instruction, send a control signal to the relay component to control the working state of the relay component;
[0042] The magnetic field excitation source 400 is used to control the current working state of the magnetic field generating unit on the loop where the magnetic field excitation source is located according to the working state of the relay assembly; the magnetic field generating unit can be a magnetic coil or a magnetic core.
[0043] The programmer 200 is also used to obtain the output data collected by the linear Hall IC device under the current working state of the magnetic field generating unit, and send it to the host computer;
[0044] The host computer 100 is used to adjust the first amplification factor based on the error value between the output data and the corresponding expected output data to obtain the second amplification factor, and replace the first amplification factor with the second amplification factor, and then send a new signal acquisition instruction to the programmer to make the programmer return to the execution step: receive the signal acquisition instruction sent by the host computer until the host computer detects that the output data is the same as the expected output data to obtain the calibrated amplification factor, and burn the calibrated amplification factor into the linear Hall IC device through the programmer.
[0045] If the second amplification factor at this time is a calibrated amplification factor, that is, it includes the calibrated amplification factor of the zero magnetic output data and the amplification factor of the full magnetic output data, then the calibrated amplification factor of the zero magnetic output data and the amplification factor of the full magnetic output data are burned into the register of the linear Hall IC device through the programmer.
[0046] The programmer 200 may include a microcontroller unit MCU and an analog-to-digital converter ADC;
[0047] The microcontroller unit MCU is used to receive the signal acquisition instruction sent by the host computer; based on the signal acquisition instruction, it sends a control signal to the relay component;
[0048] The analog-to-digital converter ADC is used to obtain the output data collected by the linear Hall IC device and send it to the host computer.
[0049] Furthermore, the first amplification factor of the output data stored in the linear Hall IC device includes a first amplification factor of the full magnetic output data Gain and a first amplification factor of the zero magnetic output data OFFSET.
[0050] Linear Hall IC device 600 for:
[0051] When the relay assembly is in the on state, the magnetic field generating unit generates a magnetic field on the loop where the magnetic field excitation source is located, and the full magnetic output data Gain is collected;
[0052] When the relay assembly is in the disconnected state and the magnetic field generating unit does not generate a magnetic field on the loop where the magnetic field excitation source is located, the zero magnetic output data OFFSET is collected;
[0053] In one example, if the programmer sends a high-level control signal to the relay component, the relay component can be turned on; if the programmer sends a low-level control signal to the relay component, the relay component can be turned off.
[0054] The host computer 100 is specifically used to adjust the first amplification factor based on the error values between the full magnetic output data and the zero magnetic output data and the corresponding expected output data, obtain the corresponding second amplification factor, and replace the corresponding first amplification factor in the linear Hall IC device with the corresponding second amplification factor through the programmer.
[0055] In one example, the expected output result after amplification is OFFSET = 2.5V, Gain = 2V;
[0056] (1) After writing the first amplification factor of the full magnetic output data Gain and the first amplification factor of the zero magnetic output data OFFSET in the linear Hall IC device, through the execution of the automatic calibration device of the linear Hall IC device of the utility model, the programmer can obtain the actual full magnetic output data Gain and the actual zero magnetic output data OFFSET collected by the linear Hall IC device: OFFSET = 2.48V, Gain = 1.96V;
[0057] (2) At this time, according to the actual acquisition results, it can be known that the first amplification factor of the full magnetic output data Gain and the first amplification factor of the zero magnetic output data OFFSET in the linear Hall IC device are both too small, so it is necessary to increase the first amplification factor of OFFSET and the first amplification factor of Gain to obtain the corresponding second amplification factor;
[0058] (3) The second amplification factor of OFFSET and the second amplification factor of Gain are stored in the linear Hall IC device. Through the execution of the automatic calibration device of the linear Hall IC device of the utility model, the programmer can obtain the actual full magnetic output data Gain and the actual zero magnetic output data OFFSET after the amplification factor is increased: OFFSET = 2.50V, Gain = 2.01V.
[0059] At this time, according to the output result, the second amplification factor corresponding to OFFSET is normal, and the second amplification factor corresponding to Gain is too large. It is necessary to reduce the second amplification factor corresponding to Gain to obtain the corresponding third amplification factor;
[0060] (4) The third amplification factor of Gain is stored in the linear Hall IC device. Through the execution of the automatic calibration device of the linear Hall IC device of the utility model, the programmer can obtain the actual full magnetic output data Gain and the actual zero magnetic output data OFFSET after the amplification factor is increased: OFFSET = 2.5V, Gain = 2V. At this time, the result reaches the expected value.
[0061] (5) Finally, this set of amplification factors is burned into the register of the linear Hall IC device, and it is necessary to verify the output data again through the automatic calibration device of the linear Hall IC device of the utility model to ensure that the output is correct after burning.
[0062] In some embodiments, the relay assembly may include at least one relay;
[0063] If the relay assembly includes a relay, it can be a 5-pin normally open relay;
[0064] If the relay assembly includes two relays, there may be a first 4-pin normally open relay and a second 4-pin normally open relay; or, a 5-pin normally open relay and a 4-pin normally open relay.
[0065] Among them, the 4-pin normally open relay is a low-power relay. This type of relay has low power consumption, but the power consumption of the control end is also low. It can work within the MCU output power consumption, but it cannot meet the high current demand of the magnetic field excitation source. The 5-pin normally open relay is a high-power relay. This type of relay has high power consumption, and the power consumption of the control end is also high. The MCU cannot drive it directly, but it can meet the high current demand of the magnetic field excitation source.
[0066] (1) Figure 2 The relay assembly shown includes a 5-pin normally open relay.
[0067] The connection structure is:
[0068] The first terminal of the 5-pin normally open relay is connected to VCC;
[0069] The second end of the 5-pin normally open relay is the first control end of the relay assembly, which is connected to the control end of the programmer;
[0070] The third terminal of the 5-pin normally open relay is the second control terminal of the relay assembly, which is connected to one end of the magnetic field excitation source;
[0071] The fourth terminal of the 5-pin normally open relay is the third control terminal of the relay assembly, which is connected to the other terminal of the magnetic field generating unit;
[0072] The fifth terminal of the 5-pin normally open relay is grounded.
[0073] The working process is:
[0074] This structure is suitable for the case where the level of the high-power relay control signal is the same as the MCU signal level. The MCU of the programmer receives the signal acquisition instruction sent by the host computer, and sends a control signal to directly control the opening and closing of the relay component, so that the relay component controls the on and off of the circuit where the magnetic field excitation source and the magnetic field generating unit are located.
[0075] (2) Figure 3 The relay assembly shown includes a first 4-pin normally open relay and a second 4-pin normally open relay.
[0076] The connection structure is:
[0077] The first end of the first 4-pin normally open relay is grounded;
[0078] The second end of the first 4-pin normally open relay is the first control end of the relay assembly, which is connected to the control end of the programmer;
[0079] The third terminal of the first 4-pin normally open relay is connected to VCC;
[0080] The fourth end of the first 4-pin normally open relay is connected to the second end of the second 4-pin normally open relay;
[0081] The third terminal of the second 4-pin normally open relay is the second control terminal of the relay assembly, which is connected to one end of the magnetic field excitation source;
[0082] The fourth end of the second 4-pin normally open relay is the third control end of the relay assembly, which is connected to the other end of the magnetic field generating unit;
[0083] The first terminal of the second 4-pin normally open relay is grounded.
[0084] The working process is:
[0085] This structure is suitable for the case where the control signal level of a high-power relay is higher than the MCU signal level. The MCU cannot directly control the high-power relay, while the power supply level of a low-power relay is the same as the MCU signal level.
[0086] Before collecting Gain, the host computer sends a signal collection instruction. After the programmer receives the instruction, the MCU sends a high-level signal to control the low-power relay (i.e., the first 4-pin normally open relay) to be powered normally and the control end is turned on; at this time, the high-power relay (i.e., the second 4-pin normally open relay) is powered on and the control end is closed; the magnetic field excitation source loop is connected, and the magnetic coil generates a magnetic field. At this time, the data acquisition ADC on the programmer collects the Gain output.
[0087] Before collecting OFFSET, the host computer sends a signal collection instruction. After the programmer receives the instruction, the MCU sends a low-level signal, the small signal relay (i.e. the first 4-pin normally open relay) is underpowered, and the control end is disconnected; at this time, the high power consumption relay (i.e. the second 4-pin normally open relay) is powered open, and the control end is disconnected; the magnetic field excitation source loop is disconnected, and the magnetic coil does not generate a magnetic field. At this time, the data acquisition ADC on the programmer collects the OFFSET output.
[0088] (3) Figure 4 The relay assembly shown includes a 5-pin normally open relay and a 4-pin normally open relay.
[0089] The connection structure is:
[0090] The first terminal of the 5-pin normally open relay is connected to VCC;
[0091] The second end of the 5-pin normally open relay is the first control end of the relay assembly, which is connected to the control end of the programmer;
[0092] The third terminal of the 5-pin normally open relay is connected to VCC;
[0093] The fifth terminal of the 5-pin normally open relay is grounded;
[0094] The fourth terminal of the 5-pin normally open relay is connected to the second terminal of the 4-pin normally open relay;
[0095] The third terminal of the 4-pin normally open relay is the second control terminal of the relay assembly, which is connected to one end of the magnetic field excitation source;
[0096] The fourth terminal of the 4-pin normally open relay is the third control terminal of the relay assembly, which is connected to the other terminal of the magnetic field generating unit;
[0097] The first terminal of the 4-pin normally open relay is grounded.
[0098] The working process is:
[0099] This structure is suitable for the case where the control signal of a high power consumption relay is higher than the MCU signal level, and the MCU cannot directly control the high power consumption relay. The power supply level of a low power consumption relay is different from the MCU signal level (i.e., the power supply source is different), but the high level of the control signal is the same as the MCU level.
[0100] Before collecting Gain, the host computer sends a command. After the programmer receives the command, the MCU sends a high-level signal control, and the control end of the low-power relay (i.e., pin 2 and pin 4 in the figure) is turned on; at this time, the high-power relay (i.e., the normally open relay at pin 5) is powered on, the control end is closed, the magnetic field excitation source loop is connected, and the magnetic coil generates a magnetic field. At this time, the data acquisition ADC on the programmer collects the Gain output.
[0101] Before collecting OFFSET, the host computer sends an instruction. After the programmer receives the instruction, the MCU sends a low-level signal, and the control end of the small-signal relay is disconnected. At this time, the power supply of the high-power relay is open, and the control end is disconnected; the magnetic field excitation source loop is disconnected, and the magnetic coil does not generate a magnetic field. At this time, the data acquisition ADC on the programmer collects the OFFSET output.
[0102] The utility model can greatly improve the calibration efficiency. The time for calibrating a device by manually controlling the magnetic field on and off in the traditional way is about 20 seconds, while the time for calibrating a device by the device is about 6 seconds. The efficiency of automatic calibration is more than 3 times that of manual calibration.
[0103] In addition, the utility model can greatly reduce the errors caused by human factors. Through the one-time electrical connection and the corresponding upper and lower computer design, the operator only needs to click a button once to complete all calibration operations, avoiding the magnetic field on-off errors caused by human button click errors and click magnetic field excitation source errors.
[0104] It is applicable to different magnetic field excitation sources and can be flexibly applied regardless of the resistance value of the magnetic coil. It only requires replacing a suitable high-power consumption relay.
[0105] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.
[0106] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, if these modifications and variations of the embodiments of the present invention fall within the scope of the claims and their equivalents in the embodiments of the present invention, the embodiments of the present invention are also intended to include these modifications and variations.
Claims
1. A linear Hall IC device automatic calibration device, characterized in that: The device comprises: a host computer, a programmer, a relay component, a magnetic field excitation source and a magnetic field generating unit; wherein the host computer is communicatively connected with the programmer; the control end of the programmer is connected with the first control end of the relay component; the second control end of the relay component is connected with one end of the magnetic field excitation source, the other end of the magnetic field excitation source is connected with one end of the magnetic field generating unit, and the other end of the magnetic field generating unit is connected with the third control end of the relay component; the calibrated linear Hall IC device is placed in the magnetic field area of the magnetic field generating unit, and the data transmission end of the programmer is connected with the data transmission end of the linear Hall IC device; the first amplification coefficient of the output data is stored in the host computer; The programmer is used to receive the signal acquisition instruction sent by the host computer; based on the signal acquisition instruction, send a control signal to the relay component to control the working state of the relay component; The magnetic field excitation source is used to control the current working state of the magnetic field generating unit on the loop where the magnetic field excitation source is located according to the working state of the relay assembly; The programmer is further used to obtain the output data collected by the linear Hall IC device under the current working state of the magnetic field generating unit, and send it to the host computer; The host computer is used to adjust the first amplification factor based on the error value between the output data and the corresponding expected output data to obtain a second amplification factor, and replace the first amplification factor with the second amplification factor, and then send a new signal acquisition instruction to the programmer to make the programmer return to the execution step: receive the signal acquisition instruction sent by the host computer until the host computer detects that the output data is the same as the expected output data to obtain a calibrated amplification factor, and burn the calibrated amplification factor into the register of the linear Hall IC device through the programmer.
2. The device according to claim 1, characterized in that The first amplification factor includes a first amplification factor of full magnetic output data and a first amplification factor of zero magnetic output data; The linear Hall IC device is used for: When the working state of the relay assembly is the on state, the magnetic field generating unit generates a magnetic field on the loop where the magnetic field excitation source is located, and collects full magnetic output data; When the working state of the relay assembly is the disconnected state, and the magnetic field generating unit does not generate a magnetic field on the loop where the magnetic field excitation source is located, collecting zero magnetic output data; The host computer is specifically used to adjust the corresponding first amplification factor based on the error values between the full magnetic output data and the zero magnetic output data and the corresponding expected output data, obtain the corresponding second amplification factor, and replace the corresponding first amplification factor with the corresponding second amplification factor.
3. The device according to claim 1, characterized in that The relay assembly is a 5-pin normally open relay; The first terminal of the 5-pin normally open relay is connected to VCC; The second end of the 5-pin normally open relay is the first control end of the relay assembly, which is connected to the control end of the programmer; The third end of the 5-pin normally open relay is the second control end of the relay assembly, which is connected to one end of the magnetic field excitation source; The fourth end of the 5-pin normally open relay is the third control end of the relay assembly, connected to the other end of the magnetic field generating unit; The fifth terminal of the 5-pin normally open relay is grounded.
4. The device according to claim 1, characterized in that The relay assembly includes a first 4-pin normally open relay and a second 4-pin normally open relay; The first end of the first 4-pin normally open relay is grounded; The second end of the first 4-pin normally open relay is the first control end of the relay assembly, connected to the control end of the programmer; The third terminal of the first 4-pin normally open relay is connected to VCC; The fourth end of the first 4-pin normally open relay is connected to the second end of the second 4-pin normally open relay; The third end of the second 4-pin normally open relay is the second control end of the relay assembly, connected to one end of the magnetic field excitation source; The fourth end of the second 4-pin normally open relay is the third control end of the relay assembly, connected to the other end of the magnetic field generating unit; A first end of the second 4-pin normally open relay is grounded.
5. The device according to claim 1, characterized in that The relay assembly includes a 5-pin normally open relay and a 4-pin normally open relay; The first terminal of the 5-pin normally open relay is connected to VCC; The second end of the 5-pin normally open relay is the first control end of the relay assembly, which is connected to the control end of the programmer; The third terminal of the 5-pin normally open relay is connected to VCC; the fifth terminal of the 5-pin normally open relay is grounded; The fourth end of the 5-pin normally open relay is connected to the second end of the 4-pin normally open relay; The third end of the 4-pin normally open relay is the second control end of the relay assembly, which is connected to one end of the magnetic field excitation source; The fourth end of the 4-pin normally open relay is the third control end of the relay assembly, connected to the other end of the magnetic field generating unit; The first end of the 4-pin normally open relay is grounded.
6. The device according to claim 1, characterized in that The programmer includes a microcontroller unit MCU and an analog-to-digital converter ADC; The microcontroller unit MCU is used to receive the signal acquisition instruction sent by the host computer; based on the signal acquisition instruction, send a control signal to the relay component; The analog-to-digital converter ADC is used to obtain the output data collected by the linear Hall IC device and send it to the host computer.
7. The device according to claim 1, characterized in that The magnetic field generating unit is a magnetic coil or a magnetic core.
