CN107861427B - Signal processing device and signal processing method - Google Patents

Signal processing device and signal processing method Download PDF

Info

Publication number
CN107861427B
CN107861427B CN201711125983.1A CN201711125983A CN107861427B CN 107861427 B CN107861427 B CN 107861427B CN 201711125983 A CN201711125983 A CN 201711125983A CN 107861427 B CN107861427 B CN 107861427B
Authority
CN
China
Prior art keywords
voltage signal
signal
target voltage
processing
resistor
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
Application number
CN201711125983.1A
Other languages
Chinese (zh)
Other versions
CN107861427A (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.)
Jiangxi Esun Environmental Protection Co ltd
Original Assignee
Jiangxi Esun Environmental Protection 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 Jiangxi Esun Environmental Protection Co ltd filed Critical Jiangxi Esun Environmental Protection Co ltd
Priority to CN201711125983.1A priority Critical patent/CN107861427B/en
Publication of CN107861427A publication Critical patent/CN107861427A/en
Application granted granted Critical
Publication of CN107861427B publication Critical patent/CN107861427B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • G05B19/0425Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2612Data acquisition interface

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)
  • Amplifiers (AREA)

Abstract

The embodiment of the invention discloses a signal processing device and a signal processing method, wherein the signal processing device comprises: an input interface, an output interface and a signal processing unit. The input interface is used for receiving input voltage signals, the signal processing unit is respectively connected with the input interface and the output interface, and the output interface is connected with the measuring unit. The input interface transmits the received initial input voltage signal to the signal processing unit, when the signal processing unit detects that the initial input voltage signal exceeds the measurement range of the measurement unit, the initial input voltage signal is regulated according to the measurement range to obtain a target voltage signal, the target voltage signal meets the measurement range, and the target voltage signal is sent to the output interface. The output interface outputs the target voltage signal to the measuring unit to trigger the measuring unit to execute the measuring work, so that the cost of the instrument and equipment can be reduced.

Description

Signal processing device and signal processing method
Technical Field
The present invention relates to the field of electronic technology, and in particular, to a signal processing apparatus and an information processing method.
Background
The existing instrument and device can have a detection range when processing data. If the voltage signal to be processed does not meet the detection range, the instrument device cannot process the voltage signal to be processed. At this time, a level conversion chip is required to be first referenced, and voltage conversion is performed on the voltage signal to be processed, so that the converted voltage meets the detection range. For example, the detection range of an a/D conversion chip is 1-5V, and the analog voltage signal to be converted is 0.05V, so that the single chip microcomputer cannot control the a/D conversion chip to convert the 0.05V analog voltage signal into the digital voltage signal corresponding to the analog voltage signal. In this case, the level boosting chip is required to boost the analog voltage signal of 0.05V so that the boosted analog voltage signal is within the detection range of 1 to 5V. Then, the singlechip is used for controlling the A/D conversion chip, and A/D conversion is carried out on the boosted analog voltage signal. The incorporation of a level shifting chip to shift the voltage signal to be processed increases the cost of the instrument.
Disclosure of Invention
The embodiment of the invention provides a signal processing device and a signal processing method, which can reduce the cost of instruments and equipment.
In a first aspect, an embodiment of the present invention provides a signal processing apparatus, which is connected to a measurement device, the measurement device including a measurement unit, the signal processing apparatus including: an input interface, an output interface and a signal processing unit; the input interface is used for receiving an input voltage signal, the signal processing unit is respectively connected with the input interface and the output interface, and the output interface is connected with the measuring unit.
The input interface transmits the received initial input voltage signal to the signal processing unit, when the signal processing unit detects that the initial input voltage signal exceeds the measurement range of the measurement unit, the initial input voltage signal is adjusted according to the measurement range to obtain a target voltage signal, the target voltage signal meets the measurement range, the target voltage signal is sent to the output interface, and the output interface outputs the target voltage signal to the measurement unit to trigger the measurement unit to execute measurement work.
Optionally, the signal processing unit includes a signal gain processing circuit, an input end of the signal gain processing circuit is connected to the input interface, and an output end of the signal gain processing circuit is connected to the output interface.
The signal gain processing circuit is used for performing gain processing on the initial input voltage signal to adjust the initial input voltage signal to obtain the target voltage signal; the gain processing includes an enlargement processing or a reduction processing.
Optionally, the signal gain processing circuit includes a first processing resistor, a feedback resistor and a first operational amplifier; the reverse input end of the first operational amplifier is connected with the input interface through the first processing resistor, the reverse input end of the first operational amplifier is connected with the output interface through the feedback resistor, the positive input end of the first operational amplifier is grounded, the output end of the first operational amplifier is connected with the output interface, the positive power end of the first operational amplifier is connected with the positive power end of the signal gain processing circuit, and the negative power end of the first operational amplifier is connected with the negative power end of the signal gain processing circuit.
The signal gain processing circuit calls the first operational amplifier to perform gain processing on the initial input voltage signal according to the ratio of the feedback resistor to the first processing resistor so as to obtain the target voltage signal.
Optionally, the signal processing device further includes a signal adjusting unit, and an output end of the signal adjusting unit is connected to an inverting input end of the first operational amplifier.
The signal adjusting unit is used for adjusting the target voltage signal when the difference value between the target voltage signal and the preset measurement voltage signal exceeds a threshold value, so that the difference value between the adjusted target voltage signal and the preset measurement voltage signal is smaller than or equal to the threshold value.
Optionally, the signal conditioning unit includes a conditioning resistor, a second operational amplifier, and a second processing resistor; the output end of the second operational amplifier is connected with the second processing resistor, the reverse input end of the second operational amplifier is connected with the output end of the second operational amplifier, the positive input end of the second operational amplifier is connected with the adjusting control end of the adjusting resistor, the positive power end of the second operational amplifier is connected with the positive power end of the signal adjusting unit, the negative power end of the second operational amplifier is connected with the negative power end of the signal adjusting unit, one end of the adjusting resistor is connected with the power end of the second operational amplifier, and the other end of the adjusting resistor is grounded.
The signal adjusting unit obtains an adjusting voltage signal according to the resistance value of the adjusting resistor, and calls the second operational amplifier to amplify or shrink the adjusting voltage signal according to the ratio of the feedback resistor to the second processing resistor to obtain a processed adjusting voltage signal, and adjusts the target voltage signal by adopting the processed adjusting voltage signal so that the difference value between the adjusted target voltage signal and the preset measuring voltage signal is smaller than or equal to the threshold value.
Optionally, the signal conditioning unit further comprises a switch control element; the switch control element is connected with the adjusting resistor.
If the target voltage signal is smaller than the preset measurement voltage signal, the switch control element controls one end of the adjusting resistor to be connected with the positive power end of the second operational amplifier; if the target voltage signal is greater than the preset measurement voltage signal, the switch control element controls one end of the adjusting resistor to be connected with the negative power supply end of the second operational amplifier.
Optionally, the output interface includes a first wired communication interface or a first wireless transmission component.
Optionally, if the target voltage signal is greater than or equal to zero, the first wireless transmission component includes an infrared transmitter; if the target voltage signal is smaller than zero, the first wireless transmission assembly comprises an infrared emitter and a bridge, two ends of the bridge are respectively connected with the output end of the signal processing unit and the infrared emitter, and the bridge is used for converting the target voltage signal so that the converted target voltage signal is larger than zero.
Optionally, the input interface includes a second wired communication interface or a second wireless transmission component.
Optionally, if the initial input voltage signal is an optical signal, the second wireless transmission component includes an infrared receiver, and the infrared receiver is configured to convert the optical signal into a corresponding electrical signal after receiving the optical signal.
In a second aspect, an embodiment of the present invention provides a signal processing method, including: receiving an initial input voltage signal; if the initial input voltage signal is detected to exceed the measurement range of the measurement unit, the initial input voltage signal is regulated according to the measurement range to obtain a target voltage signal, and the target voltage signal meets the measurement range; the target voltage signal is output to the measuring unit to trigger the measuring unit to execute the measuring work.
Optionally, the specific implementation manner of adjusting the initial input voltage signal according to the measurement range to obtain the target voltage signal is as follows: gain processing is carried out on the initial input voltage signal according to the measuring range so as to adjust the initial input voltage signal to obtain a target voltage signal; the gain processing includes an enlargement processing or a reduction processing.
Optionally, the specific implementation manner of performing gain processing on the initial input voltage signal according to the measurement range to adjust to obtain the target voltage signal is as follows: calculating a first ratio of a feedback resistor to a first processing resistor in the signal processing device; if the first ratio is greater than 1, amplifying the initial input voltage signal; if the first ratio is smaller than 1, the initial input voltage signal is reduced.
Optionally, the signal processing method further includes: judging whether the difference value between the target voltage signal and the preset measurement voltage signal exceeds a threshold value or not; if the difference value exceeds the preset threshold value, the target voltage signal is regulated, so that the difference value between the regulated target voltage signal and the preset measurement voltage signal is smaller than or equal to the threshold value.
Optionally, the specific implementation manner of adjusting the target voltage signal is: acquiring an adjusting voltage signal according to the resistance value of an adjusting resistor in the signal processing device; calculating a second ratio of the feedback resistance to a second processing resistance in the signal processing device; amplifying or reducing the regulating voltage signal according to the second ratio to obtain a processed regulating voltage signal; and adjusting the target voltage signal by adopting the processed adjusting voltage signal, so that the difference value between the adjusted target voltage signal and the preset measuring voltage signal is smaller than or equal to the threshold value.
In an embodiment of the invention, a signal processing device is connected to a measuring apparatus, the signal processing device comprising: an input interface, an output interface and a signal processing unit; the input interface is used for receiving an input voltage signal, the signal processing unit is respectively connected with the input interface and the output interface, and the output interface is connected with the measuring unit. The input interface transmits the received initial input voltage signal to the signal processing unit, when the signal processing unit detects that the initial input voltage signal exceeds the measurement range of the measurement unit, the initial input voltage signal is adjusted according to the measurement range to obtain a target voltage signal, the target voltage signal meets the measurement range, the target voltage signal is sent to the output interface, and the output interface outputs the target voltage signal to the measurement unit to trigger the measurement unit to execute measurement work. When the signal processing unit detects that the initial input voltage signal exceeds the measurement range, the signal processing device can be used for adjusting the initial input voltage signal to obtain a target voltage signal so that the target voltage signal meets the measurement range. And a level conversion chip is not required to be cited, so that the cost of instruments and equipment is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following description will briefly explain the drawings needed in the description of the embodiments of the present invention, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to the contents of the embodiments of the present invention and these drawings without inventive effort for the skilled person.
Fig. 1 is a schematic circuit diagram of a signal processing device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a signal gain processing circuit according to an embodiment of the present invention;
FIG. 3 is a schematic circuit diagram of an output interface according to an embodiment of the present invention;
fig. 4 is a schematic circuit diagram of a signal processing device according to another embodiment of the present invention;
FIG. 5 is a schematic circuit diagram of a signal conditioning unit according to another embodiment of the present invention;
fig. 6 is a flowchart of a signal processing method according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic structural diagram of a signal processing device according to an embodiment of the present invention, where the signal processing device is connected to a measuring apparatus, and the measuring apparatus includes a measuring unit. As shown in fig. 1, the signal processing apparatus includes: an input interface 101, a signal processing unit 102, and an output interface 103; the input interface 101 is configured to receive an input voltage signal, the signal processing unit 102 is connected to the input interface 101 and the output interface 103, respectively, and the output interface 103 is connected to the measurement unit.
Specifically, the input interface 101 transmits the received initial input voltage signal to the signal processing unit 102. When the signal processing unit 102 detects that the initial input voltage signal exceeds the measurement range of the measurement unit, the initial input voltage signal is adjusted according to the measurement range to obtain a target voltage signal, and the target voltage signal meets the measurement range. And the target voltage signal is sent to the output interface 103, and the output interface 103 outputs the target voltage signal to the measurement unit to trigger the measurement unit to execute measurement work. The initial voltage signal may be a dc voltage signal or an ac voltage signal.
Alternatively, the input interface 101 may comprise a second wired communication interface or a second wireless transmission component.
Specifically, the input interface 101 is a second wired communication interface. In a specific hardware circuit, the second wired communication interface may be a pin header and the signal processing device may receive the initial voltage signal through a dupont line.
The input interface 101 is a second wireless transmission component. If the initial input voltage signal is an optical signal, the second wireless transmission component comprises an infrared receiver, and the infrared receiver is used for converting the optical signal into a corresponding electric signal after receiving the optical signal.
Alternatively, if the initial input voltage signal is an optical signal, the input interface 101 may further include a silicon photocell and an I/V conversion unit (current/voltage conversion unit). A silicon photocell is a semiconductor device capable of directly converting light energy into electric energy, and its working principle is a photovoltaic effect. After receiving the light signal, the silicon photocell can convert the light signal into a current signal proportional thereto. Then the signal is passed through an I/V conversion unit, the current signal is converted into a voltage signal proportional thereto.
It should be noted that the above-listed input interfaces 101 are only examples and are not exhaustive.
Optionally, the signal processing unit 102 includes a signal gain processing circuit 1021. An input end of the signal gain processing circuit 1021 is connected with the input interface 101, and an output end of the signal gain processing circuit 1021 is connected with the output interface 103. The signal gain processing circuit 1021 may be configured to gain process the initial input voltage signal to adjust the target voltage signal. Wherein the gain processing includes an enlargement processing or a reduction processing.
In particular, the signal gain processing circuit may be seen in fig. 2. As shown in fig. 2, the signal gain processing circuit 1021 includes a first processing resistor 10211, a feedback resistor 10212, and a first operational amplifier 10213. The feedback resistor 10212 can be used to adjust the target voltage signal to protect the components in the circuit from being burned out due to the overlarge target voltage signal.
The connection mode can be as follows: the reverse input end of the first operational amplifier 10213 is connected to the input interface 101 through the first processing resistor 10211, the reverse input end of the first operational amplifier 10213 is connected to the output interface 103 through the feedback resistor 10212, the forward input end of the first operational amplifier 10213 is grounded, the output end of the first operational amplifier 10213 is connected to the output interface 103, the positive power end of the first operational amplifier 10213 is connected to the positive power end of the signal gain processing circuit 1021, and the negative power end of the first operational amplifier 10213 is connected to the negative power end of the signal gain processing circuit 1021.
In a specific implementation, the signal gain processing circuit may invoke the first operational amplifier 10213 to perform gain processing on the initial input voltage signal according to the ratio of the feedback resistor 10212 and the first processing resistor 10211 to obtain the target voltage signal.
For example, if the measurement range of the measurement unit is 3-5V and the initial input voltage signal is 4mV, the signal gain processing circuit amplifies the initial input voltage signal so that the amplified initial input signal is within the measurement range. Due to the "short-break" and "short-break" characteristics of the first operational amplifier 10213, the relationship between the target voltage signal and the initial input voltage signal can be obtained as shown in the following formula (1):
U out =—(R 2 /R 1 )*U in (1)
wherein U is out For the target voltage signal, R 1 R is the first processing resistor 2 For feedback resistance, U in Is the initial input voltage signal. Thus, R is preferable 2 Resistance value of 1 Mohm, R 1 The resistance of (2) is 1K ohms. From this, R can be calculated 2 And R is R 1 The ratio of (2) is 1000. Then, the first operational amplifier may be called to amplify the initial input voltage signal of 4mV by 1000 times, resulting in the target voltage signal of 4V.
For another example, if the measurement range of the measurement unit is 3-5 mV and the initial input voltage signal is 4V, the signal gain processing circuit performs the scaling process on the initial input voltage signal so that the scaled initial input signal is within the measurement range. Due to the "virtual short" and "virtual break" characteristics of the operational amplifier, it can be derived that the relationship of the target voltage signal and the initial input voltage signal can be expressed as the following formula (2):
U out =—(R 2 /R 1 )*U in (2)
wherein U is out For the target voltage signal, R 1 R is the first processing resistor 2 For feedback resistance, U in Is the initial input voltage signal. Thus, R is preferable 2 Resistance value of 1 Kohm, R 1 The resistance of (2) is 1M ohm. From this, R can be calculated 2 And R is R 1 The ratio of (2) is 0.001. Thus, the first operational amplifier may be invoked to reduce the initial input voltage signal of 4V to 1/1000 of the original voltage signal, resulting in a target voltage signal of 4 mV.
It should be noted that, the feedback resistor and the first processing resistor may be fixed resistors, or may be variable resistors, such as a sliding resistor.
Optionally, the output interface 103 includes a first wired communication interface or a first wireless transmission component.
Specifically, the output interface 103 is a first wired communication interface. In a specific hardware circuit, the first wired communication interface may be a pin header, which connects the signal processing device to the measuring device via a dupont wire.
The output interface 103 is a first wireless transmission component. Since the internal structure of the infrared emitter comprises the light emitting diode, the light emitting diode can only conduct unidirectionally. That is, if the voltage input to the infrared emitter is less than zero, the led cannot be turned on, and cannot emit light normally, i.e. cannot transmit data. Therefore, if the target voltage signal is greater than or equal to zero, the first wireless transmission component may include an infrared transmitter. If the target voltage signal is less than zero, the first wireless transmission component may include an infrared emitter 1032 and a bridge 1031. The two ends of the bridge 1031 are connected to the output of the signal processing unit 102 and the infrared emitter 1032, respectively, in a specific manner, see fig. 3. The bridge 1031 is used to transition the target voltage signal such that the transitioned target voltage signal is greater than zero. The interior of the infrared emitter 1032 includes a photodiode that emits an optical signal when turned on unidirectionally. The greater the target voltage output, the brighter the light it emits.
If the target voltage signal is smaller than zero, the target voltage signal is set. The target voltage signal may also be converted by an inverting operational amplifier such that the converted target voltage signal is greater than zero. The above list of output interfaces 103 is by way of example only and not exhaustive.
In an embodiment of the present invention, a signal processing apparatus includes: an input interface, an output interface and a signal processing unit. The input interface is used for receiving an input voltage signal, the signal processing unit is respectively connected with the input interface and the output interface, and the output interface is connected with the measuring unit. The input interface transmits the received initial input voltage signal to the signal processing unit, when the signal processing unit detects that the initial input voltage signal exceeds the measurement range of the measurement unit, the initial input voltage signal is adjusted according to the measurement range to obtain a target voltage signal, the target voltage signal meets the measurement range, the target voltage signal is sent to the output interface, and the output interface outputs the target voltage signal to the measurement unit to trigger the measurement unit to execute measurement work. When the signal processing unit detects that the initial input voltage signal exceeds the measurement range, the signal processing unit can be used for adjusting the initial input voltage signal to obtain a target voltage signal so that the target voltage signal meets the measurement range. And a level conversion chip is not required to be cited, so that the cost of instruments and equipment is reduced.
Fig. 4 is a schematic structural diagram of a signal processing device according to another embodiment of the invention. As shown in fig. 4, the signal processing apparatus includes an input interface 401, a signal processing unit 402, and an output interface 403. It should be noted that, in the embodiment of the present invention, the input interface 401, the signal processing unit 402, and the output interface 403 may refer to the input interface 101, the signal processing unit 102, and the output interface 103 in the embodiment of the present invention, which are not described in detail. In addition, the signal processing apparatus in the embodiment of the present invention may further include a signal adjusting unit 404, where an output terminal of the signal adjusting unit 404 is connected to an inverting input terminal of the first operational amplifier 40213.
The signal adjustment unit 404 is configured to adjust the target voltage signal such that the difference between the adjusted target voltage signal and the preset measured voltage signal is less than or equal to the threshold value when the difference between the target voltage signal and the preset measured voltage signal exceeds the threshold value.
The accuracy of most of the current components cannot be guaranteed to be completely accurate, for example, the resistance value of the first processing resistor is marked as 1K ohm, but the actual resistance value may be 850 ohm, and the resistance value of the feedback resistor is still 1M ohm, which results in that the output target voltage signal is 4.7V. However, the preset measured voltage signal should be 4V, and the difference value is calculated to be 0.7V. And the threshold value is + -0.1V, and the difference value exceeds the threshold value to indicate that the error is larger. At this time, a signal adjusting unit is required for adjustment.
Specifically, the signal conditioning unit 404 may include a conditioning resistor 4041, a second operational amplifier 4042, and a second processing resistor 4043.
The connection mode can be as follows: the output end of the second operational amplifier 4042 is connected with the second processing resistor 4043, the inverting input end of the second operational amplifier 4042 is connected with the output end of the second operational amplifier 4042, the positive input end of the second operational amplifier 4042 is connected with the adjusting control end of the adjusting resistor 4041, the positive power end of the second operational amplifier 4042 is connected with the positive power end of the signal adjusting unit 404, the negative power end of the second operational amplifier 4042 is connected with the negative power end of the signal adjusting unit 404, one end of the adjusting resistor 4041 is connected with the power end of the second operational amplifier 4042, and the other end of the adjusting resistor 4041 is grounded. In fig. 4, one end of the adjusting resistor 4041 is connected to the negative power supply terminal of the second operational amplifier 4042 by default. Of course, one end of the adjusting resistor 4041 may be connected to the positive power supply end of the second operational amplifier 4042.
In a specific implementation, the signal adjusting unit 404 obtains an adjusting voltage signal according to the resistance value of the adjusting resistor 4041, and invokes the second operational amplifier 4042 to amplify or reduce the adjusting voltage signal according to the ratio of the feedback resistor 40212 to the second processing resistor 4043, so as to obtain a processed adjusting voltage signal, and adjusts the target voltage signal by using the processed adjusting voltage signal, so that the difference between the adjusted target voltage signal and the preset measuring voltage signal is smaller than or equal to the threshold value.
Due to the "short-break" and "short-break" characteristics of the first operational amplifier 40213 and the second operational amplifier 4042, the relationship between the target voltage signal and the initial input voltage signal can be obtained as shown in equation (3):
U OUT =—((R 2 /R 1 )*U in +(R 2 /R 3 )*U 1 ) (3)
wherein U is OUT For the regulated target voltage signal, R 1 For the first processing resistor to be a first processing resistor, R is R 2 R is feedback resistance 3 For the second processing resistor, U in For initial input voltage signal, U 1 To regulate the output voltage signal of unit 404, U 1 Can be determined by adjusting the resistance value of the resistor.
In the above embodiment of the invention, mention is made of: the accuracy of most of the current components cannot be guaranteed to be completely accurate, for example, the resistance value of the first processing resistor is marked as 1K ohm, but the actual resistance value may be 850 ohm, and the resistance value of the feedback resistor is still 1M ohm, which results in that the output target voltage signal is 4.7V. However, the preset measured voltage signal should be 4V, and it can be calculated that the target voltage signal output at this time is 0.7V more than the preset measured voltage signal, and the signal adjusting unit 404 is needed for adjustment. Since the adjusting resistor 4041 is a slide rheostat, a-V power supply is connected. Therefore, in the adjusting process, the output voltage signal is caused by changing the resistance value of the sliding rheostatU1 is-0.7V. At this time, R 3 May have a resistance of 1 megaohm. Substituting all values into U (3) OUT =—((10 6 /850)*0.004+(10 6 /10 6 ) -0.7)), whereby the adjusted target signal voltage is 4V.
For another example, if the target voltage signal is less than 0.7V than the preset measurement voltage signal, one end of the adjusting resistor 4041 may be connected to the positive power end of the second operational amplifier 4042, so that the output voltage signal U1 is +0.7v by changing the resistance value of the sliding rheostat.
The adjusting unit 404 has the following advantageous effects:
the error of each component may cause a larger difference between the output target voltage signal and the preset measurement voltage signal, thereby causing a larger error of the measurement operation. Therefore, an adjusting unit is added in the signal processing device, and the adjusting unit can be used for adjusting the target voltage signal, so that the difference value between the adjusted target voltage signal and the preset measured voltage signal is smaller than or equal to a threshold value, and the accuracy of the measurement operation is improved.
Optionally, the signal conditioning unit 404 further includes a switch control element 4044, and the switch control element 4044 is connected to the conditioning resistor 4041. Specific circuitry can be seen in fig. 5.
As shown in fig. 5, the switch control element 4044 may be a single pole double throw switch. If the target voltage signal is smaller than the preset measurement voltage signal, the switch control element 4044 controls one end of the adjusting resistor 4041 to be connected with the positive power end of the second operational amplifier 4042; if the target voltage signal is greater than the preset measurement voltage signal, the switch control element 4044 controls one end of the adjusting resistor 4041 to be connected to the negative power supply end of the second operational amplifier 4042.
The switch control element 4044 has the following beneficial effects:
as can be seen from the equation (3), when the signal adjustment is performed, the adjusted target voltage signal is equal to the target voltage signal plus the adjusted voltage signal. In practical application, if the target voltage signal is smaller than the preset measurement voltage signal, a positive adjustment voltage signal is required to enhance the target voltage signal, and the adjustment resistor is required to be connected to the positive power supply terminal. If the target voltage signal is greater than the preset measurement voltage signal, a negative regulation voltage signal is required to weaken the target voltage signal, and the regulation resistor is required to be connected with a negative power supply terminal. The switch control element is added, so that the connection mode of the adjusting resistor can be changed more conveniently, and the operation complexity is reduced.
Fig. 6 is a flowchart of a signal processing method according to an embodiment of the present invention. The signal processing method may be applied to the signal processing apparatus shown in fig. 1 or 4, i.e., the steps of the signal processing method shown in fig. 6 may be performed by the signal processing apparatus shown in fig. 1 or 4. As shown in fig. 6, the signal processing method includes:
s601, the signal processing device receives an initial input voltage signal.
And S602, if the signal processing device detects that the initial input voltage signal exceeds the measurement range of the measurement unit, the signal processing device adjusts the initial input voltage signal according to the measurement range to obtain a target voltage signal.
Wherein the target voltage signal satisfies the measurement range.
Specifically, the signal processing device may perform gain processing on the initial input voltage signal according to the measurement range to adjust the initial input voltage signal to obtain the target voltage signal. The gain processing may include an enlargement processing or a reduction processing, among others.
In a specific implementation, the signal processing device may first calculate a first ratio of the feedback resistance to the first processing resistance in the signal processing device. If the first ratio is greater than 1, the initial input voltage signal is amplified. If the first ratio is smaller than 1, the initial input voltage signal is scaled down.
For example, if the first ratio of the feedback resistor to the first processing resistor is calculated to be 1.25, the initial input voltage signal is amplified by 1.25 times to obtain the target voltage signal. If the first ratio of the feedback resistor to the first processing resistor is calculated to be 0.1, the initial input voltage signal is reduced to one tenth of the original voltage signal, and a target voltage signal is obtained.
S603, the signal processing device judges whether the difference value between the target voltage signal and the preset measurement voltage signal exceeds a threshold value.
In particular, the threshold represents an allowable error range of the measuring device, and may be a value set by the user according to a product requirement of the measuring device, and the higher the product requirement is, the smaller the threshold is. Of course, the threshold value may be set at the time of shipment of the measuring device. If the difference between the target voltage signal and the preset measured voltage signal exceeds the threshold, steps S604-S605 are performed, and if the difference between the target voltage signal and the preset measured voltage signal does not exceed the threshold, step S606 is performed.
It should be noted that, there is no sequence between steps S604 to S605 and step S606.
S604, the signal processing device adjusts the target voltage signal, and enabling the difference value between the regulated target voltage signal and the preset measurement voltage signal to be smaller than or equal to the threshold value.
Specifically, the adjustment voltage signal is obtained according to the resistance value of the adjustment resistor in the signal processing device. And then, calculating a second ratio of the feedback resistor to the second processing resistor in the signal processing device, and carrying out amplification or reduction processing on the regulated voltage signal according to the second ratio to obtain a processed regulated voltage signal. And if the second ratio is greater than 1, amplifying the regulated voltage signal. If the second ratio is smaller than 1, the adjusting voltage signal is reduced. And finally, regulating the target voltage signal by adopting the processed regulating voltage signal, so that the difference value between the regulated target voltage signal and the preset measuring voltage signal is smaller than or equal to the threshold value. That is, the processed regulated voltage signal is finally added or subtracted from the target voltage signal to obtain the regulated target voltage signal.
S605, the signal processing device outputs the adjusted target voltage signal to the measuring unit to trigger the measuring unit to execute the measuring work.
Specifically, the measurement unit may be a single chip microcomputer or an a/D conversion unit in a programmable logic controller (Programmable Logic Controller, PLC). After the signal processing device outputs the regulated target voltage signal to the A/D conversion unit, the A/D conversion unit can perform analog-to-digital conversion, and the target voltage signal is converted into a digital signal for the singlechip or the PLC.
S606, the signal processing device outputs the target voltage signal to the measuring unit to trigger the measuring unit to execute the measuring work.
It should be noted that, step S606 may refer to step S605, which is not described herein.
In the embodiment of the present invention, the signal processing device may first receive an initial input voltage signal. And if the initial input voltage signal is detected to be beyond the measurement range of the measurement unit, regulating the initial input voltage signal according to the measurement range to obtain a target voltage signal. After the target voltage signal is obtained, it may also be determined whether a difference between the target voltage signal and a preset measured voltage signal exceeds a threshold value. If the target voltage signal exceeds the threshold value, the target voltage signal is regulated, so that the difference value between the regulated target voltage signal and the preset measurement voltage signal is smaller than or equal to the threshold value, and the regulated target voltage signal is output to the measurement unit to trigger the measurement unit to execute measurement work. If the target voltage signal does not exceed the target voltage signal, the target voltage signal is directly output to the measuring unit to trigger the measuring unit to execute the measuring work. In the prior art, if the initial input voltage signal exceeds the measurement range of the measurement unit, the measurement device needs to be replaced so that the measurement unit of the replaced measurement device can perform the measurement operation. In the embodiment of the invention, the initial input voltage signal is regulated within the measurement range of the measurement unit so as to obtain the target voltage signal meeting the measurement range, so that the measurement equipment does not need to be replaced, and the utilization rate of the measurement equipment can be improved.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The above disclosure is only a few examples of the present invention, and it is not intended to limit the scope of the present invention, but it is understood by those skilled in the art that all or a part of the above embodiments may be implemented and equivalents thereof may be modified according to the scope of the present invention.

Claims (9)

1. A signal processing apparatus, wherein the signal processing apparatus is connected to a measuring device, the measuring device comprising a measuring unit, the signal processing apparatus comprising: the device comprises an input interface, an output interface, a signal adjusting unit and a signal processing unit; the signal processing unit comprises a signal gain processing circuit, wherein the input end of the signal gain processing circuit is connected with the input interface, and the output end of the signal gain processing circuit is connected with the output interface; the signal gain processing circuit comprises a first processing resistor, a feedback resistor and a first operational amplifier; the output end of the signal regulating unit is connected with the reverse input end of the first operational amplifier;
the input interface is used for receiving an input voltage signal, the signal processing unit is respectively connected with the input interface and the output interface, and the output interface is connected with the measuring unit;
the input interface transmits the received initial input voltage signal to the signal processing unit, when the signal processing unit detects that the initial input voltage signal exceeds the measurement range of the measurement unit, the initial input voltage signal is regulated according to the measurement range to obtain a target voltage signal, the target voltage signal meets the measurement range, the target voltage signal is sent to the output interface, and the output interface outputs the target voltage signal to the measurement unit to trigger the measurement unit to execute measurement work;
the signal gain processing circuit is used for performing gain processing on the initial input voltage signal to adjust the initial input voltage signal to obtain the target voltage signal; the gain processing includes an enlargement processing or a reduction processing;
the reverse input end of the first operational amplifier is connected with the input interface through the first processing resistor, the reverse input end of the first operational amplifier is connected with the output interface through the feedback resistor, the positive input end of the first operational amplifier is grounded, the output end of the first operational amplifier is connected with the output interface, the positive power end of the first operational amplifier is connected with the positive power end of the signal gain processing circuit, and the negative power end of the first operational amplifier is connected with the negative power end of the signal gain processing circuit;
the signal gain processing circuit calls the first operational amplifier to perform gain processing on the initial input voltage signal according to the ratio of the feedback resistor to the first processing resistor so as to obtain the target voltage signal;
the signal adjusting unit is used for adjusting the target voltage signal when the difference value between the target voltage signal and a preset measurement voltage signal exceeds a threshold value, so that the difference value between the adjusted target voltage signal and the preset measurement voltage signal is smaller than or equal to the threshold value.
2. The signal processing apparatus according to claim 1, wherein the signal conditioning unit includes a conditioning resistor, a second operational amplifier, and a second processing resistor;
the output end of the second operational amplifier is connected with the second processing resistor, the reverse input end of the second operational amplifier is connected with the output end of the second operational amplifier, the positive input end of the second operational amplifier is connected with the adjusting control end of the adjusting resistor, the positive power end of the second operational amplifier is connected with the positive power end of the signal adjusting unit, the negative power end of the second operational amplifier is connected with the negative power end of the signal adjusting unit, one end of the adjusting resistor is connected with the power end of the second operational amplifier, and the other end of the adjusting resistor is grounded;
and the signal regulating unit obtains a regulating voltage signal according to the resistance value of the regulating resistor, calls the second operational amplifier to amplify or reduce the regulating voltage signal according to the ratio of the feedback resistor to the second processing resistor to obtain a processed regulating voltage signal, and regulates the target voltage signal by adopting the processed regulating voltage signal so that the difference value between the regulated target voltage signal and the preset measuring voltage signal is smaller than or equal to the threshold value.
3. The signal processing device of claim 2, wherein the signal conditioning unit further comprises a switch control element;
the switch control element is connected with the adjusting resistor;
if the target voltage signal is smaller than the preset measurement voltage signal, the switch control element controls one end of the adjusting resistor to be connected with a positive power end of the second operational amplifier;
and if the target voltage signal is larger than the preset measurement voltage signal, controlling one end of the adjusting resistor to be connected with a negative power supply end of the second operational amplifier by the switch control element.
4. A signal processing apparatus according to any one of claims 1 to 3, wherein: the output interface includes a first wired communication an interface or a first wireless transmission component.
5. The signal processing apparatus of claim 4, wherein:
if the target voltage signal is greater than or equal to zero, the first wireless transmission component comprises an infrared transmitter;
if the target voltage signal is smaller than zero, the first wireless transmission assembly comprises an infrared emitter and a bridge, two ends of the bridge are respectively connected with the output end of the signal processing unit and the infrared emitter, and the bridge is used for converting the target voltage signal so that the converted target voltage signal is larger than zero.
6. A signal processing apparatus according to any one of claims 1 to 3, wherein:
the input interface includes a second wired communication interface or a second wireless transmission component.
7. The signal processing device of claim 6, wherein if the initial input voltage signal is an optical signal, the second wireless transmission assembly includes an infrared receiver for converting the optical signal into a corresponding electrical signal after receiving the optical signal.
8. A signal processing method applied to the signal processing device according to any one of claims 1 to 7, comprising:
receiving an initial input voltage signal;
if the initial input voltage signal is detected to exceed the measurement range of the measurement unit, the initial input voltage signal is regulated according to the measurement range to obtain a target voltage signal, which comprises the following steps: performing gain processing on the initial input voltage signal according to the measurement range to adjust the initial input voltage signal to obtain a target voltage signal, wherein the gain processing comprises amplification processing or reduction processing; the target voltage signal satisfies the measurement range;
outputting the target voltage signal to the measurement unit to trigger the measurement unit to execute measurement work;
judging whether the difference value between the target voltage signal and the preset measurement voltage signal exceeds a threshold value or not;
if the difference value exceeds the preset measurement voltage signal, the target voltage signal is regulated, so that the difference value between the regulated target voltage signal and the preset measurement voltage signal is smaller than or equal to the threshold value;
the gain processing is performed on the initial input voltage signal according to the measurement range to adjust the initial input voltage signal to obtain a target voltage signal, and the gain processing comprises the following steps: calculating a first ratio of a feedback resistor to a first processing resistor in the signal processing device; if the first ratio is greater than 1, amplifying the initial input voltage signal; and if the first ratio is smaller than 1, performing reduction processing on the initial input voltage signal.
9. The signal processing method of claim 8, wherein said adjusting said target voltage signal comprises:
acquiring an adjusting voltage signal according to the resistance value of an adjusting resistor in the signal processing device;
calculating a second ratio of a feedback resistor to a second processing resistor in the signal processing device;
amplifying or reducing the regulating voltage signal according to the second ratio to obtain a processed regulating voltage signal;
and adjusting the target voltage signal by adopting the processed adjusting voltage signal, so that the difference value between the adjusted target voltage signal and the preset measuring voltage signal is smaller than or equal to the threshold value.
CN201711125983.1A 2017-11-14 2017-11-14 Signal processing device and signal processing method Active CN107861427B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711125983.1A CN107861427B (en) 2017-11-14 2017-11-14 Signal processing device and signal processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711125983.1A CN107861427B (en) 2017-11-14 2017-11-14 Signal processing device and signal processing method

Publications (2)

Publication Number Publication Date
CN107861427A CN107861427A (en) 2018-03-30
CN107861427B true CN107861427B (en) 2024-04-05

Family

ID=61701795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711125983.1A Active CN107861427B (en) 2017-11-14 2017-11-14 Signal processing device and signal processing method

Country Status (1)

Country Link
CN (1) CN107861427B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112865729B (en) * 2021-02-01 2023-02-28 展讯通信(上海)有限公司 Amplifier circuit and electronic device
CN114624506A (en) * 2022-05-13 2022-06-14 飞腾信息技术有限公司 Signal processing method, signal processing device, controller, equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202502A (en) * 2006-12-11 2008-06-18 郑再钦 AC/DC switch voltage-stabilizing circuit
CN101594053A (en) * 2009-03-27 2009-12-02 广州金升阳科技有限公司 A kind of power supply changeover device of wide-range voltage input
JP2010071908A (en) * 2008-09-22 2010-04-02 Hioki Ee Corp Synchronous measuring device and synchronous measuring system
CN102983761A (en) * 2012-12-13 2013-03-20 北京赛德高科铁道电气科技有限责任公司 Voltage switching circuit
CN103997334A (en) * 2013-02-20 2014-08-20 精工电子有限公司 Level shift circuit
CN104065263A (en) * 2013-03-22 2014-09-24 株式会社东芝 Voltage Conversion Circuit And Switching Control Circuit
CN104485806A (en) * 2014-11-08 2015-04-01 成都芯源系统有限公司 Bootstrap voltage refresh control circuit, voltage conversion circuit and control method thereof
CN106130495A (en) * 2016-06-28 2016-11-16 合肥欣奕华智能机器有限公司 A kind of collection of simulant signal system and acquisition method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202502A (en) * 2006-12-11 2008-06-18 郑再钦 AC/DC switch voltage-stabilizing circuit
JP2010071908A (en) * 2008-09-22 2010-04-02 Hioki Ee Corp Synchronous measuring device and synchronous measuring system
CN101594053A (en) * 2009-03-27 2009-12-02 广州金升阳科技有限公司 A kind of power supply changeover device of wide-range voltage input
CN102983761A (en) * 2012-12-13 2013-03-20 北京赛德高科铁道电气科技有限责任公司 Voltage switching circuit
CN103997334A (en) * 2013-02-20 2014-08-20 精工电子有限公司 Level shift circuit
CN104065263A (en) * 2013-03-22 2014-09-24 株式会社东芝 Voltage Conversion Circuit And Switching Control Circuit
CN104485806A (en) * 2014-11-08 2015-04-01 成都芯源系统有限公司 Bootstrap voltage refresh control circuit, voltage conversion circuit and control method thereof
CN106130495A (en) * 2016-06-28 2016-11-16 合肥欣奕华智能机器有限公司 A kind of collection of simulant signal system and acquisition method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
初永丽等.《模拟电子技术基础》.2016,第104-107页. *

Also Published As

Publication number Publication date
CN107861427A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
US9755511B2 (en) Current regulator circuit capable of reducing current ripple and method of reducing current ripple
CN110299819B (en) Digital power supply control circuit and method
US7512166B2 (en) Apparatus and method for controlling optical power and extinction ratio
US8648586B2 (en) Circuit for sensing load current of a voltage regulator
US20140186156A1 (en) Fan control circuit and system
TW201327083A (en) Dynamic voltage adjustment device and power transmission system using the same
CN107861427B (en) Signal processing device and signal processing method
US11275129B2 (en) Sensor device
US8901475B1 (en) Avalanche photodiode biasing system including a current mirror, voltage-to-current converter circuit, and a feedback path sensing an avalanche photodiode voltage
US9319146B2 (en) Optical transmitter
TW201621502A (en) Biasing voltage generating circuit for avalanche photodiode and related control circuit
CN107872150B (en) Power supply device
CN111293699A (en) Method for realizing line loss voltage complete compensation and intelligent power supply circuit
CN109286315A (en) A kind of intelligent power supply circuit of digital equipment
KR102239591B1 (en) Frequency detection circuit
CN106249040B (en) Wide-range dynamic voltage measuring circuit and method
CN209072339U (en) A kind of intelligent power supply circuit of digital equipment
WO2019148460A1 (en) Charging apparatus and charging correction method
US8405534B2 (en) Two-wire transmitter
CN106936293B (en) Power adapter and output voltage regulating circuit and regulating method thereof
JP5820303B2 (en) 2-wire electromagnetic flow meter
CN207557714U (en) Signal processing apparatus
KR102087315B1 (en) Measurement error compensation apparatus for analog to digital converter
CN110554726B (en) Constant power protection circuit and constant power protection method
US9979330B2 (en) Three-phase motor control apparatus

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 330000 experimental building, No.366, Longxiang 1st Road, Nanchang hi tech Industrial Development Zone, Nanchang City, Jiangxi Province

Applicant after: JIANGXI ESUN ENVIRONMENTAL PROTECTION Co.,Ltd.

Address before: Building 2, Phase 2, No. 398 Gaoxin Fifth Road, High tech Development Zone, Nanchang City, Jiangxi Province, 330000

Applicant before: JIANGXI ESUN ENVIRONMENTAL PROTECTION Co.,Ltd.

GR01 Patent grant
GR01 Patent grant