CN115603751B - ADC acquisition control method, ADC acquisition control device and medium - Google Patents
ADC acquisition control method, ADC acquisition control device and medium Download PDFInfo
- Publication number
- CN115603751B CN115603751B CN202211257854.9A CN202211257854A CN115603751B CN 115603751 B CN115603751 B CN 115603751B CN 202211257854 A CN202211257854 A CN 202211257854A CN 115603751 B CN115603751 B CN 115603751B
- Authority
- CN
- China
- Prior art keywords
- excitation voltage
- adc acquisition
- adc
- output signal
- adjustment factor
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 230000005284 excitation Effects 0.000 claims abstract description 127
- 238000004364 calculation method Methods 0.000 claims abstract description 49
- 230000008859 change Effects 0.000 claims description 34
- 238000005070 sampling Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 13
- 238000012216 screening Methods 0.000 claims description 6
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000009471 action Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000001276 controlling effect Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013139 quantization Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000002474 experimental method Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 229920006395 saturated elastomer Polymers 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/12—Analogue/digital converters
- H03M1/18—Automatic control for modifying the range of signals the converter can handle, e.g. gain ranging
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/12—Analogue/digital converters
- H03M1/124—Sampling or signal conditioning arrangements specially adapted for A/D converters
- H03M1/1245—Details of sampling arrangements or methods
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Measuring Fluid Pressure (AREA)
Abstract
The application discloses a control method, a device and a medium for ADC acquisition, in order to enable a voltage value input to an ADC not to exceed an ADC acquisition range, an excitation voltage calculation formula is obtained by setting an initial adjustment factor, excitation voltage is obtained according to the excitation voltage calculation formula and the initial adjustment factor, the excitation voltage is input to a sensor output circuit, an output signal of a current ADC acquisition circuit is obtained, whether the current output signal exceeds the ADC acquisition range is judged, if yes, the initial adjustment factor is adjusted, and the excitation voltage is changed until the output signal meets the ADC acquisition range. The control unit changes the excitation voltage by adjusting the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the inaccuracy of the calculated pressure value caused by the fact that the voltage value input into the ADC exceeds the ADC acquisition range is avoided.
Description
Technical Field
The present disclosure relates to the field of ADCs (Analog-to-digital converter, analog-to-digital converters), and more particularly, to a method, apparatus, and medium for controlling ADC acquisition.
Background
Today, many electronic and electrical products on the market involve a conversion between voltage and pressure values. In general, by using the principle that the resistance of a piezoresistive pressure sensor can change with the change of pressure, a digital quantity related to the pressure can be obtained by converting the resistance change into a measurable voltage value in cooperation with a resistive bridge or a voltage dividing network and quantifying the voltage value by an analog-digital converter. In the process, the key is that the ADC quantizes the voltage value, and in the measuring process, when the ADC is saturated, the vector statistical characteristic of the original data does not obey the joint Gaussian distribution any more due to the truncation effect of the input signal, so that the correlation between the vector quantization codebook and the data to be compressed is greatly reduced, and the vector quantization codebook is mismatched with the statistical characteristic of the data to be compressed.
Therefore, how to make the voltage value input to the ADC not exceed the ADC acquisition range is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a control method for ADC acquisition, which enables the voltage value input to an ADC not to exceed the ADC acquisition range.
In order to solve the technical problem, the present application provides a control method for ADC acquisition, which is applied to a control unit in a circuit composed of a sensor output circuit, an ADC acquisition circuit and a control unit, and includes:
setting an initial adjustment factor;
obtaining an excitation voltage calculation formula;
obtaining excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor;
inputting an excitation voltage to a sensor output circuit;
obtaining an output signal of a current ADC acquisition circuit;
judging whether the current output signal exceeds the ADC acquisition range;
if yes, the initial adjustment factor is adjusted to change the excitation voltage until the output signal meets the ADC acquisition range.
Preferably, in the above ADC acquisition control method, determining whether the current output signal exceeds the ADC acquisition range includes:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal;
judging whether the data proportion exceeds a maximum preset proportion or not;
correspondingly, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range, comprising:
the initial adjustment factor is reduced to change the excitation voltage until the data proportion is less than the maximum preset proportion.
Preferably, in the above ADC acquisition control method, determining whether the current output signal exceeds the ADC acquisition range includes:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal;
judging whether the data proportion is smaller than a minimum preset proportion or not;
correspondingly, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range, comprising:
the initial adjustment factor is increased to change the excitation voltage until the data ratio is greater than the minimum preset ratio.
Preferably, in the control method for ADC acquisition, obtaining the excitation voltage according to a preset excitation voltage calculation formula and an initial adjustment factor includes:
and sending the initial adjustment factor to the DAC so that the DAC obtains the excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor.
Preferably, in the control method for ADC acquisition, the step of inputting the excitation voltage to the sensor output circuit includes:
the control DAC inputs an analog signal of the excitation voltage to the sensor output circuit.
Preferably, in the control method for ADC acquisition, the adjusting the initial adjustment factor to change the excitation voltage until the saturation of ADC acquisition meets the ADC acquisition range further includes:
obtaining the current sensor strain resistance according to a preset pressure calculation formula;
and obtaining a pressure value corresponding to the strain resistance of the current sensor according to a preset corresponding relation.
Preferably, in the control method for ADC acquisition, obtaining a data proportion exceeding a preset ADC sampling maximum value according to an output signal includes:
screening the number of effective data in the output signal as the total data size;
screening the number of data which is larger than the preset ADC sampling maximum value in the output signal as target data size;
and obtaining the data proportion according to the target data quantity and the total data quantity.
In order to solve the above technical problem, the present application further provides a control device for ADC acquisition, including:
the setting module is used for setting an initial adjustment factor;
the acquisition module is used for acquiring an excitation voltage calculation formula;
the calculation module is used for obtaining the excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor;
a control input module for inputting an excitation voltage to the sensor output circuit;
the output signal acquisition module is used for acquiring an output signal of the current ADC acquisition circuit;
the judging module is used for judging whether the current output signal exceeds the ADC acquisition range; if yes, triggering an adjusting module;
and the adjusting module is used for adjusting the initial adjusting factor to change the excitation voltage until the output signal meets the acquisition range of the ADC.
In order to solve the above technical problem, the present application further provides a control device for ADC acquisition, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the ADC acquisition control method when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements the steps of the control method for ADC acquisition described above.
The ADC acquisition control method provided by the application is applied to a control unit in a circuit consisting of a sensor output circuit, an ADC acquisition circuit and a control unit, and comprises the following steps: setting an initial adjustment factor; obtaining an excitation voltage calculation formula; obtaining excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor; inputting an excitation voltage to a sensor output circuit; obtaining an output signal of a current ADC acquisition circuit; judging whether the current output signal exceeds the ADC acquisition range; if yes, the initial adjustment factor is adjusted to change the excitation voltage until the output signal meets the ADC acquisition range. The control unit changes the excitation voltage by adjusting the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the problem of inaccurate calculation pressure value caused by the fact that the voltage value input into the ADC exceeds the ADC acquisition range is avoided.
In addition, the application also provides a control device and a computer readable storage medium for ADC acquisition, which correspond to the control method for ADC acquisition and have the same effects.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a control method for ADC acquisition according to an embodiment of the present application;
FIG. 2 is a circuit diagram of a sensor output circuit according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a control device for ADC acquisition according to an embodiment of the present application;
fig. 4 is a block diagram of another ADC acquisition control device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The core of the application is to provide a control method, a device and a medium for ADC acquisition.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
An analog-to-digital converter, i.e., an a/D converter, generally refers to an electronic component that converts an analog signal into a digital signal. A typical analog-to-digital converter converts an input voltage signal into an output digital signal. Since digital signals themselves have no practical meaning, only one relative size is represented. Therefore, any analog-to-digital converter needs a reference analog quantity as a conversion standard, and the most common reference standard is the maximum convertible signal size. And the number of digits output indicates the magnitude of the input signal relative to the reference signal. Since the ADC operates in a certain voltage range, the ADC reaches saturation when the input signal exceeds the upper limit. When the saturation point is exceeded, the ADC can no longer distinguish between different input intensities. Therefore, it is necessary to limit the voltage input to the ADC to a certain threshold value to ensure the accuracy of measurement.
Today, many electronic and electrical products on the market involve a conversion between voltage and pressure values. In general, by using the principle that the resistance of a piezoresistive pressure sensor can change with the change of pressure, a digital quantity related to the pressure can be obtained by converting the resistance change into a measurable voltage value in cooperation with a resistive bridge or a voltage dividing network and quantifying the voltage value by an analog-digital converter. In this process, it is critical that the ADC quantizes the voltage value, and during the measurement, the voltage input to the ADC needs to be limited to the ADC acquisition range.
In order to make the voltage value input to the ADC not exceed the ADC acquisition range, the embodiment provides a preferred solution, and a control method for ADC acquisition is applied to a control unit in a circuit composed of a sensor output circuit, an ADC acquisition circuit and a control unit, and fig. 1 is a flowchart of a control method for ADC acquisition according to an embodiment of the present application, as shown in fig. 1, including:
s11: setting an initial adjustment factor;
s12: obtaining an excitation voltage calculation formula;
s13: obtaining excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor;
s14: inputting an excitation voltage to a sensor output circuit;
s15: obtaining an output signal of a current ADC acquisition circuit;
s16: judging whether the current output signal exceeds the ADC acquisition range; if yes, go to S17;
s17: the initial adjustment factor is adjusted to change the excitation voltage until the output signal meets the ADC acquisition range.
It should be noted that, in this embodiment, the sensor is an array pressure sensor, the output end of the sensor output circuit is connected to the input end of the ADC acquisition circuit, the control unit controls the output voltage of the sensor output circuit by controlling the excitation voltage of the sensor output circuit, and the control unit is connected to the ADC acquisition circuit to obtain the output signal of the ADC acquisition circuit.
Preferably, the control unit is a field programmable gate array (Field Programmable Gate Array, FPGA), and the FPGA device belongs to a semi-custom circuit in an application-specific integrated circuit, and is a programmable logic array, so that the problem of fewer gate circuits of the original device can be effectively solved. The basic structure of the FPGA comprises a programmable input/output unit, a configurable logic block, a digital clock management module, an embedded block RAM, wiring resources, an embedded special hard core and a bottom layer embedded functional unit. Because the FPGA has the characteristics of rich wiring resources, high repeated programming and integration level and low investment.
In order to better understand the present solution, the present embodiment provides a sensor output circuit, as shown in fig. 2, where U3 refers to an array type pressure sensor, and when a plurality of sensing points are subjected to an applied pressure, a circuit with bottom layers disconnected from each other is conducted through a low-layer conductive layer. 1/Rvar (Rvar is the sensor strain resistance) is approximately linear with pressure (1/r=k×f, K is the scaling factor, F is the pressure), the output voltage vout= (r1×r3×vin/R2) of the sensor output circuit (1/Rvar) (where Vout is the sensor output voltage, vin is the excitation voltage, R1, R2, R3 are fixed resistors, rvar is the sensor strain resistance).
Thus, when Vin (excitation voltage) is constant, vout (sensor output voltage) is linearly related to 1/Rvar (sensor strain resistance) (i.e., 1/rvar= (Vout. Times.R2)
/(R1*R3*Vin))。
It follows that the pressure value can be determined from the sensor output voltage without changing the excitation voltage, so that the sensor voltage output and the pressure value range can be changed as long as the excitation voltage range can be controlled.
As the output voltage of the sensor can be finally used as the input voltage of the ADC acquisition circuit, the saturation of the output voltage of the pressure sensor can be well and dynamically controlled as long as the output voltage range of the sensor is dynamically matched with the ADC acquisition voltage range.
In order to keep dynamic matching between the output voltage range of the sensor and the ADC acquisition voltage range, an excitation voltage calculation formula can be obtained according to the excitation power supply circuit chip, namely, in step S12, the excitation voltage calculation formula is obtained. For example, according to the DAC chip manual, the excitation voltage calculation formula is obtained as an excitation voltage Vin (unit: V) = (n×3.3V)/256, N is an initial adjustment factor, and the sensor output voltage range and the ADC acquisition voltage range are kept matched by changing the magnitude of the initial adjustment factor.
Step S13, after excitation voltage is obtained according to an excitation voltage calculation formula and an initial adjustment factor, step S14 inputs the excitation voltage to a sensor output circuit, at the moment, the output voltage of the sensor output circuit is used as an input signal of an ADC acquisition circuit, and step S15 obtains an output signal of the current ADC acquisition circuit; step S16, judging whether the current output signal exceeds the ADC acquisition range; that is, it is determined whether the sensor output voltage range under the current initial adjustment factor N numerical control output is matched with the ADC acquisition voltage range, and if so, step S17 is performed to adjust the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range. Because the best test performance can only be obtained if the sensor voltage range matches the ADC acquisition voltage range.
The ADC acquisition control method is applied to a control unit in a circuit consisting of a sensor output circuit, an ADC acquisition circuit and a control unit, and an initial adjustment factor is set; obtaining an excitation voltage calculation formula; obtaining excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor; inputting an excitation voltage to a sensor output circuit; obtaining an output signal of a current ADC acquisition circuit; judging whether the current output signal exceeds the ADC acquisition range; if yes, the initial adjustment factor is adjusted to change the excitation voltage until the output signal meets the ADC acquisition range. The control unit changes the excitation voltage by adjusting the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the problem of inaccurate calculation pressure value caused by the fact that the voltage value input into the ADC exceeds the ADC acquisition range is avoided.
According to the above embodiment, the present implementation provides a preferred scheme for determining whether the current output signal exceeds the ADC acquisition range, including:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal;
judging whether the data proportion exceeds a maximum preset proportion or not;
correspondingly, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range, comprising:
the initial adjustment factor is reduced to change the excitation voltage until the data proportion is less than the maximum preset proportion.
According to the above embodiment, the dot matrix pressure sensor includes a plurality of contact points, each of which is effectively pressurized, and correspondingly, the sensor output circuit outputs a pressure signal, that is, outputs a set of pressures, and correspondingly, the ADC acquisition circuit outputs a plurality of output signals. Therefore, according to the output signals, the data proportion exceeding the preset ADC sampling maximum value is obtained, namely the proportion of the values exceeding the preset ADC sampling maximum value in the plurality of output signals is judged, whether the data proportion exceeds the maximum preset proportion is judged, if so, the initial adjusting factor is reduced, so that the excitation voltage is changed, and the data proportion is smaller than the maximum preset proportion.
According to the above embodiment, correspondingly, determining whether the current output signal exceeds the ADC acquisition range includes:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal;
judging whether the data proportion is smaller than a minimum preset proportion or not;
correspondingly, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range, comprising:
the initial adjustment factor is increased to change the excitation voltage until the data ratio is greater than the minimum preset ratio.
And obtaining a data proportion exceeding the preset ADC sampling maximum value according to the output signals, namely judging the proportion of the plurality of output signals occupied by the numerical value exceeding the preset ADC sampling maximum value, judging whether the data proportion is smaller than the minimum preset proportion, and if so, increasing an initial regulating factor to change the excitation voltage until the data proportion is larger than the minimum preset proportion.
The present embodiment provides a preferred scheme for outputting an excitation voltage to a past output circuit, and the excitation voltage is obtained according to a preset excitation voltage calculation formula and an initial adjustment factor, including:
transmitting the initial adjustment factor to the DAC so that the DAC obtains the excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor;
the control DAC inputs an analog signal of the excitation voltage to the sensor output circuit.
The control unit does not directly output the excitation voltage, but sends an adjustment factor to a digital-to-analog converter (DAC), and the DAC receives the digital signal and calculates the value of the excitation voltage according to an excitation voltage calculation formula, and outputs the value to the sensor output circuit as an excitation voltage of the sensor output circuit as an analog signal. Thus, the control unit does not need to directly output the voltage value.
When the magnitude of the initial adjustment factor is adjusted to change the magnitude of the excitation voltage, after the output voltage of the sensor output circuit meets the ADC acquisition range, the pressure value received by the pressure sensor can be calculated according to the output voltage.
Obtaining the current sensor strain resistance according to a preset pressure calculation formula;
and obtaining a pressure value corresponding to the strain resistance of the current sensor according to a preset corresponding relation.
Under the condition that the excitation voltage is unchanged, the pressure value can be obtained by the output voltage of the sensor, so that the current sensor strain resistance can be obtained by combining the current excitation voltage value according to a preset pressure calculation formula, the sensor strain resistance and the received pressure are in an approximate linear relation, the relation can be obtained in advance through experiments, namely a preset corresponding relation, and the pressure value corresponding to the current sensor strain resistance can be obtained according to the preset corresponding relation.
In the above embodiment, it is necessary to determine that the output signal obtains the data proportion exceeding the preset ADC sampling maximum value, so this implementation provides a preferred scheme, which includes:
screening the number of effective data in the output signal as the total data size;
screening the number of data which is larger than the preset ADC sampling maximum value in the output signal as target data size;
and obtaining the data proportion according to the target data quantity and the total data quantity.
The effective data number of the contact points of the array pressure sensor subjected to pressure is used as the total data quantity, the data number which is larger than the preset ADC sampling maximum value is used as the target data quantity, and the ratio of the target data quantity to the total data quantity is the data proportion of the output signal which is obtained to exceed the preset ADC sampling maximum value.
In the above embodiments, the detailed description is given for the control method of ADC acquisition, and the application further provides a corresponding embodiment of the control device of ADC acquisition. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Fig. 3 is a schematic diagram of an ADC acquisition control device provided in an embodiment of the present application, where, as shown in fig. 3, the ADC acquisition control device includes:
a setting module 31 for setting an initial adjustment factor;
an acquisition module 32 for acquiring an excitation voltage calculation formula;
a calculation module 33, configured to obtain an excitation voltage according to an excitation voltage calculation formula and an initial adjustment factor;
a control input module 34 for inputting an excitation voltage to the sensor output circuit;
an output signal acquiring module 35, configured to acquire an output signal of the current ADC acquisition circuit;
a judging module 36, configured to judge whether the current output signal exceeds the ADC acquisition range; if yes, triggering an adjusting module;
the adjusting module 37 is configured to adjust the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range.
Specifically, the setting module 31 sets an initial adjustment factor, the obtaining module 32 obtains an excitation voltage calculation formula, the calculating module 33 obtains an excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor, and the control input module 34 inputs the excitation voltage to the sensor output circuit; the output signal acquiring module 35 acquires an output signal of the current ADC acquisition circuit, and the judging module 36 judges whether the current output signal exceeds the ADC acquisition range, if so, triggers the adjusting module, and the adjusting module 37 adjusts the initial adjusting factor to change the excitation voltage until the output signal meets the ADC acquisition range. The output voltage of the sensor output circuit meets the ADC acquisition range by adjusting the initial adjustment factor to change the excitation voltage, so that the problem of inaccurate calculation pressure value caused by the fact that the voltage value input into the ADC exceeds the ADC acquisition range is avoided.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
Fig. 4 is a block diagram of another ADC acquisition control device according to an embodiment of the present application, where, as shown in fig. 4, the ADC acquisition control device includes: a memory 40 for storing a computer program;
a processor 41 for implementing the steps of the control method of ADC acquisition according to the above embodiment when executing a computer program.
The control device for ADC acquisition provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 41 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc., among others. The processor 41 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 41 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 41 may be integrated with an image processor (Graphics Processing Unit, GPU) for rendering and rendering of content required to be displayed by the display screen. In some embodiments, the processor 41 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 40 may include one or more computer-readable storage media, which may be non-transitory. Memory 40 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 40 is at least used for storing a computer program 401, where the computer program, when loaded and executed by the processor 41, can implement the relevant steps of the ADC acquisition control method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 40 may further include an operating system 402, data 403, and the like, where the storage manner may be transient storage or permanent storage. Operating system 402 may include, among other things, windows, unix, linux. The data 403 may include, but is not limited to, data related to a control method for implementing ADC acquisition, and the like.
In some embodiments, the control device for ADC acquisition may further include a display screen 42, an input/output interface 43, a communication interface 44, a power supply 45, and a communication bus 46.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is not limiting of the control means for ADC acquisition and may include more or fewer components than shown.
The control device for ADC acquisition provided in the embodiment of the present application includes a memory and a processor, where the processor can implement the following method when executing a program stored in the memory: setting an initial adjustment factor, obtaining an excitation voltage calculation formula, obtaining excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor, inputting the excitation voltage to a sensor output circuit, and obtaining an output signal of a current ADC acquisition circuit; judging whether the current output signal exceeds the ADC acquisition range; if yes, the initial adjustment factor is adjusted to change the excitation voltage until the output signal meets the ADC acquisition range. The control unit changes the excitation voltage by adjusting the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the problem of inaccurate calculation pressure value caused by the fact that the voltage value input into the ADC exceeds the ADC acquisition range is avoided.
Finally, the present application also provides a corresponding embodiment of the computer readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps described in the above embodiments of the control method of ADC acquisition.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution contributing to the prior art, or in a software product stored in a storage medium, performing all or part of the steps of the methods of the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The computer readable storage medium provided in this embodiment has a computer program stored thereon, which when executed by a processor, can implement the following method: setting an initial adjustment factor, obtaining an excitation voltage calculation formula, obtaining excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor, inputting the excitation voltage to a sensor output circuit, and obtaining an output signal of a current ADC acquisition circuit; judging whether the current output signal exceeds the ADC acquisition range; if yes, the initial adjustment factor is adjusted to change the excitation voltage until the output signal meets the ADC acquisition range. The control unit changes the excitation voltage by adjusting the initial adjustment factor, so that the output voltage of the sensor output circuit meets the ADC acquisition range, and the problem of inaccurate calculation pressure value caused by the fact that the voltage value input into the ADC exceeds the ADC acquisition range is avoided.
The method, the device and the medium for controlling the ADC acquisition provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. The control method for ADC acquisition is applied to a control unit in a circuit consisting of a sensor output circuit, an ADC acquisition circuit and a control unit, wherein the output end of the sensor output circuit is connected with the input end of the ADC acquisition circuit, the control unit controls the output voltage of the sensor output circuit by controlling the excitation voltage of the sensor output circuit, and the control unit is connected with the ADC acquisition circuit to acquire the output signal of the ADC acquisition circuit, and the sensor is an array type pressure sensor and is characterized by comprising the following components:
setting an initial adjustment factor;
obtaining an excitation voltage calculation formula;
obtaining excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor;
inputting the excitation voltage to the sensor output circuit;
acquiring the output signal of the current ADC acquisition circuit;
judging whether the current output signal exceeds an ADC acquisition range or not;
if the current output signal exceeds the ADC acquisition range, adjusting the initial adjustment factor to change the excitation voltage until the output signal meets the ADC acquisition range;
wherein, the excitation voltage calculation formula is vin= (n×3.3v)/256;
vin is the excitation voltage and N is the initial adjustment factor.
2. The method according to claim 1, wherein the determining whether the current output signal exceeds an ADC acquisition range comprises:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signals, wherein the current data proportion is the proportion of the values exceeding the preset ADC sampling maximum value in a plurality of output signals;
judging whether the data proportion exceeds a maximum preset proportion or not;
correspondingly, the adjusting the initial adjustment factor to change the excitation voltage until the output signal meets an ADC acquisition range includes:
the initial adjustment factor is reduced to change the excitation voltage until the data proportion is less than the maximum preset proportion.
3. The method according to claim 1, wherein the determining whether the current output signal exceeds an ADC acquisition range comprises:
obtaining a data proportion exceeding a preset ADC sampling maximum value according to the output signal; the current data proportion is the proportion of a plurality of output signals which exceeds the value of the preset ADC sampling maximum value;
judging whether the data proportion is smaller than a minimum preset proportion or not;
correspondingly, the adjusting the initial adjustment factor to change the excitation voltage until the output signal meets an ADC acquisition range includes:
and increasing the initial adjustment factor to change the excitation voltage until the data proportion is greater than the minimum preset proportion.
4. The method according to claim 1, wherein the obtaining the excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor includes:
and sending the initial adjustment factor to a DAC so that the DAC obtains the excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor.
5. The method according to claim 4, wherein the inputting the excitation voltage to the sensor output circuit includes:
and controlling the DAC to input the analog signal of the excitation voltage to the sensor output circuit.
6. The method of claim 1, wherein said adjusting said initial adjustment factor to vary said excitation voltage until after said ADC acquisition saturation meets an ADC acquisition range, further comprises:
obtaining the current sensor strain resistance according to a preset pressure calculation formula;
and obtaining a pressure value corresponding to the current sensor strain resistance according to a preset corresponding relation.
7. The method according to claim 2, wherein the obtaining the data proportion exceeding the preset ADC sampling maximum value according to the output signal includes:
screening the number of the effective data in the output signal as the total data quantity;
screening the number of data which is larger than the preset ADC sampling maximum value in the output signal as target data size;
obtaining the data proportion according to the target data quantity and the total data quantity; wherein the data ratio is a ratio of the target data amount to the total data amount.
8. The utility model provides a controlling means that ADC gathered, its characterized in that is applied to among the circuit is constituteed by sensor output circuit, ADC acquisition circuit, the control unit the output of sensor output circuit with the input of ADC acquisition circuit is connected, the control unit is through control sensor output circuit's excitation voltage in order to control sensor output circuit's output voltage, the control unit with ADC acquisition circuit is connected in order to acquire ADC acquisition circuit's output signal, wherein, the sensor is array pressure sensor, includes:
the setting module is used for setting an initial adjustment factor;
the acquisition module is used for acquiring an excitation voltage calculation formula;
the calculation module is used for obtaining the excitation voltage according to the excitation voltage calculation formula and the initial adjustment factor;
a control input module for inputting the excitation voltage to the sensor output circuit;
the output signal acquisition module is used for acquiring the output signal of the current ADC acquisition circuit;
the judging module is used for judging whether the current output signal exceeds the ADC acquisition range; if the current output signal exceeds the ADC acquisition range, triggering an adjusting module;
the adjusting module is used for adjusting the initial adjusting factor to change the excitation voltage until the output signal meets the ADC acquisition range;
wherein, the excitation voltage calculation formula is vin= (n×3.3v)/256;
vin is the excitation voltage and N is the initial adjustment factor.
9. A control device for ADC acquisition, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for controlling ADC acquisition according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method of controlling ADC acquisition according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211257854.9A CN115603751B (en) | 2022-10-13 | 2022-10-13 | ADC acquisition control method, ADC acquisition control device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211257854.9A CN115603751B (en) | 2022-10-13 | 2022-10-13 | ADC acquisition control method, ADC acquisition control device and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115603751A CN115603751A (en) | 2023-01-13 |
CN115603751B true CN115603751B (en) | 2024-03-01 |
Family
ID=84846296
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211257854.9A Active CN115603751B (en) | 2022-10-13 | 2022-10-13 | ADC acquisition control method, ADC acquisition control device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115603751B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10318602A1 (en) * | 2003-04-24 | 2004-11-18 | Infineon Technologies Ag | Adjusting device for signal-noise ratio between signal level and noise level in test signal emits test signal dependent on detected measurable variable |
CN101075374A (en) * | 2007-06-26 | 2007-11-21 | 北京必创科技有限公司 | Apparatus for realizing low-consumption wireless monitor |
CN204963880U (en) * | 2015-09-16 | 2016-01-13 | 成都众山科技有限公司 | Multichannel intelligence becomes send device |
CN108306645A (en) * | 2018-01-19 | 2018-07-20 | 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) | Sensor digital collection capacity acquisition methods, apparatus and system |
CN108716754A (en) * | 2018-05-29 | 2018-10-30 | 安徽泽川智合网络科技有限责任公司 | A kind of indoor air quality on-line monitoring system |
CN110702972A (en) * | 2019-10-08 | 2020-01-17 | 浙江大学 | Adaptive sampling method and device for analog signals |
CN111929493A (en) * | 2020-08-24 | 2020-11-13 | 通号(北京)轨道工业集团有限公司轨道交通技术研究院 | Current acquisition equipment and circuit monitoring system |
CN113624397A (en) * | 2021-08-16 | 2021-11-09 | 苏州司南传感科技有限公司 | Silicon piezoresistive pressure sensor calibration compensation method |
CN114264384A (en) * | 2021-12-25 | 2022-04-01 | 南京英锐创电子科技有限公司 | Temperature sensor, temperature sensing method, and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2929056B1 (en) * | 2008-03-19 | 2010-04-16 | Alstom Transport Sa | DEVICE FOR DETECTING A SECURITY THRESHOLD OF A RAIL SYSTEM |
EP3933367B1 (en) * | 2020-06-03 | 2023-12-20 | NXP USA, Inc. | Sensor interface circuit, sensor system, and method of signal measurement |
-
2022
- 2022-10-13 CN CN202211257854.9A patent/CN115603751B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10318602A1 (en) * | 2003-04-24 | 2004-11-18 | Infineon Technologies Ag | Adjusting device for signal-noise ratio between signal level and noise level in test signal emits test signal dependent on detected measurable variable |
CN101075374A (en) * | 2007-06-26 | 2007-11-21 | 北京必创科技有限公司 | Apparatus for realizing low-consumption wireless monitor |
CN204963880U (en) * | 2015-09-16 | 2016-01-13 | 成都众山科技有限公司 | Multichannel intelligence becomes send device |
CN108306645A (en) * | 2018-01-19 | 2018-07-20 | 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) | Sensor digital collection capacity acquisition methods, apparatus and system |
CN108716754A (en) * | 2018-05-29 | 2018-10-30 | 安徽泽川智合网络科技有限责任公司 | A kind of indoor air quality on-line monitoring system |
CN110702972A (en) * | 2019-10-08 | 2020-01-17 | 浙江大学 | Adaptive sampling method and device for analog signals |
CN111929493A (en) * | 2020-08-24 | 2020-11-13 | 通号(北京)轨道工业集团有限公司轨道交通技术研究院 | Current acquisition equipment and circuit monitoring system |
CN113624397A (en) * | 2021-08-16 | 2021-11-09 | 苏州司南传感科技有限公司 | Silicon piezoresistive pressure sensor calibration compensation method |
CN114264384A (en) * | 2021-12-25 | 2022-04-01 | 南京英锐创电子科技有限公司 | Temperature sensor, temperature sensing method, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115603751A (en) | 2023-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE10334386B4 (en) | Method and apparatus for temperature throttling the access frequency of an integrated circuit | |
AU2016301712B2 (en) | Apparatus and scheme for IO-pin-less calibration or trimming of on-chip regulators | |
US9519041B2 (en) | System and method for providing an accurate and cost-effective current sensor calibration | |
CN106685421B (en) | Analog signal acquisition method and device | |
CN112688687A (en) | Method and device for acquiring physical information to be tested, computer equipment and storage medium | |
CN115603751B (en) | ADC acquisition control method, ADC acquisition control device and medium | |
CN110941302B (en) | Voltage regulator control method and device, voltage regulator and medium | |
EP0664516A2 (en) | Neural network with reduced calculation amount | |
CN112085176B (en) | Data processing method, device, computer equipment and storage medium | |
KR20160103980A (en) | Digital temperature sensor with integrated digital temperature filter | |
CN111819796B (en) | Analog-to-digital conversion method, device, chip, electronic equipment and storage medium | |
CN101925937A (en) | Differential pressure transmitter | |
EP3267358A1 (en) | Fingerprint sensing system and method | |
CN115249058A (en) | Quantification method and device of neural network model, terminal and storage medium | |
US20080048759A1 (en) | Trimming of operative parameters in electronic devices based on corrections mappings | |
US20130335246A1 (en) | A/D Converter reference calibration | |
US20220335280A1 (en) | Artificial intelligence semiconductor processor and operating method of artificial intelligence semiconductor processor | |
CN212622765U (en) | High-precision broadband digital display millivoltmeter based on STC89C52 | |
CN114815942B (en) | Power supply current sharing method and device, electronic equipment and medium | |
CN114755741A (en) | Infusion pump gravity sensor zero point calibration method, device, equipment and storage medium | |
KR100417114B1 (en) | Apparatus and method to measure high frequency power | |
CN115235535A (en) | Signal measurement device, method and electronic equipment | |
GB2602264A (en) | Calibration of a force sensing device | |
CN108318845B (en) | Magnetometer error correction method and device and magnetometer measurement device | |
JPH0835891A (en) | Inner force sensor |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |