An automatic circuit connection detection system for physical electricity
By designing an automatic circuit connection detection system for physical electricity, using signal generation detection devices and control terminals, and through pulse signal detection and wireless communication, the time-consuming and labor-intensive problem of circuit connection inspection in physical electricity experiments is solved, and fast and accurate circuits are realized detection and display.
Patent Information
- Application Number
- CN201911409564.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-31
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2039-12-31
AI Technical Summary
Checking circuit connections in physical electrical experiments is time-consuming and labor-intensive, and is prone to misjudgments, especially in complex circuits, leading to detection errors and unfairness.
Design an automatic circuit connection detection system, which uses the signal generation detection device, control terminal and host computer to detect whether the circuit connection is correct and display the circuit connection diagram through RS232 serial port and wireless communication. The signal generation and detection device is composed of an inductor, a capacitor, a microcontroller and a wireless communication module. The control terminal is composed of a microcontroller, a wireless communication module and a USB to serial port circuit. Automatic detection is achieved through pulse signal detection and wireless communication.
It achieves fast and accurate detection of physical electrical experimental circuits, reduces human misjudgments, and ensures the accuracy and fairness of detection results.
Smart Images

Figure CN111028639B
Abstract
Description
Technical Field
[0001] The invention discloses an automatic circuit connection detection system for physical electricity, belonging to the technical field of physical electricity circuit connection detection. Background Art
[0002] During the physical electricity experiment, students use wires to physically connect components such as battery packs, light bulbs, switches, voltmeters, ammeters, and rheostats according to the experimental circuit diagram. After the connection is completed, the experimental instructor will check the circuit. This inspection method is time-consuming and labor-intensive, especially when the circuit is complex and there are many connecting wires. There may be misjudgments in the circuit inspection. Moreover, during the physical electricity experiment examination, the circuit connection check is performed by the invigilator, which inevitably leads to unfairness due to detection errors.
[0003] In order to realize fast and accurate inspection of physical electrical circuits, a physical electrical circuit connection automatic detection system is designed. After the circuit connection is completed, the host computer sends a detection command, which can quickly and automatically detect the circuit connection, display the circuit connection diagram on the host computer, and automatically judge whether the circuit connection is correct according to the circuit function. Summary of the invention
[0004] The technical problem to be solved by the present invention is: after the circuit connection is completed, how to quickly detect whether the circuit connection is correct through a computer and display the circuit connection diagram through the computer.
[0005] The technical solution adopted by the present invention is: a circuit connection automatic detection system for physical electricity, including design elements, signal generation detection devices, host computers, and control terminals. The two ends of each design element are respectively connected to the signal generation detection devices. The host computer is connected to the control terminal via the RS232 serial port, and the control terminal is connected to the signal generation detection device via a wireless signal. The signal generation detection device assigns different addresses to each design element, and the host computer sends the control command to the control terminal via the RS232 serial port protocol. The control terminal uses wireless communication to send commands to each signal generation detection device. When each signal generation detection device receives the command, it outputs a pulse signal of a fixed frequency. Each signal generation detection device receives the pulse signal sent by other signal generation devices and sends the received pulse signal as a detection result to the control terminal via wireless communication. The control terminal receives the model sent by each signal generation detection device and sends it to the host computer via the RS232 serial port protocol. The host computer is an ordinary computer.
[0006] The signal generation detection device is composed of an inductor, a capacitor, a single-chip microcomputer, and a wireless communication module, wherein the single-chip microcomputer chip selects a 51 series single-chip microcomputer, an MSP430 series or an STM32 series single-chip microcomputer, and the wireless communication module selects an NRF24L01 wireless radio frequency communication module.
[0007] The control terminal is composed of a single-chip microcomputer, a wireless communication module, and a USB-to-serial port circuit, wherein the single-chip microcomputer chip selects a 51 series single-chip microcomputer, an MSP430 series or an STM32 series single-chip microcomputer, the wireless communication module selects an NRF24L01 wireless radio frequency communication module, the USB-to-serial port chip model is CH340G, and the control terminal is connected to a host computer via a USB cable.
[0008] The design elements are any multiple of battery packs, light bulbs, switches, voltmeters, ammeters, rheostats, inductors, capacitors, etc., that is, any multiple combinations of battery packs, light bulbs, switches, voltmeters, ammeters, rheostats, inductors, capacitors, etc., where each element (battery packs, light bulbs, switches, voltmeters, ammeters, rheostats, inductors, capacitors) is any multiple (one of the elements can be 0).
[0009] The beneficial effect of the present invention is that the present invention can detect whether the physical electrical experimental circuit is correct through a computer and obtain the detection result quickly and accurately. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a connection diagram of the signal generation detection device of the present invention;
[0011] Figure 2 This is a circuit connection diagram of the light bulb and the signal generation and detection device of the present invention;
[0012] Figure 3 It is a circuit connection diagram of the control terminal of the present invention;
[0013] Figure 4 This is the USB to serial port circuit diagram of the present invention;
[0014] Figure 5 It is the pulse generation command frame format sent by the control terminal;
[0015] Figure 6 It is the data frame format sent to the control terminal after the signal generation detection device generates a pulse;
[0016] Figure 7 It is the pulse detection command frame format sent by the control terminal;
[0017] Figure 8 It is the data frame format sent by the signal generation detection device to the control terminal after detecting the pulse. DETAILED DESCRIPTION
[0018] Using the characteristics of inductance passing DC and blocking AC, and capacitance passing AC and blocking DC, a signal generation and detection device is designed. The internal structure is as follows: Figure 1As shown, it is mainly composed of inductance, capacitance, single chip microcomputer and wireless module. The device can output and detect pulse signals and communicate with the control terminal by wireless communication. The signal generation detection device is connected to both ends of the battery box (with battery pack inside), light bulb, switch, voltmeter, ammeter, sliding rheostat and other components. The B end of the signal generation detection device is connected to the component, such as the connection between the light bulb and the signal generation detection device. Figure 2 As shown, each signal generating and detecting device is assigned a different ID number.
[0019] The internal structure of the control terminal is as follows Figure 3 As shown in the figure, it is mainly composed of a single-chip microcomputer, a wireless module, and a USB to serial port circuit. The USB to serial port circuit is as follows Figure 4 As shown, the terminal communicates with the host computer through a USB cable, receives commands sent by the host computer, and sends the received commands to all signal generation detection devices in a wireless communication mode. The pulse generation command frame format sent by the control terminal is as follows Figure 5 The signal generation detection device determines whether to generate an output pulse according to the ID in the received command frame. If the ID in the command frame is the same as the ID assigned by the signal generation detection device, a pulse is output. After the signal generation detection device generates a pulse, the data frame format sent to the control terminal is as follows: Figure 6 As shown, the pulse detection command frame format sent by the control terminal is as follows Figure 7 As shown, the data frame format sent by the signal generation detection device to the control terminal after detecting the pulse is as follows Figure 8 The control terminal transmits the received data to the host computer in the form of a serial communication protocol, and the host computer displays the circuit connection relationship based on the received information.
[0020] The signal generating detection devices designed in the present invention are respectively installed at both ends of components such as a battery pack, a light bulb, a switch, a voltmeter, an ammeter, and a sliding rheostat. The B end of the signal generating detection device is connected to the component. Each signal generating detection device is assigned a different ID number. The ID number is 8 bits. For example, the ID number of the signal generating detection device connected to the positive end of the battery box is 0X01, the ID number of the signal generating detection device connected to the negative end of the battery box is 0X02, the ID number of the signal generating detection device connected to one end of a light bulb is 0X02, the ID number of the signal generating detection device connected to the other end of the light bulb is 0X03, and the ID number of the signal generating detection device connected to one end of a switch is 0X03. The signal generating detection device ID number is 0X04, the signal generating detection device ID number is 0X05 connected to the other end of the switch, the signal generating detection device ID number is 0X06 connected to one end of a voltmeter, the signal generating detection device ID number is 0X07 connected to the other end of the voltmeter, the signal generating detection device ID number is 0X08 connected to one end of an ammeter, the signal generating detection device ID number is 0X09 connected to the other end of the ammeter, the signal generating detection device ID number is 0X0A connected to one end of a sliding rheostat, the signal generating detection device ID number is 0X0B connected to the other end of the sliding rheostat.
[0021] After the circuit connection is completed, the host computer sends a pulse signal generation command to the control terminal through the serial communication protocol. After receiving the command, the control terminal sends it to each signal generation detection device through the wireless module. The ID of the signal generation detection device in the pulse generation command frame sent first is the ID of the signal generation detection device connected to the positive end of the battery box (0X01). After receiving the command, the signal generation detection device connected to the positive end of the battery box outputs a 40KHz pulse signal, and then sends the pulse signal generation completion information to the control terminal. The data frame format is as follows: Figure 6 As shown, the second byte in the data frame is the ID of the signal generation detection device connected to the positive terminal of the battery box. After the control terminal receives the pulse signal generation completion data frame, it sends a pulse detection command frame. The frame format is as follows Figure 7 As shown in the figure, the second byte is the ID of the signal generation detection device that generates the pulse signal. After receiving the command frame, the other signal detection generation devices perform pulse detection. If a 40KHz pulse signal is detected, a pulse detection data frame is sent to the control terminal. The frame format is as follows: Figure 8As shown, the second byte is the ID of the signal generation detection device that detects the pulse signal. After receiving the data frame, the control terminal sends the received data to the host computer through the serial communication protocol. The host computer displays that the positive end of the battery box is connected to the element connected to the signal generation detection device. The host computer continues to send a pulse signal generation command to the control terminal through the serial communication protocol to control the signal generation detection device connected to the other end of the above element to generate a pulse signal. The detection continues according to the control process described above until the signal generation detection device connected to the negative end of the battery box detects a pulse signal. Then, the circuit connection diagram is displayed on the host computer, and the circuit connection is automatically determined based on the current circuit implementation function to determine whether the circuit connection is correct.
[0022] When a signal generating detection device generates a pulse signal, if multiple signal generating detection devices detect the pulse signal, the signal generating detection devices that detect the pulse signal all send a pulse detection data frame to the control terminal, and the control terminal sends the received data to the host computer. The host computer software controls the signal generating detection device at the other end of the element connected to the above-mentioned signal generating detection device to output pulses in turn, and displays the circuit connection relationship.
[0023] The data frame and command frame defined in the present invention are composed of 3 bytes. The first byte is the frame category. 0X01 represents the pulse generation command frame sent by the control terminal, 0X02 represents the data frame sent to the control terminal after the signal generation detection device generates a pulse, 0X03 represents the pulse detection command frame sent by the control terminal, and 0X04 represents the data frame sent to the control terminal after the signal generation detection device detects the pulse; the second byte is the ID of the signal generation detection device; the third byte is the check, which is defined as the sum of the first byte and the second byte.
[0024] The wireless transmission module used in the present invention adopts 2.4GHz radio frequency module NRF24L01, the wireless module used in the control terminal is defined as the master node, the wireless module used in each signal generation detection device is defined as a slave node, and a master-slave communication mode is adopted. The wireless module address used by each slave node is the same, and the wireless module address used by the master node is different from the address set by the slave node. Each slave node can receive the data sent by the master node at the same time. When the master node sends a pulse to each slave node to generate a command frame, each slave node receives the command frame at the same time, and judges whether it is the same as the ID assigned to each node according to the second byte content in the command frame. If the same, the signal generation detection device connected to the node generates a pulse signal, and if different, no pulse signal is generated. The master node can receive the data sent by all slave nodes, and judge the node ID number of the data sent according to the second byte in the received data frame. When multiple slave nodes send data to the master node at the same time, the channel conflicts, and a delay strategy is adopted. After a delay period of time, the data is resent.
Claims
1. An automatic circuit connection detection system for physical electricity, characterized in that: It includes design elements, signal generation detection devices, a host computer, and a control terminal. There are multiple design elements, and both ends of each design element are connected to the signal generation detection device respectively. The host computer is connected to the control terminal via an RS232 serial port, and the control terminal is connected to the signal generation detection device via a wireless signal; the signal generation detection device assigns a different address to each design element, and the host computer sends the control command to the control terminal via the RS232 serial port protocol. The control terminal uses wireless communication to send commands to each signal generation detection device. When each signal generation detection device receives the command, it outputs a pulse signal of a fixed frequency. Each signal generation detection device receives the pulse signal sent by other signal generation devices and sends the received pulse signal as a detection result to the control terminal via wireless communication. The control terminal receives the signal sent by each signal generation detection device and sends it to the host computer via the RS232 serial port protocol; the signal generation detection device is composed of an inductor, The control terminal is composed of a single-chip microcomputer, a wireless communication module, wherein the single-chip microcomputer chip is a 51 series single-chip microcomputer, an MSP430 series single-chip microcomputer or an STM32 series single-chip microcomputer, and the wireless communication module is an NRF24L01 wireless radio frequency communication module; the control terminal is composed of a single-chip microcomputer, a wireless communication module, and a USB to serial port circuit, wherein the single-chip microcomputer chip is a 51 series single-chip microcomputer, an MSP430 series single-chip microcomputer or an STM32 series single-chip microcomputer, and the wireless communication module is an NRF24L01 wireless radio frequency communication module, and the USB to serial port chip model is CH340G, and the control terminal is connected to the host computer via a USB cable; the design elements are any number of battery packs, light bulbs, switches, voltmeters, ammeters, sliding rheostats, inductors, and capacitors; the signal generation detection devices are respectively installed at both ends of the battery pack, the light bulb, the switch, the voltmeter, the ammeter, and the sliding rheostat, and each signal generation detection device is assigned a different ID number, and the ID number is 8 bit, the signal generating detection device ID number of the positive end of the battery pack is 0X01, the signal generating detection device ID number of the negative end of the battery pack is 0X02, the signal generating detection device ID number of the light bulb is 0X02, the signal generating detection device ID number of the other end of the light bulb is 0X03, the signal generating detection device ID number of the switch is 0X04, the signal generating detection device ID number of the other end of the switch is 0X05, the signal generating detection device ID number of the voltmeter is 0X06, the signal generating detection device ID number of the other end of the voltmeter is 0X07, the signal generating detection device ID number of the ammeter is 0X08, the signal generating detection device ID number of the other end of the ammeter is 0X09, the signal generating detection device ID number of the sliding rheostat is 0X0A, the signal generating detection device ID number of the other end of the sliding rheostat is 0X0B;After the circuit connection is completed, the host computer sends a pulse signal generation command to the control terminal through the serial communication protocol. After receiving the command, the control terminal sends it to each signal generating detection device through the wireless module. The ID of the signal generating detection device of the pulse generating command frame sent first is the ID of the signal generating detection device connected to the positive end of the battery pack. After receiving the command, the signal generating detection device connected to the positive end of the battery pack outputs a 40KHz pulse signal, and then sends a pulse signal generation completion information to the control terminal. The second byte in the data frame is the ID of the signal generating detection device connected to the positive end of the battery pack. After receiving the pulse signal generation completion data frame, the control terminal sends a pulse detection command frame. The second byte is the ID of the signal generating detection device that generates the pulse signal. After the remaining signal detection generating devices receive the command frame , perform pulse detection. If a 40KHz pulse signal is detected, a pulse detection data frame is sent to the control terminal, wherein the second byte is the ID of the signal generation detection device that detects the pulse signal. After receiving the data frame, the control terminal sends the received data to the host computer through the serial communication protocol. The host computer displays that the positive end of the battery pack is connected to the element connected to the signal generation detection device. The host computer continues to send a pulse signal generation command to the control terminal through the serial communication protocol to control the signal generation detection device connected to the other end of the above element to generate a pulse signal. Continue to detect according to the control flow described above until the signal generation detection device connected to the negative end of the battery pack detects a pulse signal. Then the circuit connection diagram is displayed on the host computer, and the circuit connection is automatically determined based on the current circuit implementation function. ;
