CN108088472A - Signal sampling device, method and electrical equipment - Google Patents
Signal sampling device, method and electrical equipment Download PDFInfo
- Publication number
- CN108088472A CN108088472A CN201711297804.2A CN201711297804A CN108088472A CN 108088472 A CN108088472 A CN 108088472A CN 201711297804 A CN201711297804 A CN 201711297804A CN 108088472 A CN108088472 A CN 108088472A
- Authority
- CN
- China
- Prior art keywords
- signal
- analog
- sensor unit
- power supply
- digital conversion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D3/00—Indicating or recording apparatus with provision for the special purposes referred to in the subgroups
- G01D3/028—Indicating or recording apparatus with provision for the special purposes referred to in the subgroups mitigating undesired influences, e.g. temperature, pressure
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measuring Fluid Pressure (AREA)
Abstract
本发明公开了一种信号采样装置、方法和电器设备,其中,信号采样装置包括:传感器单元,传感器单元包括供电端,传感器单元通过实时检测待测参数以输出检测信号;模数转换单元,模数转换单元与传感器单元相连,模数转换单元包括基准参考电压端,基准参考电压端与传感器单元的供电端相连后与预设的参考电源相连,模数转换单元通过对检测信号进行模数转换以输出数字信号;微控制单元,微控制单元与模数转换单元相连,微控制单元根据数字信号获取待测参数的实际信号值。该装置的模数转换单元的基准参考电压和传感器单元使用共同的供电电源供电,从而可以使测量结果不受参考电源的影响,大大提高了测量精度,且成本较低。
The invention discloses a signal sampling device, method and electrical equipment, wherein the signal sampling device includes: a sensor unit, the sensor unit includes a power supply terminal, and the sensor unit outputs a detection signal by detecting parameters to be measured in real time; an analog-to-digital conversion unit, an analog The digital conversion unit is connected to the sensor unit. The analog-to-digital conversion unit includes a reference voltage terminal. The reference voltage terminal is connected to the power supply terminal of the sensor unit and then connected to a preset reference power supply. The analog-to-digital conversion unit performs analog-to-digital conversion on the detection signal. to output digital signals; the micro control unit is connected with the analog-to-digital conversion unit, and the micro control unit obtains the actual signal value of the parameter to be measured according to the digital signal. The base reference voltage of the analog-to-digital conversion unit of the device and the sensor unit are powered by a common power supply, so that the measurement result is not affected by the reference power supply, the measurement accuracy is greatly improved, and the cost is low.
Description
技术领域technical field
本发明涉及电器技术领域,特别涉及一种信号采样装置、一种电器设备和一种信号采样方法。The invention relates to the technical field of electrical appliances, in particular to a signal sampling device, an electrical device and a signal sampling method.
背景技术Background technique
相关技术中,信号采样装置一般采用如图1所示的结构。ADC(Analog-to-DigitalConverte,模数转换器)采集传感器单元输出的检测信号(电压信号或电流信号),MCU(Microcontroller Unit,微控制单元)根据ADC输出的检测信号输出测量值。In the related art, the signal sampling device generally adopts the structure shown in FIG. 1 . The ADC (Analog-to-Digital Converter, analog-to-digital converter) collects the detection signal (voltage signal or current signal) output by the sensor unit, and the MCU (Microcontroller Unit, micro control unit) outputs the measured value according to the detection signal output by the ADC.
其中,如图1所示,ADC的基准参考电压和传感器单元分别有对应的供电电源(VCC1和VCC2)。ADC的测量结果与基准参考电压的供电电源VCC1的精度、稳定度有直接关系,传感器单元的输出结果和其供电电源VCC2的精度、稳定度有直接关系,因此,MCU输出的测量值的测量精度受VCC1和VCC2的精度与稳定度的影响。Wherein, as shown in FIG. 1 , the reference voltage of the ADC and the sensor unit have corresponding power supplies (VCC1 and VCC2 ), respectively. The measurement results of the ADC are directly related to the accuracy and stability of the power supply VCC1 of the reference voltage, and the output results of the sensor unit are directly related to the accuracy and stability of the power supply VCC2. Therefore, the measurement accuracy of the measured value output by the MCU Affected by the accuracy and stability of VCC1 and VCC2.
为了提高测量精度,虽然可以使用更高精度和稳定度的供电电源,但采用该方式的测量精度提升也是有限的,且会增加硬件设计成本。In order to improve the measurement accuracy, although a power supply with higher accuracy and stability can be used, the improvement of the measurement accuracy by this method is also limited, and the cost of hardware design will be increased.
发明内容Contents of the invention
本发明是基于发明人对以下问题的认识和研究做出的:The present invention is based on the inventor's understanding and research on the following issues:
相关技术中,如图1所示,信号采样装置可以包括传感器单元、ADC和MCU,传感器单元采集待测参数(压力、温度等)的强弱,并输出电信号VO至ADC。ADC根据电信号VO以代码的形式输出数字信号OUTCOAD给MCU,以使MCU根据数字信号获取待测参数的实际信号值Vm。In the related art, as shown in FIG. 1 , the signal sampling device may include a sensor unit, an ADC and an MCU. The sensor unit collects the intensity of the parameters to be measured (pressure, temperature, etc.) and outputs an electrical signal VO to the ADC. The ADC outputs the digital signal OUTCOAD to the MCU in the form of codes according to the electrical signal VO, so that the MCU can obtain the actual signal value Vm of the parameter to be measured according to the digital signal.
一般情况下,VO与VCC2的比值乘以量程即为待测参数的实际信号值Vm,即:In general, the ratio of VO to VCC2 multiplied by the range is the actual signal value Vm of the parameter to be measured, namely:
Vm=(VO/V2)*A (1)Vm=(VO/V2)*A (1)
其中,Vm为待测参数的实际信号值(如压力值、温度值等),VO为传感器单元的输出的电信号,A为传感器单元的满量程输出值,V2为传感器单元的供电电源的电压值。Among them, Vm is the actual signal value of the parameter to be measured (such as pressure value, temperature value, etc.), VO is the electrical signal output by the sensor unit, A is the full-scale output value of the sensor unit, and V2 is the voltage of the power supply of the sensor unit value.
而传感器单元的输出的电信号VO一般满足以下公式(2):The electrical signal VO output by the sensor unit generally satisfies the following formula (2):
VO=(OUTCODE/ACODE)*V1 (2)VO=(OUTCODE/ACODE)*V1 (2)
其中,VO为传感器单元的输出的电信号,OUTCODE为数字信号,ACODE为满量程数字信号输出值,V1为ADC的基准参考电压的供电电源的电压值。很显然,ADC的基准参考电压的供电电源VCC1的稳定性和精度决定MCU采集到数字信号OUTCODE的稳定性和精度。Wherein, VO is the electrical signal output by the sensor unit, OUTCODE is the digital signal, ACODE is the full-scale digital signal output value, and V1 is the voltage value of the power supply of the reference voltage of the ADC. Obviously, the stability and precision of the power supply VCC1 of the reference voltage of the ADC determine the stability and precision of the digital signal OUTCODE collected by the MCU.
将公式(2)代入公式(1)可得以下公式(3):Substituting formula (2) into formula (1) yields the following formula (3):
其中,Vm为待测参数的实际信号值,OUTCODE为数字信号,ACODE为满量程数字信号输出值,V1为ADC的基准参考电压的供电电源的电压值,V2为传感器单元的供电电源的电压值。Among them, Vm is the actual signal value of the parameter to be measured, OUTCODE is the digital signal, ACODE is the full-scale digital signal output value, V1 is the voltage value of the power supply of the reference voltage of the ADC, and V2 is the voltage value of the power supply of the sensor unit .
由公式(3)可知,待测参数的实际信号值Vm的测量精度受VCC1和VCC2的精度与稳定度的影响。实际应用中,VCC1和VCC2的纹波、温度系数、零点漂移等均会对VCC1和VCC2的精度与稳定度构成影响,从而会导致测量结果不准确。It can be seen from formula (3) that the measurement accuracy of the actual signal value Vm of the parameter to be measured is affected by the accuracy and stability of VCC1 and VCC2. In practical applications, the ripple, temperature coefficient, and zero drift of VCC1 and VCC2 will affect the accuracy and stability of VCC1 and VCC2, which will lead to inaccurate measurement results.
本发明旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本发明的第一个目的在于提出一种信号采样装置,该装置的模数转换单元的基准参考电压和传感器单元使用共同的供电电源供电,从而可以使测量结果不受参考电源的影响,大大提高了测量精度,且成本较低。The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, the first object of the present invention is to propose a signal sampling device, the reference voltage of the analog-to-digital conversion unit of the device and the sensor unit are powered by a common power supply, so that the measurement results will not be affected by the reference power supply , greatly improving the measurement accuracy, and the cost is low.
本发明的第二个目的在于提出一种电器设备。A second object of the present invention is to propose an electrical device.
本发明的第三个目的在于提出一种信号采样方法。The third object of the present invention is to provide a signal sampling method.
为达到上述目的,本发明第一方面实施例提出了一种信号采样装置,包括:传感器单元,所述传感器单元包括供电端,所述传感器单元通过实时检测待测参数以输出检测信号;模数转换单元,所述模数转换单元与所述传感器单元相连,所述模数转换单元包括基准参考电压端,所述基准参考电压端与所述传感器单元的供电端相连后与预设的参考电源相连,所述模数转换单元通过对所述检测信号进行模数转换以输出数字信号;微控制单元,所述微控制单元与所述模数转换单元相连,所述微控制单元根据所述数字信号获取所述待测参数的实际信号值。In order to achieve the above object, the embodiment of the first aspect of the present invention proposes a signal sampling device, including: a sensor unit, the sensor unit includes a power supply terminal, and the sensor unit outputs a detection signal by detecting the parameter to be measured in real time; A conversion unit, the analog-to-digital conversion unit is connected to the sensor unit, the analog-to-digital conversion unit includes a reference voltage terminal, and the reference voltage terminal is connected to the power supply terminal of the sensor unit and then connected to a preset reference power supply Connected, the analog-to-digital conversion unit outputs a digital signal by performing analog-to-digital conversion on the detection signal; a micro-control unit, the micro-control unit is connected to the analog-to-digital conversion unit, and the micro-control unit The signal acquires the actual signal value of the parameter to be measured.
根据本发明实施例的信号采样装置,通过传感器单元实时检测待测参数以输出检测信号,模数转换单元包的基准参考电压端与传感器单元的供电端相连后与预设的参考电源相连,模数转换单元对检测信号进行模数转换以输出数字信号,微控制单元根据数字信号获取待测参数的实际信号值。由此,该装置的模数转换单元的基准参考电压和传感器单元使用共同的供电电源供电,从而可以使测量结果不受参考电源的影响,大大提高了测量精度,且成本较低。According to the signal sampling device of the embodiment of the present invention, the sensor unit detects the parameter to be measured in real time to output the detection signal, the reference voltage terminal of the analog-to-digital conversion unit package is connected to the power supply terminal of the sensor unit and then connected to the preset reference power supply, and the analog The digital conversion unit performs analog-to-digital conversion on the detection signal to output a digital signal, and the micro-control unit obtains the actual signal value of the parameter to be measured according to the digital signal. Therefore, the reference voltage of the analog-to-digital conversion unit of the device and the sensor unit are powered by a common power supply, so that the measurement result is not affected by the reference power supply, the measurement accuracy is greatly improved, and the cost is low.
另外,根据本发明上述实施例提出的信号采样装置还可以具有如下附加技术特征:In addition, the signal sampling device proposed according to the above-mentioned embodiments of the present invention may also have the following additional technical features:
根据本发明的一个实施例,所述传感器单元包括温度传感器和/或压力传感器。According to an embodiment of the present invention, the sensor unit comprises a temperature sensor and/or a pressure sensor.
根据本发明的一个实施例,所述待测参数包括温度和/或压力。According to an embodiment of the present invention, the parameters to be measured include temperature and/or pressure.
根据本发明的一个实施例,所述检测信号为电压信号或电流信号。According to an embodiment of the present invention, the detection signal is a voltage signal or a current signal.
根据本发明的一个实施例,所述待测参数的实际信号值满足以下公式:Vm=(OUTCODE/ACODE)*A,其中,Vm为所述待测参数的实际信号值,OUTCODE为所述数字信号,ACODE为满量程数字信号输出值,A为满量程输出值。According to an embodiment of the present invention, the actual signal value of the parameter to be measured satisfies the following formula: Vm=(OUTCODE/ACODE)*A, wherein, Vm is the actual signal value of the parameter to be measured, and OUTCODE is the digital Signal, ACODE is the full-scale digital signal output value, and A is the full-scale output value.
为达到上述目的,本发明第二方面实施例提出了一种电器设备,其包括本发明第一方面实施例所述的信号采样装置。To achieve the above purpose, the embodiment of the second aspect of the present invention provides an electrical device, which includes the signal sampling device described in the embodiment of the first aspect of the present invention.
本发明实施例的电器设备,通过上述的信号采样装置,模数转换单元的基准参考电压和传感器单元使用共同的供电电源供电,从而可以使测量结果不受供电电源的影响,大大提高了测量精度,且成本较低。In the electrical equipment of the embodiment of the present invention, through the above-mentioned signal sampling device, the reference voltage of the analog-to-digital conversion unit and the sensor unit are powered by a common power supply, so that the measurement result is not affected by the power supply, and the measurement accuracy is greatly improved. , and the cost is lower.
为达到上述目的,本发明第三方面实施例提出了一种信号采样方法,包括以下步骤:通过传感器单元实时检测待测参数以输出检测信号,其中,所述传感器单元包括供电端;通过模数转换单元对所述检测信号进行模数转换以输出数字信号,其中,所述模数转换单元包括基准参考电压端,所述基准参考电压端与所述传感器单元的供电端相连后与预设的参考电源相连;根据所述数字信号获取所述待测参数的实际信号值。In order to achieve the above object, the embodiment of the third aspect of the present invention proposes a signal sampling method, including the following steps: through the sensor unit to detect the parameter to be measured in real time to output the detection signal, wherein the sensor unit includes a power supply terminal; The conversion unit performs analog-to-digital conversion on the detection signal to output a digital signal, wherein the analog-to-digital conversion unit includes a reference voltage terminal, and the reference voltage terminal is connected to the power supply terminal of the sensor unit and then connected to a preset The reference power supply is connected; the actual signal value of the parameter to be measured is obtained according to the digital signal.
根据本发明实施例的信号采样方法,首先,通过传感器单元实时检测待测参数以输出检测信号,再通过模数转换单元对检测信号进行模数转换以输出数字信号,模数转换单元的基准参考电压端与传感器单元的供电端相连后与预设的参考电源相连,最后,根据数字信号获取待测参数的实际信号值。由此,该方法可以使测量结果不受供电电源的影响,大大提高了测量精度,且成本较低。According to the signal sampling method of the embodiment of the present invention, firstly, the parameter to be measured is detected in real time by the sensor unit to output the detection signal, and then the detection signal is converted by the analog-to-digital conversion unit to output a digital signal, and the reference reference of the analog-to-digital conversion unit The voltage terminal is connected to the power supply terminal of the sensor unit and then connected to the preset reference power supply. Finally, the actual signal value of the parameter to be measured is obtained according to the digital signal. Therefore, the method can make the measurement result not be affected by the power supply, greatly improves the measurement accuracy, and has low cost.
另外,根据本发明上述实施例提出的信号采样方法还可以具有如下附加技术特征:In addition, the signal sampling method proposed according to the above-mentioned embodiments of the present invention may also have the following additional technical features:
根据本发明的一个实施例,所述传感器单元包括温度传感器和/或压力传感器,所述待测参数包括温度和/或压力。According to an embodiment of the present invention, the sensor unit includes a temperature sensor and/or a pressure sensor, and the parameter to be measured includes temperature and/or pressure.
根据本发明的一个实施例,所述检测信号为电压信号或电流信号。According to an embodiment of the present invention, the detection signal is a voltage signal or a current signal.
根据本发明的一个实施例,所述待测参数的实际信号值满足以下公式:Vm=(OUTCODE/ACODE)*A,其中,Vm为所述待测参数的实际信号值,OUTCODE为所述数字信号,ACODE为满量程数字信号输出值,A为满量程输出值。According to an embodiment of the present invention, the actual signal value of the parameter to be measured satisfies the following formula: Vm=(OUTCODE/ACODE)*A, wherein, Vm is the actual signal value of the parameter to be measured, and OUTCODE is the digital Signal, ACODE is the full-scale digital signal output value, and A is the full-scale output value.
附图说明Description of drawings
本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中,The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein,
图1是相关技术中信号采样装置的方框示意图;Fig. 1 is a schematic block diagram of a signal sampling device in the related art;
图2是根据本发明一个实施例的信号采样装置的方框示意图;以及Fig. 2 is a schematic block diagram of a signal sampling device according to an embodiment of the present invention; and
图3是根据本发明一个实施例的信号采样方法的流程图。Fig. 3 is a flowchart of a signal sampling method according to an embodiment of the present invention.
具体实施方式Detailed ways
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.
下面参考附图描述本发明实施例的信号采样装置、电器设备和信号采样方法。The following describes the signal sampling device, electrical equipment and signal sampling method of the embodiments of the present invention with reference to the accompanying drawings.
图2是根据本发明一个实施例的信号采样装置的方框示意图。如图2所示,该装置包括:传感器单元10、模数转换单元20和微控制单元30。Fig. 2 is a schematic block diagram of a signal sampling device according to an embodiment of the present invention. As shown in FIG. 2 , the device includes: a sensor unit 10 , an analog-to-digital conversion unit 20 and a micro control unit 30 .
其中,传感器单元10包括供电端U1,传感器单元10通过实时检测待测参数以输出检测信号VO。模数转换单元20与传感器单元10相连,模数转换单元20包括基准参考电压端U2,基准参考电压端U2与传感器单元的供电端U1相连后与预设的参考电源VCC相连,模数转换单元20通过对检测信号VO进行模数转换以输出数字信号OUTCOAD。微控制单元30与模数转换单元20相连,微控制单元30根据数字信号获取待测参数的实际信号值Vm。Wherein, the sensor unit 10 includes a power supply terminal U1, and the sensor unit 10 outputs a detection signal VO by detecting the parameter to be measured in real time. The analog-to-digital conversion unit 20 is connected to the sensor unit 10, and the analog-to-digital conversion unit 20 includes a reference voltage terminal U2. The reference voltage terminal U2 is connected to the power supply terminal U1 of the sensor unit and then connected to the preset reference power supply VCC. The analog-to-digital conversion unit 20 outputs a digital signal OUTCOAD by performing analog-to-digital conversion on the detection signal VO. The micro control unit 30 is connected with the analog-to-digital conversion unit 20, and the micro control unit 30 obtains the actual signal value Vm of the parameter to be measured according to the digital signal.
在本发明的实施例中,检测信号可以为电压信号或电流信号。待测参数的实际信号值Vm满足以下公式(4):In an embodiment of the present invention, the detection signal may be a voltage signal or a current signal. The actual signal value Vm of the parameter to be measured satisfies the following formula (4):
Vm=(OUTCODE/ACODE)*A (4)Vm=(OUTCODE/ACODE)*A (4)
其中,Vm为待测参数的实际信号值,OUTCODE为数字信号,ACODE为满量程数字信号输出值,A为满量程输出值。Among them, Vm is the actual signal value of the parameter to be measured, OUTCODE is the digital signal, ACODE is the full-scale digital signal output value, and A is the full-scale output value.
具体地,待测参数的实际信号值Vm一般满足以下公式(1):Specifically, the actual signal value Vm of the parameter to be measured generally satisfies the following formula (1):
Vm=(VO/V2)*A (1)Vm=(VO/V2)*A (1)
其中,Vm为待测参数的实际信号值(如压力值、温度值等),VO为传感器单元的输出的电信号,A为传感器单元的满量程输出值,V2为传感器单元的供电电源的电压值。Among them, Vm is the actual signal value of the parameter to be measured (such as pressure value, temperature value, etc.), VO is the electrical signal output by the sensor unit, A is the full-scale output value of the sensor unit, and V2 is the voltage of the power supply of the sensor unit value.
而传感器单元的输出的电信号VO一般满足以下公式(2):The electrical signal VO output by the sensor unit generally satisfies the following formula (2):
VO=(OUTCODE/ACODE)*V1 (2)VO=(OUTCODE/ACODE)*V1 (2)
其中,VO为传感器单元的输出的电信号,OUTCODE为数字信号,ACODE为满量程数字信号输出值,V1为ADC(模数转换单元20)的基准参考电压的供电电源的电压值。很显然,ADC(模数转换单元20)的基准参考电压的供电电源VCC1的稳定性和精度决定MCU(微控制单元30)采集到数字信号OUTCODE的稳定性和精度。Wherein, VO is the electrical signal output by the sensor unit, OUTCODE is a digital signal, ACODE is a full-scale digital signal output value, and V1 is the voltage value of the power supply for the reference voltage of the ADC (analog-to-digital conversion unit 20). Apparently, the stability and precision of the power supply VCC1 of the reference voltage of the ADC (analog-to-digital conversion unit 20 ) determine the stability and precision of the digital signal OUTCODE collected by the MCU (micro control unit 30 ).
将公式(2)代入公式(1)可得以下公式(3):Substituting formula (2) into formula (1) yields the following formula (3):
其中,Vm为待测参数的实际信号值,OUTCODE为数字信号,ACODE为满量程数字信号输出值,V1为模数转换单元20(ADC)的基准参考电压的供电电源的电压值,V2为传感器单元10的供电电源的电压值。Wherein, Vm is the actual signal value of the parameter to be measured, OUTCODE is a digital signal, ACODE is a full-scale digital signal output value, V1 is the voltage value of the power supply of the reference voltage of the analog-to-digital conversion unit 20 (ADC), and V2 is the sensor The voltage value of the power supply of the unit 10.
而在本发明的实施例中,如图2所示,传感器单元10和模数转换单元20使用共同的参考电源VCC供电,即V1=V2,因此,待测参数的实际信号值Vm满足以下公式(4):In the embodiment of the present invention, as shown in FIG. 2, the sensor unit 10 and the analog-to-digital conversion unit 20 are powered by a common reference power supply VCC, that is, V1=V2. Therefore, the actual signal value Vm of the parameter to be measured satisfies the following formula (4):
Vm=(OUTCODE/ACODE)*A (4)Vm=(OUTCODE/ACODE)*A (4)
其中,Vm为待测参数的实际信号值,OUTCODE为数字信号,ACODE为满量程数字信号输出值,A为满量程输出值。Among them, Vm is the actual signal value of the parameter to be measured, OUTCODE is the digital signal, ACODE is the full-scale digital signal output value, and A is the full-scale output value.
由公式(4)可知,待测参数的实际信号值Vm不受传感器单元10的供电电源和模数转换单元20的基准参考电压的供电电源影响,从而可以避免由于供电电源的纹波、温度系数、零点漂移等对测量结果的精度与稳定度构成影响,无需配备更高精度和稳定度的供电电源,不仅可以提高测量精度,还可以减小硬件开销,节约成本。It can be seen from formula (4) that the actual signal value Vm of the parameter to be measured is not affected by the power supply of the sensor unit 10 and the reference voltage of the analog-to-digital conversion unit 20, thereby avoiding the ripple and temperature coefficient of the power supply. , zero drift, etc. will affect the accuracy and stability of the measurement results, and there is no need to equip a power supply with higher accuracy and stability, which can not only improve the measurement accuracy, but also reduce hardware expenses and save costs.
需要说明的是,在本发明的实施例中,传感器单元10可以包括温度传感器和/或压力传感器,待测参数可以包括温度和/或压力。当然,传感器单元10也可以包括速度传感器、液位传感器、加速度传感器等,待测参数也可以包括速度、液位、加速度等,此处不做具体限制。It should be noted that, in the embodiment of the present invention, the sensor unit 10 may include a temperature sensor and/or a pressure sensor, and the parameters to be measured may include temperature and/or pressure. Of course, the sensor unit 10 may also include a speed sensor, a liquid level sensor, an acceleration sensor, etc., and the parameters to be measured may also include speed, liquid level, acceleration, etc., which are not specifically limited here.
根据本发明实施例的信号采样装置,通过传感器单元实时检测待测参数以输出检测信号,模数转换单元包的基准参考电压端与传感器单元的供电端相连后与预设的参考电源相连,模数转换单元对检测信号进行模数转换以输出数字信号,微控制单元根据数字信号获取待测参数的实际信号值。由此,该装置的模数转换单元的基准参考电压和传感器单元使用共同的供电电源供电,从而可以使测量结果不受参考电源的影响,大大提高了测量精度,且成本较低。According to the signal sampling device of the embodiment of the present invention, the sensor unit detects the parameter to be measured in real time to output the detection signal, the reference voltage terminal of the analog-to-digital conversion unit package is connected to the power supply terminal of the sensor unit and then connected to the preset reference power supply, and the analog The digital conversion unit performs analog-to-digital conversion on the detection signal to output a digital signal, and the micro-control unit obtains the actual signal value of the parameter to be measured according to the digital signal. Therefore, the reference voltage of the analog-to-digital conversion unit of the device and the sensor unit are powered by a common power supply, so that the measurement result is not affected by the reference power supply, the measurement accuracy is greatly improved, and the cost is low.
此外,本发明的实施例还提出一种电器设备,其包括上述的信号采样装置。In addition, an embodiment of the present invention also proposes an electrical device, which includes the above-mentioned signal sampling device.
本发明实施例的电器设备,通过上述的信号采样装置,传感器单元和模数转换单元使用共同的参考电源供电,从而可以使测量结果不受供电电源的影响,大大提高了测量精度,且成本较低。In the electrical equipment of the embodiment of the present invention, through the above-mentioned signal sampling device, the sensor unit and the analog-to-digital conversion unit are powered by a common reference power supply, so that the measurement result is not affected by the power supply, the measurement accuracy is greatly improved, and the cost is relatively low. Low.
图3是根据本发明一个实施例的信号采样方法的流程图。如图3所示,该信号采样方法包括以下步骤:Fig. 3 is a flowchart of a signal sampling method according to an embodiment of the present invention. As shown in Figure 3, the signal sampling method includes the following steps:
S1,通过传感器单元实时检测待测参数以输出检测信号VO。S1, the parameter to be measured is detected in real time by the sensor unit to output a detection signal VO.
其中,传感器单元可以包括温度传感器和/或压力传感器,待测参数可以包括温度和/或压力。当然,传感器单元也可以包括速度传感器、液位传感器、加速度传感器等,待测参数也可以包括速度、液位、加速度等,此处不做具体地限制。Wherein, the sensor unit may include a temperature sensor and/or a pressure sensor, and the parameter to be measured may include temperature and/or pressure. Of course, the sensor unit may also include a speed sensor, a liquid level sensor, an acceleration sensor, etc., and the parameters to be measured may also include speed, liquid level, acceleration, etc., which are not specifically limited here.
检测信号VO可以为电压信号或电流信号。The detection signal VO can be a voltage signal or a current signal.
S2,通过模数转换单元对检测信号进行模数转换以输出数字信号OUTCOAD。其中,如图2所示,模数转换单元包括基准参考电压端,基准参考电压端与传感器单元的供电端相连后与预设的参考电源VCC相连。S2, performing analog-to-digital conversion on the detection signal through an analog-to-digital conversion unit to output a digital signal OUTCOAD. Wherein, as shown in FIG. 2 , the analog-to-digital conversion unit includes a reference voltage terminal, which is connected to a power supply terminal of the sensor unit and then connected to a preset reference power supply VCC.
S3,根据数字信号OUTCOAD获取待测参数的实际信号值Vm。S3, acquiring the actual signal value Vm of the parameter to be measured according to the digital signal OUTCOAD.
在本发明的实施例中,待测参数的实际信号值满足以下公式(4):In an embodiment of the present invention, the actual signal value of the parameter to be measured satisfies the following formula (4):
Vm=(OUTCODE/ACODE)*A (4)Vm=(OUTCODE/ACODE)*A (4)
其中,Vm为待测参数的实际信号值,OUTCODE为数字信号,ACODE为满量程数字信号输出值,A为满量程输出值。Among them, Vm is the actual signal value of the parameter to be measured, OUTCODE is the digital signal, ACODE is the full-scale digital signal output value, and A is the full-scale output value.
具体地,待测参数的实际信号值Vm一般满足以下公式(1):Specifically, the actual signal value Vm of the parameter to be measured generally satisfies the following formula (1):
Vm=(VO/V2)*A (1)Vm=(VO/V2)*A (1)
其中,Vm为待测参数的实际信号值(如压力值、温度值等),VO为传感器单元的输出的电信号,A为传感器单元的满量程输出值,V2为传感器单元的供电电源的电压值。Among them, Vm is the actual signal value of the parameter to be measured (such as pressure value, temperature value, etc.), VO is the electrical signal output by the sensor unit, A is the full-scale output value of the sensor unit, and V2 is the voltage of the power supply of the sensor unit value.
传感器单元的输出的电信号VO一般满足以下公式(2):The electrical signal VO output by the sensor unit generally satisfies the following formula (2):
VO=(OUTCODE/ACODE)*V1 (2)VO=(OUTCODE/ACODE)*V1 (2)
其中,VO为传感器单元的输出的电信号,OUTCODE为数字信号,ACODE为满量程数字信号输出值,V1为模数转换单元(ADC)的基准参考电压的供电电源的电压值。很显然,模数转换单元(ADC)的基准参考电压的供电电源VCC1的稳定性和精度决定微控制单元(MCU)采集到数字信号OUTCODE的稳定性和精度。Wherein, VO is an electrical signal output by the sensor unit, OUTCODE is a digital signal, ACODE is a full-scale digital signal output value, and V1 is a voltage value of a power supply for a reference voltage of an analog-to-digital conversion unit (ADC). Obviously, the stability and precision of the power supply VCC1 of the reference voltage of the analog-to-digital conversion unit (ADC) determine the stability and precision of the digital signal OUTCODE collected by the microcontroller unit (MCU).
将公式(2)代入公式(1)可得以下公式(3):Substituting formula (2) into formula (1) yields the following formula (3):
其中,Vm为待测参数的实际信号值,OUTCODE为数字信号,ACODE为满量程数字信号输出值,V1为模数转换单元(ADC)的基准参考电压的供电电源的电压值,V2为传感器单元的供电电源的电压值。Among them, Vm is the actual signal value of the parameter to be measured, OUTCODE is the digital signal, ACODE is the full-scale digital signal output value, V1 is the voltage value of the power supply of the reference voltage of the analog-to-digital conversion unit (ADC), and V2 is the sensor unit The voltage value of the power supply.
而在本发明的实施例中,如图2所示,传感器单元和模数转换单元使用共同的参考电源VCC供电,即V1=V2,因此,待测参数的实际信号值Vm满足以下公式(4):In an embodiment of the present invention, as shown in Figure 2, the sensor unit and the analog-to-digital conversion unit use a common reference power supply VCC to supply power, that is, V1=V2, therefore, the actual signal value Vm of the parameter to be measured satisfies the following formula (4 ):
Vm=(OUTCODE/ACODE)*A (4)Vm=(OUTCODE/ACODE)*A (4)
其中,Vm为待测参数的实际信号值,OUTCODE为数字信号,ACODE为满量程数字信号输出值,A为满量程输出值。Among them, Vm is the actual signal value of the parameter to be measured, OUTCODE is the digital signal, ACODE is the full-scale digital signal output value, and A is the full-scale output value.
由公式(4)可知,待测参数的实际信号值Vm不受传感器单元的供电电源和模数转换单元的基准参考电压的供电电源影响,从而可以避免由于供电电源的纹波、温度系数、零点漂移等对测量结果的精度与稳定度构成影响,无需配备更高精度和稳定度的供电电源,不仅可以提高测量精度,还可以减小硬件开销,节约成本。It can be seen from formula (4) that the actual signal value Vm of the parameter to be measured is not affected by the power supply of the sensor unit and the reference voltage of the analog-to-digital conversion unit, so that the ripple, temperature coefficient, and zero point of the power supply can be avoided. Drift, etc. affect the accuracy and stability of the measurement results, and there is no need to equip a power supply with higher accuracy and stability, which can not only improve the measurement accuracy, but also reduce hardware overhead and save costs.
根据本发明实施例的信号采样方法,首先,通过传感器单元实时检测待测参数以输出检测信号,再通过模数转换单元对检测信号进行模数转换以输出数字信号,模数转换单元的基准参考电压端与传感器单元的供电端相连后与预设的参考电源相连,最后,根据数字信号获取待测参数的实际信号值。由此,该方法可以使测量结果不受参考电源的影响,大大提高了测量精度,且成本较低。According to the signal sampling method of the embodiment of the present invention, firstly, the parameter to be measured is detected in real time by the sensor unit to output the detection signal, and then the detection signal is converted by the analog-to-digital conversion unit to output a digital signal, and the reference reference of the analog-to-digital conversion unit The voltage terminal is connected to the power supply terminal of the sensor unit and then connected to the preset reference power supply. Finally, the actual signal value of the parameter to be measured is obtained according to the digital signal. Therefore, the method can make the measurement result not be affected by the reference power supply, greatly improves the measurement accuracy, and has low cost.
在本发明的描述中,需要理解的是,术语“中心”、“纵向”、“横向”、“长度”、“宽度”、“厚度”、“上”、“下”、“前”、“后”、“左”、“右”、“竖直”、“水平”、“顶”、“底”“内”、“外”、“顺时针”、“逆时针”、“轴向”、“径向”、“周向”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In describing the present invention, it should be understood that the terms "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", " Back", "Left", "Right", "Vertical", "Horizontal", "Top", "Bottom", "Inner", "Outer", "Clockwise", "Counterclockwise", "Axial", The orientation or positional relationship indicated by "radial", "circumferential", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying the referred device or element Must be in a particular orientation, be constructed in a particular orientation, and operate in a particular orientation, and therefore should not be construed as limiting the invention.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly specified and limited, terms such as "installation", "connection", "connection" and "fixation" should be understood in a broad sense, for example, it can be a fixed connection or a detachable connection , or integrated; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two components or the interaction relationship between two components, unless otherwise specified limit. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
在本发明中,除非另有明确的规定和限定,第一特征在第二特征“上”或“下”可以是第一和第二特征直接接触,或第一和第二特征通过中间媒介间接接触。而且,第一特征在第二特征“之上”、“上方”和“上面”可是第一特征在第二特征正上方或斜上方,或仅仅表示第一特征水平高度高于第二特征。第一特征在第二特征“之下”、“下方”和“下面”可以是第一特征在第二特征正下方或斜下方,或仅仅表示第一特征水平高度小于第二特征。In the present invention, unless otherwise clearly specified and limited, the first feature may be in direct contact with the first feature or the first and second feature may be in direct contact with the second feature through an intermediary. touch. Moreover, "above", "above" and "above" the first feature on the second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. "Below", "beneath" and "beneath" the first feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is less horizontally than the second feature.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711297804.2A CN108088472A (en) | 2017-12-08 | 2017-12-08 | Signal sampling device, method and electrical equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711297804.2A CN108088472A (en) | 2017-12-08 | 2017-12-08 | Signal sampling device, method and electrical equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108088472A true CN108088472A (en) | 2018-05-29 |
Family
ID=62174422
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711297804.2A Pending CN108088472A (en) | 2017-12-08 | 2017-12-08 | Signal sampling device, method and electrical equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108088472A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110824222A (en) * | 2018-08-08 | 2020-02-21 | 比亚迪汽车工业有限公司 | Signal sampling method and system and vehicle |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5475384A (en) * | 1992-06-26 | 1995-12-12 | Nicotra Sistemi S.P.A. | Remote addressable transducer provided with automatic calibration and digital compensation |
CN102495274A (en) * | 2011-12-02 | 2012-06-13 | 北京普莱德新能源电池科技有限公司 | Current acquisition circuit for electric automobile power batteries |
CN104535174A (en) * | 2014-12-05 | 2015-04-22 | 苏州汇川技术有限公司 | Mechanical resonance detecting device and method |
CN104655236A (en) * | 2013-11-18 | 2015-05-27 | 田荣侠 | Liquid level measuring system |
CN205230300U (en) * | 2015-11-10 | 2016-05-11 | 湖南工业大学 | Modern house safety intelligent monitoring system |
CN206115307U (en) * | 2016-10-31 | 2017-04-19 | 兰州资源环境职业技术学院 | Distributing type multifunctional pipe of college library, university library, academic library reason cabinet |
CN207923152U (en) * | 2017-12-08 | 2018-09-28 | 广东美的安川服务机器人有限公司 | Signal sampling device and electrical equipment |
-
2017
- 2017-12-08 CN CN201711297804.2A patent/CN108088472A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5475384A (en) * | 1992-06-26 | 1995-12-12 | Nicotra Sistemi S.P.A. | Remote addressable transducer provided with automatic calibration and digital compensation |
CN102495274A (en) * | 2011-12-02 | 2012-06-13 | 北京普莱德新能源电池科技有限公司 | Current acquisition circuit for electric automobile power batteries |
CN104655236A (en) * | 2013-11-18 | 2015-05-27 | 田荣侠 | Liquid level measuring system |
CN104535174A (en) * | 2014-12-05 | 2015-04-22 | 苏州汇川技术有限公司 | Mechanical resonance detecting device and method |
CN205230300U (en) * | 2015-11-10 | 2016-05-11 | 湖南工业大学 | Modern house safety intelligent monitoring system |
CN206115307U (en) * | 2016-10-31 | 2017-04-19 | 兰州资源环境职业技术学院 | Distributing type multifunctional pipe of college library, university library, academic library reason cabinet |
CN207923152U (en) * | 2017-12-08 | 2018-09-28 | 广东美的安川服务机器人有限公司 | Signal sampling device and electrical equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110824222A (en) * | 2018-08-08 | 2020-02-21 | 比亚迪汽车工业有限公司 | Signal sampling method and system and vehicle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103033667B (en) | Current measurement device and method | |
US9116052B2 (en) | Temperature measuring devices and related methods | |
WO2019223356A1 (en) | Primary and secondary device deep integration voltage sensor, and design process method therefor | |
CN110044510B (en) | IGBT module temperature measurement circuit, temperature measurement method and computer readable storage medium | |
CN108631686B (en) | Brushless direct current motor control system and bus voltage detection method and device thereof | |
CN103148953A (en) | Temperature detecting circuit based on thermistor | |
CN103528492B (en) | Signal translating system based on wide range submicron order high accuracy LVDT displacement transducer | |
CN108088472A (en) | Signal sampling device, method and electrical equipment | |
CN203287421U (en) | three-phase alternating voltage and current measuring circuit | |
CN102662339B (en) | A control system of a viscoelastic spectrometer | |
CN104655916A (en) | Alternating-current voltage effective value measuring device and method | |
CN107707224B (en) | Temperature detection circuit, temperature sensor device, and display device | |
CN102768078A (en) | Automatic resistance compensation method for temperature-measuring conductors for two-wire thermal resistor | |
CN203535119U (en) | Capacitance detection circuit | |
CN110488903A (en) | Temperature-compensating por circuit | |
CN104483033A (en) | CMOS (complementary metal-oxide-semiconductor transistor) temperature sensor circuit with wide temperature range | |
CN104391176A (en) | Software and hardware frequency measurement circuit compatible with electric power system signals | |
CN208818364U (en) | Temperature measuring circuit | |
CN210037952U (en) | Detection circuit, chip and electronic equipment of load current direction | |
CN102353699A (en) | Method for sampling of humidity sensors by using square waves | |
CN204188299U (en) | Multichannel IGBT inner NTC high temperature real-time detection circuit | |
CN203069291U (en) | Thermistor-based temperature detection circuit | |
CN206657052U (en) | A kind of low-power consumption lithium battery voltage detects circuit | |
CN207923152U (en) | Signal sampling device and electrical equipment | |
CN203149016U (en) | Super capacitor single body voltage sampling measuring circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180529 |