A type and pin judgment circuit and method for triode
By designing a transistor judgment circuit including a microcontroller control circuit, detection circuit and display circuit, using a combination of single-pole double-throw switch and resistor, the problem of complex and high cost of transistor detection in the prior art is solved, and the transistor type and pins are realized Fast, convenient judgment and efficient detection.
Patent Information
- Application Number
- CN202011485903.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-16
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2040-12-16
AI Technical Summary
The existing transistor detection methods are complex, costly, and cannot easily determine the type and pins of transistors, which are inconvenient to use.
A transistor type and pin judgment circuit including a microcontroller control circuit, a detection circuit and a display circuit are designed. Through the combination of single-pole double-throw switch and resistor, automatic detection and display of transistor type and pins are achieved.
It realizes fast and convenient judgment of transistor types and pins, simplifies the detection process, reduces costs, ensures the correctness of measurement, and improves judgment efficiency.
Smart Images

Figure CN112557864B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of transistor detection, and specifically relates to a transistor type and pin judgment circuit and method. Background Art
[0002] The transistor is a widely used component in current electronic technology. The parameters of the transistor play a decisive role in the success of electronic design. Therefore, it is particularly important to correctly judge the type of transistor (two aspects, one is the judgment of NPN / PNP, the other is the judgment of silicon material and germanium material) and the pin sequence in electronic design. At present, the most commonly used discrimination method in the laboratory is to use a multimeter to measure the relationship between the pins of the transistor, but because this method requires repeated replacement of the position of the test pen and recording of the value, and the transistor itself is small in size, the measurement is very inconvenient. The transistor detection devices currently available on the market are not only complex in structure and high in cost, but also cannot comprehensively judge the type and pins of the transistor, which is inconvenient to use. Summary of the invention
[0003] The purpose of this application is to provide a transistor type and pin judgment circuit and method to achieve convenient judgment of transistor type, material, and pin.
[0004] In order to achieve the above purpose, the technical solution adopted by this application is:
[0005] A transistor type and pin judgment circuit, the transistor type and pin judgment circuit comprising a single-chip control circuit, and a detection circuit and a display circuit connected to the single-chip control circuit; the detection circuit comprises a first branch, a second branch and a third branch respectively connected to three pins of the transistor to be tested;
[0006] The first branch includes a single-pole double-throw switch S1, a single-pole double-throw switch S4, a resistor R1 and a resistor R4, the common contact of the single-pole double-throw switch S1 is used as a first sampling point connected to a pin of the transistor to be tested, the A contact of the single-pole double-throw switch S1 is connected to the common contact of the single-pole double-throw switch S4 through the resistor R1, the B contact of the single-pole double-throw switch S1 is directly connected to the common contact of the single-pole double-throw switch S4, the A contact of the single-pole double-throw switch S4 is connected to VCC, the B contact of the single-pole double-throw switch S4 is grounded through the resistor R4, and the first sampling point is connected to the single-chip control circuit;
[0007] The second branch includes a single-pole double-throw switch S2, a single-pole double-throw switch S5, a resistor R2 and a resistor R5, the common contact of the single-pole double-throw switch S2 is used as a second sampling point connected to another pin of the transistor to be tested, the A contact of the single-pole double-throw switch S2 is connected to the common contact of the single-pole double-throw switch S5 through the resistor R2, the B contact of the single-pole double-throw switch S2 is directly connected to the common contact of the single-pole double-throw switch S5, the A contact of the single-pole double-throw switch S5 is connected to VCC, the B contact of the single-pole double-throw switch S5 is grounded through the resistor R5, and the second sampling point is connected to the single-chip control circuit;
[0008] The third branch includes a single-pole double-throw switch S3, a single-pole double-throw switch S6, a resistor R3 and a resistor R6, the common contact of the single-pole double-throw switch S3 is used as a third sampling point connected to the last pin of the transistor to be tested, the A contact of the single-pole double-throw switch S3 is connected to the common contact of the single-pole double-throw switch S6 through the resistor R3, the B contact of the single-pole double-throw switch S3 is directly connected to the common contact of the single-pole double-throw switch S6, the A contact of the single-pole double-throw switch S6 is connected to VCC, the B contact of the single-pole double-throw switch S6 is grounded through the resistor R6, and the third sampling point is connected to the single-chip control circuit;
[0009] The single chip control circuit acquires the voltages of the first sampling point, the second sampling point and the third sampling point and displays them through the display circuit.
[0010] Several optional methods are also provided below, but they are not intended to be additional limitations on the above-mentioned overall solution, but are merely further supplements or preferences. Under the premise that there are no technical or logical contradictions, each optional method can be combined with the above-mentioned overall solution separately, and multiple optional methods can also be combined.
[0011] Preferably, the single-pole double-throw switch is a single-pole double-throw switch relay, and the single-chip microcomputer control circuit is connected to the control end of the single-pole double-throw switch relay.
[0012] Preferably, the single-pole double-throw switch relay adopts the SRD-05VDC-SL-C model.
[0013] Preferably, the single-chip control circuit comprises a main control chip, and the first sampling point, the second sampling point and the third sampling point are respectively connected to ADC pins of the main control chip.
[0014] Preferably, the main control chip is STM32F407VGT6.
[0015] Preferably, the display circuit includes a TFTLCD display screen.
[0016] The present application also provides a method for determining the type and pin of a transistor, which is implemented based on the transistor type and pin determination circuit. The method for determining the type and pin of a transistor includes:
[0017] Step 1: Determine transistor type and base;
[0018] Step 1.1, reset all single-pole double-throw switches to contact B;
[0019] Step 1.2, connect the three pins of the transistor to be tested to the common contact of the single-pole double-throw switch S1, the common contact of the single-pole double-throw switch S2, and the common contact of the single-pole double-throw switch S3 respectively;
[0020] Step 1.3, control the single-pole double-throw switch S4 to switch to contact A, record the voltages of the first sampling point, the second sampling point, and the third sampling point, and complete the first sampling;
[0021] Step 1.4, control the single-pole double-throw switch S4 to return to the B contact, and control the single-pole double-throw switch S5 to switch to the A contact, record the voltages of the first sampling point, the second sampling point, and the third sampling point, and complete the second sampling;
[0022] Step 1.5, control the single-pole double-throw switch S5 to return to the B contact, and control the single-pole double-throw switch S6 to switch to the A contact, record the voltages of the first sampling point, the second sampling point, and the third sampling point, and complete the third sampling;
[0023] Step 1.6: Determine the transistor type and base position based on the recorded voltage value:
[0024] If, among the three samplings, there is one sampling where all three voltages are high level, and the other two samplings where three voltages are one high level and two low levels, then the transistor to be tested is determined to be an NPN transistor, and when the three voltages are all high level, the pin of the transistor connected to the branch of the single-pole double-throw switch at the A contact is the base of the transistor;
[0025] If, among the three samplings, the three voltages of two samplings are all high level, and the three voltages of the other sampling are one high level and two low levels, then it is judged that the transistor to be tested is a PNP transistor, and when the three voltages are one high level and two low levels, the pin of the transistor connected to the branch of the single-pole double-throw switch located at the A contact is the base of the transistor;
[0026] Otherwise, it is judged that the transistor is damaged or not connected;
[0027] Step 2, determine the emitter and collector of the transistor;
[0028] Step 2.1: If the transistor to be tested is determined to be an NPN transistor in step 1, the transistor emitter and collector are determined as follows:
[0029] Step 2.1.1, take the branch where the base of the transistor is located as the known branch, and the other two branches as the unknown branches, switch the two single-pole double-throw switches on the known branch to the A contact, and restore the single-pole double-throw switches on the two unknown branches to the B contact;
[0030] Step 2.1.2, divide the two unknown branches into a first unknown branch and a second unknown branch, switch the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to contact A, record the voltages of the sampling points on the first unknown branch and the second unknown branch, and complete the fourth sampling;
[0031] Step 2.1.3, restore the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to the B contact, and at the same time switch the single-pole double-throw switch on the second unknown branch away from the transistor to be tested to the A contact, record the voltages of the sampling points on the second unknown branch and the first unknown branch, and complete the fifth sampling;
[0032] Step 2.1.4, calculate the voltage difference between the two sampling points of the single sampling in the fourth and fifth sampling, and take the unknown branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested in the sampling with the larger voltage difference as the emitter of the transistor, and the pin corresponding to the other unknown branch as the collector of the transistor;
[0033] Step 2.2: If the transistor to be tested is determined to be a PNP transistor in step 1, the transistor emitter and collector are determined as follows:
[0034] Step 2.2.1, take the branch where the base of the transistor is located as the known branch, and the other two branches as the unknown branches, switch the single-pole double-throw switch close to the transistor to be tested on the known branch to the A contact, and restore the single-pole double-throw switch far from the transistor to be tested to the B contact, and restore the single-pole double-throw switches on the two unknown branches to the B contact;
[0035] Step 2.2.2, divide the two unknown branches into a first unknown branch and a second unknown branch, switch the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to contact A, record the voltages of the sampling points on the first unknown branch and the second unknown branch, and complete the fourth sampling;
[0036] Step 2.2.3, restore the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to the B contact, and at the same time switch the single-pole double-throw switch on the second unknown branch away from the transistor to be tested to the A contact, record the voltages of the sampling points on the second unknown branch and the first unknown branch, and complete the fifth sampling;
[0037] Step 2.2.4, calculate the voltage difference between the two sampling points of a single sampling in the fourth and fifth samplings, and take the unknown branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested in the sampling with the larger voltage difference as the collector of the transistor, and the pin corresponding to the other unknown branch is the emitter of the transistor.
[0038] Preferably, in step 1.6, after determining that the transistor to be tested is an NPN transistor and the branch where the base is located, if the voltage difference between the voltage of the branch where the base is located and the other two branches is at most 0.7V when all three voltages are at high levels, then the transistor is a silicon transistor; if the voltage difference between the voltage of the branch where the base is located and the other two branches is at most 0.3V when all three voltages are at high levels, then the transistor is a germanium transistor;
[0039] After determining that the transistor to be tested is a PNP transistor and the branch where the base is located, if the voltage difference between the voltage of the branch where the base is located and the voltage of the branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested when all three voltages are high is 0.7V at most, then the transistor is a silicon tube; if the voltage difference between the voltage of the branch where the base is located and the voltage of the branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested when all three voltages are high is 0.3V at most, then the transistor is a germanium tube.
[0040] The present application provides a transistor type and pin judgment circuit and method, which has a simple circuit design, simple principle, compact physical object, and extremely low cost, and can replace the effect of multimeter pen measurement in electronic design. And the judgment method based on the judgment circuit design is consistent with the laboratory multimeter judgment method in principle, so the correctness of the measurement is guaranteed, but the process of using the multimeter pen to point back and forth and record data is omitted, which greatly improves the judgment efficiency while ensuring the correctness. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of the structure of a transistor type and pin determination circuit of the present application;
[0042] Figure 2 This is a schematic diagram of the structure of the detection circuit of this application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0044] It should be noted that when a component is referred to as being "connected" to another component, it may be directly connected to the other component or there may be an intermediate component. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0045] In one of the embodiments, a transistor type and pin judgment circuit is provided, which eliminates the step of frequently switching the measurement pins with a multi-point pen, and realizes fast and convenient judgment of the transistor type (including material) and pins.
[0046] like Figure 1 As shown, the transistor type and pin determination circuit of this embodiment includes a single-chip microcomputer control circuit, and a detection circuit and a display circuit connected to the single-chip microcomputer control circuit.
[0047] like Figure 2 As shown, the detection circuit includes a first branch, a second branch and a third branch respectively connected to the three pins of the transistor to be tested.
[0048] The first branch includes a single-pole double-throw switch S1, a single-pole double-throw switch S4, a resistor R1 (for example, 100KΩ) and a resistor R4 (for example, 1KΩ), the common contact of the single-pole double-throw switch S1 serves as a first sampling point (sampling point 1) connected to a pin of the transistor to be tested, the A contact of the single-pole double-throw switch S1 is connected to the common contact of the single-pole double-throw switch S4 through the resistor R1, the B contact of the single-pole double-throw switch S1 is directly connected to the common contact of the single-pole double-throw switch S4, the A contact of the single-pole double-throw switch S4 is connected to VCC, the B contact of the single-pole double-throw switch S4 is grounded through the resistor R4, and the first sampling point is connected to the single-chip control circuit.
[0049] The second branch includes a single-pole double-throw switch S2, a single-pole double-throw switch S5, a resistor R2 (for example, 100KΩ) and a resistor R5 (for example, 1KΩ), the common contact of the single-pole double-throw switch S2 serves as a second sampling point (sampling point 2) connected to another pin of the transistor to be tested, the A contact of the single-pole double-throw switch S2 is connected to the common contact of the single-pole double-throw switch S5 through the resistor R2, the B contact of the single-pole double-throw switch S2 is directly connected to the common contact of the single-pole double-throw switch S5, the A contact of the single-pole double-throw switch S5 is connected to VCC, the B contact of the single-pole double-throw switch S5 is grounded through the resistor R5, and the second sampling point is connected to the single-chip control circuit.
[0050] The third branch includes a single-pole double-throw switch S3, a single-pole double-throw switch S6, a resistor R3 (for example, 100KΩ) and a resistor R6 (for example, 1KΩ), the common contact of the single-pole double-throw switch S3 is used as a third sampling point (sampling point 3) connected to the last pin of the transistor to be tested, the A contact of the single-pole double-throw switch S3 is connected to the common contact of the single-pole double-throw switch S6 through the resistor R3, the B contact of the single-pole double-throw switch S3 is directly connected to the common contact of the single-pole double-throw switch S6, the A contact of the single-pole double-throw switch S6 is connected to VCC, the B contact of the single-pole double-throw switch S6 is grounded through the resistor R6, and the third sampling point is connected to the single-chip control circuit;
[0051] The single chip control circuit acquires the voltages of the first sampling point, the second sampling point and the third sampling point and displays them through the display circuit.
[0052] In this embodiment, different voltages can be obtained at three sampling points by changing the state of each single-pole double-throw switch. The voltages are displayed in the display circuit, eliminating the need for frequent replacement of multimeter measurements and manual data recording.
[0053] In order to improve the convenience of using the judgment circuit of the present application, in one embodiment, the single-pole double-throw switch is a single-pole double-throw switch relay, and the single-chip control circuit is connected to the control end of the single-pole double-throw switch relay. That is, during the detection process, the single-chip control circuit can control the state of the single-pole double-throw switch relay to achieve automatic detection and record data.
[0054] In this embodiment, the single-pole double-throw switch relay adopts the SRD-05VDC-SL-C model. Under the premise of achieving the same function, the model of the single-pole double-throw switch relay can be replaced.
[0055] The single-chip control circuit in this embodiment includes a main control chip, and the first sampling point, the second sampling point and the third sampling point are respectively connected to the ADC pin of the main control chip. The voltages of the three sampling points are obtained by the ADC pin of the chip, eliminating the need for manual reading and recording, and the voltage sampling accuracy is higher.
[0056] Considering the circuit function and hardware cost, in one embodiment, the main control chip adopts the STM32F407VGT6 model. It is easy to understand that the model of the main control chip can be changed under the premise of satisfying the circuit function realization of this application.
[0057] In order to obtain better control and sampling effects, appropriate peripherals can be added based on the main control chip. For example, in order to prevent the main control chip from outputting too little current and being unable to effectively control the single-pole double-throw switch relay, a transistor can be added between the pin of the main control chip and the control end of the single-pole double-throw switch relay; for example, in order to improve the voltage recognition of the sampling point, a signal amplification circuit can be added between the sampling point and the ADC pin of the main control chip. Therefore, the circuit after the simple addition of peripherals based on the judgment circuit of this application still falls within the protection scope of this application.
[0058] In one embodiment, the display circuit includes a TFTLCD display screen, which is driven and controlled by a main control chip. It should be noted that the process of the main control chip controlling the display screen and the relay in this embodiment is a relatively mature technology in the field of electronic component control, and will not be described in detail here.
[0059] Since the judgment circuit design principle of the present application is based on the principle of multimeter judgment transistor, the main control chip in this embodiment can directly display the voltage on the display screen after obtaining the voltage at the sampling point, or display the judgment result on the display screen after processing according to the transistor judgment logic.
[0060] Of course, the circuit structure based on the present embodiment, and simply superimposing other components on the basis of the judgment circuit of the present embodiment, still falls within the protection scope of the present application, such as adding a female connector to connect to the detection circuit to facilitate direct insertion of the transistor to be tested for detection; for example, adding a filter circuit at the sampling point to eliminate interference signals, etc.
[0061] In another embodiment, a method for determining the type and pin of a transistor is provided, which is implemented based on the above-mentioned circuit for determining the type and pin of the transistor. The method for determining the type and pin of the transistor includes:
[0062] Step 1: Determine transistor type and base.
[0063] The transistor is a current-controlled semiconductor device, which consists of two PN junctions, the middle part is the base, and the two sides are the emitter and collector. There are two arrangements: NPN and PNP. Regardless of PNP or NPN, the polarity corresponding to the position of the transistor base is different from the polarity of the emitter and collector, as follows:
[0064] The base of the PNP transistor corresponds to the N pole of the PN junction, and the emitter and collector correspond to the P poles of the two PN junctions respectively. When the base is connected to a high level, both PN junctions are reverse biased and cut off, so at this time, only the base is at a high level, and the collector and emitter are at a low level. When the collector or emitter is connected to a high level, the corresponding PN junction is forward biased and turned on, so at this time, the base and the pin connected to the high level are at a high level (but there is a voltage drop of 0.7V or 0.3V, and it is still a high level overall). At this time, due to the voltage difference between the base and the pin connected to the high level, the level state of the other pin is also high.
[0065] The base of the NPN transistor corresponds to the P pole of the PN junction, and the collector and emitter correspond to the N poles of the two PN junctions. When the base is connected to a high level, both PN junctions are forward biased and turned on, so at this time, the three pins of the detection potential are all high (but there is a voltage drop of 0.7V or 0.3V, and the overall level is still high). When the collector or emitter is connected to a high level, the corresponding PN junction is reverse biased and cut off. Therefore, at this time, only the pin connected to the high level of the detection potential is high, and the other pins are at a low level.
[0066] In summary, according to the unidirectional conductivity of the PN junction, the three pins of the transistor are respectively connected to a high level, and the potentials of the three pins are detected to distinguish the polarity and base position of the transistor. Therefore, the specific judgment method of the transistor type and the base provided by the judgment circuit of the present application in this embodiment is as follows:
[0067] Step 1.1, reset all single-pole double-throw switches to contact B;
[0068] Step 1.2, connect the three pins of the transistor to be tested to the common contact of the single-pole double-throw switch S1, the common contact of the single-pole double-throw switch S2, and the common contact of the single-pole double-throw switch S3 respectively;
[0069] Step 1.3, control the single-pole double-throw switch S4 to switch to contact A, record the voltages of the first sampling point, the second sampling point, and the third sampling point, and complete the first sampling;
[0070] Step 1.4, control the single-pole double-throw switch S4 to return to the B contact, and control the single-pole double-throw switch S5 to switch to the A contact, record the voltages of the first sampling point, the second sampling point, and the third sampling point, and complete the second sampling;
[0071] Step 1.5, control the single-pole double-throw switch S5 to return to the B contact, and control the single-pole double-throw switch S6 to switch to the A contact, record the voltages of the first sampling point, the second sampling point and the third sampling point, and complete the third sampling; It should be noted that steps 1.3 to 1.5 are to adopt the same switching method for the three branches and record the voltages respectively, so there is no requirement for the execution order of the three branches. Steps 1.3 to 1.5 of this embodiment only illustrate one of the feasible methods, and the remaining execution orders still belong to the protection scope of this application.
[0072] Step 1.6: Determine the transistor type and base position based on the recorded voltage value:
[0073] If, among the three samplings, there is one sampling where all three voltages are high level, and the other two samplings where three voltages are one high level and two low levels, then the transistor to be tested is determined to be an NPN transistor, and when the three voltages are all high level, the pin of the transistor connected to the branch of the single-pole double-throw switch at the A contact is the base of the transistor;
[0074] If, among the three samplings, the three voltages of two samplings are all high level, and the three voltages of the other sampling are one high level and two low levels, then it is judged that the transistor to be tested is a PNP transistor, and when the three voltages are one high level and two low levels, the pin of the transistor connected to the branch of the single-pole double-throw switch located at the A contact is the base of the transistor;
[0075] Otherwise, it is judged that the transistor is damaged or not connected, that is, if other conditions occur in the voltage during sampling, it is considered that the transistor is damaged or not connected.
[0076] Step 2: Determine the emitter and collector of the transistor.
[0077] The PN junction in the transistor is a space charge region (also called depletion layer) composed of immobile positive and negative ions formed on both sides of the P and N junction. The transistor is not a symmetrical structure. Its asymmetry is mainly reflected in the different semiconductor doping concentrations in the emitter and collector regions, and the doping concentration in the emitter region is much higher than that in the collector region. The level of doping will affect the concentration of electrons and holes, so it will affect the size (thickness) of the space charge region, which will cause the current flowing from the collector to the emitter to be different from the current flowing from the emitter to the collector. If the transistor to be tested is NPN, the current flowing from the collector to the emitter is greater than the current flowing from the emitter to the collector, and the opposite is true for PNP. The current size is mainly reflected by the voltage difference between the emitter and the collector.
[0078] When judging the position of the emitter and collector, a large resistor is connected to the base to divide the voltage, and a suitable voltage is provided to the base according to the type of transistor (PNP / NPN), and then positive and reverse currents are respectively passed between the emitter and the collector, and the current size (reflected by voltage) is compared to judge the emitter and the collector. The specific judgment method for judging the emitter and collector of the transistor based on the judgment circuit provided in this embodiment is as follows:
[0079] Step 2.1: If the transistor to be tested is determined to be an NPN transistor in step 1, the transistor emitter and collector are determined as follows:
[0080] Step 2.1.1, take the branch where the base of the transistor is located as the known branch, and the other two branches as the unknown branches, switch the two single-pole double-throw switches on the known branch to the A contact, and restore the single-pole double-throw switches on the two unknown branches to the B contact;
[0081] Step 2.1.2, divide the two unknown branches into a first unknown branch and a second unknown branch, switch the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to contact A, record the voltages of the sampling points on the first unknown branch and the second unknown branch, and complete the fourth sampling;
[0082] It should be noted that, according to the connection method of the single-pole double-throw switches on each branch in the present application, it can be known that the single-pole double-throw switches far away from the transistor to be tested are single-pole double-throw switches S4, S5, and S6 in the present application, and the corresponding single-pole double-throw switches close to the transistor to be tested are single-pole double-throw switches S1, S2, and S3 in the present application, and the corresponding single-pole double-throw switches can be determined by combining the respective branches. For example, the single-pole double-throw switch far away from the transistor to be tested in the first branch refers to single-pole double-throw switch S4, and the same applies to the rest.
[0083] Step 2.1.3, restore the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to the B contact, and at the same time switch the single-pole double-throw switch on the second unknown branch away from the transistor to be tested to the A contact, record the voltages of the sampling points on the second unknown branch and the first unknown branch, and complete the fifth sampling;
[0084] Step 2.1.4, calculate the voltage difference between the two sampling points of the single sampling in the fourth and fifth sampling, and take the unknown branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested in the sampling with the larger voltage difference as the emitter of the transistor, and the pin corresponding to the other unknown branch as the collector of the transistor;
[0085] Step 2.2: If the transistor to be tested is determined to be a PNP transistor in step 1, the transistor emitter and collector are determined as follows:
[0086] Step 2.2.1, take the branch where the base of the transistor is located as the known branch, and the other two branches as the unknown branches, switch the single-pole double-throw switch close to the transistor to be tested on the known branch to the A contact, and restore the single-pole double-throw switch far from the transistor to be tested to the B contact, and restore the single-pole double-throw switches on the two unknown branches to the B contact;
[0087] Step 2.2.2, divide the two unknown branches into a first unknown branch and a second unknown branch, switch the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to contact A, record the voltages of the sampling points on the first unknown branch and the second unknown branch, and complete the fourth sampling;
[0088] Step 2.2.3, restore the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to the B contact, and at the same time switch the single-pole double-throw switch on the second unknown branch away from the transistor to be tested to the A contact, record the voltages of the sampling points on the second unknown branch and the first unknown branch, and complete the fifth sampling;
[0089] Step 2.2.4, calculate the voltage difference between the two sampling points of a single sampling in the fourth and fifth samplings, and take the unknown branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested in the sampling with the larger voltage difference as the collector of the transistor, and the pin corresponding to the other unknown branch is the emitter of the transistor.
[0090] It should be noted that steps 2.1.2 to 2.1.3 or steps 2.2.2 to 2.2.3 are to adopt the same switching method for the two unknown branches and record the voltage respectively. Therefore, there is no requirement for the execution order of the two unknown branches. This embodiment only describes one of the feasible methods, and the remaining execution orders still fall within the scope of protection of this application.
[0091] And in one embodiment, when the transistor to be tested is determined to be an NPN transistor and the branch where the base is located in step 1.6, if the voltage difference between the voltage of the branch where the base is located and the other two branches is at most 0.7V when all three voltages are high (due to fluctuations in the voltage difference, it should be understood as approximately 0.7V), then the transistor is a silicon tube; if the voltage difference between the voltage of the branch where the base is located and the other two branches is at most 0.3V when all three voltages are high (due to fluctuations in the voltage difference, it should be understood as approximately 0.3V), then the transistor is a germanium tube.
[0092] After determining that the transistor to be tested is a PNP transistor and the branch where the base is located, if the voltage difference between the voltage of the branch where the base is located and the voltage of the branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested when all three voltages are high is 0.7V at most, then the transistor is a silicon tube; if the voltage difference between the voltage of the branch where the base is located and the voltage of the branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested when all three voltages are high is 0.3V at most, then the transistor is a germanium tube.
[0093] Since when the transistor is a PNP type, there are two times in the three samplings of steps 1.3 to 1.5 when all three voltages are high level, it is necessary to calculate the maximum voltage difference between the branch where the base is located and the branch when the single-pole double-throw switch is currently switched to contact A. If the larger value of the two voltage differences is about 0.7V, it is a silicon tube; if the larger value of the two voltage differences is about 0.3V, it is a silicon tube.
[0094] For example, if the first branch is the base at this time, then when the second branch is away from the single-pole double-throw switch S5 of the transistor and switches to the A contact, the voltage difference between the first branch and the second branch is V1, and when the third branch is away from the single-pole double-throw switch S6 of the transistor and switches to the A contact, the voltage difference between the first branch and the third branch is V2. If the larger value of the two voltage differences of V1 and V2 is about 0.7V, the transistor to be tested is a silicon tube, and if the larger value of the two voltage differences of V1 and V2 is about 0.3V, the transistor to be tested is a germanium tube.
[0095] The judgment method provided in this embodiment can obtain the type and pin of the transistor by sampling the voltage multiple times, and the judgment method is simple and has high accuracy. It is easy to understand that in this judgment method, if the judgment circuit based on it adopts a mechanical single-pole double-throw switch, and the main control chip only displays the voltage on the display circuit, then when making a judgment on the transistor, it is necessary to manually switch the single-pole double-throw switch, and manually obtain the judgment result of the transistor according to the judgment logic based on the voltage displayed by the final display circuit; if the judgment circuit based on it adopts a single-pole double-throw switch relay, and the main control chip runs the above judgment method, then after the judgment circuit works, the single-pole double-throw switch relay is automatically switched, and the judgment result of the transistor is displayed on the display circuit to achieve automatic judgment.
[0096] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0097] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A transistor type and pin determination circuit, characterized in that: The transistor type and pin judgment circuit includes a single-chip control circuit, and a detection circuit and a display circuit connected to the single-chip control circuit; the detection circuit includes a first branch, a second branch and a third branch respectively connected to the three pins of the transistor to be tested; The first branch includes a single-pole double-throw switch S1, a single-pole double-throw switch S4, a resistor R1 and a resistor R4, the common contact of the single-pole double-throw switch S1 is used as a first sampling point connected to a pin of the transistor to be tested, the A contact of the single-pole double-throw switch S1 is connected to the common contact of the single-pole double-throw switch S4 through the resistor R1, the B contact of the single-pole double-throw switch S1 is directly connected to the common contact of the single-pole double-throw switch S4, the A contact of the single-pole double-throw switch S4 is connected to VCC, the B contact of the single-pole double-throw switch S4 is grounded through the resistor R4, and the first sampling point is connected to the single-chip control circuit; The second branch includes a single-pole double-throw switch S2, a single-pole double-throw switch S5, a resistor R2 and a resistor R5, the common contact of the single-pole double-throw switch S2 is used as a second sampling point connected to another pin of the transistor to be tested, the A contact of the single-pole double-throw switch S2 is connected to the common contact of the single-pole double-throw switch S5 through the resistor R2, the B contact of the single-pole double-throw switch S2 is directly connected to the common contact of the single-pole double-throw switch S5, the A contact of the single-pole double-throw switch S5 is connected to VCC, the B contact of the single-pole double-throw switch S5 is grounded through the resistor R5, and the second sampling point is connected to the single-chip control circuit; The third branch includes a single-pole double-throw switch S3, a single-pole double-throw switch S6, a resistor R3 and a resistor R6, the common contact of the single-pole double-throw switch S3 is used as a third sampling point connected to the last pin of the transistor to be tested, the A contact of the single-pole double-throw switch S3 is connected to the common contact of the single-pole double-throw switch S6 through the resistor R3, the B contact of the single-pole double-throw switch S3 is directly connected to the common contact of the single-pole double-throw switch S6, the A contact of the single-pole double-throw switch S6 is connected to VCC, the B contact of the single-pole double-throw switch S6 is grounded through the resistor R6, and the third sampling point is connected to the single-chip control circuit; The single chip control circuit acquires the voltages of the first sampling point, the second sampling point and the third sampling point and displays them through the display circuit.
2. The transistor type and pin determination circuit according to claim 1, characterized in that: The single-pole double-throw switch is a single-pole double-throw switch relay, and the single-chip microcomputer control circuit is connected to the control end of the single-pole double-throw switch relay.
3. The transistor type and pin determination circuit as claimed in claim 2, characterized in that: The single-pole double-throw switch relay adopts the SRD-05VDC-SL-C model.
4. The transistor type and pin determination circuit according to claim 1, characterized in that: The single-chip control circuit comprises a main control chip, and the first sampling point, the second sampling point and the third sampling point are respectively connected to ADC pins of the main control chip.
5. The transistor type and pin determination circuit as claimed in claim 4, characterized in that: The main control chip is STM32F407VGT6.
6. The transistor type and pin determination circuit as claimed in claim 1, characterized in that: The display circuit includes a display screen of the TFTLCD model.
7. A method for determining the type and pin of a transistor, characterized in that: Based on the transistor type and pin judgment circuit according to any one of claims 1 to 6, the transistor type and pin judgment method includes: Step 1: Determine transistor type and base; Step 1.1, reset all single-pole double-throw switches to contact B; Step 1.2, connect the three pins of the transistor to be tested to the common contact of the single-pole double-throw switch S1, the common contact of the single-pole double-throw switch S2, and the common contact of the single-pole double-throw switch S3 respectively; Step 1.3, control the single-pole double-throw switch S4 to switch to contact A, record the voltages of the first sampling point, the second sampling point, and the third sampling point, and complete the first sampling; Step 1.4, control the single-pole double-throw switch S4 to return to the B contact, and control the single-pole double-throw switch S5 to switch to the A contact, record the voltages of the first sampling point, the second sampling point, and the third sampling point, and complete the second sampling; Step 1.5, control the single-pole double-throw switch S5 to return to the B contact, and control the single-pole double-throw switch S6 to switch to the A contact, record the voltages of the first sampling point, the second sampling point, and the third sampling point, and complete the third sampling; Step 1.6: Determine the transistor type and base position based on the recorded voltage value: If, among the three samplings, there is one sampling where all three voltages are high level, and the other two samplings where three voltages are one high level and two low levels, then the transistor to be tested is determined to be an NPN transistor, and when the three voltages are all high level, the pin of the transistor connected to the branch of the single-pole double-throw switch at the A contact is the base of the transistor; If, among the three samplings, the three voltages of two samplings are all high level, and the three voltages of the other sampling are one high level and two low levels, then it is judged that the transistor to be tested is a PNP transistor, and when the three voltages are one high level and two low levels, the pin of the transistor connected to the branch of the single-pole double-throw switch located at the A contact is the base of the transistor; Otherwise, it is judged that the transistor is damaged or not connected; Step 2, determine the emitter and collector of the transistor; Step 2.1: If the transistor to be tested is determined to be an NPN transistor in step 1, the transistor emitter and collector are determined as follows: Step 2.1.1, take the branch where the base of the transistor is located as the known branch, and the other two branches as the unknown branches, switch the two single-pole double-throw switches on the known branch to the A contact, and restore the single-pole double-throw switches on the two unknown branches to the B contact; Step 2.1.2, divide the two unknown branches into a first unknown branch and a second unknown branch, switch the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to contact A, record the voltages of the sampling points on the first unknown branch and the second unknown branch, and complete the fourth sampling; Step 2.1.3, restore the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to the B contact, and at the same time switch the single-pole double-throw switch on the second unknown branch away from the transistor to be tested to the A contact, record the voltages of the sampling points on the second unknown branch and the first unknown branch, and complete the fifth sampling; Step 2.1.4, calculate the voltage difference between the two sampling points of the single sampling in the fourth and fifth sampling, and take the unknown branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested in the sampling with the larger voltage difference as the emitter of the transistor, and the pin corresponding to the other unknown branch as the collector of the transistor; Step 2.2: If the transistor to be tested is determined to be a PNP transistor in step 1, the transistor emitter and collector are determined as follows: Step 2.2.1, take the branch where the base of the transistor is located as the known branch, and the other two branches as the unknown branches, switch the single-pole double-throw switch close to the transistor to be tested on the known branch to the A contact, and restore the single-pole double-throw switch far from the transistor to be tested to the B contact, and restore the single-pole double-throw switches on the two unknown branches to the B contact; Step 2.2.2, divide the two unknown branches into a first unknown branch and a second unknown branch, switch the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to contact A, record the voltages of the sampling points on the first unknown branch and the second unknown branch, and complete the fourth sampling; Step 2.2.3, restore the single-pole double-throw switch on the first unknown branch away from the transistor to be tested to the B contact, and at the same time switch the single-pole double-throw switch on the second unknown branch away from the transistor to be tested to the A contact, record the voltages of the sampling points on the second unknown branch and the first unknown branch, and complete the fifth sampling; Step 2.2.4, calculate the voltage difference between the two sampling points of a single sampling in the fourth and fifth samplings, and take the unknown branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested in the sampling with the larger voltage difference as the collector of the transistor, and the pin corresponding to the other unknown branch is the emitter of the transistor.
8. The method for determining the type and pin of a transistor according to claim 7, wherein: In the step 1.6, after judging that the transistor to be tested is an NPN transistor and the branch where the base is located, if the voltage difference between the voltage of the branch where the base is located and the other two branches is at most 0.7V when the three voltages are all high, the transistor is a silicon transistor; if the voltage difference between the voltage of the branch where the base is located and the other two branches is at most 0.3V when the three voltages are all high, the transistor is a germanium transistor; After determining that the transistor to be tested is a PNP transistor and the branch where the base is located, if the voltage difference between the voltage of the branch where the base is located and the voltage of the branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested when all three voltages are high is 0.7V at most, then the transistor is a silicon tube; if the voltage difference between the voltage of the branch where the base is located and the voltage of the branch corresponding to the A contact of the single-pole double-throw switch far away from the transistor to be tested when all three voltages are high is 0.3V at most, then the transistor is a germanium tube.
