Self-adaptive range circuit
By introducing an adaptive range circuit into the measurement circuit and using components such as operational amplifiers and microprocessors, adaptive amplification of the input signal is achieved, which solves the measurement accuracy problem caused by the fixed amplification coefficient in the existing technology and improves the adaptability of the circuit. performance and measurement accuracy.
Patent Information
- Application Number
- CN202420293740.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-18
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2034-02-18
AI Technical Summary
The existing measurement circuit with a fixed amplification factor cannot adaptively adjust the amplification factor when faced with different input measurement values, resulting in large measurement accuracy errors, inability to test at full scale, and incorrect output values, making it unable to adapt to the needs of different measurement values.
Design an adaptive range circuit that uses operational amplifiers, emitter followers and microprocessors to achieve adaptive amplification of the input signal through analog switches and matching resistors of different values to ensure that the circuit operates within different measurement value ranges. Accurate output.
Through the adaptive range circuit, the measurement accuracy is improved, and it can adapt to changes in different input quantities, ensuring accurate measurement of the circuit in a variety of application scenarios, and enhancing the flexibility and adaptability of the circuit.
Smart Images

Figure CN221748354U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of measuring circuits, in particular to an adaptive range circuit. Background Art
[0002] A measurement circuit with a fixed gain factor is a circuit designed to amplify the input signal by a fixed factor. Such circuits are common in applications that require fixed-factor amplification of the input signal, such as sensor signal conditioning, instrument measurement, etc.
[0003] The measurement range of the existing fixed amplification factor measurement circuit is greatly limited. When the input measurement value is small, the circuit cannot be tested at full scale, which will lead to large measurement accuracy errors. When the input measurement value is large (the input quantity is fixedly amplified and the amplification value exceeds the range), the circuit cannot measure normally and the output value is an erroneous value. Different peripheral circuit parameters need to be matched for different measurement values to meet the requirements.
[0004] Therefore, a measurement circuit is needed that can adapt to the size of the input change and match the appropriate peripheral amplification factor parameters for the input, so as to achieve multiple applications of one circuit and improve circuit accuracy. Utility Model Content
[0005] Some simplifications or omissions may be made in this section and the abstract of the specification and the title of the utility model of this application to avoid blurring the purpose of this section, the abstract of the specification and the title of the utility model, and such simplifications or omissions shall not be used to limit the scope of the utility model.
[0006] In view of the above problems or problems existing in the prior art, the present utility model is proposed.
[0007] Therefore, the purpose of the present invention is to provide an adaptive range circuit, which aims to solve the existing problems.
[0008] In order to solve the above technical problems, the utility model provides the following technical solutions: an adaptive range circuit, including an operational amplifier, the inverting input terminal of the operational amplifier receives the current signal of the photoelectric conversion sensor, the operational amplifier outputs the AD conversion signal to the microprocessor through an emitter follower, the microprocessor selects the signal output terminal to be connected to the analog switch through an analog switch, and the analog switch is connected to the inverting input terminal of the operational amplifier through a number of matching resistors with different resistance values.
[0009] As a preferred solution of the adaptive range circuit of the utility model, wherein: the output end of the operational amplifier is connected to the non-inverting input end of the emitter follower, and the output end of the emitter follower outputs the AD conversion signal to the RC2 pin of the microprocessor through the voltage-stabilizing resistor;
[0010] The non-inverting input terminal of the operational amplifier is grounded;
[0011] The emitter follower output terminal is connected to its own inverting input terminal.
[0012] As a preferred solution of the adaptive range circuit of the utility model, the microprocessor is connected to the 1A, 2A, 3A and 4A pins of the analog switch through the RA0, RA1, RA2 and RC0 pins respectively.
[0013] As a preferred solution of the adaptive range circuit of the utility model, wherein: the 1B, 2B, 3B and 4B pins of the analog switch are respectively connected to matching resistors with different resistance values.
[0014] As a preferred solution of the adaptive range circuit of the utility model, a second capacitor is connected in parallel to both ends of the analog switch and the matching resistor, and the second capacitor is also connected to the non-inverting input end of the emitter follower.
[0015] As a preferred solution of the adaptive range circuit of the utility model, wherein: the RC3 and RC4 pins of the microprocessor output the amplified measurement value.
[0016] As a preferred solution of the adaptive range circuit of the utility model, the VCC pin of the analog switch, the VDD / RA3 pin of the microprocessor, the positive electrode of the operational amplifier and the positive electrode of the emitter follower are all connected to the input voltage.
[0017] As a preferred solution of the adaptive range circuit of the utility model, the negative electrode of the operational amplifier and the negative electrode of the emitter follower are grounded, and the output end of the operational amplifier and the output end of the emitter follower are grounded through the third capacitor and the fourth capacitor respectively.
[0018] As a preferred solution of the adaptive range circuit of the utility model, the output end of the photoelectric conversion sensor is connected to the inverting input end of the operational amplifier, and the input end of the photoelectric conversion sensor is grounded.
[0019] As a preferred solution of the adaptive range circuit of the utility model, wherein: the RA3 pin of the microprocessor is grounded through a first capacitor.
[0020] The beneficial effects of the utility model are as follows: the circuit matches the appropriate peripheral amplification factor parameters for the input quantity through analog switches, microprocessors, different measuring resistors and operational amplifiers, accommodates different ranges of measurement raw data, and can achieve adaptive input quantity changes, thereby improving the circuit measurement accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present utility model, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0022] Figure 1 This is the circuit structure diagram of the adaptive range circuit. DETAILED DESCRIPTION
[0023] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0024] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0025] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.
[0026] Example 1
[0027] Reference Figure 1 , is the first embodiment of the utility model, which provides an adaptive range circuit, which includes an operational amplifier 101, the inverting input terminal of the operational amplifier 101 receives the current signal of the photoelectric conversion sensor 103, the operational amplifier 101 outputs the AD conversion signal to the microprocessor 200 through the emitter follower 102, the microprocessor 200 selects the signal output terminal to be connected to the analog switch 300 through the analog switch 300, and the analog switch 300 is connected to the inverting input terminal of the operational amplifier 101 through a plurality of matching resistors 301 with different resistance values.
[0028] The output end of the operational amplifier 101 is connected to the non-inverting input end of the emitter follower 102, and the output end of the emitter follower 102 outputs the AD conversion signal to the RC2 pin of the microprocessor 200 through the voltage-stabilizing resistor;
[0029] The non-inverting input terminal of the operational amplifier 101 is grounded;
[0030] The output terminal of emitter follower 102 is connected to its own inverting input terminal.
[0031] The microprocessor 200 is connected to the 1A, 2A, 3A and 4A pins of the analog switch 300 through the RA0, RA1, RA2 and RC0 pins respectively.
[0032] Pins 1B, 2B, 3B and 4B of the analog switch 300 are respectively connected to matching resistors 301 with different resistance values.
[0033] A second capacitor C2 is connected in parallel between the analog switch 300 and the matching resistor 301 . The second capacitor C2 is also connected to the non-inverting input terminal of the emitter follower 102 .
[0034] The RC3 and RC4 pins of the microprocessor 200 output the amplified measured values.
[0035] The VCC pin of the analog switch 300, the VDD / RA3 pin of the microprocessor 200, the positive electrode of the operational amplifier 101 and the positive electrode of the emitter follower 102 are all connected to the input voltage.
[0036] The negative electrode of the operational amplifier 101 and the negative electrode of the emitter follower 102 are grounded, and the output end of the operational amplifier 101 and the output end of the emitter follower 102 are grounded via the third capacitor C3 and the fourth capacitor C4, respectively.
[0037] The second capacitor C2 is also connected to the non-inverting input terminal of the emitter follower 102. This utilizes the characteristics of the emitter follower 102 that the input resistance is very large and the output resistance is very small, and can play the role of isolating and buffering the signal.
[0038] The output end of the photoelectric conversion sensor 103 is connected to the inverting input end of the operational amplifier 101, and the input end of the photoelectric conversion sensor 103 is grounded. The photoelectric conversion sensor 103 is a photosensitive diode, which can convert the light intensity change to be detected into a weak current signal, which is the measurement value input by the operational amplifier 101.
[0039] The RA3 pin of the microprocessor 200 is grounded via the first capacitor C1.
[0040] The output end of the emitter follower 102 is connected to an RC low-pass filter, which is composed of a sixth resistor R6, a seventh resistor R7 and a fourth capacitor C4. Because the emitter follower 102 outputs a DC signal, high-frequency noise in the signal needs to be filtered out.
[0041] The sixth resistor R6 and the seventh resistor R7 both have a resistance of 10 kilo-ohms.
[0042] The capacity of the first capacitor C1 is 100 nF, and the capacity of the second capacitor C2, the third capacitor C3 and the fourth capacitor C4 are all 100 pF.
[0043] A second capacitor C2 is connected in parallel between the analog switch 300 and the matching resistor 301 to improve circuit performance.
[0044] The microprocessor outputs the amplified measured value through the RC3 and RC4 pins, which can be output through the I2C protocol or other means.
[0045] The input voltages of the VCC pin of the analog switch 300, the VDD / RA3 pin of the microprocessor 200, the positive electrode of the operational amplifier 101 and the positive electrode of the emitter follower 102 adopt a 3.3V DC voltage.
[0046] Example 2
[0047] Reference Figure 1 , which is the second embodiment of the utility model, and which is different from the first embodiment in that: the analog switch chip U1, the selection range is determined by the on-off of the corresponding B and A terminals, the on-off is determined by the corresponding OE terminal, and the OE signal comes from the microprocessor 200 program judgment and is determined.
[0048] Regarding the matching resistor 301, four groups of ranges are set: the resistance values of R1, R3, R4 and R5 are 20 megohms, 15 megohms, 10 megohms and 5 megohms respectively.
[0049] According to the size of the input value, the circuit can be amplified by the operational amplifier 101, and then sampled and valued by the built-in AD function of the microprocessor 200, and then judged by the algorithm of the program based on the microprocessor 200, and the corresponding code value is generated according to the judgment result to control the programmable analog switch 300 to automatically switch the circuit. When the result of the sampled conversion value is less than the preset value of the algorithm, the microprocessor 200 outputs the analog switch control code value adjustment to switch the analog switch 300, change the feedback resistance of the operational amplifier circuit, increase the amplification factor of the circuit, and make the amplification value as full as possible. Otherwise, the circuit amplification factor is reduced. The circuit is always in the best measurement range amplification factor setting state. On the one hand, the circuit can test a wider range of input changes, and on the other hand, the measurement accuracy of the circuit is improved.
[0050] Example 3
[0051] Reference Figure 1 , which is the third embodiment of the utility model, which is different from the first two embodiments in that this embodiment provides a range relationship between matching resistance, measurement range and current signal, specifically:
[0052] When R1=20MΩ, the measurement range is the smallest and the photosensitive tube current cannot exceed 16.5nA.
[0053] When R3=15MΩ, the photosensitive tube current cannot exceed 22nA;
[0054] When R4=10MΩ, the photosensitive tube current cannot exceed 33nA;
[0055] When R5=5MΩ is selected, the measurement range is maximum and the photosensitive tube current does not exceed 66nA.
[0056] In a specific example, the position of the photosensitive tube sensor is also related to the measurement. In engineering applications, it is mainly used for calculation of relative changes, which was previously achieved by manual jumper wiring corresponding to the light intensity.
[0057] Furthermore, in addition to measuring the intensity of ultraviolet radiation, this circuit can also be applied to other testing fields.
[0058] Importantly, it should be noted that the construction and arrangement of the present application shown in a plurality of different exemplary embodiments are only exemplary. Although only a few embodiments are described in detail in this disclosure, it should be readily understood by those who refer to this disclosure that many modifications are possible (e.g., the size, scale, structure, shape and ratio of various elements, and parameter values (e.g., temperature, pressure, etc.), installation arrangements, use of materials, color, directional changes, etc.) without substantially departing from the novel teachings and advantages of the subject matter described in the application. For example, the element shown as integrally formed can be composed of multiple parts or elements, the position of the element can be inverted or otherwise changed, and the nature or number or position of the discrete element can be changed or changed. Therefore, all such modifications are intended to be included in the scope of the present utility model. The order or sequence of any process or method steps can be changed or reordered according to alternative embodiments. In the claims, any "device plus function" clause is intended to cover the structure described herein that performs the function, and is not only structurally equivalent but also an equivalent structure. Without departing from the scope of the present invention, other substitutions, modifications, changes and omissions may be made in the design, operating conditions and arrangement of the exemplary embodiments. Therefore, the present invention is not limited to a specific embodiment, but extends to various modifications that still fall within the scope of the appended claims.
[0059] Additionally, in order to provide a concise description of example embodiments, all features of an actual embodiment (ie, those features that are not relevant to the best mode presently contemplated for carrying out the invention or those that are not relevant to implementing the invention) may not be described.
[0060] It will be appreciated that in the development of any actual implementation, as in any engineering or design project, numerous implementation-specific decisions may be made. Such a development effort may be complex and time-consuming, but will be a routine task of design, fabrication, and production for those of ordinary skill having the benefit of this disclosure without undue experimentation.
[0061] It should be noted that the above embodiments are only used to illustrate the technical solution of the utility model rather than to limit it. Although the utility model has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the technical solution of the utility model can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the utility model, which should be included in the scope of the claims of the utility model.
Claims
1. An adaptive range circuit, characterized in that: include, An operational amplifier (101), wherein an inverting input terminal of the operational amplifier (101) receives a current signal from a photoelectric conversion sensor (103), the operational amplifier (101) outputs an AD conversion signal to a microprocessor (200) via an emitter follower (102), the microprocessor (200) selects a signal output terminal to be connected to the analog switch (300) via an analog switch (300), and the analog switch (300) is connected to an inverting input terminal of the operational amplifier (101) via a plurality of matching resistors (301) of different resistance values.
2. The adaptive range circuit according to claim 1, characterized in that: The output end of the operational amplifier (101) is connected to the non-inverting input end of the emitter follower (102), and the output end of the emitter follower (102) outputs an AD conversion signal to the RC2 pin of the microprocessor (200) via a voltage-stabilizing resistor; The non-inverting input terminal of the operational amplifier (101) is grounded; The output end of the emitter follower (102) is connected to its own inverting input end.
3. The adaptive range circuit according to claim 2, characterized in that: The microprocessor (200) is connected to the 1A, 2A, 3A and 4A pins of the analog switch (300) via the RA0, RA1, RA2 and RC0 pins respectively.
4. The adaptive range circuit according to claim 3, characterized in that: The 1B, 2B, 3B and 4B pins of the analog switch (300) are respectively connected to matching resistors (301) with different resistance values.
5. The adaptive range circuit according to any one of claims 1 to 4, characterized in that: A second capacitor (C2) is connected in parallel between the two ends of the analog switch (300) and the matching resistor (301), and the second capacitor (C2) is also connected to the non-inverting input end of the emitter follower (102).
6. The adaptive range circuit according to claim 5, characterized in that: The RC3 and RC4 pins of the microprocessor (200) output the amplified measurement value.
7. The adaptive range circuit according to claim 6, characterized in that: The VCC pin of the analog switch (300), the VDD / RA3 pin of the microprocessor (200), the positive electrode of the operational amplifier (101) and the positive electrode of the emitter follower (102) are all connected to the input voltage.
8. The adaptive range circuit according to claim 7, characterized in that: The negative electrode of the operational amplifier (101) and the negative electrode of the emitter follower (102) are grounded, and the output end of the operational amplifier (101) and the output end of the emitter follower (102) are grounded via a third capacitor (C3) and a fourth capacitor (C4), respectively.
9. The adaptive range circuit according to claim 8, characterized in that: The output end of the photoelectric conversion sensor (103) is connected to the inverting input end of the operational amplifier (101), and the input end of the photoelectric conversion sensor (103) is grounded.
10. The adaptive range circuit according to claim 9, characterized in that: The RA3 pin of the microprocessor (200) is grounded via a first capacitor (C1).
