Detection circuit and detection method for jack connection of electronic experiment box
By designing a computer-aided detection circuit in the electronic experiment box and using scanning circuits and jack detection modules, the problem of low efficiency in checking complex circuit connections has been solved, fast and accurate jack connection detection has been achieved, and teaching efficiency has been improved. .
Patent Information
- Application Number
- CN202210093736.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-01-26
AI Technical Summary
In the electronic experiment box, there are many and overlapping connections in complex circuits, which makes the teacher's inspection efficiency low and unable to quickly determine whether the jack connections are correct, which affects the teaching effect.
A detection circuit is designed, including a computer, a microprocessor, a scanning circuit and a jack detection module. It connects each jack through a 2-core wire and uses 74164 standard logic circuit and transistor circuit to automatically and quickly detect the jack connection. .
Through computer-aided detection, the connection status between each jack can be quickly determined, which improves teaching efficiency and ensures that teachers can quickly and accurately determine whether the circuit connection is correct.
Smart Images

Figure CN114527319B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of analog circuit construction, and in particular to a detection circuit for connecting jacks of an electronic experiment box, a detection method for the detection circuit, and a detection circuit constructed based on the detection method. Background Art
[0002] Electronic technology experiment box is a teaching tool commonly used in teaching. It is most common in the teaching of analog circuits, digital circuits, single-chip microcomputers, automatic control, communications and other majors. These test boxes integrate some electronic components, and the pins of each component are connected in the form of jacks. When students learn, they connect the jacks with wires, which is equivalent to connecting the components. Through a large number of connections, the required circuits are formed to conduct learning-related experiments.
[0003] During the teaching process, teachers need to help students check whether the circuit is correct. Complex circuits have many connecting lines that cross and overlap, and the efficiency of checking is very low. In serious cases, teachers cannot take care of every student, resulting in low learning efficiency. If computers can help teachers automatically and quickly check circuit connections, it will greatly improve the teaching effect. Summary of the invention
[0004] The purpose of the present invention is to provide a detection circuit for electronic experiment box jack connection, which can quickly detect the connection result of the experiment box jack by using the detection circuit and a computer, and a detection method of the detection circuit.
[0005] The first technical solution of the present invention is: a detection circuit for connecting the jacks of an electronic experiment box, which is special in that it includes a computer, a microprocessor, a scanning circuit and a jack detection module connected in sequence through lines.
[0006] Preferably, the scanning circuit is a 74164 standard logic circuit.
[0007] Preferably, the jack detection module includes at least two groups of jack detection circuits with the same structure, the jack detection circuits correspond one-to-one to each jack of the electronic experiment box, and the two jacks are connected by a 2-core wire.
[0008] Preferably, the two-core wires include a detection wire and an experimental wire wrapped by protective rubber, and the detection wire and the experimental wire are not connected to each other.
[0009] Preferably, the jack detection circuit includes two transistors Qin, Qout, a pull-up resistor Rs, a resistor Rup, a first resistor R1, a second resistor R2 and a jack J;
[0010] The base of the transistor Qin is connected in series with the first resistor R1 and then connected in series with the scan input terminal SCAN_IN, the collector of the transistor Qin is connected to the output terminal S, the emitter of the transistor Qin is connected to the collector of the transistor Qout, the base of the transistor Qout is connected in series with the second resistor R2 and then connected in series with the scan output terminal SCAN_OUT, and the emitter of the transistor Qout is grounded;
[0011] The circuit between the emitter of transistor Qin and the collector of transistor Qout is also connected to a first branch and a second branch, wherein the first branch is connected in series with resistor Rup and then connected to power source VCC, and the second branch is connected to the jack;
[0012] The circuit between the emitter of the transistor Qin and the output terminal Q is also connected to a third branch, and the third branch is connected in series with the pull-up resistor Rs and then connected to the power supply VCC.
[0013] Preferably: the scan input terminal SCAN_IN includes input terminals IN_SEL and IN_CLK;
[0014] The scan output terminal SCAN_OUT includes output terminals OUT_SEL and OUT_CLK.
[0015] The second technical solution of the present invention is: a detection method of a detection circuit, which is special in that it includes the following steps:
[0016] Step ⑴, obtain the total number of sockets N currently used in the electronic experiment box;
[0017] Step ⑵, set IN_SEL to low level, and IN_CLK outputs N pulses;
[0018] Step (3), set OUT_SEL to low level, and OUT_CLK outputs N pulses;
[0019] Step (4), set the number i of the currently scanned socket to 1;
[0020] Step (5), set IN_SEL to high level, IN_CLK outputs 1 pulse, and then set IN_SEL to low level;
[0021] Step (6): Is i greater than N? If yes, skip to step (6); if no, go to the next step;
[0022] Step ⑺, set OUT_SEL to high level, and OUT_CLK outputs 1 pulse;
[0023] Step ⑻, set OUT_SEL to low level, and OUT_CLK outputs i pulses;
[0024] Step (9), set the number of the input hole to be scanned to j, j = i + 1;
[0025] Step ⑽, whether j is greater than N, if yes, go to step ⒁; if no, go to the next step;
[0026] Step ⑾, whether the S signal is at a low level, if yes, record that there is a connection between the (i, j) holes; if no, record that there is no connection;
[0027] Step ⑿, OUT_CLK outputs 1 pulse;
[0028] Step ⒀, set the input hole number j to be scanned currently, j=j+1, and jump to step ⑽;
[0029] Step ⒁, IN_CLK outputs 1 pulse;
[0030] Step ⒂, set the output hole number i to be scanned currently to i+1, and jump to step ⑹;
[0031] Step ⒃, the connection status of all hole pairs recorded is sent to the computer.
[0032] The third technical solution of the present invention is: a detection circuit based on the above detection method, which is special in that it includes a computer, a microprocessor, a scanning circuit and a jack detection module connected in sequence through a line;
[0033] The scanning circuit adopts 74164 standard logic circuit, including input scanning circuit and output scanning circuit with the same structure;
[0034] The A and B terminals of the input scanning circuit are connected in parallel to the input terminal IN_SEL, the CLK terminal is connected to the input terminal IN_CLK, the CLR terminal is connected to the power supply VCC, and the Q0-Q7 ports are respectively connected to the scanning input terminal SCAN_IN of the jack detection circuit;
[0035] The A and B terminals of the output scanning circuit are connected in parallel to the output terminal OUT_SEL, the CLK terminal is connected to the output terminal OUT_CLK, the CLR terminal is connected to the power supply VCC, and the Q0-Q7 terminals are respectively connected to the output terminal SCAN_OUT of the jack detection circuit;
[0036] The collectors of the transistors Qin of several groups of jack detection circuits are connected in parallel and connected to the output terminal S;
[0037] The input terminals IN_SEL, IN_CLK, the output terminals OUT_SEL, OUT_CLK, and the output terminal S are all connected to the microprocessor through lines, and the microprocessor is connected to the computer through wired or wireless lines;
[0038] The jack detection module includes 8 groups of detection circuits with the same structure, and the jack detection circuit includes two transistors Qin, Qout, a pull-up resistor Rs, a resistor Rup, a first resistor R1, a second resistor R2 and a jack J;
[0039] The base of the transistor Qin is connected in series with the first resistor R1 and then connected in series with the scan input terminal SCAN_IN, the collector of the transistor Qin is connected to the output terminal S, the emitter of the transistor Qin is connected to the collector of the transistor Qout, the base of the transistor Qout is connected in series with the second resistor R2 and then connected in series with the scan output terminal SCAN_OUT, and the emitter of the transistor Qout is grounded;
[0040] The circuit between the emitter of transistor Qin and the collector of transistor Qout is also connected to a first branch and a second branch, wherein the first branch is connected in series with resistor Rup and then connected to power source VCC, and the second branch is connected to the jack;
[0041] The jack detection circuit of each group is located at the emitter of the transistor Qin, which is connected in parallel to the output terminal Q, and the output terminal Q is connected in series with the pull-up resistor Rs and then connected to the power supply VCC;
[0042] The sockets J between the two socket detection circuits to be detected are connected to each other through a detection wire.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] The detection circuit provided by the present invention can quickly detect the connection status of the jacks of the electronic experiment box through a computer so that teachers can quickly determine whether the connection between the jacks is correct, thereby improving teaching efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 is a circuit block diagram of the detection circuit provided by the present invention;
[0046] Figure 2 is a circuit schematic diagram of the detection circuit provided by the present invention;
[0047] Figure 3 is the circuit diagram of the jack detection circuit. DETAILED DESCRIPTION
[0048] The present invention will be further described below in conjunction with the accompanying drawings:
[0049] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more explicit definition of the protection scope of the present invention. The directional terms mentioned in the present invention, such as "up", "down", "front", "back", "left", "right", "top", "bottom", etc., are only referenced to the directions of the attached drawings. Therefore, the directional terms used are used to illustrate and understand the present invention, rather than to limit the present invention.
[0050] See also Figure 1 As shown, the present invention provides a detection circuit for connecting the jack of an electronic experiment box, including a computer, a microprocessor, a scanning circuit and a jack detection module connected in sequence through lines.
[0051] See also Figure 2 As shown, the scanning circuit adopts 74164 standard logic circuit.
[0052] In this embodiment, the jack detection module includes 8 groups of jack detection circuits with the same structure, and the jack detection circuits correspond to the positions of the jacks of the electronic experiment box one by one. The two jacks to be detected are connected by a 2-core wire, and the 2-core wire includes a detection wire and an experimental wire wrapped by a protective rubber, and the detection wire and the experimental wire are not connected to each other;
[0053] The detection circuit includes an input scanning circuit and an output scanning circuit with the same structure;
[0054] The A and B terminals of the input scanning circuit are connected in parallel to the input terminal IN_SEL, the CLK terminal is connected to the input terminal IN_CLK, the CLR terminal is connected to the power supply VCC, and the Q0-Q7 ports are respectively connected to the scanning input terminal SCAN_IN of the jack detection circuit;
[0055] The A and B terminals of the output scanning circuit are connected in parallel to the output terminal OUT_SEL, the CLK terminal is connected to the output terminal OUT_CLK, the CLR terminal is connected to the power supply VCC, and the Q0-Q7 terminals are respectively connected to the output terminal SCAN_OUT of the jack detection circuit;
[0056] The collectors of the transistors Qin of several groups of jack detection circuits are connected in parallel and connected to the output terminal S;
[0057] The input terminals IN_SEL and IN_CLK, the output terminals OUT_SEL and OUT_CLK, and the output terminal S are all connected to the microprocessor through lines, and the microprocessor is connected to the computer through wired or wireless lines.
[0058] See also Figure 3As shown, the jack detection circuit includes two transistors Qin, Qout, a pull-up resistor Rs, a resistor Rup, a first resistor R1, a second resistor R2 and a jack J;
[0059] The base of the transistor Qin is connected in series with the first resistor R1 and then connected in series with the scan input terminal SCAN_IN, the collector of the transistor Qin is connected to the output terminal S, the emitter of the transistor Qin is connected to the collector of the transistor Qout, the base of the transistor Qout is connected in series with the second resistor R2 and then connected in series with the scan output terminal SCAN_OUT, and the emitter of the transistor Qout is grounded;
[0060] The circuit between the emitter of transistor Qin and the collector of transistor Qout is also connected to a first branch and a second branch, wherein the first branch is connected in series with resistor Rup and then connected to power source VCC, and the second branch is connected to the jack;
[0061] The jack detection circuit of each group is located at the emitter of the transistor Qin, which is connected in parallel to the output terminal Q, and the output terminal Q is connected in series with the pull-up resistor Rs and then connected to the power supply VCC;
[0062] The sockets J between the two socket detection circuits to be detected are connected to each other through a detection wire.
[0063] The detection method of the detection circuit provided by the present invention specifically comprises the following steps:
[0064] Step ⑴, obtain the total number of sockets N currently used in the electronic experiment box;
[0065] Step ⑵, set IN_SEL to low level, and IN_CLK outputs N pulses;
[0066] Step (3), set OUT_SEL to low level, and OUT_CLK outputs N pulses;
[0067] Step (4), set the number i of the currently scanned socket to 1;
[0068] Step (5), set IN_SEL to high level, IN_CLK outputs 1 pulse, and then set IN_SEL to low level;
[0069] Step (6): Is i greater than N? If yes, skip to step (6); if no, go to the next step;
[0070] Step ⑺, set OUT_SEL to high level, and OUT_CLK outputs 1 pulse;
[0071] Step ⑻, set OUT_SEL to low level, and OUT_CLK outputs i pulses;
[0072] Step (9), set the number of the input hole to be scanned to j, j = i + 1;
[0073] Step ⑽, whether j is greater than N, if yes, go to step ⒁; if no, go to the next step;
[0074] Step ⑾, whether the S signal is at a low level, if yes, record that there is a connection between the (i, j) holes; if no, record that there is no connection;
[0075] Step ⑿, OUT_CLK outputs 1 pulse;
[0076] Step ⒀, set the input hole number j to be scanned currently, j=j+1, and jump to step ⑽;
[0077] Step ⒁, IN_CLK outputs 1 pulse;
[0078] Step ⒂, set the output hole number i to be scanned currently to i+1, and jump to step ⑹;
[0079] Step ⒃, the connection status of all hole pairs recorded is sent to the computer.
[0080] The present invention is provided with an input signal switch circuit SCAN_IN and an output signal switch circuit SCAN_OUT on each jack. When detecting, a low level is input to the input signal of the target jack, and high levels are input to other jacks in turn. The jack whose connection relationship is to be detected is turned on, and the other jacks are turned off. Each combination of two jacks is triggered once in turn, so as to obtain the connection relationship between the two jacks.
[0081] When scanning a hole pair, if there is a direct or indirect connection between the two sockets, the input signal of the detected target socket will be a low level. On the contrary, if there is no direct or indirect connection between the two sockets, the input signal detected will be a high level. The specific working principle is as follows:
[0082] See also Figure 3 As shown, the scanning control signals SCAN_IN and SCAN_OUT of all holes are independent, the output signal S is directly connected together, and the pull-up resistor Rs is also shared by all holes. When SCAN_OUT is high, Qout is turned on, and the jack J outputs a low level. Otherwise, under the action of Rup, the jack J outputs a high level. When the jack J is low and when SCAN_IN is high, Qin will be turned on, pulling down the signal S to a low level. Otherwise, the signal S is high under the action of Rs. When the two jacks are connected, after scanning this pair of holes, the jack connection line is low, and the output signal S is also low.
[0083] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should fall within the scope of the claims of the present invention.
Claims
1. A detection circuit for connecting the jack of an electronic experiment box, characterized in that: It includes a computer, a microprocessor, a scanning circuit and a jack detection module connected in sequence through lines; the jack detection module includes at least two groups of jack detection circuits with the same structure; the jack detection circuit includes a pull-up resistor Rs, a resistor Rup, a first resistor R1, a second resistor R2, a jack J and two transistors Qin and Qout; the scanning input terminal SCAN_IN includes input terminals IN_SEL and IN_CLK; the scanning output terminal SCAN_OUT includes output terminals OUT_SEL and OUT_CLK; The base of the transistor Qin is connected in series with the first resistor R1 and then connected in series with the scan input terminal SCAN_IN, the collector of the transistor Qin is connected to the output terminal S, the emitter of the transistor Qin is connected to the collector of the transistor Qout, the base of the transistor Qout is connected in series with the second resistor R2 and then connected in series with the scan output terminal SCAN_OUT, and the emitter of the transistor Qout is grounded; The circuit between the emitter of transistor Qin and the collector of transistor Qout is also connected to a first branch and a second branch, wherein the first branch is connected in series with resistor Rup and then connected to power source VCC, and the second branch is connected to the jack; The circuit between the emitter of the transistor Qin and the output terminal Q is also connected to a third branch, and the third branch is connected in series with the pull-up resistor Rs and then connected to the power supply VCC.
2. The detection circuit for connecting the jack of an electronic experiment box according to claim 1 is characterized in that: The detection circuit includes an input scanning circuit and an output scanning circuit with the same structure; The A and B terminals of the input scanning circuit are connected in parallel to the input terminal IN_SEL, the CLK terminal is connected to the input terminal IN_CLK, the CLR terminal is connected to the power supply VCC, and the Q0-Q7 ports are respectively connected to the scanning input terminal SCAN_IN of the jack detection circuit; The A end and the B end of the output scanning circuit are connected in parallel to the output end OUT_SEL, the CLK end is connected to the output end OUT_CLK, the CLR end is connected to the power supply VCC, and the Q0-Q7 ports are respectively connected to the output end SCAN_OUT of the jack detection circuit; The collectors of the transistors Qin of several groups of jack detection circuits are connected in parallel and connected to the output terminal S; The input terminals IN_SEL and IN_CLK, the output terminals OUT_SEL and OUT_CLK, and the output terminal S are all connected to the microprocessor through lines, and the microprocessor is connected to the computer through wired or wireless lines.
3. The detection circuit for connecting the jack of an electronic experiment box according to claim 1 is characterized in that: The jacks J are provided with an input signal switch circuit SCAN_IN and an output signal switch circuit SCAN_OUT. When detecting, a low level is input to the input signal of the target jack, and high levels are input to other jacks in turn. The jack whose connection relationship is to be detected is turned on, and the other jacks are turned off. Each combination of two jacks is triggered once in turn, so as to obtain the connection relationship between the two jacks. When a hole pair is scanned, if there is a direct or indirect connection between the two sockets, the input signal of the detected target socket will be a low level; conversely, if there is no direct or indirect connection between the two sockets, the detected input signal will be a high level.
4. The detection circuit for connecting the jack of an electronic experiment box according to claim 1 is characterized in that: The scanning control signals SCAN_IN and SCAN_OUT of the jack J are independent, the output signal S is directly connected together, and the pull-up resistor Rs is also shared by all the holes; when SCAN_OUT is at a high level, Qout is turned on, and the jack J outputs a low level; otherwise, under the action of Rup, the jack J outputs a high level; when the jack J is at a low level and when SCAN_IN is at a high level, Qin will be turned on and pull the signal S to a low level; otherwise, the signal S is at a high level under the action of Rs; when the two jacks are connected, after scanning this pair of holes, the jack connection line is at a low level, and the output signal S is also at a low level.
5. The detection circuit for connecting the jack of an electronic experiment box according to claim 1 is characterized in that: The socket detection circuit corresponds to each socket of the electronic experiment box one by one, and the two sockets are connected by a 2-core wire.
6. The detection circuit for connecting the jack of an electronic experiment box according to claim 5, characterized in that: The two-core wires include a detection wire and an experimental wire wrapped by protective rubber, and the detection wire and the experimental wire are not connected to each other.
7. A detection circuit for connecting the jack of an electronic experiment box, characterized in that: It includes a computer, a microprocessor, a scanning circuit and a jack detection module connected in sequence through lines; the jack detection module includes 8 groups of jack detection circuits with the same structure, and the jack detection circuit includes a pull-up resistor Rs, a resistor Rup, a first resistor R1, a second resistor R2, a jack J and two transistors Qin and Qout; The scanning circuit adopts 74164 standard logic circuit, including input scanning circuit and output scanning circuit with the same structure; The A and B terminals of the input scanning circuit are connected in parallel to the input terminal IN_SEL, the CLK terminal is connected to the input terminal IN_CLK, the CLR terminal is connected to the power supply VCC, and the Q0-Q7 ports are respectively connected to the scanning input terminal SCAN_IN of the jack detection circuit; The A end and the B end of the output scanning circuit are connected in parallel to the output end OUT_SEL, the CLK end is connected to the output end OUT_CLK, the CLR end is connected to the power supply VCC, and the Q0-Q7 ports are respectively connected to the output end SCAN_OUT of the jack detection circuit; The collectors of the transistors Qin of several groups of jack detection circuits are connected in parallel and connected to the output terminal S; The input terminals IN_SEL, IN_CLK, the output terminals OUT_SEL, OUT_CLK, and the output terminal S are all connected to the microprocessor through lines, and the microprocessor is connected to the computer through wired or wireless lines; The base of the transistor Qin is connected in series with the first resistor R1 and then connected in series with the scan input terminal SCAN_IN, the collector of the transistor Qin is connected to the output terminal S, the emitter of the transistor Qin is connected to the collector of the transistor Qout, the base of the transistor Qout is connected in series with the second resistor R2 and then connected in series with the scan output terminal SCAN_OUT, and the emitter of the transistor Qout is grounded; The circuit between the emitter of transistor Qin and the collector of transistor Qout is also connected to a first branch and a second branch, wherein the first branch is connected in series with resistor Rup and then connected to power source VCC, and the second branch is connected to the jack; The jack detection circuit of each group is located at the emitter of the transistor Qin, which is connected in parallel to the output terminal Q, and the output terminal Q is connected in series with the pull-up resistor Rs and then connected to the power supply VCC; The sockets J between the two socket detection circuits to be detected are connected to each other through a detection wire.
8. A detection method using the detection circuit for the jack connection of an electronic experiment box as claimed in claim 7, characterized in that: The following steps are involved: Step ⑴, obtain the total number of sockets N currently used in the electronic experiment box; Step ⑵, set IN_SEL to low level, and IN_CLK outputs N pulses; Step (3), set OUT_SEL to low level, and OUT_CLK outputs N pulses; Step (4), set the number i of the currently scanned socket to 1; Step (5), set IN_SEL to high level, IN_CLK outputs 1 pulse, and then set IN_SEL to low level; Step (6): Is i greater than N? If yes, skip to step (6); if no, go to the next step; Step ⑺, set OUT_SEL to high level, and OUT_CLK outputs 1 pulse; Step ⑻, set OUT_SEL to low level, and OUT_CLK outputs i pulses; Step (9), set the number of the input hole to be scanned to j, j=i+1; Step ⑽, whether j is greater than N, if yes, go to step ⒁; If not, proceed to the next step; Step ⑾, whether the S signal is at a low level, if yes, record that there is a connection between holes (i, j); if no, record that there is no connection; Step ⑿, OUT_CLK outputs 1 pulse; Step ⒀, set the input hole number j to be scanned currently, j = j + 1, and jump to step ⑽; Step ⒁, IN_CLK outputs 1 pulse; Step ⒂, set the output hole number i to be scanned currently to i+1, and jump to step ⑹; Step ⒃, the connection status of all hole pairs recorded is sent to the computer.
