Ear tag temperature measurement circuit, temperature measurement method applied to ear tags, and ear tags

By designing multiple independent temperature measurement branches and compensation technology ear marking and temperature measurement circuits, the problem of low temperature measurement accuracy of existing pig ear markings is solved, and higher precision body temperature monitoring is achieved, supporting the needs of the intelligent breeding industry.

CN114636486BActive Publication Date: 2025-06-24ALIBABA CLOUD COMPUTING CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210325835.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-29
Publication Date
2025-06-24
Estimated Expiration
2042-03-29

AI Technical Summary

Technical Problem

The temperature measurement accuracy of existing pig ear marks is not high, which is difficult to meet the demand of the intelligent breeding industry for high-precision body temperature monitoring.

Method used

An ear-mark temperature measurement circuit is designed, including a controller and multiple independent temperature measurement branches. Each temperature measurement branch is divided by an NTC thermistor. The controller obtains the output value of the temperature measurement branch through the ADC port, and obtains and applies the AD correction gain coefficient and correction bias number, and compensates the temperature measurement value to finally obtain a more accurate temperature measurement value.

Benefits of technology

Through the compensation technology of multiple temperature measurement branches, the accuracy of temperature measurement is significantly improved, the monitoring ability of pig body temperature is enhanced, and the high-precision temperature monitoring needs of the intelligent breeding industry are supported.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114636486B_ABST
    Figure CN114636486B_ABST
Patent Text Reader

Abstract

One or more embodiments of this specification provide an ear tag temperature measurement circuit, a temperature measurement method applied to an ear tag, and an ear tag. The ear tag temperature measurement circuit includes a controller and at least two independent temperature measurement branches connected to the controller. Among them, the controller is configured to: obtain the actual measurement value of each temperature measurement branch; compensate the actual measurement value of each temperature measurement branch to obtain the compensated measurement value of each temperature measurement branch; and obtain the actual temperature measurement value based on the compensated measurement value of each temperature measurement branch. The temperature measurement method includes: obtaining the actual measurement value of each temperature measurement branch; compensating the actual measurement value of each temperature measurement branch to obtain the compensated measurement value of each temperature measurement branch; and obtaining the actual temperature measurement value based on the compensated measurement value of each temperature measurement branch. Therefore, the measurement accuracy of the temperature can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of this specification relate to the technical field of intelligent breeding animals, and in particular, to an ear tag temperature measurement circuit, a temperature measurement method applied to an ear tag, and an ear tag. Background Art

[0002] In the intelligent breeding industry, monitoring the body temperature of animals, such as pigs, is of great significance. It can not only judge the individual health status of pigs through body temperature monitoring, but also determine whether a group epidemic has occurred by analyzing the body temperature status of the group of pigs, which can play a key role in epidemic prevention in regions such as districts and counties. However, in the industry, for the body temperature monitoring of pigs, the currently relatively accurate temperature measurement method is to only measure the rectal temperature of pigs with a thermometer. However, this temperature measurement method is relatively troublesome and not intelligent enough. Therefore, currently, ear tags are usually attached to the ears of pigs to measure the body temperature of pigs. However, the temperature measurement accuracy of current pig ear tags is usually not high. Summary of the Invention

[0003] In view of this, one or more embodiments of this specification provide an ear tag temperature measurement circuit, a temperature measurement method applied to an ear tag, and an ear tag, which can improve the measurement accuracy of temperature.

[0004] According to a first aspect of one or more embodiments of this specification, an ear tag temperature measurement circuit is proposed. The ear tag temperature measurement circuit includes a controller and at least two independent temperature measurement branches connected to the controller. Wherein, the controller is configured to: obtain the actual measurement value of each temperature measurement branch; compensate the actual measurement value of each temperature measurement branch to obtain the compensated measurement value of each temperature measurement branch; and obtain the actual temperature measurement value based on the compensated measurement value of each temperature measurement branch.

[0005] Further, the controller has a plurality of ADC ports, and the output end of each temperature measurement branch is connected to one of the ADC ports. The actual measurement value includes the value obtained by AD conversion of the output value of the temperature measurement branch.

[0006] Further, each temperature measurement branch is connected between a power supply terminal and a ground terminal. Each temperature measurement branch includes a variable resistance resistor for voltage division and a fixed resistance resistor. The output end of the temperature measurement branch is connected between the variable resistance resistor and the fixed resistance resistor.

[0007] Further, the variable resistance resistor includes an NTC thermistor.

[0008] Further, the controller is configured to: obtain the AD correction gain coefficient and correction bias number of the controller; and compensate the actual measurement value of each temperature measurement branch based on the AD correction gain coefficient and correction bias number of the controller.

[0009] Further, the power supply terminal and the ground terminal are respectively connected to two of the ADC ports of the controller, and the controller is configured to: obtain the actual measurement values of the power supply terminal and the ground terminal; and obtain the AD correction gain coefficient and correction bias number of the controller based on the actual measurement values of the power supply terminal and the ground terminal and the theoretical values of the power supply terminal and the ground terminal.

[0010] Further, the controller is configured to: continuously obtain multiple actual measurement values of each temperature measurement branch; and obtain the actual measurement value of each temperature measurement branch based on the multiple actual measurement values of each temperature measurement branch continuously obtained.

[0011] Further, the controller is configured to: obtain the actual measurement value of each temperature measurement branch by removing the maximum value and the minimum value from the multiple actual measurement values of each temperature measurement branch and then taking the average.

[0012] Further, the controller is configured to: take the average of the compensated measurement values of all the temperature measurement branches to finally obtain the actual temperature measurement value.

[0013] According to the second aspect of one or more embodiments of the present specification, a temperature measurement method applied to an ear tag is proposed. The ear tag includes a controller and at least two independent temperature measurement branches connected to the controller. The method includes: obtaining the actual measurement value of each temperature measurement branch; compensating the actual measurement value of each temperature measurement branch to obtain the compensated measurement value of each temperature measurement branch; and obtaining the actual temperature measurement value based on the compensated measurement value of each temperature measurement branch.

[0014] Further, the output end of each temperature measurement branch is connected to an ADC port of the controller, and the obtaining the actual measurement value of each temperature measurement branch includes: obtaining the output value of each temperature measurement branch; and performing AD conversion on the output value of each temperature measurement branch to obtain the converted value.

[0015] Further, the compensating the actual measurement value of each temperature measurement branch includes: obtaining the AD correction gain coefficient and correction bias number of the controller; and compensating the actual measurement value of each temperature measurement branch based on the AD correction gain coefficient and correction bias number of the controller.

[0016] Further, each of the temperature measurement branches is connected between a power supply terminal and a ground terminal. The obtaining of the AD correction gain coefficient and correction bias number of the controller includes: obtaining the actual measured value of the power supply terminal and the actual measured value of the ground terminal; and obtaining the AD correction gain coefficient and correction bias number of the controller based on the actual measured values of the power supply terminal and the ground terminal and the theoretical values of the power supply terminal and the ground terminal.

[0017] Further, the obtaining of the actual measured value of each temperature measurement branch includes: continuously obtaining multiple actual measured values of each temperature measurement branch; and obtaining the actual measured value of each temperature measurement branch based on the multiple actual measured values of each temperature measurement branch continuously obtained.

[0018] Further, the obtaining of the actual measured value of each temperature measurement branch based on the multiple actual measured values of each temperature measurement branch continuously obtained includes: removing the maximum value and the minimum value from the multiple actual measured values of each temperature measurement branch and then taking the average value to obtain the actual measured value of each temperature measurement branch.

[0019] Further, the obtaining of the actual temperature measurement value based on the compensated measurement values of each temperature measurement branch includes: taking the average value of the compensated measurement values of all the temperature measurement branches to finally obtain the actual temperature measurement value.

[0020] According to the third aspect of one or more embodiments of the present specification, an ear tag is proposed. The ear tag includes the ear tag temperature measurement circuit described in each of the above embodiments.

[0021] The ear tag temperature measurement circuit, the temperature measurement method applied to the ear tag, and the ear tag according to one or more embodiments of the present specification are provided with multiple temperature measurement branches, and can perform a certain compensation on the actual measured values measured by each of the multiple temperature measurement branches, so as to improve the accuracy of the measurement values of each temperature measurement branch, and further improve the measurement accuracy of the finally obtained actual temperature measurement value. Description of the Drawings

[0022] Figure 1 is a circuit schematic diagram of an ear tag temperature measurement circuit according to an embodiment of the present specification;

[0023] Figure 2 is a flowchart of a temperature measurement method applied to an ear tag according to an embodiment of the present specification. Detailed Embodiments

[0024] Exemplary embodiments will be described in detail here. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the exemplary embodiments do not represent all embodiments consistent with this specification. On the contrary, they are merely examples of devices consistent with some aspects of this specification as defined in the appended claims.

[0025] The terms used in the embodiments of this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. Unless otherwise defined, the technical terms or scientific terms used in the embodiments of this specification should be understood in the ordinary sense by those of ordinary skill in the field to which this specification pertains. The terms "first", "second", and similar terms used in this specification and the appended claims do not denote any order, quantity, or importance, but are only used to distinguish different components. Similarly, terms such as "a" or "an" do not denote a quantity limitation, but rather indicate the presence of at least one. "Plurality" or "several" means two or more. The terms "comprising" or "including" and similar terms are intended to cover the elements or items listed after the word "comprising" or "including" and their equivalents, and do not exclude other elements or items. The terms "connected" or "coupled" and similar terms are not limited to physical or mechanical connections, and may include electrical connections, whether direct or indirect. The singular forms "a", "the", and "said" used in this specification and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0026] One embodiment of this specification provides an ear tag temperature measurement circuit 100 for use in an ear tag. Figure 1 A circuit schematic diagram of the ear tag temperature measurement circuit 100 according to one embodiment of this specification is disclosed. As Figure 1 shown, the ear tag temperature measurement circuit 100 according to one embodiment of this specification includes a controller 10 and at least two independent temperature measurement branches 20 connected to the controller 10. The ear tag temperature measurement circuit 100 can be disposed on a main board in an ear tag housing. In Figure 1 the embodiment shown, the ear tag temperature measurement circuit 100 is shown by way of example as including three independent temperature measurement branches 20. However, the ear tag temperature measurement circuit 100 of the embodiments of this specification is not limited to including three temperature measurement branches 20. In other embodiments, the ear tag temperature measurement circuit 100 of the embodiments of this specification may also include two, four, or more temperature measurement branches 20. Hereinafter, the ear tag temperature measurement circuit 100 including three independent temperature measurement branches 20 will also be used as an example for illustrative purposes.

[0027] The controller 10 may include, for example, a microcontroller unit (MCU). The controller 10 can obtain the actual measurement value of each temperature measurement branch 20, and compensate the actual measurement value of each temperature measurement branch 20 to obtain the compensated measurement value of each temperature measurement branch 20. Then, the actual temperature measurement value can be obtained based on the compensated measurement value of each temperature measurement branch 20.

[0028] By providing a plurality of temperature measurement branches 20 and being able to compensate the actual measurement values measured by each temperature measurement branch 20, the ear tag temperature measurement circuit 100 according to the embodiments of the present specification can improve the accuracy of the measurement values of each temperature measurement branch 20, and further improve the measurement accuracy of the finally obtained actual temperature measurement value.

[0029] The controller 10 has a plurality of ADC (Analog-to-Digital Converter) ports 11. The output end of each temperature measurement branch 20 is respectively connected to an ADC port 11 of the controller 10. Therefore, the actual measurement value of each temperature measurement branch 20 finally obtained by the controller 10 is the value obtained by AD conversion of the output value of each temperature measurement branch 20.

[0030] Continue to refer to Figure 1 As shown, each temperature measurement branch 20 is connected between the power supply terminal and the ground terminal GND. Each temperature measurement branch 20 may include a variable resistance resistor and a fixed resistance resistor for voltage division. In one embodiment, the variable resistance resistor may include, for example, but not limited to, an NTC (Negative Temperature Coefficient) thermistor. The output end of each temperature measurement branch 20 is connected between the variable resistance resistor and the fixed resistance resistor of the temperature measurement branch 20. For example, in Figure 1 the first temperature measurement branch 20 includes a variable resistance resistor RT1 and a fixed resistance resistor R1 for voltage division. The output end of the first temperature measurement branch 20 is connected between the variable resistance resistor RT1 and the fixed resistance resistor R1; the second temperature measurement branch 20 includes a variable resistance resistor RT2 and a fixed resistance resistor R2 for voltage division. The output end of the second temperature measurement branch 20 is connected between the variable resistance resistor RT2 and the fixed resistance resistor R2; the third temperature measurement branch 20 includes a variable resistance resistor RT3 and a fixed resistance resistor R3 for voltage division. The output end of the third temperature measurement branch 20 is connected between the variable resistance resistor RT3 and the fixed resistance resistor R3.

[0031] Therefore, the output voltages of the output ends of the three independent temperature measurement branches 20 are respectively shown by the following formulas:

[0032] Vrt1 = R1 / (R1 + RT1) × VCC (1)

[0033] Vrt2 = R2 / (R2 + RT2) × VCC (2)

[0034] Vrt3 = R3 / (R3 + RT3) × VCC (3)

[0035] Among them, Vrt1, Vrt2, and Vrt3 are the output voltages of the output terminals of the three temperature measurement branches 20, and VCC is the power supply voltage of the power supply terminal.

[0036] The temperature measurement principle of the NTC thermistor in the embodiment of this specification is as follows: By using the different resistance values of the high-precision NTC thermistor at different temperatures, and then performing ADC sampling and calculation on the voltage across the NTC thermistor, the temperature sensed by the NTC thermistor at this time can be accurately calculated. Therefore, in order to ensure the accuracy of the sampling calculation, it is necessary to ensure that the voltage across the NTC thermistor, the power supply voltage VCC of the power supply terminal, and the ground voltage of the ground terminal GND are relatively accurate. However, in the actual circuit, due to the circuit design of the main board, the capacitance size, and the specific placement position, etc., there will be deviations in the power supply voltage VCC and the ground voltage of the ground terminal GND. If this error is not eliminated or compensated during the calculation, then the calculation after ADC sampling will be off by a long shot.

[0037] Therefore, in view of this, the embodiment of this specification proposes a method that can perform ADC sampling on the power supply voltage VCC of the power supply terminal and the ground voltage of the ground terminal GND of the temperature measurement branch 20 at the same time, and perform corresponding compensation during the final calculation, so that the final temperature measurement can reach the theoretical design accuracy.

[0038] The following will continue to combine Figure 1 to introduce in detail how the embodiment of this specification compensates the actual measurement values of each temperature measurement branch 20.

[0039] Under ideal conditions, the values obtained after the AD conversion of the output voltages of the output terminals of each temperature measurement branch 20 through the ADC port 11 of the controller 10 are shown in the following formula:

[0040] ADC rti =(Vrti × 4095 / VCC) × GAIN (4)

[0041] Among them, ADC rtiis the integer value obtained after the AD conversion of the output voltage at the output end of the i-th temperature measurement branch 20 through the ADC port 11 of the controller 10. Vrti is the output voltage at the output end of the i-th temperature measurement branch 20, VCC is the power supply voltage at the power supply end, GAIN is the theoretical gain value, which is generally equal to 1. However, in fact, there are at least two errors in each temperature measurement branch 20. One is the ADC conversion accuracy error of the controller 10, and the other is a certain error in the bias between the power supply end and the ground end GND.

[0042] Therefore, in some embodiments, the controller 10 can first obtain the AD calibration gain coefficient and calibration bias number of the controller 10, and then, based on the AD calibration gain coefficient and calibration bias number of the controller 10, compensate the actual measurement values of each temperature measurement branch 20.

[0043] The formula for compensating the actual measurement values of each temperature measurement branch 20 is as follows:

[0044] adc rti =(Vrti×4095 / VCC)×ΔGAIN+ΔOFFSET (5)

[0045] where adc rti is the compensated measurement value of the i-th temperature measurement branch 20, ΔGAIN is the AD calibration gain coefficient of the controller 10, and ΔOFFSET is the calibration bias number obtained through testing.

[0046] The following will further introduce how to obtain the AD calibration gain coefficient and calibration bias number of the controller 10. In one embodiment, two channels ADC1 and ADC5 of the ADC can be first selected as the reference input channels, that is, the power supply end and the ground end GND are respectively connected to two of the ADC ports 11 of the controller 10, and the ADC conversion values are obtained by reading the corresponding results. Then, the AD calibration gain coefficient and calibration bias number of the controller 10 can be known by using the two sets of output values, and then the conversion data of other channels (such as Figure 1 the three temperature measurement channels ADC2, ADC3, and ADC4) are compensated by using these two values of the AD calibration gain coefficient and calibration bias number.

[0047] Specifically, the controller 10 can first obtain the actual measurement value of the power supply end and the actual measurement value of the ground end GND, and then, based on the actual measurement value of the power supply end and the actual measurement value of the ground end GND, as well as the theoretical value of the power supply end and the theoretical value of the ground end GND, obtain the AD calibration gain coefficient and calibration bias number of the controller 10.

[0048] For example, apply 3V (the bias voltage can be selected) to the ADC1 channel (i.e., the power supply terminal), and apply 0V (the bias voltage can be selected) to the ADC5 channel (i.e., the ground terminal GND). Therefore, the following can be obtained:

[0049] The theoretical value of the ADC1 channel (i.e., the power supply terminal): VADC3V = 3V × 4095 / 3.0 = 4095;

[0050] The theoretical value of the ADC5 channel (i.e., the ground terminal GND): VADC0V = 0V × 4095 / 3.0 = 0;

[0051] The actual measured value of the ADC1 channel (i.e., the power supply terminal) is VADC1;

[0052] The actual measured value of the ADC5 channel (i.e., the ground terminal GND) is VADC5;

[0053] Thus, the AD correction gain coefficient and correction offset number of the controller 10 can be obtained as follows:

[0054] ΔGAIN = (VADC3V - VADC0V) / (VADC1 - VADC5) (6)

[0055] ΔOFFSET = VADC5 × ΔGAIN - VADC0V (7)

[0056] Therefore, substituting formulas (6) and (7) into the above formula (5), the following can be obtained:

[0057]

[0058] In summary, after the above processing, the compensated measured values of each temperature measurement branch 20 can be obtained.

[0059] In some embodiments, the controller 10 can continuously obtain multiple (e.g., 10 times) actual measured values of each temperature measurement branch 20, and then, based on the multiple actual measured values of each temperature measurement branch 20 continuously obtained, obtain the actual measured value of each temperature measurement branch 20. In one embodiment, the controller 10 can remove the maximum and minimum values from the multiple actual measured values of each temperature measurement branch 20 and then calculate the average value, so as to finally obtain the actual measured value of each temperature measurement branch 20. Then, the actual measured values finally obtained for each temperature measurement branch 20 can be compensated according to the above formula, and thus the compensated measured values of each temperature measurement branch 20 can be obtained.

[0060] In some embodiments, the controller 10 can calculate the average value of the compensated measured values of all temperature measurement branches 20 (e.g., Figure 1 the three temperature measurement branches 20 in) to finally obtain the actual temperature measurement value.

[0061] The following will give a specific example to illustrate the comparison results of the actual temperature values measured in two cases: the compensation algorithm of the ear tag temperature measurement circuit 100 adopting the embodiments of this specification and the compensation algorithm of the ear tag temperature measurement circuit 100 not adopting the embodiments of this specification.

[0062] For example, the theoretical value of the power supply voltage is 3.3V, and the theoretical ADC acquisition count is 4095; the theoretical value of the power supply ground voltage is 0, and the theoretical ADC acquisition count is 0.

[0063] The specific data collected at around 25 degrees are as follows:

[0064] The actual acquisition value of the power supply voltage is 3.204V;

[0065] The actual acquisition value of the power supply ground voltage is 2mV;

[0066] The voltage value collected at the output end of the first temperature measurement branch is 624mV;

[0067] The voltage value collected at the output end of the second temperature measurement branch is 624mV;

[0068] The voltage value collected at the output end of the third temperature measurement branch is 623mV.

[0069] The actual acquisition value of the power supply voltage converted into the actual ADC acquisition count is

[0070] The actual acquisition value of the power supply ground voltage converted into the actual ADC acquisition count is

[0071] Therefore, it can be obtained that:

[0072] The AD correction gain coefficient ΔGAIN = (4095 - 0) / (3975.87 - 2.48) = 1.030306

[0073] The correction offset number ΔOFFSET = 2.48×1.030306 - 0 = 2.5559

[0074] According to the compensated voltage value conversion formula Y = X*ΔGAIN + ΔOFFSET, where X is the actually acquired voltage value and Y is the compensated voltage value, calculate the compensated voltage value at 25 degrees as follows:

[0075] Y = X*ΔGAIN + ΔOFFSET = 624*1.030306 + 2.5559 = 645.4668

[0076] Substitute the compensated voltage value data calculated above into the exponential curve formula:

[0077] y = -2.0687e-2 * x + 1.4220

[0078] Wherein, x is the temperature of the NTC thermistor, and y is the voltage value corresponding to the NTC thermistor at temperature x.

[0079] Thus, the temperature data can be obtained as 24.0419 degrees Celsius. Therefore, if the voltage value data actually collected is not calibrated, the obtained temperature value is 24.99 degrees Celsius, and the temperature after calibration is 24.04 degrees Celsius. Therefore, the calibration is (24.99 - 24.04) / 24.99 * 100% = 3.8%.

[0080] Therefore, by adopting the compensation algorithm of the ear tag temperature measurement circuit 100 in the embodiment of this specification, the temperature calibration accuracy can be improved by 3.8%.

[0081] Another embodiment of this specification also provides a temperature measurement method applied to an ear tag. The ear tag includes a controller 10 and at least two independent temperature measurement branches 20 connected to the controller 10. Figure 2 Discloses a flowchart of a temperature measurement method applied to an ear tag in an embodiment of this specification. As Figure 2 shown, a temperature measurement method applied to an ear tag in an embodiment of this specification may include steps S11 to S13.

[0082] In step S11, obtain the actual measurement value of each temperature measurement branch 20.

[0083] In some embodiments, obtaining the actual measurement value of each temperature measurement branch 20 in step S11 may include: continuously obtaining multiple actual measurement values of each temperature measurement branch 20; and obtaining the actual measurement value of each temperature measurement branch 20 based on the multiple actual measurement values of each temperature measurement branch 20 continuously obtained. In one embodiment, obtaining the actual measurement value of each temperature measurement branch 20 based on the multiple actual measurement values of each temperature measurement branch 20 continuously obtained may include: removing the maximum value and the minimum value from the multiple actual measurement values of each temperature measurement branch 20 and then taking the average to obtain the actual measurement value of each temperature measurement branch 20.

[0084] The output end of each temperature measurement branch 20 is connected to an ADC port 11 of the controller 10. Therefore, in some embodiments, obtaining the actual measurement value of each temperature measurement branch 20 in step S11 may include: obtaining the output value of each temperature measurement branch 20; and performing AD conversion on the output value of each temperature measurement branch 20 to obtain the converted value.

[0085] In step S12, compensate the actual measurement value of each temperature measurement branch 20 to obtain the compensated measurement value of each temperature measurement branch 20.

[0086] In some embodiments, compensating the actual measurement value of each temperature measurement branch 20 in step S12 includes obtaining the AD calibration gain coefficient and calibration offset number of the controller 10; and compensating the actual measurement value of each temperature measurement branch 20 based on the AD calibration gain coefficient and calibration offset number of the controller 10.

[0087] Each temperature measurement branch 20 is connected between the power supply terminal and the ground terminal GND. In some embodiments, obtaining the AD calibration gain coefficient and calibration offset number of the controller 10 may include: obtaining the actual measurement value of the power supply terminal and the actual measurement value of the ground terminal GND; and obtaining the AD calibration gain coefficient and calibration offset number of the controller 10 based on the actual measurement value of the power supply terminal and the actual measurement value of the ground terminal GND, as well as the theoretical value of the power supply terminal and the theoretical value of the ground terminal GND.

[0088] In step S13, the actual temperature measurement value is obtained based on the compensated measurement value of each temperature measurement branch 20.

[0089] In some embodiments, obtaining the actual temperature measurement value based on the compensated measurement value of each temperature measurement branch 20 in step S13 may include: averaging the compensated measurement values of all temperature measurement branches 20 to finally obtain the actual temperature measurement value.

[0090] For example, for Figure 1 the three temperature measurement branches 20, the actual measurement value ADC of the first temperature measurement branch 20 rt1 can be continuously obtained 10 times, and the average value is obtained after removing the maximum and minimum values The actual measurement value ADC of the second temperature measurement branch 20 rt2 can be continuously obtained 10 times, and the average value is obtained after removing the maximum and minimum values The actual measurement value ADC of the third temperature measurement branch 20 rt3 can be continuously obtained 10 times, and the average value is obtained after removing the maximum and minimum values Then, substituting the average value of the actual measurement value of the first temperature measurement branch 20 into the above compensation formula, the compensated measurement value of the first temperature measurement branch 20 can be obtained Similarly, substituting the average value of the actual measurement value of the second temperature measurement branch 20 into the above compensation formula, the compensated measurement value of the second temperature measurement branch 20 can be obtained Substituting the average value of the actual measurement value of the third temperature measurement branch 20 into the above compensation formula, the compensated measurement value of the third temperature measurement branch 20 can be obtained Finally, substituting the compensated measurement values adc of the three temperature measurement branches 20rt1 , adc rt2 and adc rt3 take the average value, so that the final measured value adc can be obtained rt .

[0091] The temperature measurement method applied to the ear tag in the embodiments of this specification can perform a certain compensation on the actual measured values measured by each temperature measurement branch 20 in multiple temperature measurement branches 20, so that the accuracy of the measured values of each temperature measurement branch 20 can be improved, and further the measurement accuracy of the finally obtained actual temperature measurement value can be improved.

[0092] Another embodiment of this specification also provides an ear tag. The ear tag includes the ear tag temperature measurement circuit 100 of each of the above embodiments. The ear tag of the embodiments of this specification can be worn on the ears of farm animals, such as pigs, etc., and can be used to accurately detect the body temperature of farm animals.

[0093] The ear tag of the embodiments of this specification has beneficial technical effects similar to those of the ear tag temperature measurement circuit 100 described in each of the above embodiments. Therefore, it will not be elaborated here.

[0094] The description of the above embodiments is only used to help understand the core idea of this specification. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the spirit and principle of this specification, several improvements and modifications can still be made to this specification, and these improvements and modifications should also fall within the protection scope of the claims proposed in this specification.

Claims

1. An ear tag temperature measurement circuit, which includes a controller (10) and at least two independent temperature measurement branches (20) connected to the controller (10), wherein, The controller (10) is configured to: Obtain the actual measurement value of each of the temperature measurement branches (20); Compensate the actual measurement value of each of the temperature measurement branches (20) to obtain the compensated measurement value of each of the temperature measurement branches (20); And Obtain the actual temperature measurement value based on the compensated measurement value of each of the temperature measurement branches (20), The controller (10) has a plurality of ADC ports (11), the output end of each of the temperature measurement branches (20) is connected to one of the ADC ports (11), the actual measurement value includes the value obtained by AD conversion of the output value of the temperature measurement branch (20), and each of the temperature measurement branches (20) is connected between the power supply end and the ground end, The power supply end and the ground end are respectively connected to two of the ADC ports (11) of the controller (10), and the controller (10) is configured to: obtain the actual measurement value of the power supply end and the actual measurement value of the ground end; obtain the AD correction gain coefficient and correction offset number of the controller (10) based on the actual measurement value of the power supply end and the actual measurement value of the ground end and the theoretical value of the power supply end and the theoretical value of the ground end; and compensate the actual measurement value of each of the temperature measurement branches (20) based on the AD correction gain coefficient and correction offset number of the controller (10).

2. The ear tag temperature measurement circuit according to claim 1, each of the temperature measurement branches (20) includes a variable resistance resistor and a fixed resistance resistor for voltage division, and the output end of the temperature measurement branch (20) is connected between the variable resistance resistor and the fixed resistance resistor.

3. The ear tag temperature measurement circuit according to claim 2, the variable resistance resistor includes an NTC thermistor.

4. The ear tag temperature measurement circuit according to claim 1, the controller (10) is configured to: Continuously obtain multiple actual measurement values of each of the temperature measurement branches (20); and Obtain the actual measurement value of each of the temperature measurement branches (20) based on the multiple actual measurement values of each of the temperature measurement branches (20) continuously obtained.

5. The ear tag temperature measurement circuit according to claim 4, the controller (10) is configured to: Remove the maximum value and the minimum value from the multiple actual measurement values of each of the temperature measurement branches (20) and then calculate the average value to obtain the actual measurement value of each of the temperature measurement branches (20).

6. The ear tag temperature measurement circuit according to claim 1, the controller (10) is configured to: Calculate the average value of the compensated measurement values of all the temperature measurement branches (20) to finally obtain the actual temperature measurement value.

7. A temperature measurement method applied to an ear tag, the ear tag includes a controller (10) and at least two independent temperature measurement branches (20) connected to the controller (10), the output end of each of the temperature measurement branches (20) is connected to an ADC port (11) of the controller (10), and each of the temperature measurement branches (20) is connected between the power supply end and the ground end, the method includes: Obtain the actual measurement value of each of the temperature measurement branches (20), which includes obtaining the output value of each of the temperature measurement branches (20); And perform AD conversion on the output value of each of the temperature measurement branches (20) to obtain the converted value; Compensate the actual measurement value of each of the temperature measurement branches (20) to obtain the compensated measurement value of each of the temperature measurement branches (20). The compensation for the actual measurement value of each of the temperature measurement branches (20) includes: obtaining the actual measurement value of the power supply terminal and the actual measurement value of the ground terminal; Obtain the AD correction gain coefficient and correction bias number of the controller (10) based on the actual measurement value of the power supply terminal, the actual measurement value of the ground terminal, the theoretical value of the power supply terminal, and the theoretical value of the ground terminal; and compensate the actual measurement value of each of the temperature measurement branches (20) based on the AD correction gain coefficient and correction bias number of the controller (10); and Obtain the actual temperature measurement value based on the compensated measurement value of each of the temperature measurement branches (20).

8. The temperature measurement method according to claim 7, wherein the obtaining of the actual measurement value of each of the temperature measurement branches (20) includes: Continuously obtain multiple actual measurement values of each of the temperature measurement branches (20); And Obtain the actual measurement value of each of the temperature measurement branches (20) based on the multiple actual measurement values of each of the temperature measurement branches (20) continuously obtained.

9. The temperature measurement method according to claim 8, wherein the obtaining of the actual measurement value of each of the temperature measurement branches (20) based on the multiple actual measurement values of each of the temperature measurement branches (20) continuously obtained includes: Remove the maximum value and the minimum value from the multiple actual measurement values of each of the temperature measurement branches (20) and then calculate the average value to obtain the actual measurement value of each of the temperature measurement branches (20).

10. The temperature measurement method according to claim 7, wherein the obtaining of the actual temperature measurement value based on the compensated measurement value of each of the temperature measurement branches (20) includes: Calculate the average value of the compensated measurement values of all the temperature measurement branches (20) to finally obtain the actual temperature measurement value.

11. An ear tag, which includes the ear tag temperature measurement circuit (100) according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Body temperature measurement device and measurement method thereof

    CN105852821A