Test circuit and circuit board for test
By designing a test circuit that includes a control chip and multiple current detection circuits, the problem of a single test mode for circuit boards in the existing technology is solved, current testing under different power consumption modes is realized, and the testing effect is improved.
Patent Information
- Application Number
- CN202420334855.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-22
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2034-02-22
AI Technical Summary
The circuit board test mode in the existing technology is single, making it difficult to test the current of electronic components under different power consumption modes, and the test effect is insufficient.
A test circuit is designed, including a control chip, an amplifier circuit and at least two current detection circuits. Each current detection circuit has a different current detection range. The control chip controls the conduction or disconnection of the current detection circuit, combined with the amplification Circuit and timing module to implement current testing in different power consumption modes.
It enriches the test modes, improves the test effect of the component under test, can accurately identify the current conditions in different power consumption modes, and improves the accuracy and effect of the test.
Smart Images

Figure CN221899286U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of testing, in particular to a testing circuit and a testing circuit board. Background Art
[0002] In the mass production of circuit boards, due to various uncertain factors of equipment and operators, there may be defective circuit boards produced. Therefore, it is necessary to test the finished circuit boards and assemble them only after the test results are correct and the circuit boards are confirmed to be qualified.
[0003] Online testing is a commonly used testing method in the field of circuit board testing. It can test whether the current of electronic components such as capacitors, resistors, inductors, diodes, transistors, MOS tubes, etc. installed on the circuit board is within the normal working range, and then determine whether the functions of the electronic components can be performed normally.
[0004] However, the test mode of the online test in the prior art is single, and it is difficult to implement the current test of electronic components under different power consumption modes, and the test effect is insufficient. Utility Model Content
[0005] In view of this, the utility model provides a test circuit and a test circuit board to at least solve the problem in the prior art that the test mode of the circuit board test is single and it is difficult to implement tests in different power consumption modes.
[0006] In order to achieve the above object, the technical solution of the utility model is implemented as follows:
[0007] The utility model provides a test circuit, comprising a control chip, an amplifying circuit and at least two current detection circuits;
[0008] The control chip includes a control pin and an analog-to-digital conversion pin; the control pin is electrically connected to the control end of each current detection circuit respectively, and the analog-to-digital conversion pin is electrically connected to the output end of each current detection circuit respectively through the amplification circuit;
[0009] The current detection range of each current detection circuit is different, and the corresponding input terminals are electrically connected to the components to be tested respectively; the control chip is used to control any one of the at least two current detection circuits to be turned on.
[0010] Optionally, each of the current detection circuits comprises a detection resistor and a control switch connected in series;
[0011] The resistance values of the detection resistors included in different current detection circuits are different;
[0012] The control end of the control switch is electrically connected to the control pin, and the control chip is used to control the on or off of the control switch.
[0013] Optionally, the control switch is an N-type MOS tube, a gate of the N-type MOS tube is electrically connected to the control pin, a source of the N-type MOS tube is grounded, and a drain of the N-type MOS tube is electrically connected to the detection resistor;
[0014] Alternatively, the control switch is an N-type transistor, the base of the N-type transistor is electrically connected to the control pin, the emitter of the N-type transistor is grounded, and the collector of the N-type transistor is electrically connected to the detection resistor.
[0015] Optionally, the control switch is a P-type MOS tube, a gate of the P-type MOS tube is electrically connected to the control pin, a source of the P-type MOS tube is connected to a power supply, and a drain of the P-type MOS tube is electrically connected to the detection resistor;
[0016] Alternatively, the control switch is a P-type transistor, the base of the P-type transistor is electrically connected to the control pin, the emitter of the P-type transistor is connected to a power supply, and the collector of the P-type transistor is electrically connected to the detection resistor.
[0017] Optionally, the current detection circuit includes a first current detection circuit, a second current detection circuit and a third current detection circuit;
[0018] The current detection range of the first current detection circuit is 0A to 2.5A, the current detection range of the second current detection circuit is 0A to 280mA, and the current detection range of the third current detection circuit is 0A to 152uA.
[0019] Optionally, a timing module is also included;
[0020] The timing module is electrically connected to the control chip and is used to record the working time of each current detection circuit.
[0021] Optionally, the amplifying circuit includes an operational amplifier, a first resistor, a second resistor, a third resistor and a fourth resistor;
[0022] The non-inverting input terminal of the operational amplifier is electrically connected to the output terminal of each current detection circuit through the first resistor, the inverting input terminal of the operational amplifier is grounded through the second resistor, the output terminal of the operational amplifier is electrically connected to the analog-to-digital conversion pin through the third resistor, and the fourth resistor is connected between the reverse input terminal of the operational amplifier and the output terminal of the operational amplifier.
[0023] Optionally, the amplifying circuit includes a first capacitor, a second capacitor and a third capacitor;
[0024] The first capacitor is electrically connected to the non-inverting input terminal of the operational amplifier, the second capacitor is electrically connected to the output terminal of the operational amplifier, and the third capacitor is electrically connected to the power supply terminal of the operational amplifier.
[0025] Optionally, a wireless communication module is also included;
[0026] The wireless communication module is electrically connected to the control chip and is used to upload the determination result of the control chip to the cloud platform.
[0027] The utility model also provides a testing circuit board, wherein the testing circuit board is integrated with any of the aforementioned testing circuits.
[0028] Compared with the prior art, the test circuit and test circuit board described in the utility model have the following advantages:
[0029] The test circuit of the utility model includes a control chip, an amplifier circuit and at least two current detection circuits; the control chip includes a control pin and an analog-to-digital conversion pin, the control end of each current detection circuit is electrically connected to the control pin of the control chip, the output end of each current detection circuit is electrically connected to the analog-to-digital conversion pin of the control chip through the amplifier circuit, and the input end of each current detection circuit is also used to be electrically connected to the component to be tested; the current detection ranges of the at least two current detection circuits are different, and the control chip is used to control any one of the at least two current detection circuits to be turned on. The test circuit of the utility model can respectively realize the current test of the component to be tested in different power consumption modes through at least two current detection circuits, thereby enriching the test mode and improving the test effect of the component to be tested.
[0030] The testing circuit board of the present invention has the same or similar advantages as the prior art and the aforementioned testing circuit, which will not be described in detail here. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation on the present invention. In the accompanying drawings:
[0032] Figure 1 It is a schematic diagram of component connections of a test circuit in an embodiment of the utility model;
[0033] Figure 2 It is a circuit structure schematic diagram of a test circuit in an embodiment of the utility model;
[0034] Figure 3 It is a component connection diagram of another test circuit in an embodiment of the utility model. DETAILED DESCRIPTION
[0035] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.
[0036] The terms "first", "second", etc. in the specification and claims of the present utility model are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the utility model can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0037] It should be understood that the reference to "some embodiments" throughout the specification means that specific features, structures or characteristics related to the embodiments are included in at least one embodiment of the utility model. Therefore, the "in some embodiments" appearing in various places throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner.
[0038] The following describes in detail a current detection circuit and a test circuit board provided by the utility model by listing specific embodiments.
[0039] Figure 1 FIG. 1 shows a schematic diagram of component connections of a test circuit in an embodiment of the present utility model. Figure 1 As shown, the test circuit of the embodiment of the utility model includes a control chip 1, an amplifier circuit 3 and at least two current detection circuits; the control chip 1 includes a control pin and an analog-to-digital conversion pin, the control pin is electrically connected to the control end of each current detection circuit respectively, and the analog-to-digital conversion pin is electrically connected to the output end of each current detection circuit respectively through the amplifier circuit 3; the current detection range of each current detection circuit is different, and the corresponding input end is electrically connected to the component to be tested respectively; the control chip 1 is used to control the conduction of any one of the at least two current detection circuits.
[0040] Specifically, the current detection circuit of the embodiment of the utility model is used to test whether the hardware circuit of the circuit board is normal, so as to distinguish between qualified circuit boards and unqualified circuit boards. The current detection circuit includes a control chip 1 and at least two current detection circuits. The embodiment of the utility model is exemplified by three current detection circuits, such as Figure 1 As shown, the three current detection circuits include a first current detection circuit 21, a second current detection circuit 22 and a third current detection circuit 23. The input ends of the first current detection circuit 21, the second current detection circuit 22 and the third current detection circuit 23 are electrically connected to the pins of the components to be tested, respectively, wherein the components to be tested include but are not limited to the circuit board. The control chip 1 includes control pins, such as Figure 1 As shown in the pin 11 in the figure, the control pin 11 is electrically connected to the control ends of the first current detection circuit 21, the second current detection circuit 22 and the third current detection circuit 23 respectively. The control pin 11 of the control chip 1 can input a high level or a low level to the control ends of the first current detection circuit 21, the second current detection circuit 22 and the third current detection circuit 23, thereby controlling the conduction or disconnection of the corresponding current detection circuits, wherein the first current detection circuit 21, the second current detection circuit 22 and the third current detection circuit 23 can only be turned on at the same time. When the current detection circuit is turned on, current is generated in the current detection circuit; when the current detection circuit is disconnected, no current is generated in the current detection circuit. The control chip 1 also includes an analog-to-digital conversion pin, and the analog-to-digital conversion pin is as follows Figure 1 As shown in the pin 12 in the figure, an ADC (Analog-to-Digital Converter) module is integrated on the control chip 1. The analog-to-digital conversion pin 12 of the control chip 1 refers to the pin of the ADC module. The ADC module can convert the voltage signals of the first current detection circuit 21, the second current detection circuit 22 and the third current detection circuit 23 into digital signals and feed them back to the control chip 1. The control chip 1 determines whether the hardware circuit of the component to be tested is normal based on the received signal to distinguish between the components to be tested with qualified quality and the components to be tested with unqualified quality.
[0041] Since the current value of the component to be tested detected by the current detection circuit is small, the voltage value is correspondingly small, and the voltage value in a small range cannot be accurately identified by the control chip 1, the amplifier circuit 3 is electrically connected to the current detection circuit, such as Figure 1The first current detection circuit 21, the second current detection circuit 22 and the third current detection circuit 23 are electrically connected to the analog-to-digital conversion pin 12 of the control chip 1 through the amplifier circuit 3. When any one of the first current detection circuit 21, the second current detection circuit 22 and the third current detection circuit 23 is turned on, a loop is formed between the turned-on current detection circuit and the component to be tested, and the current flows and flows to the input end of the amplifier circuit 3. The output end of the amplifier circuit 3 is electrically connected to the analog-to-digital conversion pin 12 of the control chip 1. The amplifier circuit 3 can amplify the voltage signal corresponding to the current signal of the current detection circuit to a range that the control chip 1 can accurately identify, and output the amplified voltage signal to the analog-to-digital conversion pin 12 of the control chip 1. The control chip 1 performs analog-to-digital conversion on the received voltage signal and determines whether the amplified voltage signal is within the preset voltage range. If the amplified voltage is within the preset voltage range, it means that the hardware circuit of the component to be tested is normal, and the component to be tested is classified as a qualified product. If the amplified voltage is not within the preset voltage range, it means that the hardware circuit of the component to be tested is abnormal, and the component to be tested is classified as an unqualified product. The preset voltage range can be set according to the current condition of the component to be tested. In this embodiment, the preset voltage range is set between 3.3V and 6.6V. The voltage in this range can meet the working requirements of most hardware circuits of the component to be tested.
[0042] In the test circuit of the embodiment of the utility model, the current detection ranges of at least two current detection circuits are different. Different current detection circuits are suitable for the current detection requirements of the components to be tested in different modes. The control chip 1 is used to control any one of the at least two current detection circuits to be turned on. When the current detection circuit is turned on, the other current detection circuits are in the disconnected state. Exemplarily, if it is necessary to perform current tests on the component to be tested in normal working mode, low current mode and sleep mode respectively, the first current detection circuit 21 corresponds to the test of the component to be tested in normal working mode, the second current detection circuit 22 corresponds to the test of the component to be tested in low current mode, and the third current detection circuit 23 corresponds to the test of the component to be tested in sleep mode. When the first current detection circuit 21 is turned on and the second current detection circuit 22 and the third current detection circuit 23 are disconnected, the test of the hardware circuit in the normal working mode of the component to be tested can be realized; when the first current detection circuit 21 and the third current detection circuit 23 are disconnected and the second current detection circuit 22 is turned on, the test of the hardware circuit in the low current mode of the component to be tested can be realized; when the first current detection circuit 21 and the second current detection circuit 22 are disconnected and the third current detection circuit 23 is turned on, the test of the hardware circuit in the sleep mode of the component to be tested can be realized. Thus, the test circuit of the utility model can respectively realize the current test of the component to be tested in different power consumption modes through at least two current detection circuits, enriching the test mode and improving the test effect of the component to be tested.
[0043] In a further embodiment, the control chip 1 can be electrically connected to the component under test through a TTL (transistor transistor logic) serial port, communicate with the circuit board under test through a serial port, and perform functional tests on the relevant hardware circuits that need to be tested. Exemplarily, the control chip 1 needs to flip the level of a pin of the component under test when issuing a test instruction. The initial level corresponding to the pin is a low level by default. If the control chip 1 measures the level of the pin as a high level after executing the test instruction, it means that the hardware circuit connected to the pin is normal. If the control chip 1 measures the level of the pin as a low level after executing the test instruction, it means that the hardware circuit connected to the pin is abnormal.
[0044] Figure 2 A circuit structure diagram of a test circuit in an embodiment of the utility model is shown. Figure 2 As shown, each current detection circuit includes a detection resistor and a control switch connected in series; the resistance values of the detection resistors included in different current detection circuits are different; the control end of the control switch is electrically connected to the control pin, and the control chip 1 is used to control the conduction or disconnection of the control switch.
[0045] Specifically, the detection resistor is Figure 2 As shown in R5, R6, and R7, the control switch is as follows Figure 2 As shown in Q1, Q2, and Q3 in FIG, the detection resistor R5 and the control switch Q1 form a first current detection circuit 21, the detection resistor R6 and the control switch Q2 form a second current detection circuit 22, and the detection resistor R7 and the control switch Q3 form a third current detection circuit 23. One end of the detection resistor is electrically connected to the control switch, and the other end is electrically connected to the input end of the amplifier circuit. Different current detection circuits include detection resistors with different resistance values, that is, the resistance value of R5 in the first current detection circuit 21, the resistance value of R6 in the second current detection circuit 22, and the resistance value of R7 in the third current detection circuit 23 are different, so that the current detection range of each current detection circuit is different, and the voltage value at the input end of the amplifier circuit is approximately the product of the current and resistance of the detection resistor. The control end of the control switch is electrically connected to the control pin of the control chip 1, and the control chip 1 is used to control the conduction or disconnection of the control switch. When the control switch is turned on, the current detection circuit is turned on, and when the control switch is turned off, the current detection circuit is disconnected.
[0046] Optionally, refer to Figure 2, the control switch is an N-type MOS tube, the gate of the N-type MOS tube is electrically connected to the control pin, the source of the N-type MOS tube is grounded, and the drain of the N-type MOS tube is electrically connected to the detection resistor; or, the control switch is an N-type transistor, the base of the N-type transistor is electrically connected to the control pin, the emitter of the N-type transistor is grounded, and the collector of the N-type transistor is electrically connected to the detection resistor.
[0047] Specifically, in some embodiments, Figure 2 As shown, the control switch uses an N-type MOS tube, and the gate of the N-type MOS tube ( Figure 2 The source of the N-type MOS tube ( Figure 2 The S of Q1, Q2, and Q3 is grounded, and the drain of the N-type MOS tube ( Figure 2 In the embodiment, the N-type MOS tube is connected to the detection resistor (as shown in D of Q1, Q2, and Q3), and the N-type MOS tube is turned on when the voltage difference between the gate voltage and the source voltage is greater than the preset voltage difference. The preset voltage difference of N-type MOS tubes of different specifications may be different. In this embodiment, since the source of the N-type MOS tube is grounded, when the control chip 1 outputs a high level to the gate of the N-type MOS tube, the N-type MOS tube is turned on, thereby turning on the current detection circuit. When the control chip 1 outputs a low level to the gate of the N-type MOS tube, the N-type MOS tube is turned off, thereby turning off the current detection circuit.
[0048] In other embodiments, the control switch uses an N-type transistor, the base of the N-type transistor is electrically connected to the control pin of the control chip 1, the emitter of the N-type transistor is grounded, the collector of the N-type transistor is electrically connected to the detection resistor, and the N-type transistor is turned on when its base voltage is greater than the emitter voltage. In this embodiment, since the emitter of the N-type transistor is grounded, when the control chip 1 outputs a high level to the base of the N-type transistor, the N-type transistor is turned on, thereby turning on the current detection circuit; when the control chip 1 outputs a low level to the base of the N-type transistor, the N-type transistor is disconnected, thereby disconnecting the current detection circuit.
[0049] Optionally, the control switch is a P-type MOS tube, the gate of the P-type MOS tube is electrically connected to the control pin, the source of the P-type MOS tube is connected to the power supply, and the drain of the P-type MOS tube is electrically connected to the detection resistor; or, the control switch is a P-type transistor, the base of the P-type transistor is electrically connected to the control pin, the emitter of the P-type transistor is connected to the power supply, and the collector of the P-type transistor is electrically connected to the detection resistor.
[0050] Specifically, in some embodiments, the control switch uses a P-type MOS tube, the gate of the P-type MOS tube is electrically connected to the control pin of the control chip 1, the source of the P-type MOS tube is connected to the power supply, the drain of the P-type MOS tube is electrically connected to the detection resistor, and the P-type MOS tube is turned on when the voltage difference between its gate voltage and source voltage is less than the preset voltage difference, and the preset voltage difference of P-type MOS tubes of different specifications may be different. In this embodiment, since the source of the P-type MOS tube is connected to the power supply, the source will be maintained in a high level state, so when the control chip 1 outputs a low level to the gate of the P-type MOS tube, the P-type MOS tube is turned on, and the current detection circuit is turned on. When the control chip 1 outputs a high level to the gate of the P-type MOS tube, the P-type MOS tube is disconnected, and the current detection circuit is disconnected.
[0051] In other embodiments, the control switch uses a P-type transistor, the base of the P-type transistor is electrically connected to the control pin of the control chip 1, the emitter of the P-type transistor is connected to the power supply, the collector of the P-type transistor is electrically connected to the detection resistor, and the P-type transistor is turned on when its base voltage is less than the emitter voltage. In this embodiment, since the emitter of the P-type transistor is connected to the power supply, when the control chip 1 outputs a low level to the base of the P-type transistor, the P-type transistor is turned on and the current detection circuit is turned on; when the control chip 1 outputs a high level to the base of the P-type transistor, the P-type transistor is disconnected and the current detection circuit is disconnected.
[0052] Optionally, refer to Figures 1 to 3 The current detection circuit includes a first current detection circuit 21, a second current detection circuit 22 and a third current detection circuit 23; the current detection range of the first current detection circuit 21 is 0A~2.5A, corresponding to the normal working mode of the component under test; the current detection range of the second current detection circuit 22 is 0A~280mA, corresponding to the small current mode of the component under test; the current detection range of the third current detection circuit 23 is 0A~152uA, corresponding to the sleep mode of the component under test.
[0053] Specifically, the test circuit in this embodiment includes three current detection circuits, namely, a first current detection circuit 21, a second current detection circuit 22 and a third current detection circuit 23. Figure 2As shown, the detection resistor R5 and the control switch Q1 form a first current detection circuit 21, the detection resistor R6 and the control switch Q2 form a second current detection circuit 22, and the detection resistor R7 and the control switch Q3 form a third current detection circuit 23. The current detection range of the first current detection circuit 21 is 0A to 2.5A, which is used to detect the current condition of the component under test in the normal working mode, the current detection range of the second current detection circuit 22 is 0A to 280mA, which is used to detect the current condition of the component under test in the low current working mode, and the current detection range of the third current detection circuit 23 is 0A to 152uA, which is used to detect the current condition of the component under test in the sleep mode.
[0054] Figure 3 FIG. 2 shows a schematic diagram of component connections of another test circuit in an embodiment of the present utility model. Figure 3 As shown, the test circuit further includes a timing module 4; the timing module 4 is electrically connected to the control chip 1 and is used to record the working time of each current detection circuit.
[0055] Specifically, in addition to the control pin 11 and the analog-to-digital conversion pin 12, the control chip 1 also includes a control pin 13, the control pin 13 is electrically connected to the timing module 4, the timing module 4 is used to record the working time of each current detection circuit, and the control chip 1 can switch different current detection circuits to work according to the test requirements of the component to be tested and the working time of each current detection circuit. In combination with the above-mentioned embodiment, when the test circuit includes a first current detection circuit 21, a second current detection circuit 22 and a third current detection circuit 23, if the test requirements of the component to be tested are to test 15S in the normal working mode, 5S in the low current working mode, and 1S in the sleep mode. When the test is performed in the low current mode for 5S, the timing module 4 sends a switching instruction to the control chip 1 when it records that the first current detection circuit 21 has been turned on for 15S, and the control chip 1 controls the second current detection circuit 22 to be turned on, and the first current detection circuit 21 and the third current detection circuit 23 are disconnected, and the test enters the low current mode; when the timing module 4 records that the second current detection circuit 22 has been turned on for 5S, the control chip 1 sends a switching instruction, and the control chip 1 controls the third current detection circuit 23 to be turned on, and the first current detection circuit 21 and the second current detection circuit 22 are disconnected, and the test enters the sleep mode, thereby realizing automatic switching of different current detection circuits and improving the intelligence of the test circuit.
[0056] Optionally, refer to Figure 2The amplifying circuit 3 includes an operational amplifier, a first resistor R1, a second resistor R2, a third resistor R3 and a fourth resistor R4; the in-phase input terminal of the operational amplifier is electrically connected to the output terminal of each current detection circuit through the first resistor R1, the inverting input terminal of the operational amplifier is grounded through the second resistor R2, the output terminal of the operational amplifier is electrically connected to the analog-to-digital conversion pin through the third resistor R3, and the fourth resistor R4 is connected between the inverting input terminal of the operational amplifier and the output terminal of the operational amplifier.
[0057] Specifically, the operational amplifier consists of five pins, which are numbered as follows: Figure 2 As shown in the pins 1 to 5, pin 1 is connected to the positive pole of the power supply, and pin 2 is grounded, that is, the operational amplifier of this embodiment adopts a single power supply mode, and the power supply VCC is connected to pin 1 to power the operational amplifier, so that the operational amplifier can work normally. Pin 3 is the in-phase input terminal of the operational amplifier, which is electrically connected to the output terminal of each current detection circuit through the first resistor R1, pin 4 is the inverting input terminal of the operational amplifier, which is grounded through the second resistor R2, pin 5 is the output terminal of the operational amplifier, which is electrically connected to the analog-to-digital conversion pin 12 of the control chip 1 through the third resistor R3, and the fourth resistor R4 is connected between the inverting input terminal of the operational amplifier and the output terminal of the operational amplifier, that is, between pin 4 and pin 5.
[0058] Among them, the first resistor R1 can improve the input impedance, which helps to ensure that the voltage signal output by the current detection circuit can be correctly received by the operational amplifier; the second resistor R2 is equivalent to introducing a negative bias current, thereby calibrating the bias current of the operational amplifier. The resistance value of the second resistor R2 needs to be the same as that of the first resistor R1 to better eliminate the influence of the bias current. At the same time, when the input signal exceeds a certain range or the power supply voltage is abnormal, the first resistor R1 and the second resistor R2 can limit the current flowing through the operational amplifier to a certain extent to avoid damage to the operational amplifier due to overvoltage; the third resistor R3 can play a certain buffering role on the output of the operational amplifier to avoid causing abnormalities in the control chip 1; the fourth resistor R4 can provide a negative feedback loop to reduce the influence of external interference on the output signal of the operational amplifier and improve the stability and reliability of the operational amplifier. At the same time, the second resistor R2 and the fourth resistor R4 constitute an amplification ratio adjustment, which determines the amplification factor of the operational amplifier. The resistance values of the second resistor R2 and the fourth resistor R4 can be reasonably selected according to actual needs, and this embodiment is not limited to this.
[0059] Optionally, refer to Figure 2The amplifier circuit 3 includes a first capacitor C1, a second capacitor C2 and a third capacitor C3; the first capacitor C1 is electrically connected to the in-phase input terminal of the operational amplifier, the second capacitor C2 is electrically connected to the output terminal of the operational amplifier, and the third capacitor C3 is electrically connected to the power supply terminal of the operational amplifier.
[0060] Specifically, the first capacitor C1 is electrically connected to the in-phase input terminal of the operational amplifier, i.e., pin 3; the first resistor R1 and the first capacitor C1 constitute the input buffer of the operational amplifier; the second capacitor C2 is electrically connected to the output terminal of the operational amplifier, i.e., pin 5; the third resistor R3 and the second capacitor C2 constitute the output buffer of the operational amplifier. Since the measured signal input to the operational amplifier includes a useful signal and an interference signal, the first capacitor C1 and the second capacitor C2 are set to absorb the interference signal at the input terminal of the operational amplifier, so that the interference signal basically does not enter the operational amplifier and is not amplified, thereby filtering out the interference signal and stabilizing the voltage, thereby improving the accuracy of the operational amplifier. The third capacitor C3 is electrically connected to the power supply terminal of the operational amplifier, i.e., pin 1, to constitute a filter capacitor at the power supply terminal, thereby improving the stability of the power supply voltage connected to the operational amplifier, thereby ensuring the normal operation of the operational amplifier. It should be noted that the number of the first capacitor C1, the second capacitor C2, and the third capacitor C3 can be one, two, or more, respectively, and can be set according to actual needs. Figure 2 2 shows a mode in which the number of the first capacitor C1, the second capacitor C2 and the third capacitor C3 are two respectively.
[0061] Optionally, refer to Figure 3 The test circuit also includes a wireless communication module 5; the wireless communication module 5 is electrically connected to the control chip 1, and is used to upload the determination result of the control chip 1 to the cloud platform.
[0062] Specifically, the control chip 1 also includes a control pin 14, which is electrically connected to the wireless communication module 5. The wireless communication module 5 can use a WIFI module. The WIFI module is connected to the control chip 1 through a serial port. The WIFI module can upload the determination result of the control chip 1 to the cloud platform. In combination with the above-mentioned embodiment, the control chip 1 can determine whether the voltage amplified by the amplifier circuit 3 is within a preset voltage range. If the amplified voltage is within the preset voltage range, it means that the hardware circuit of the component to be tested is normal and the component to be tested is a qualified product. If the amplified voltage is not within the preset voltage range, it means that the hardware circuit of the component to be tested is abnormal and the component to be tested is an unqualified product. The determination result refers to the information that the hardware circuit of the component to be tested is normal or abnormal, or refers to the information that the component to be tested is a qualified product or an unqualified product. The WIFI module can upload the determination result to the cloud platform, which includes but is not limited to mobile terminals, computer equipment and other human-computer interaction equipment. The cloud platform automatically generates a test result QR code corresponding to the component to be tested. Subsequent maintenance personnel only need to scan the QR code corresponding to the component to be tested to know the hardware circuit information of the component to be tested, which greatly facilitates personnel viewing.
[0063] The utility model also provides a testing circuit board, wherein the testing circuit board is integrated with any of the aforementioned testing circuits.
[0064] Specifically, the test circuit board integrates any of the test circuits mentioned above. The test circuit board can adopt a flexible wound PCB (printed circuit board). The test circuit is integrated on the test circuit board, reducing the use of current measuring instruments such as multimeters and data cables, reducing the footprint of the equipment, and realizing the integrated design of the test circuit.
[0065] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0066] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A test circuit, characterized in that: It includes a control chip, an amplifier circuit and at least two current detection circuits; The control chip includes a control pin and an analog-to-digital conversion pin; the control pin is electrically connected to the control end of each current detection circuit respectively, and the analog-to-digital conversion pin is electrically connected to the output end of each current detection circuit respectively through the amplification circuit; The current detection range of each current detection circuit is different, and the corresponding input terminals are electrically connected to the components to be tested respectively; the control chip is used to control any one of the at least two current detection circuits to be turned on.
2. The test circuit according to claim 1, characterized in that: Each of the current detection circuits comprises a detection resistor and a control switch connected in series; The resistance values of the detection resistors included in different current detection circuits are different; The control end of the control switch is electrically connected to the control pin, and the control chip is used to control the on or off of the control switch.
3. The test circuit according to claim 2, characterized in that: The control switch is an N-type MOS tube; the gate of the N-type MOS tube is electrically connected to the control pin, the source of the N-type MOS tube is grounded, and the drain of the N-type MOS tube is electrically connected to the detection resistor; Or, the control switch is an N-type transistor; the base of the N-type transistor is electrically connected to the control pin, the emitter of the N-type transistor is grounded, and the collector of the N-type transistor is electrically connected to the detection resistor.
4. The test circuit according to claim 2, characterized in that: The control switch is a P-type MOS tube; the gate of the P-type MOS tube is electrically connected to the control pin, the source of the P-type MOS tube is connected to the power supply, and the drain of the P-type MOS tube is electrically connected to the detection resistor; Or, the control switch is a P-type transistor; the base of the P-type transistor is electrically connected to the control pin, the emitter of the P-type transistor is connected to a power supply, and the collector of the P-type transistor is electrically connected to the detection resistor.
5. The test circuit according to claim 1, characterized in that: The current detection circuit includes a first current detection circuit, a second current detection circuit and a third current detection circuit; The current detection range of the first current detection circuit is 0A to 2.5A, the current detection range of the second current detection circuit is 0A to 280mA, and the current detection range of the third current detection circuit is 0A to 152uA.
6. The test circuit according to claim 1, characterized in that: Also includes a timing module; The timing module is electrically connected to the control chip and is used to record the working time of each current detection circuit.
7. The test circuit according to claim 1, characterized in that: The amplifying circuit includes an operational amplifier, a first resistor, a second resistor, a third resistor and a fourth resistor; The non-inverting input terminal of the operational amplifier is electrically connected to the output terminal of each current detection circuit through the first resistor, the inverting input terminal of the operational amplifier is grounded through the second resistor, the output terminal of the operational amplifier is electrically connected to the analog-to-digital conversion pin through the third resistor, and the fourth resistor is connected between the reverse input terminal of the operational amplifier and the output terminal of the operational amplifier.
8. The test circuit according to claim 7, characterized in that: The amplifying circuit comprises a first capacitor, a second capacitor and a third capacitor; The first capacitor is electrically connected to the non-inverting input terminal of the operational amplifier, the second capacitor is electrically connected to the output terminal of the operational amplifier, and the third capacitor is electrically connected to the power supply terminal of the operational amplifier.
9. The test circuit according to claim 1, characterized in that: Also included is a wireless communication module; The wireless communication module is electrically connected to the control chip and is used to upload the determination result of the control chip to the cloud platform.
10. A test circuit board, characterized in that: The testing circuit board is integrated with the testing circuit according to any one of claims 1 to 9.
