CN114659545A - Double-range self-adaptive measurement method and device - Google Patents

Double-range self-adaptive measurement method and device Download PDF

Info

Publication number
CN114659545A
CN114659545A CN202210475269.XA CN202210475269A CN114659545A CN 114659545 A CN114659545 A CN 114659545A CN 202210475269 A CN202210475269 A CN 202210475269A CN 114659545 A CN114659545 A CN 114659545A
Authority
CN
China
Prior art keywords
range
measuring
triode
adaptive
double
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.)
Granted
Application number
CN202210475269.XA
Other languages
Chinese (zh)
Other versions
CN114659545B (en
Inventor
蔡永荣
何银山
耿向阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfeng Electric Drive Systems Co Ltd
Original Assignee
Dongfeng Electric Drive Systems Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Dongfeng Electric Drive Systems Co Ltd filed Critical Dongfeng Electric Drive Systems Co Ltd
Priority to CN202210475269.XA priority Critical patent/CN114659545B/en
Publication of CN114659545A publication Critical patent/CN114659545A/en
Application granted granted Critical
Publication of CN114659545B publication Critical patent/CN114659545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING 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
    • G01D11/00Component parts of measuring arrangements not specially adapted for a specific variable
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING 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
    • G01D21/00Measuring or testing not otherwise provided for

Abstract

The application relates to a double-range self-adaptive measuring method and a device, which relate to the technical field of signal measurement, and the method comprises the following steps: measuring an analog signal to be measured by using a preset double-range self-adaptive measuring circuit in a first state; identifying a range identification value obtained by the double-range self-adaptive measuring circuit in the first state; when the equivalent range identification value is in a first measuring range corresponding to the first state, obtaining analog signal measuring data measured by the double-range self-adaptive measuring circuit in the first state; and when the equivalent range identification value is not in the first measuring range corresponding to the first state, the double-range self-adaptive measuring circuit is switched to the second state, and the analog signal measuring data measured by the double-range self-adaptive measuring circuit in the second state are obtained. This application utilizes dual-range self-adaptation test circuit, and the different analog quantity measuring range of adaptation monitors the change of analog quantity, realizes automatic switch-over measuring range to satisfy the measurement work of different measuring ranges.

Description

Double-range self-adaptive measurement method and device
Technical Field
The application relates to the technical field of signal measurement, in particular to a double-range self-adaptive measurement method and device.
Background
With the rapid promotion of automobile electromotion, intellectualization, networking and sharing, the data volume of the automobile presents an unprecedented well-jet type growth situation, and new technical requirements are put forward in the fields of data acquisition, processing, storage and the like.
In the prior art, for digital values or switching values, a discrete triode circuit, an integrated acquisition chip circuit or a comparator circuit is generally adopted to convert the state, and a pull-up power supply is combined to output determined high level and low level which are used as measurement results and input to a microprocessor, so that the acquisition and processing of automobile digital signals are realized.
For analog quantity, a resistance voltage division circuit is generally adopted; if the analog signals are the resistance signals, the resistance voltage division circuit also needs a pull-up power source to convert analog quantity in a certain range into voltage signals with proper amplitude, and the voltage signals are input into the A/D converter or the singlechip integrated with the A/D converter to realize the acquisition of the analog signals of the automobile.
However, the measurement method in the prior art has the outstanding problems of limited data acquisition range, low acquisition precision and the like, and cannot meet the requirement of high-precision and wide-range analog quantity acquisition.
Therefore, in order to cope with the situation, a new dual-range adaptive measurement technology is provided.
Disclosure of Invention
The application provides a double-range self-adaptive measuring method and device, which utilize a double-range self-adaptive testing circuit to adapt to different analog quantity measuring ranges, monitor the change of analog quantity, realize automatic switching of measuring ranges, and further meet the measuring work of different measuring ranges.
In a first aspect, the present application provides a dual-range adaptive measurement method, including the following steps:
receiving an analog signal to be measured, and measuring the analog signal to be measured by using a preset double-range self-adaptive measuring circuit in a first state;
identifying a range identification value obtained when the double-range self-adaptive measuring circuit in the first state measures the analog signal to be measured;
when the range identification value is in a first measuring range corresponding to the first state, obtaining analog signal measuring data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the first state;
and when the range identification value is not in the first measuring range corresponding to the first state, the double-range self-adaptive measuring circuit is switched to a second state, and the double-range self-adaptive measuring circuit in the second state measures the analog signal measurement data corresponding to the analog signal to be measured.
Further, the dual-range adaptive measurement circuit includes:
an analog signal input terminal for receiving the analog signal to be measured;
the first capacitor is used for filtering the analog signal to be measured;
a collector of the first triode is connected with one end of a first pull-up resistor, the other end of the first pull-up resistor is connected with the first capacitor, an emitter of the first triode is connected to a preset reference voltage, a base of the first triode is connected with one end of a first current-limiting resistor, the other end of the first current-limiting resistor is connected with a preset measuring singlechip port, and the first triode, the collector of the first triode and one end of a first pull-up resistor are connected in series to a grounding point;
a collector of the second triode is connected with one end of a second pull-up resistor, the other end of the second pull-up resistor is connected with a preset RC filter circuit, an emitter of the second triode is connected with a reference voltage, and a base of the second triode is connected with one end of a second current-limiting resistor;
a base electrode of the third triode is connected with one end of a second current-limiting resistor, the other end of the second current-limiting resistor is connected with a port of the measuring singlechip, a collector electrode of the third triode is connected with the other end of the second current-limiting resistor, and the collector electrode of the third triode is connected to a working power supply through a third pull-up resistor;
the RC filter circuit comprises a filter circuit resistor and a filter circuit capacitor which are connected in series, the other end of the filter circuit resistor is connected to the A/D converter and the anode of the first voltage-regulator tube, and the cathode of the first voltage-regulator tube is connected to the working power supply;
the base electrode of the second triode is connected with the collector electrode of the third triode in series through a preset resistor;
the A/D converter is used for outputting analog signal measurement data corresponding to the analog signal to be measured by the double-range self-adaptive measurement circuit.
Furthermore, when the double-range self-adaptive measuring circuit is in the first state, the first triode is internally conducted, and the second triode and the third triode are not internally conducted;
when the double-range self-adaptive measuring circuit is in the second state, the first triode is not conducted, and the second triode and the third triode are both conducted.
Further, the method comprises the following steps:
and receiving a power supply signal to be measured, measuring the power supply signal to be measured by using a preset voltage acquisition circuit, and obtaining corresponding power supply signal measurement data.
Further, the method comprises the following steps:
and receiving a digital signal to be measured, measuring the digital signal to be measured by using a preset switch acquisition circuit, and acquiring corresponding digital signal measurement data.
In a second aspect, the present application provides a dual-range adaptive measurement device, the device comprising:
the analog signal receiving end is used for receiving an analog signal to be measured;
the double-range self-adaptive measurement module is used for measuring the analog signal to be measured;
the double-range self-adaptive identification module is used for identifying a range identification value obtained when the double-range self-adaptive measurement circuit in the first state measures the analog signal to be measured;
the double-range self-adaptive maintaining module is used for obtaining the analog signal measurement data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the first state when the range identification value is in the first measuring range corresponding to the first state;
and the double-range self-adaptive switching module is used for switching the double-range self-adaptive measuring circuit to a second state when the range identification value is not in the first measuring range corresponding to the first state, and acquiring the analog signal measuring data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the second state.
Specifically, the double-range adaptive measurement circuit includes:
an analog signal input terminal for receiving the analog signal to be measured;
the first capacitor is used for filtering the analog signal to be measured;
a collector of the first triode is connected with one end of a first pull-up resistor, the other end of the first pull-up resistor is connected with the first capacitor, an emitter of the first triode is connected to a preset reference voltage, a base of the first triode is connected with one end of a first current-limiting resistor, the other end of the first current-limiting resistor is connected with a preset measuring singlechip port, and the first current-limiting resistor and the first pull-down resistor are connected to a ground point in series;
a collector of the second triode is connected with one end of a second pull-up resistor, the other end of the second pull-up resistor is connected with a preset RC filter circuit, an emitter of the second triode is connected with a reference voltage, and a base of the second triode is connected with one end of a second current-limiting resistor;
a base electrode of the third triode is connected with one end of the second current-limiting resistor, the other end of the second current-limiting resistor is connected with the port of the measuring single chip microcomputer, a collector electrode of the third triode is connected with the other end of the second current-limiting resistor, and the collector electrode of the third triode is connected to the working power supply through a third pull-up resistor;
the RC filter circuit comprises a filter circuit resistor and a filter circuit capacitor which are connected in series, the other end of the filter circuit resistor is connected to the A/D converter and the anode of the first voltage-regulator tube, and the cathode of the first voltage-regulator tube is connected to the working power supply;
the base electrode of the second triode is connected with the collector electrode of the third triode in series through a preset resistor;
the A/D converter is used for outputting analog signal measurement data corresponding to the analog signal to be measured by the double-range self-adaptive measurement circuit.
Specifically, when the dual-range adaptive measurement circuit is in the first state, the first triode is internally conducted, and the second triode and the third triode are not internally conducted;
when the double-range self-adaptive measuring circuit is in the second state, the first triode is not conducted, and the second triode and the third triode are both conducted.
Further, the dual-range adaptive measurement apparatus further includes:
a power signal receiving end for receiving a power signal to be measured;
and the power supply signal measuring module is used for measuring the power supply signal to be measured by utilizing a preset voltage acquisition circuit and obtaining corresponding power supply signal measurement data.
Further, the dual-range adaptive measurement apparatus further includes:
a digital signal receiving end for receiving a digital signal to be measured;
and the digital signal measuring module is used for measuring the digital signal to be measured by utilizing a preset switch acquisition circuit and acquiring corresponding digital signal measurement data.
The beneficial effect that technical scheme that this application provided brought includes:
1. this application utilizes dual-range self-adaptation test circuit, and the different analog quantity measuring range of adaptation monitors the change of analog quantity, realizes automatic switch-over measuring range to satisfy the measurement work of different measuring ranges.
2. In the application, 2 test circuits are configured on a hardware circuit by a double-range self-adaptive test circuit, and the range of the analog quantity adapted to each circuit is different; on the aspect of software algorithm, the change of external analog quantity is monitored in real time, the measuring range is automatically switched according to the change range software through a self-adaptive algorithm and a calibration threshold value, the full-range high-precision data acquisition is covered, and the acquisition and output of the analog quantity in the vehicle-mounted field under the complex extreme working condition are realized.
3. The technical scheme of the application can be applied to solving the analog quantity acquisition scene under the complicated extreme working condition when in actual application, and fully considers the accuracy, the economy, the universality and the portability.
4. The technical scheme of the application can be used in a plurality of fields in the industry, can not cause a large amount of research and development input, but has the remarkable effect of achieving double results with half the effort, and is strong in universality and convenient to popularize.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of an analog signal measurement process in a dual-range adaptive measurement method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a dual-range adaptive measurement device provided in an embodiment of the present application;
FIG. 3 is a circuit diagram of a dual-range adaptive measurement circuit provided in an embodiment of the present application;
FIG. 4 is a flowchart illustrating a dual-range adaptive measurement method provided in an embodiment of the present application;
fig. 5 is a block diagram of a dual-range adaptive measurement apparatus provided in an embodiment of the present application.
Detailed Description
Interpretation of terms:
an A/D converter: an analog-to-digital converter;
VREF: voltage Reference, Reference Voltage;
GND: group, wire Ground.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a double-range self-adaptive measuring method and device, which utilize a double-range self-adaptive testing circuit to adapt to different analog quantity measuring ranges, monitor the change of analog quantity, and realize automatic switching of measuring ranges, thereby meeting the measuring work of different measuring ranges.
In order to achieve the technical effect, the general idea of the application is as follows:
a double-range self-adaptive measuring method comprises an analog signal measuring process, wherein the analog signal measuring process comprises the following steps:
a1, receiving an analog signal to be measured, and measuring the analog signal to be measured by using a preset double-range self-adaptive measuring circuit in a first state;
a2, identifying the range identification value obtained when the double-range self-adaptive measuring circuit in the first state measures the analog signal to be measured;
a3, when the equivalent range identification value is in the first measuring range corresponding to the first state, obtaining the analog signal measuring data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the first state;
and A4, when the equivalent range identification value is not in the first measuring range corresponding to the first state, switching the double-range self-adaptive measuring circuit to the second state, and obtaining the analog signal measuring data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the second state.
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In a first aspect, an embodiment of the present application provides a dual-range adaptive measurement method, where the method includes an analog signal measurement process, where the analog signal measurement process includes the following steps:
a1, receiving an analog signal to be measured, and measuring the analog signal to be measured by using a preset double-range self-adaptive measuring circuit in a first state;
a2, identifying the range identification value obtained when the double-range self-adaptive measuring circuit in the first state measures the analog signal to be measured;
a3, when the equivalent range identification value is in the first measuring range corresponding to the first state, obtaining the analog signal measuring data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the first state;
and A4, when the equivalent range identification value is not in the first measuring range corresponding to the first state, switching the double-range self-adaptive measuring circuit to the second state, and obtaining the analog signal measuring data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the second state.
Further, the method further comprises a power signal measurement process, wherein the power signal measurement process comprises the following steps:
and receiving a power supply signal to be measured, measuring the power supply signal to be measured by using a preset voltage acquisition circuit, and obtaining corresponding power supply signal measurement data.
Further, the method further comprises a digital signal measurement process, wherein the digital signal measurement process comprises the following steps:
and receiving a digital signal to be measured, measuring the digital signal to be measured by using a preset switch acquisition circuit, and obtaining corresponding digital signal measurement data.
In the embodiment of the application, the double-range self-adaptive test circuit is adapted to different analog quantity measuring ranges, the change of the analog quantity is monitored, and the measuring ranges are automatically switched, so that the measuring work in different measuring ranges is met.
The technical scheme of the embodiment of the application is suitable for collecting various analog signals with large dynamic range, has wide application range and strong adaptability, is based on a conventional collecting circuit and a software algorithm, does not consume large software resources, and has good performability.
In practical application, the technical scheme of the embodiment of the application can be applied to solving the analog quantity acquisition scene under the complicated extreme working condition, and fully considers the accuracy, the economy, the universality and the portability;
the method can also be used in a plurality of fields in the industry, does not cause a large amount of research and development investment, but has the remarkable effect of achieving twice the result with half the effort, and has strong universality and convenient popularization.
Specifically, the double-range self-adaptive measuring circuit in the first state corresponds to the first measuring range and is marked as range 1;
the dual-range adaptive measurement circuit in the second state corresponds to the second measurement range, which is denoted as range 2.
The hysteresis interval is set between the two ranges, so that the situation that the ranges are switched back and forth when an external signal changes around a threshold value Rth is prevented, and the hysteresis interval is specifically set as follows:
assuming that the upper limit value of the range 1 is set to (Rth + a), the lower limit value of the range 2 is set to (Rth-b), (Rth + a) > (Rth-b);
when the external signal rises to be greater than (Rth + a), range 1 is switched to range 2;
on the contrary, when the external signal is reduced to be less than (Rth-b), the range 2 is switched to the range 1, and the system stability and the measurement accuracy are improved.
It should be noted that the upper limit value of the range 1 is greater than the lower limit value of the range 2;
the upper limit value of the range 2 is larger than that of the range 1;
the lower limit of range 1 is less than the lower limit of range 2.
Specifically, the double-range adaptive measurement circuit includes:
an analog signal input terminal for receiving the analog signal to be measured;
the first capacitor is used for filtering the analog signal to be measured;
a collector of the first triode is connected with one end of a first pull-up resistor, the other end of the first pull-up resistor is connected with the first capacitor, an emitter of the first triode is connected to a preset reference voltage, a base of the first triode is connected with one end of a first current-limiting resistor, the other end of the first current-limiting resistor is connected with a preset measuring singlechip port, and the first triode, the collector of the first triode and one end of a first pull-up resistor are connected in series to a grounding point;
a collector of the second triode is connected with one end of a second pull-up resistor, the other end of the second pull-up resistor is connected with a preset RC filter circuit, an emitter of the second triode is connected to a reference voltage, and a base of the second triode is connected with one end of a second current-limiting resistor;
a base electrode of the third triode is connected with one end of a second current-limiting resistor, the other end of the second current-limiting resistor is connected with a port of the measuring singlechip, a collector electrode of the third triode is connected with the other end of the second current-limiting resistor, and the collector electrode of the third triode is connected to a working power supply through a third pull-up resistor;
the RC filter circuit comprises a filter circuit resistor and a filter circuit capacitor which are connected in series, the other end of the filter circuit resistor is connected to the A/D converter and the anode of the first voltage-regulator tube, and the cathode of the first voltage-regulator tube is connected to the working power supply;
the base electrode of the second triode is connected with the collector electrode of the third triode in series through a preset resistor;
the A/D converter is used for outputting analog signal measurement data corresponding to the analog signal to be measured by the double-range self-adaptive measurement circuit.
Specifically, when the dual-range adaptive measurement circuit is in the first state, the first triode is internally conducted, and the second triode and the third triode are not internally conducted;
when the double-range self-adaptive measuring circuit is in the second state, the first triode is not conducted, and the second triode and the third triode are both conducted.
Fig. 2 is a schematic diagram of a dual-range adaptive measurement device according to an embodiment of the present application:
firstly, a power signal receiving end receives a power signal, the power signal is converted into a stable voltage signal through a voltage acquisition circuit in a preset power signal measuring module, and the stable voltage signal is input into an A/D converter of a main controller, so that the current power mode can be conveniently identified.
Secondly, the digital signal receiving end receives the digital signal, the digital signal can simultaneously acquire multiple paths of switching value signals through a multi-channel switching value acquisition chip circuit in a preset digital signal measuring module, and only one path of the signals is listed in the figure.
And thirdly, aiming at analog signals, analog quantity fluctuating in a large range is connected to a double-range self-adaptive acquisition circuit, and the circuit automatically selects a pull-up resistor and a triode according to a preset threshold value to accurately acquire and process the analog quantity signals in the wide range, so that the stability of the system is ensured.
The various signals measured as described above are calculated and processed by the main controller of the two-range adaptive measuring device to obtain a stable strategy result, and the strategy result is displayed, stored, or driven by the actuator according to a predetermined strategy.
The double-range self-adaptive measurement circuit provided by the embodiment of the application is shown in fig. 3:
signal _ Input is an analog Signal Input end and is used for receiving an analog quantity Signal, and the variation range of the analog quantity Signal is large.
The first capacitor C1 filters the input analog signal, the first pull-up resistor R3 is connected with the collector of the first triode Q1, the emitter of the first triode Q1 is connected with the reference voltage VREF, the base of the first triode Q1 is connected with one end of the first current-limiting resistor R2, the other end of the first current-limiting resistor R2 is connected with the single chip microcomputer port MCU _ GPIO of the measuring mechanism, a first pull-down resistor R1 is designed to GND, and the first pull-down resistor R1 provides a stable control state when the MCU _ GPIO is in a high-resistance state.
The second pull-up resistor R4 is connected to the collector of the second transistor Q2, the emitter of the second transistor Q2 is connected to the reference voltage VREF, and the base of the second transistor Q2 is connected to one end of the second current-limiting resistor R6.
The other end of the current-limiting resistor R6 is connected with the collector of a third triode Q3, the collector is connected with a working power supply VDD through a third pull-up resistor R8, the base of the third triode Q3 is connected with one end of a third current-limiting resistor R7, and the other end of the third current-limiting resistor R7 is connected with a single chip microcomputer port MCU _ GPIO of the measuring mechanism.
The other end of the second pull-up resistor R4 is connected with an RC filter circuit, and the filter circuit comprises a filter circuit resistor R5 and a filter circuit capacitor C2, so that the stability of the acquired signals and the anti-interference capability of the system are further improved.
The other end of the filter circuit resistor R5 is connected to an A/D converter integrated with the single chip microcomputer of the measuring mechanism, the other end of the filter circuit resistor R5 is also connected to the anode of a first voltage-regulator tube D1, and the cathode of the first voltage-regulator tube D1 is connected to a working power supply VDD, so that the single chip microcomputer of the measuring mechanism is prevented from being damaged by instantaneous high voltage input from the outside.
The software algorithm scheme and the working flow of the double-range self-adaptive measuring method provided by the invention are shown in figure 4:
and ON-state electricity ON the whole vehicle is transmitted, the measuring mechanism is initialized, the first triode Q1 is conducted in a default state, and the first pull-up resistor R3 is connected for measurement.
At the moment, the MCU _ AD port of the singlechip microcomputer carries out filtering and A/D conversion on the measurement signal, and software judges whether the MCU _ AD conversion value is in the range of range 1 or not according to the preset range.
If the signal measured by the pull-up resistor R3 is in the range of range 1, the software performs anti-shake, operation and processing, and stores, displays and sends out the measurement result, or controls an execution mechanism to complete a specific function;
otherwise, the MCU _ GPIO port of the singlechip outputs high level, controls the conduction of the second triode Q2 and the third triode Q3, is connected to the second pull-up resistor R4 for measurement, and outputs the measurement result.
In the embodiment of the application, two paths of acquisition reference power supplies are designed on a hardware circuit, and the range of the analog quantity adapted to each path is different;
on the aspect of software algorithm, the change of external analog quantity is monitored in real time, the automatic switching of measuring range can be realized through self-adaptive algorithm and calibration threshold according to the change range software, the full-range high-precision data acquisition is covered, and the acquisition and output of the analog quantity in the vehicle-mounted field under the complicated extreme working condition are realized.
It should be noted that the calibration can be supported by the above range boundary value, and when the device leaves the factory, the parameter calibration is performed according to the adapted vehicle type, so that the application range is wider, and the acquisition precision is higher.
In a second aspect, an embodiment of the present application provides, on the basis of the technique of the dual-range adaptive measurement method mentioned in the first aspect, a dual-range adaptive measurement apparatus, including:
an analog signal receiving end for receiving an analog signal to be measured;
the double-range self-adaptive measurement module is used for measuring the analog signal to be measured;
the double-range self-adaptive identification module is used for identifying a range identification value obtained when the double-range self-adaptive measurement circuit in the first state measures the analog signal to be measured;
the double-range self-adaptive maintaining module is used for obtaining the analog signal measurement data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the first state when the range identification value is in the first measuring range corresponding to the first state;
and the double-range self-adaptive switching module is used for switching the double-range self-adaptive measuring circuit to a second state when the range identification value is not in the first measuring range corresponding to the first state, and acquiring the analog signal measuring data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the second state.
In the embodiment of the application, the double-range self-adaptive test circuit is adapted to different analog quantity measuring ranges, the change of the analog quantity is monitored, and the measuring ranges are automatically switched, so that the measuring work in different measuring ranges is met.
Specifically, the dual-range adaptive measuring circuit in the first state corresponds to the first measuring range and is marked as range 1;
the dual-range adaptive measurement circuit in the second state corresponds to the second measurement range, which is denoted as range 2.
The hysteresis interval is set between the two ranges, so that the situation that the ranges are switched back and forth when an external signal changes around a threshold value Rth is prevented, and the hysteresis interval is specifically set as follows:
assuming that the upper limit value of range 1 is set to (Rth + a), the lower limit value of range 2 is set to (Rth-b), (Rth + a) > (Rth-b);
when the external signal rises to be greater than (Rth + a), range 1 is switched to range 2;
on the contrary, when the external signal is reduced to be less than (Rth-b), the range 2 is switched to the range 1, and the system stability and the measurement accuracy are improved.
It should be noted that the upper limit value of the range 1 is greater than the lower limit value of the range 2;
the upper limit value of the range 2 is larger than that of the range 1;
the lower limit value of range 1 is smaller than the lower limit value of range 2.
Specifically, the double-range adaptive measurement circuit includes:
an analog signal input terminal for receiving the analog signal to be measured;
the first capacitor is used for filtering the analog signal to be measured;
a collector of the first triode is connected with one end of a first pull-up resistor, the other end of the first pull-up resistor is connected with the first capacitor, an emitter of the first triode is connected to a preset reference voltage, a base of the first triode is connected with one end of a first current-limiting resistor, the other end of the first current-limiting resistor is connected with a preset measuring singlechip port, and the first current-limiting resistor and the first pull-down resistor are connected to a ground point in series;
a collector of the second triode is connected with one end of a second pull-up resistor, the other end of the second pull-up resistor is connected with a preset RC filter circuit, an emitter of the second triode is connected with a reference voltage, and a base of the second triode is connected with one end of a second current-limiting resistor;
a base electrode of the third triode is connected with one end of a second current-limiting resistor, the other end of the second current-limiting resistor is connected with a port of the measuring singlechip, a collector electrode of the third triode is connected with the other end of the second current-limiting resistor, and the collector electrode of the third triode is connected to a working power supply through a third pull-up resistor;
the RC filter circuit comprises a filter circuit resistor and a filter circuit capacitor which are connected in series, the other end of the filter circuit resistor is connected to the A/D converter and the anode of the first voltage-regulator tube, and the cathode of the first voltage-regulator tube is connected to the working power supply;
the base electrode of the second triode is connected with the collector electrode of the third triode in series through a preset resistor;
the A/D converter is used for outputting analog signal measurement data corresponding to the analog signal to be measured by the double-range self-adaptive measurement circuit.
Specifically, when the dual-range adaptive measurement circuit is in the first state, the first triode is internally conducted, and the second triode and the third triode are not internally conducted;
when the double-range self-adaptive measuring circuit is in the second state, the first triode is not conducted, and the second triode and the third triode are both conducted.
Specifically, the double-range adaptive measurement device further includes:
a power signal receiving end for receiving a power signal to be measured;
and the power supply signal measuring module is used for measuring the power supply signal to be measured by utilizing a preset voltage acquisition circuit and obtaining corresponding power supply signal measurement data.
Specifically, the double-range adaptive measurement device further includes:
a digital signal receiving end for receiving a digital signal to be measured;
and the digital signal measuring module is used for measuring the digital signal to be measured by utilizing a preset switch acquisition circuit and acquiring corresponding digital signal measurement data.
Fig. 2 is a schematic diagram of a dual-range adaptive measurement device according to an embodiment of the present application:
firstly, a power signal receiving end receives a power signal, the power signal is converted into a stable voltage signal through a voltage acquisition circuit in a preset power signal measuring module, and the stable voltage signal is input into an A/D converter of a main controller, so that the current power mode can be conveniently identified.
Secondly, the digital signal receiving end receives the digital signal, and the digital signal can simultaneously acquire a plurality of paths of switching value signals through a multi-channel switching value acquisition chip circuit in a preset digital signal measuring module, wherein only one path of the signals is listed in the figure.
And thirdly, aiming at analog signals, analog quantity fluctuating in a large range is connected to a double-range self-adaptive acquisition circuit, and the circuit automatically selects a pull-up resistor and a triode according to a preset threshold value to accurately acquire and process the analog quantity signals in the wide range, so that the stability of the system is ensured.
The various signals measured as described above are calculated and processed by the main controller of the two-range adaptive measuring device to obtain a stable strategy result, and the strategy result is displayed, stored, or driven by the actuator according to a predetermined strategy.
The double-range self-adaptive measurement circuit provided by the embodiment of the application is shown in fig. 3:
signal _ Input is an analog Signal Input end and is used for receiving an analog quantity Signal, and the variation range of the analog quantity Signal is large.
The first capacitor C1 filters the input analog signal, the first pull-up resistor R3 is connected with the collector of the first triode Q1, the emitter of the first triode Q1 is connected with the reference voltage VREF, the base of the first triode Q1 is connected with one end of the first current-limiting resistor R2, the other end of the first current-limiting resistor R2 is connected with the single chip microcomputer port MCU _ GPIO of the measuring mechanism, a first pull-down resistor R1 is designed to GND, and the first pull-down resistor R1 provides a stable control state when the MCU _ GPIO is in a high-resistance state.
The second pull-up resistor R4 is connected to the collector of the second transistor Q2, the emitter of the second transistor Q2 is connected to the reference voltage VREF, and the base of the second transistor Q2 is connected to one end of the second current-limiting resistor R6.
The other end of the current-limiting resistor R6 is connected with the collector of a third triode Q3, the collector is connected with a working power supply VDD through a third pull-up resistor R8, the base of the third triode Q3 is connected with one end of a third current-limiting resistor R7, and the other end of the third current-limiting resistor R7 is connected with a single chip microcomputer port MCU _ GPIO of the measuring mechanism.
The other end of the second pull-up resistor R4 is connected with an RC filter circuit, and the filter circuit comprises a filter circuit resistor R5 and a filter circuit capacitor C2, so that the stability of the acquired signals and the anti-interference capability of the system are further improved.
The other end of the filter circuit resistor R5 is connected to an A/D converter integrated with the single chip microcomputer of the measuring mechanism, the other end of the filter circuit resistor R5 is also connected to the anode of a first voltage-regulator tube D1, and the cathode of the first voltage-regulator tube D1 is connected to a working power supply VDD, so that the single chip microcomputer of the measuring mechanism is prevented from being damaged by instantaneous high voltage input from the outside.
The software algorithm scheme and the working flow of the double-range self-adaptive measuring method provided by the invention are shown in figure 4:
and ON-state electricity ON the whole vehicle is transmitted, the measuring mechanism is initialized, the first triode Q1 is conducted in a default state, and the first pull-up resistor R3 is connected for measurement.
At the moment, the MCU _ AD port of the singlechip performs filtering and A/D conversion on the measurement signal, and the software judges whether the MCU _ AD conversion value is in the range of range 1 or not according to the preset range.
If the signal measured by the pull-up resistor R3 is in the range of range 1, the software performs anti-shake, operation and processing, and stores, displays and sends out the measurement result, or controls an execution mechanism to complete a specific function;
otherwise, the MCU _ GPIO port of the singlechip outputs high level, controls the conduction of a second triode Q2 and a third triode Q3, is connected into a second pull-up resistor R4 for measurement, and outputs the measurement result in the same way.
In the embodiment of the application, two paths of acquisition reference power supplies are designed on a hardware circuit, and the range of the analog quantity adapted to each path is different;
on the aspect of software algorithm, the change of external analog quantity is monitored in real time, the automatic switching of measuring range can be realized through self-adaptive algorithm and calibration threshold according to the change range software, the full-range high-precision data acquisition is covered, and the acquisition and output of the analog quantity in the vehicle-mounted field under the complicated extreme working condition are realized.
It should be noted that the calibration can be supported by the above range boundary value, and when the device leaves the factory, the parameter calibration is performed according to the adapted vehicle type, so that the application range is wider, and the acquisition precision is higher.
It is noted that, in the present application, 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. Also, 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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present application and are presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A double-range self-adaptive measurement method is characterized by comprising the following steps:
receiving an analog signal to be measured, and measuring the analog signal to be measured by using a preset double-range self-adaptive measuring circuit in a first state;
identifying a range identification value obtained when the double-range self-adaptive measuring circuit in the first state measures the analog signal to be measured;
when the range identification value is in a first measuring range corresponding to the first state, obtaining analog signal measuring data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the first state;
and when the range identification value is not in the first measuring range corresponding to the first state, switching the double-range self-adaptive measuring circuit into a second state, and acquiring the analog signal measuring data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the second state.
2. The dual-range adaptive measurement method of claim 1, wherein the dual-range adaptive measurement circuit comprises:
an analog signal input terminal for receiving the analog signal to be measured;
the first capacitor is used for filtering the analog signal to be measured;
a collector of the first triode is connected with one end of a first pull-up resistor, the other end of the first pull-up resistor is connected with the first capacitor, an emitter of the first triode is connected to a preset reference voltage, a base of the first triode is connected with one end of a first current-limiting resistor, the other end of the first current-limiting resistor is connected with a preset measuring singlechip port, and the first current-limiting resistor and the first pull-down resistor are connected to a ground point in series;
a collector of the second triode is connected with one end of a second pull-up resistor, the other end of the second pull-up resistor is connected with a preset RC filter circuit, an emitter of the second triode is connected with a reference voltage, and a base of the second triode is connected with one end of a second current-limiting resistor;
a base electrode of the third triode is connected with one end of a second current-limiting resistor, the other end of the second current-limiting resistor is connected with a port of the measuring singlechip, a collector electrode of the third triode is connected with the other end of the second current-limiting resistor, and the collector electrode of the third triode is connected to a working power supply through a third pull-up resistor;
the RC filter circuit comprises a filter circuit resistor and a filter circuit capacitor which are connected in series, the other end of the filter circuit resistor is connected to the A/D converter and the anode of the first voltage-regulator tube, and the cathode of the first voltage-regulator tube is connected to the working power supply;
the base electrode of the second triode is connected with the collector electrode of the third triode in series through a preset resistor;
the A/D converter is used for outputting analog signal measurement data corresponding to the analog signal to be measured by the double-range self-adaptive measurement circuit.
3. The dual-range adaptive measurement method of claim 2, characterized in that:
when the double-range self-adaptive measuring circuit is in a first state, the first triode is internally conducted, and the second triode and the third triode are not internally conducted;
when the double-range self-adaptive measuring circuit is in the second state, the first triode is not conducted, and the second triode and the third triode are both conducted.
4. The dual-range adaptive measurement method of claim 1, further comprising the steps of:
and receiving a power supply signal to be measured, measuring the power supply signal to be measured by using a preset voltage acquisition circuit, and obtaining corresponding power supply signal measurement data.
5. The dual-range adaptive measurement method of claim 1, further comprising the steps of:
and receiving a digital signal to be measured, measuring the digital signal to be measured by using a preset switch acquisition circuit, and obtaining corresponding digital signal measurement data.
6. A dual-range adaptive measurement device, the device comprising:
an analog signal receiving end for receiving an analog signal to be measured;
the double-range self-adaptive measurement module is used for measuring the analog signal to be measured;
the double-range self-adaptive identification module is used for identifying a range identification value obtained when the double-range self-adaptive measurement circuit in the first state measures the analog signal to be measured;
the double-range self-adaptive maintaining module is used for obtaining the analog signal measurement data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the first state when the range identification value is in the first measuring range corresponding to the first state;
and the double-range self-adaptive switching module is used for switching the double-range self-adaptive measuring circuit to a second state when the range identification value is not in the first measuring range corresponding to the first state, and acquiring the analog signal measuring data corresponding to the analog signal to be measured by the double-range self-adaptive measuring circuit in the second state.
7. The dual-range adaptive measurement device of claim 6, wherein the dual-range adaptive measurement circuit comprises:
an analog signal input terminal for receiving the analog signal to be measured;
the first capacitor is used for filtering the analog signal to be measured;
a collector of the first triode is connected with one end of a first pull-up resistor, the other end of the first pull-up resistor is connected with the first capacitor, an emitter of the first triode is connected to a preset reference voltage, a base of the first triode is connected with one end of a first current-limiting resistor, the other end of the first current-limiting resistor is connected with a preset measuring singlechip port, and the first current-limiting resistor and the first pull-down resistor are connected to a ground point in series;
a collector of the second triode is connected with one end of a second pull-up resistor, the other end of the second pull-up resistor is connected with a preset RC filter circuit, an emitter of the second triode is connected with a reference voltage, and a base of the second triode is connected with one end of a second current-limiting resistor;
a base electrode of the third triode is connected with one end of a second current-limiting resistor, the other end of the second current-limiting resistor is connected with a port of the measuring singlechip, a collector electrode of the third triode is connected with the other end of the second current-limiting resistor, and the collector electrode of the third triode is connected to a working power supply through a third pull-up resistor;
the RC filter circuit comprises a filter circuit resistor and a filter circuit capacitor which are connected in series, the other end of the filter circuit resistor is connected to the A/D converter and the anode of the first voltage-regulator tube, and the cathode of the first voltage-regulator tube is connected to the working power supply;
the base electrode of the second triode is connected with the collector electrode of the third triode in series through a preset resistor;
the A/D converter is used for outputting analog signal measurement data corresponding to the analog signal to be measured by the double-range self-adaptive measurement circuit.
8. The dual-range adaptive measuring device of claim 6, wherein:
when the double-range self-adaptive measuring circuit is in a first state, the first triode is internally conducted, and the second triode and the third triode are not internally conducted;
when the double-range self-adaptive measuring circuit is in the second state, the first triode is not conducted, and the second triode and the third triode are both conducted.
9. The dual-range adaptive measuring device of claim 6, wherein the dual-range adaptive measuring device further comprises:
a power signal receiving end for receiving a power signal to be measured;
and the power supply signal measuring module is used for measuring the power supply signal to be measured by utilizing a preset voltage acquisition circuit and obtaining corresponding power supply signal measurement data.
10. The dual-range adaptive measurement device of claim 6, wherein the dual-range adaptive measurement device further comprises:
a digital signal receiving end for receiving a digital signal to be measured;
and the digital signal measuring module is used for measuring the digital signal to be measured by utilizing a preset switch acquisition circuit and acquiring corresponding digital signal measurement data.
CN202210475269.XA 2022-04-29 2022-04-29 Double-range self-adaptive measurement method and device Active CN114659545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210475269.XA CN114659545B (en) 2022-04-29 2022-04-29 Double-range self-adaptive measurement method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210475269.XA CN114659545B (en) 2022-04-29 2022-04-29 Double-range self-adaptive measurement method and device

Publications (2)

Publication Number Publication Date
CN114659545A true CN114659545A (en) 2022-06-24
CN114659545B CN114659545B (en) 2024-01-09

Family

ID=82038008

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210475269.XA Active CN114659545B (en) 2022-04-29 2022-04-29 Double-range self-adaptive measurement method and device

Country Status (1)

Country Link
CN (1) CN114659545B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5164726A (en) * 1991-06-12 1992-11-17 Eastman Kodak Company Self calibrating dual range a/d converter
JPH1127146A (en) * 1997-07-02 1999-01-29 Hitachi Ltd Input device for analog input signal
CN2814338Y (en) * 2004-11-02 2006-09-06 支超有 Field intelligent data collecting module
US20110284753A1 (en) * 2010-05-21 2011-11-24 Lewis Ronald Carroll Method and Apparatus for Extending a Scintillation Counter's Dynamic Range
CN102435274A (en) * 2011-10-28 2012-05-02 中国航天科技集团公司第四研究院第四十四研究所 Multirange digital type electronic automobile scale
CN103095241A (en) * 2011-11-08 2013-05-08 北京泛华恒兴科技有限公司 Double-range signal attenuation device
CN104977459A (en) * 2015-07-15 2015-10-14 威胜集团有限公司 Current detection device, electric energy meter made by device and metering method thereof
CN106405188A (en) * 2016-10-08 2017-02-15 中国电力科学研究院 Automatic measuring range switching system and method for current measuring device
CN106443117A (en) * 2016-08-17 2017-02-22 天津市英贝特航天科技有限公司 Program-controlled multi-range acquisition circuit
CN206208963U (en) * 2016-11-24 2017-05-31 包头市中仁科技有限公司 A kind of digital voltmeter of automatic range switching
CN207248420U (en) * 2017-09-08 2018-04-17 上海工业自动化仪表研究院有限公司 double-range transmitter
CN107942787A (en) * 2017-11-17 2018-04-20 上海华兴数字科技有限公司 Analog signal multiplex circuit and analogue signal acquisition circuit
CN208255308U (en) * 2018-06-22 2018-12-18 乐普医学电子仪器股份有限公司 A kind of double-range power consumption test circuit of pacemaker
CN211264142U (en) * 2020-02-28 2020-08-14 浙江明度智控科技有限公司 Switching value acquisition circuit and IO data acquisition module
CN212515452U (en) * 2020-07-10 2021-02-09 北京优航机电技术有限公司 Online multi-range identification circuit for different signal analog quantities of PLC (programmable logic controller)
CN114036879A (en) * 2021-11-08 2022-02-11 中国商用飞机有限责任公司北京民用飞机技术研究中心 Analog signal acquisition circuit design method, acquisition method and device
WO2022041890A1 (en) * 2020-08-24 2022-03-03 南京磐能电力科技股份有限公司 Switching value acquisition circuit and method

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5164726A (en) * 1991-06-12 1992-11-17 Eastman Kodak Company Self calibrating dual range a/d converter
JPH1127146A (en) * 1997-07-02 1999-01-29 Hitachi Ltd Input device for analog input signal
CN2814338Y (en) * 2004-11-02 2006-09-06 支超有 Field intelligent data collecting module
US20110284753A1 (en) * 2010-05-21 2011-11-24 Lewis Ronald Carroll Method and Apparatus for Extending a Scintillation Counter's Dynamic Range
CN102435274A (en) * 2011-10-28 2012-05-02 中国航天科技集团公司第四研究院第四十四研究所 Multirange digital type electronic automobile scale
CN103095241A (en) * 2011-11-08 2013-05-08 北京泛华恒兴科技有限公司 Double-range signal attenuation device
CN104977459A (en) * 2015-07-15 2015-10-14 威胜集团有限公司 Current detection device, electric energy meter made by device and metering method thereof
CN106443117A (en) * 2016-08-17 2017-02-22 天津市英贝特航天科技有限公司 Program-controlled multi-range acquisition circuit
CN106405188A (en) * 2016-10-08 2017-02-15 中国电力科学研究院 Automatic measuring range switching system and method for current measuring device
CN206208963U (en) * 2016-11-24 2017-05-31 包头市中仁科技有限公司 A kind of digital voltmeter of automatic range switching
CN207248420U (en) * 2017-09-08 2018-04-17 上海工业自动化仪表研究院有限公司 double-range transmitter
CN107942787A (en) * 2017-11-17 2018-04-20 上海华兴数字科技有限公司 Analog signal multiplex circuit and analogue signal acquisition circuit
CN208255308U (en) * 2018-06-22 2018-12-18 乐普医学电子仪器股份有限公司 A kind of double-range power consumption test circuit of pacemaker
CN211264142U (en) * 2020-02-28 2020-08-14 浙江明度智控科技有限公司 Switching value acquisition circuit and IO data acquisition module
CN212515452U (en) * 2020-07-10 2021-02-09 北京优航机电技术有限公司 Online multi-range identification circuit for different signal analog quantities of PLC (programmable logic controller)
WO2022041890A1 (en) * 2020-08-24 2022-03-03 南京磐能电力科技股份有限公司 Switching value acquisition circuit and method
CN114036879A (en) * 2021-11-08 2022-02-11 中国商用飞机有限责任公司北京民用飞机技术研究中心 Analog signal acquisition circuit design method, acquisition method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
孙玉虹;高利聪;梁庭;丑修建;: "双量程紫外光离子化气体浓度检测电路设计", 自动化仪表, no. 03 *
徐剑石, 葛华, 李健: "宽范围高灵敏度电压测量智能仪", 电子技术应用, no. 11 *
王麒;邹丽艳;: "量程自动转换的研究与设计(英文)", 电子测量技术, no. 05 *

Also Published As

Publication number Publication date
CN114659545B (en) 2024-01-09

Similar Documents

Publication Publication Date Title
CN207319096U (en) Electronic circuit
CN112965012A (en) Power supply polarity reverse connection testing device, testing system and testing method
CN101334429B (en) Surge electric current test circuit
CN113489466B (en) Circuit for eliminating signal offset of charge amplifier
CN109975616B (en) Wide-range high-precision resistance tester
CN114659545A (en) Double-range self-adaptive measurement method and device
CN213069107U (en) Current acquisition circuit and power battery based on single current sensor
CN114061782B (en) Circuit for converting current type and thermistor type temperature sensor
CN215493952U (en) Switch tube detection circuit and system thereof
CN106249040B (en) Wide-range dynamic voltage measuring circuit and method
CN212060956U (en) Pre-preprocessing circuit for signal acquisition
CN204928079U (en) Current foldback circuit , power factor correction circuit and transducer air conditioning
CN210865578U (en) Power consumption detection circuit of display panel
CN112665499B (en) Position detection device and method of inductive height sensor and automobile
CN210742293U (en) Signal processing circuit of spinning frame spindle speed sensor
CN107677876A (en) The dynamic measurement method and device of a kind of bipolar signal
CN111580007A (en) Circuit and method for detecting internal resistance of storage battery
CN217442720U (en) Multi-point temperature acquisition circuit and temperature protection device
CN220775376U (en) Overvoltage protection circuit for collecting analog quantity
CN212160049U (en) Terminal connection state detection circuit
CN217879519U (en) Automatic test circuit and electronic equipment
CN109725631B (en) Quiescent current testing device and vehicle
US6844734B2 (en) Current detection circuit for A/F sensor
CN216926957U (en) Automatic optical detection circuit of adjusting
CN204422091U (en) A kind of furnace temperature instrument

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