A virtual circuit laboratory and its manufacturing method and usage method
By designing a virtual circuit laboratory, using Arduino controller, FPGA and display screen to achieve circuit selection and real-time simulation, the problems of experimental safety and equipment vulnerability in traditional laboratories are solved, and the simplicity and efficiency of experiments are improved.
Patent Information
- Application Number
- CN202210250655.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2042-03-15
AI Technical Summary
The existing electrical engineering laboratories have problems such as high risk of experimenting alone, easy damage to the experimental equipment, and inflexible experiment time. The existing experimental simulation platform is complex to operate, requires learning modules and software, and requires bringing computers to download programs at any time.
Design a virtual circuit laboratory, including an Arduino controller, FPGA and display, through these components, to achieve circuit selection, parameter input, real-time simulation and result display, simplifying the experimental process.
It realizes the simplicity and flexibility of the experiment, reduces the risk of experiments and the risk of equipment damage, improves the efficiency and safety of the experiments, and reduces the dependence on traditional laboratories.
Smart Images

Figure CN114662303B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electromagnetic transient real-time simulation experiments, and particularly to a virtual circuit laboratory, a manufacturing method thereof, and a usage method thereof. Background Art
[0002] Students majoring in electrical engineering in universities need to carry out relevant circuit experiments in a physical laboratory. The problems existing in the physical laboratory are as follows:
[0003] 1. The voltage of such experiments is relatively high, and the risk of students conducting experiments alone is relatively high, and a teacher needs to be present for inspection.
[0004] 2. Such experiments are likely to cause damage to the test bench due to improper operation, and the maintenance period will affect the implementation of relevant experimental teaching plans.
[0005] 3. Students must go to the laboratory to conduct experiments, and they cannot flexibly carry out relevant experiments according to their own time conditions, lacking a certain degree of flexibility.
[0006] The experimental simulation platform relies on virtual reality and multimedia technologies, integrates a variety of interactive hardware settings, and truly simulates all aspects of experimental teaching, becoming an important means of experimental teaching for electrical engineering majors. However, the existing experimental simulation platforms still have the following problems:
[0007] 1. To use the simulation platform for simulation experiments, relevant modules and software need to be learned.
[0008] 2. When conducting simulation experiments, a computer needs to be carried at all times and relevant simulation programs need to be downloaded.
[0009] It can be seen that the experimental simulation platform also brings inconvenience to students' experiments. Summary of the Invention
[0010] The purpose of the present invention is to provide a virtual circuit laboratory, a manufacturing method thereof, and a usage method thereof to improve the simplicity of transient simulation experiments.
[0011] To achieve the above object, the present invention provides the following solutions:
[0012] A virtual circuit laboratory, the virtual circuit laboratory includes: an Arduino controller, an FPGA, and a display screen;
[0013] The output end of the display screen is connected to the first input end of the Arduino controller, and the first output end of the Arduino controller is connected to the input end of the FPGA; the display screen is used to receive a circuit selection instruction and circuit parameters, and transmit the received circuit selection instruction and circuit parameters to the Arduino controller; the Arduino controller is used to convert the circuit selection instruction into a circuit selection level signal, and transmit the circuit selection level signal and circuit parameters to the FPGA;
[0014] The FPGA is used to operate the corresponding real-time simulation experimental circuit according to the circuit selection level signal and circuit parameters, and generate an experimental result; the mathematical models of each experimental circuit, the operation timing of the mathematical models, and the electromagnetic transient simulation algorithm are programmed in the FPGA;
[0015] The output end of the FPGA is connected to the first input end of the Arduino controller, and the second output end of the Arduino controller is connected to the input end of the display screen; the FPGA is also used to transmit the corresponding experimental data, experimental waveforms and other experimental results to the display screen for display through the Arduino controller according to the experimental result display instruction received by the display screen.
[0016] Optionally, the virtual circuit laboratory further includes: an enclosed box body;
[0017] The display screen is connected to the enclosed box body, and the display screen and the enclosed box body together form a complete cavity; the Arduino controller and the FPGA are both arranged in the cavity.
[0018] Optionally, a power supply socket, a first code download port and a second code download port are arranged on the enclosed box body;
[0019] The power supply socket is respectively connected to the Arduino controller and the FPGA;
[0020] The first code download port is connected to the Arduino controller; the second code download port is connected to the FPGA.
[0021] Optionally, the FPGA includes:
[0022] A circuit mathematical model construction module, which is used to construct the mathematical models of each experimental circuit;
[0023] An operation timing construction module, which is used to construct the operation timing of the mathematical models of each experimental circuit;
[0024] A simulation algorithm programming module, which is used to program the electromagnetic transient simulation algorithm of each experimental circuit;
[0025] An operation result generation module, which is used to generate experimental results based on an image generation algorithm; the experimental results include voltage waveforms and current waveforms.
[0026] Optionally, the FPGA further includes: a register;
[0027] The register is used to temporarily store the results of this experiment.
[0028] A method for fabricating a virtual circuit laboratory, the fabrication method comprising:
[0029] Constructing mathematical models of each experimental circuit, the operation timing of the mathematical models, and electromagnetic transient simulation algorithms;
[0030] Writing the mathematical models of each experimental circuit and the electromagnetic transient simulation algorithms into the FPGA, and writing FPGA-executable codes according to the operation timing;
[0031] Writing corresponding codes for the Arduino controller according to the control and display requirements;
[0032] Testing the communication serial port to realize the connection between the Arduino controller and the FPGA in the most direct, convenient and feasible communication manner;
[0033] Connecting the Arduino controller and the display screen.
[0034] Optionally, after constructing the mathematical models of each experimental circuit, the operation timing of the mathematical models, and the electromagnetic transient simulation algorithms, the method further includes:
[0035] Verifying the correctness of the electromagnetic transient simulation algorithms by using simulation software or physical experiments.
[0036] A method for using a virtual circuit laboratory, the use method comprising:
[0037] Turning on the virtual circuit laboratory;
[0038] Selecting an experimental circuit on the display screen of the virtual circuit laboratory;
[0039] Inputting circuit parameters in the corresponding parameter matrix that automatically pops up after selecting the experimental circuit;
[0040] Running the selected experimental circuit;
[0041] Selecting the experimental results of relevant variables after the experimental circuit finishes running; the experimental results of the relevant variables include voltage waveforms, current waveforms, voltage means, and current means;
[0042] Displaying the experimental results of relevant variables through the display screen.
[0043] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0044] The present invention discloses a virtual circuit laboratory, its manufacturing method and usage method. The Arduino controller is used as the control device, the FPGA is used as the execution device, and the display screen is responsible for the input of instructions and the output display of results. The virtual circuit laboratory can conduct experiments anytime and anywhere, and only needs to select the experiment type and input data to obtain the experimental results when in use. The update of the experimental method greatly facilitates and simplifies the experimental process, and improves the simplicity of transient simulation experiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0046] Figure 1 It is the structural diagram of the virtual circuit laboratory provided by the present invention;
[0047] Figure 2 It is the flowchart of the usage method of the virtual circuit laboratory provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of protection of the present invention.
[0049] The purpose of the present invention is to provide a virtual circuit laboratory, its manufacturing method and usage method to improve the simplicity of transient simulation experiments.
[0050] To make the above objects, features and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the drawings and specific embodiments.
[0051] The present invention provides a virtual circuit laboratory, as Figure 1 shown, the virtual circuit laboratory includes: an Arduino controller, an FPGA and a display screen.
[0052] The output end of the display screen is connected to the first input end of the Arduino controller, and the first output end of the Arduino controller is connected to the input end of the FPGA; the display screen is used to receive circuit selection instructions and circuit parameters, and transmit the received circuit selection instructions and circuit parameters to the Arduino controller; the Arduino controller is used to convert the circuit selection instruction into a circuit selection level signal, and transmit the circuit selection level signal and circuit parameters to the FPGA.
[0053] FPGA is used to run the corresponding real-time simulation experimental circuit according to the circuit selection level signal and circuit parameters, and generate experimental results; FPGA is programmed with the mathematical model of each experimental circuit, the operation timing of the mathematical model and the electromagnetic transient simulation algorithm.
[0054] The output end of the FPGA is connected to the first input end of the Arduino controller, and the second output end of the Arduino controller is connected to the input end of the display screen. The FPGA is also used to transmit the corresponding experimental data, experimental waveform and other experimental results to the display screen for display through the Arduino controller according to the experimental result display instruction received by the display screen. The display screen displays the mean value, effective value and waveform of the output quantity.
[0055] The virtual circuit laboratory of the present invention is composed of three parts: an Arduino module, an FPGA module and a display screen. The function of the FPGA module is to realize the operation of the circuit and the generation of data. The function of Arduino is to process the execution instructions received from the display screen and convert them into binary high and low level signals to determine which module of the FPGA circuit is running, and receive the data transmitted by the FPGA through the communication serial port, and finally display the received data on the display screen. Arduino is the medium connecting the two, and its connection method is a signal transmission line and a flat cable. The display screen is a touch screen, which not only displays the data transmitted by the Arduino, but also takes into account the function of data input.
[0056] The virtual circuit lab also includes: a packaging box. The display screen is connected to the packaging box, and the display screen and the packaging box together form a complete cavity; the Arduino controller and FPGA are both set in the cavity. The display screen is at the top, and the Arduino and FPGA are at the bottom. After the product is packaged, only the external display screen can be seen, and the internal Arduino and FPGA cannot be seen.
[0057] The packaging box is provided with a power supply socket, a first code downloading port and a second code downloading port. The power supply socket is connected to the Arduino controller and the FPGA respectively. The first code downloading port is connected to the Arduino controller; the second code downloading port is connected to the FPGA.
[0058] The FPGA includes: a circuit mathematical model construction module, an operation timing construction module, a simulation algorithm writing module, and a running result generation module. The circuit mathematical model construction module is used to construct the mathematical models of each experimental circuit. The operation timing construction module is used to construct the operation timings of the mathematical models of each experimental circuit. The simulation algorithm writing module is used to write the electromagnetic transient simulation algorithms of each experimental circuit. The running result generation module is used to generate experimental results based on an image generation algorithm; the experimental results include voltage waveforms and current waveforms.
[0059] The FPGA also includes: registers. The registers are used to temporarily store the results of this experiment. There is also a memory inside the FPGA.
[0060] This virtual circuit laboratory uses the combination of FPGA and Arduino to achieve the simple operation of transient simulation experiments. An important point is that the update of the experimental method greatly facilitates and simplifies the experimental process, and greatly improves the convenience and safety factor of transient simulation experiments while improving simplicity.
[0061] The present invention also provides a manufacturing method for a virtual circuit laboratory. The manufacturing method includes:
[0062] Step 1, construct the mathematical models of each experimental circuit, the operation timings of the mathematical models, and the electromagnetic transient simulation algorithms. Among them, it is also necessary to use simulation software or physical experiments to verify the correctness of the electromagnetic transient simulation algorithms.
[0063] Step 2, write the mathematical models of each experimental circuit and the electromagnetic transient simulation algorithms into the FPGA, and write the executable code for the FPGA according to the operation timings.
[0064] Step 3, write the corresponding code for the Arduino controller according to the control and display requirements.
[0065] Step 4, test the communication serial port to achieve the connection between the Arduino controller and the FPGA in the most direct, convenient and feasible communication method.
[0066] Step 5, connect the Arduino controller and the display screen.
[0067] The above method steps are specifically summarized as:
[0068] First, complete the electromagnetic transient simulation algorithms of each experimental circuit, and use simulation software such as Matlab and PSCAD or physical experiments to verify the correctness of the algorithms. Then use VHDL / verilog to write the above algorithms and communication functions into the FPGA. Finally, write the Arduino code to complete the communication with the FPGA and the screen display function.
[0069] The circuit involved in the transient simulation algorithm is a high-voltage and large-current experiment required for electrical engineering students. Most of the results to be obtained from the experiment are waveforms, effective values and mean values of voltage and current, etc. First, the circuit is converted into a mathematical model, and then the operation timing of the mathematical model is constructed. The FPGA executable code is written through this timing. Then, according to the control and display requirements, Arduino is designed and the corresponding code is written. Finally, the communication serial port is tested to find the most direct, convenient and feasible communication method to realize the connection between Arduino and FPGA.
[0070] The present invention also provides a usage method of a virtual circuit laboratory, as Figure 2 shown, the usage method includes:
[0071] Step 1, turn on the virtual circuit laboratory.
[0072] Step 2, select the experimental circuit on the display screen of the virtual circuit laboratory.
[0073] Step 3, input the circuit parameters in the corresponding parameter matrix that automatically pops up after selecting the experimental circuit. Different circuits correspond to different input matrices, for example: [Resistor 1 Resistor 2 Capacitor 1 Capacitor 2 Firing Angle].
[0074] Step 4, run the selected experimental circuit.
[0075] Step 5, select the experimental results of relevant variables after the experimental circuit runs; the relevant variables include voltage waveform, current waveform, voltage mean value and current mean value.
[0076] Step 6, display the experimental results of relevant variables through the display screen.
[0077] The circuit to be run and calculated by the virtual circuit laboratory is a high-voltage and large-current experiment, and when using the virtual circuit laboratory, there is no need to build a circuit. Only by selecting the circuit and setting the relevant circuit parameters can the operation of the circuit be realized and the experimental results be obtained.
[0078] The virtual circuit laboratory is mainly targeted at students majoring in electricity-related majors in various universities, helping them safely and quickly realize various high-voltage and large-current experiments, including rectifier circuits and inverter circuits in power electronics. Compared with real laboratories, using the virtual circuit laboratory can obtain relevant experimental results more safely and efficiently, can avoid affecting the experimental process and results due to aging and damage of experimental facilities, and can reduce the damage to the test bench. Also compared with traditional simulation experiments, it omits the complicated process of learning various simulation software, greatly reducing the entry threshold of power simulation experiments. At the same time, the virtual circuit laboratory is small in size, light and convenient in design, can be used for experiments in any scenario, and can better meet the needs of students for experiments.
[0079] The advantages of the present invention are:
[0080] 1. Easy to operate
[0081] When using this product, only the experiment type needs to be selected and data is input to obtain the experiment result. This avoids the process of building a circuit for simulation experiments and connecting a circuit for physical experiments.
[0082] 2. Fast running speed and time-saving for experiments
[0083] Because it is easy to operate, multiple groups of experiments can be carried out in a short time to analyze the experiment results faster and better.
[0084] 3. Good economic benefits
[0085] Since the virtual circuit laboratory runs completely virtually and there is no actual circuit, there is no high voltage and large current, which can effectively avoid damage to experimental equipment and has good economic benefits. Because of virtual operation, the requirements for the voltage and current resistance of the required equipment are small, and the price of this product will be significantly lower than that of laboratory equipment.
[0086] In this specification, each embodiment is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other.
[0087] In this article, specific examples are used to elaborate on the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, based on the idea of the present invention, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. A virtual circuit laboratory, characterized in that The virtual circuit laboratory includes: an Arduino controller, an FPGA, and a display screen; The output end of the display screen is connected to the first input end of the Arduino controller, and the first output end of the Arduino controller is connected to the input end of the FPGA; the display screen is used to receive a circuit selection instruction and circuit parameters, and transmit the received circuit selection instruction and circuit parameters to the Arduino controller; the Arduino controller is used to convert the circuit selection instruction into a circuit selection level signal, and transmit the circuit selection level signal and circuit parameters to the FPGA; The FPGA is used to run a corresponding real-time simulation experiment circuit according to the circuit selection level signal and circuit parameters, and generate an experimental result; the FPGA is programmed with mathematical models of each experimental circuit, the operation timing of the mathematical models, and an electromagnetic transient simulation algorithm; The output end of the FPGA is connected to the first input end of the Arduino controller, and the second output end of the Arduino controller is connected to the input end of the display screen; the FPGA is also used to transmit a corresponding experimental result to the display screen for display through the Arduino controller according to the experimental result display instruction received by the display screen; The FPGA includes: A circuit mathematical model construction module, which is used to construct mathematical models of each experimental circuit; An operation timing construction module, which is used to construct the operation timing of the mathematical models of each experimental circuit; A simulation algorithm programming module, which is used to program the electromagnetic transient simulation algorithms of each experimental circuit; An operation result generation module, which is used to generate experimental results based on an image generation algorithm; the experimental results include voltage waveforms and current waveforms.
2. The virtual circuit laboratory according to claim 1, characterized in that The virtual circuit laboratory further includes: an enclosure; The display screen is connected to the enclosure, and the display screen and the enclosure together form a complete cavity; the Arduino controller and the FPGA are both arranged in the cavity.
3. The virtual circuit laboratory according to claim 2, characterized in that, The enclosure is provided with a power supply socket, a first code download port, and a second code download port; The power supply socket is respectively connected to the Arduino controller and the FPGA; The first code download port is connected to the Arduino controller; the second code download port is connected to the FPGA.
4. The virtual circuit laboratory according to claim 1, wherein The FPGA further includes: a register; The register is used to temporarily store the experimental results of this experiment.
5. A method for manufacturing a virtual circuit laboratory according to any one of claims 1-4, characterized in that, The manufacturing method includes: Constructing mathematical models of each experimental circuit, the operation timing of the mathematical models, and an electromagnetic transient simulation algorithm; Writing the mathematical models and electromagnetic transient simulation algorithms of each experimental circuit into the FPGA, and writing FPGA executable code according to the operation timing; Writing corresponding code for the Arduino controller according to control and display requirements; Testing the communication serial port to realize the connection between the Arduino controller and the FPGA in the most direct, convenient and feasible communication method; Connecting the Arduino controller and the display screen.
6. The manufacturing method of the virtual circuit laboratory according to claim 5, wherein After constructing the mathematical models of each experimental circuit, the operation timing of the mathematical models, and the electromagnetic transient simulation algorithm, it further includes: Verifying the correctness of the electromagnetic transient simulation algorithm by using simulation software or physical experiments.
7. A method for using the virtual circuit laboratory according to any one of claims 1-4, characterized in that, The usage method includes: Turning on the virtual circuit laboratory; Select an experimental circuit on the display screen of the virtual circuit laboratory; Input circuit parameters in the corresponding parameter matrix that automatically pops up after selecting the experimental circuit; Run the selected experimental circuit; Select the experimental results of relevant variables after the experimental circuit finishes running; the experimental results of the relevant variables include voltage waveforms, current waveforms, voltage means, and current means; Display the experimental results of relevant variables through the display screen.
Citation Information
Patent Citations
Epilepsy state closed-loop control experiment platform based on FPGA
CN104112066A
Network virtual laboratory system based on remote control
CN112055045A