Modularized multi-mode circuit experiment system
Through the modular multimodal circuit experimental system, combined with the ESP32 chip and touch screen, the problems of complex design and single functions of the existing system are solved, the flexibility of interdisciplinary experiments and the improvement of student participation is achieved, and the intuitive User interface and efficient experimental equipment applications.
Patent Information
- Application Number
- CN202411164120.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-15
AI Technical Summary
The existing multimodal physiological signal acquisition system is complex in design, lacking overall architectural intuitiveness and user interaction, which limits students' exploration and learning opportunities for the internal working mechanism of the system. The experimental equipment has a single function, is inconvenient for interdisciplinary experiments, and it depends on PC software limits portability.
Adopt a modular multimodal circuit experimental system, including a modular multimodal signal acquisition circuit board and screen interaction software program stored in the main control chip ESP32, through adjustable signal adjustment module, variable resistor capacitor module and ADC module Implement signal processing, combining touch screens to provide an intuitive user interface and interaction mode, allowing users to flexibly combine and adjust experimental modules.
It realizes the flexibility and adaptability of interdisciplinary experiments, improves the application scope of experimental equipment, enhances students' understanding and participation in system functions, reduces resource waste, and provides an instant feedback mechanism and graphical data analysis method.
Smart Images

Figure CN118968859A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit experiments, and in particular to a modular multi-modal circuit experiment system. Background Art
[0002] In the modern teaching system, the deep integration of technology and teaching has become a key factor in improving teaching efficiency and quality. Through electronic experiments, students can intuitively observe and operate circuits, thereby deeply understanding the principles and functions of circuits, helping students transform abstract theoretical knowledge into concrete practical experience, stimulating their interest in learning, and cultivating their innovative thinking and problem-solving abilities. In many disciplines, electronic experiments that can collect multimodal signals have become an indispensable teaching link, providing students with an efficient and interactive learning platform.
[0003] Existing parallel multimodal physiological signal acquisition systems integrate multiple specific sensor circuits designed for physiological signals of different modalities to acquire signals, such as the MindWare BioNex product, which is an 8-slot host that can be configured with 8 modules. A series of dedicated signal acquisition modules are provided, and users can choose different signal acquisition modules according to research needs, such as electrocardiogram (ECG), electromyography (EMG), electrooculography (EOG), electrodermal resonator (GSR), etc. One module is dedicated to the acquisition of one signal. PC-side Biolab software is provided for use with each BioNex unit to perform interface display for signal acquisition, display and time capture. Biolab can provide linear filtering, scaling, signal processing, real-time trending and signal analysis. However, it still has the following disadvantages: 1. In the experimental teaching environment, the multimodal acquisition system consists of multiple dedicated independent modules. Although this design can provide highly specialized signal acquisition, it may make it difficult for students to fully understand the integration of the system and the role of each component. 1. The lack of intuitive understanding of the overall system architecture and signal processing flow may affect students' in-depth understanding of the principles of physiological signal acquisition; 2. The current system design may focus too much on functionality and fail to provide sufficient user interaction interface, making it difficult for students to intuitively participate in the adjustment and optimization of signal acquisition parameters during the experiment. This lack of interactivity may limit students' practical operation ability of signal processing technology and reduce their opportunities to explore and learn the internal working mechanism of the system; 3. The software display terminal depends on the PC terminal, which limits the portability of the system. In teaching or field experiments, this dependence may hinder students from flexibly performing experimental operations and data monitoring in different environments or mobile scenarios.
[0004] There are also experimental boxes that match the courses, which integrate multiple experimental module circuits, that is, each subject is equipped with a dedicated experimental box, which is tailored to the experimental needs of specific subjects and integrates multiple specially designed experimental module circuits. Each module circuit is targeted at a specific experimental task, ensuring the standardization and process of experimental operations, thereby providing students with a highly unified, stable and error-free experimental environment. However, it still has the following disadvantages: 1. Since the modular circuit of the experimental box is fixed, it limits the variability and adaptability of the experiment, inhibiting students' ability to innovate and explore independently during the experiment; 2. There may be functional overlaps between the modules, which increases the volume of the experimental box and has low space utilization efficiency; 3. If there are experiments for multiple courses, multiple dedicated experimental boxes are required to meet the experimental needs of different subjects, which increases costs and has low utilization rates. Summary of the invention
[0005] The object of the present invention is to provide a modular multi-modal circuit experiment system to solve the problems raised in the above background technology.
[0006] To achieve the above object, the present invention provides the following technical solutions:
[0007] A modular multi-modal circuit experiment system comprises a modular multi-modal signal acquisition circuit board and a screen interactive software program stored in a main control chip ESP32.
[0008] Preferably, the modular multimodal signal acquisition circuit board includes an ESP32-S3 main control chip, a signal conditioning module, a variable resistor and capacitor module, an ADC module, a CPU module and a screen.
[0009] Preferably, the signal conditioning module has 8 slots, a signal input terminal and a signal output terminal for inserting various signal processing modules. The contact metal strips equipped in each slot provide ±5V power supply, ground, input and output, and data line and clock line pins for IIC communication. The slots are connected in a cascade manner. The output of the previous slot can be directly used as the input of the next slot to form a sequence of signal transmission, thereby realizing continuous signal processing. When no module is inserted in the slot, the signal can be directly transmitted through the gold finger to ensure the continuity of the signal path;
[0010] The analog front-end signal chain when the signal conditioning module processes the signal is composed of analog front-end modules inserted into the slots. The insertion slot part at the bottom of each analog front-end module is equipped with a contact metal strip that matches the corresponding pin of the slot to ensure the transmission of the signal input and output modules. The analog front-end signal chain is specifically responsible for processing the input analog signal, wherein the input analog signal includes signal amplification, filtering, right leg drive, buffering and other functional modules. These modules support plug-and-play functions. Users can flexibly adjust the analog front-end circuit according to specific needs by adding, removing or replacing each module to improve the signal quality and form an acquisition system for different signals.
[0011] Preferably, the parameter value of each analog front-end module is adjustable, so as to control the same module to be suitable for collecting different signal scenarios by adjusting the parameters. The adjustable parameter module has a first-order active low-pass filter, a first-order active high-pass filter, a second-order active low-pass filter, a second-order active high-pass filter and an amplifier circuit, wherein the first-order active high-pass and the first-order active low-pass have an adjustable resistor and an adjustable capacitor, the second-order active low-pass and the second-order active high-pass have two variable resistors and two variable capacitors, and the amplifier circuit has a variable resistor, wherein the principle of variable resistors and capacitors is: ATmega328P is used as the main controller to control AD through SPI communication The GS1612BCPZ chip and the capacitor matrix realize variable capacitance. The ADGS1612BCPZ is a single-pole single-throw switch with 4 serial controls, which dynamically connects different capacitors to the circuit. Through different combinations of switches, the capacitors can be selectively connected in parallel or series to synthesize the required equivalent capacitance value and realize adjustable capacitance. The combination of the ADGS1612BCPZ chip and the capacitor matrix can create a highly configurable signal processing platform that can adapt to a variety of different electrical environments and dynamically changing requirements. The regulation of resistance is also achieved by the ADGS1612BCPZ chip and the resistor matrix, which is the same as the variable capacitor.
[0012] Preferably, the variable resistor and capacitor module is a stackable module, and its base includes a +5V power supply, ground, and data line and clock line pins for IIC communication. It can be stacked up to ten layers. Each variable resistor and capacitor stacking module includes a variable resistor and a variable capacitor. ATmega328P serves as the main controller, which is responsible for controlling the variable resistor and variable capacitor through its I / O port. ATmega328P uses two I / O ports to output chip select signals, which are respectively connected to the chip select ports of the variable capacitor and variable resistor. The variable capacitor module is composed of an ADGS1612BCPZ chip with a capacitor matrix, and the variable resistor module also uses an ADGS1612BCPZ chip with a resistor matrix. Through precise chip select signal control, ATmega328P can flexibly adjust the values of capacitance and resistance. The output capacitance and resistance are led out from the port, and suitable resistors and capacitors can be selected according to needs to access the circuit for use.
[0013] Preferably, the input of the ADC module is an analog signal chain, which can convert analog signals into digital signals. The ADS131M02 chip is selected as the main chip, and an SPI interface is provided to allow the ADS131M02 to exchange data efficiently with various microcontrollers and processors. A chip crystal oscillator is used as a high-precision and high-stability clock source to provide a stable clock signal to meet the clock signal requirements of the ADS131M02. The chip crystal oscillator is connected to the clock terminal of the ADS131M02 to ensure that the ADS131M02 works under the drive of an accurate clock signal, thereby achieving accurate conversion of analog signals to digital signals.
[0014] Preferably, the CPU module uses a programmable ESP32 microcontroller as the main control chip, and exchanges data with the ADC module through the SPI communication protocol. The data lines and clock lines of the CPU module and the ADC module are connected to VDD through external pull-up resistors to ensure that the IIC bus can maintain a stable high-level state when there is no device driver, and prevent the data line from floating in an uncertain voltage state when idle, thereby avoiding communication errors. By connecting the MOSI line, MISO line, and SCLK line of the SPI interface of the CPU module to the SPI corresponding port of the ADS131M02 chip, the ESP32 microcontroller can send control commands to the ADS131M02 and receive the converted digital signal. The SCLK line provides a synchronous clock signal, the MOSI line is used to send data or commands from the ESP32 microcontroller to the ADS131M02, and the MISO line is used to read the converted digital signal from the ADS131M02.
[0015] Preferably, the two pins of the main control chip ESP32 respectively assume the functions of the data line and the clock line of the IIC bus. The two pins are connected to the power supply through a pull-up resistor to ensure that the line can maintain a high level state when there is no data transmission. Subsequently, these pins are connected to the base of the variable resistor and capacitor module, which may be used for signal adjustment or filtering to meet subsequent signal processing requirements. At the same time, it is connected to 8 analog slots through TCA9548A chip multiplexing. These slots are connected in a cascade manner to form a signal transmission sequence. Each analog slot is designed with input and output interfaces, so that the output of the previous slot can be directly used as the input of the next slot, from To achieve continuous signal processing, this design allows the signal to undergo necessary amplification, filtering, modulation or other forms of signal conditioning when passing through various analog components to optimize signal quality. At the end of the signal chain, the output of the last analog slot is sent directly to the ADC module. The IIC, SPI and other communication ports of the ADC module are connected to the CPU module. The CPU module communicates with the main control chip ESP32 through two dedicated pins as the TXD and RXD of the serial port to achieve feedback. The main control chip ESP32 also has two IO ports used as TXD and RXD for serial communication with the screen, which are connected to the serial screen to display system status, user interaction or other information.
[0016] Preferably, the screen interaction software program includes a data receiving and sending system and a serial screen interface interaction, detects the online status of each module device through an IIC polling mechanism, adopts an interface design, displays the device status in a graphical manner, improves the intuitiveness and ease of use of the user interface, and the software monitors and responds to the user's operation on the touch screen to achieve human-computer interaction. By calling the IIC library and analyzing the serial screen communication protocol, the software can read the device address and data, update the screen layout, and send new data to the corresponding module in real time, completing the touch circuit parameter setting and other functions;
[0017] The screen uses the M series DC32960M046 serial screen of Dacai. The screen display part is divided into three modules, namely, variable resistance and capacitance display module, signal adjustment display module, and user curve display module. The main function is that the main control chip ESP32 reads the device data of IIC and controls the arranged software interface through the serial port, and updates the screen and IIC device data according to the user's screen operation. The main interface contains three icons, corresponding to three modules, each icon contains two frames to represent the two states of on and off. The variable resistance and capacitance interface has ten icons, corresponding to the ten-layer stacking module, each icon also contains two frames to represent the two states of on and off, and the eight-layer resistance and capacitance setting Sharing a screen ID, its title icon has 8 frames, which can be flexibly switched to indicate the current number of adjusted layers. The value setting consists of two sliders and their corresponding display text boxes. The signal adjustment module interface also contains eight icons, corresponding to the devices in the eight slots. The icon design takes into account the number of developed modules, and there is an additional status frame indicating that there is no module. Each adjustable module is configured with a special adjustment screen according to its specific function. The adjustment of resistance and capacitance can be performed through slider controls or keyboard input, and the input results will be displayed in the text box. In addition, the user curve module uses curve controls to dynamically display data changes, providing users with a graphical data analysis method;
[0018] The user curve interface design of the user curve display module allows the external CPU module to communicate efficiently with the ADC module through the SPI protocol, and provides data interaction capabilities through the API. According to the serial port communication protocol, the user can send the required data obtained from the ADC module to the main control chip ESP32 through the serial port. The main control chip ESP32 serves as the core of data processing and interface display. After receiving these data, it will call the built-in curve drawing function to display the user-selected data in the form of a graphical curve on the user curve module on the screen.
[0019] Preferably, each module device detected by the IIC polling mechanism includes a signal conditioning module and a variable resistor and capacitor module. The two module devices, the variable resistor and capacitor module and the signal conditioning module, can be distinguished during IIC communication. A 16-bit IIC address is defined. The first 8 bits are all 0, which represents the variable resistor and capacitor module. This module is a stacking module. The following 8 bits are from 0x03 to 0x0A, which represent the number of devices stacked from bottom to top. The signal conditioning module selects the first 8 bits bit by bit, which represents the number of slots among the 8 slots where the device is located. The last 8 bits represent the device type, which can be expanded from 0x23 to 0x53. This address scheme allows different module devices to be identified and communicated through different slots and device types on an IIC bus. Each module device has a unique 16-bit address to ensure the accuracy and distinctiveness of communication.
[0020] The variable resistor and capacitor module in the IIC communication defines a StackDevice class mainly used to manage the device stack. This module is a stacking module. The device has a continuous IIC address. This class uses the _deviceAddresses array to track the online status of a series of devices within a predefined IIC address range. The _deviceInfo array stores the information of each device, including device ID, address, setting quantity, etc. This information helps to track the status and configuration of each device. The core functions of the StackDevice class include periodically scanning the devices on the IIC bus, encapsulating IIC communication details to send commands and read device responses, creating tasks to handle device logic and message queue management, and cyclically checking this Queues, device settings for handling new messages or reading device status, etc. The signal conditioning module defines a ListDevice class to represent the device list. Most of its functions are the same as the StackDevice class. The main difference is that the StackDevice class manages a device stack with consecutive addresses, while ListDevice focuses on managing a series of devices that may have different addresses. This class uses the _deviceAddresses array to store the device address of each slot. These addresses are used for IIC communication to identify and access specific devices. The slot number is sent to the TCA9548A multiplexer through the TCA9548AopenChannel function to select the correct IIC channel for communication;
[0021] The serial port screen interface interaction is mainly the interaction between the variable resistance and capacitance module and the signal adjustment module. Through the data recording mechanism, intuitive feedback and precise interaction of the user interface are realized. The variable resistance and capacitance module uses the RecordArray two-dimensional array to record the device status and parameters. Through device address recognition and layer conversion, the interface display is dynamically updated, and the icon status is controlled by the light function to reflect the online status of the device. The user can enter the resistance and capacitance control interface by clicking the layer icon. The system sets the title and component value according to the RecordArray information, and responds to user operations in real time through the slider callback function, and updates the device value through IIC communication. The signal adjustment module expands the record of device type information through the RecordInsertArray two-dimensional array. The system identifies the module affiliation according to the device address, and controls the slot icon display through the setInsertlight function to reflect the online status of the device. After the user clicks the icon, the system switches to the corresponding interface according to the component type, and uses global variables to record the user operation path. The resistance and capacitance parameters can be set by dragging the slider and keyboard input to improve the adjustment flexibility. At the same time, the system is designed with an error state correction mechanism to ensure that when the device is accidentally disconnected, it can automatically restore to a safe state to prevent erroneous operations.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] 1. This system adopts an innovative modular analog signal chain design concept, allowing users to freely combine and reconstruct system modules based on specific experimental requirements. This strategy effectively solves the problem of single function of traditional experimental equipment, realizes the flexibility and adaptability of interdisciplinary experiments, and greatly expands the application scope of experimental equipment;
[0024] 2. The system design allows users to adapt to the acquisition requirements of multimodal physiological signals by replacing small modules in the signal chain or adjusting module parameters. This flexibility eliminates the limitation of having to purchase a dedicated system to acquire a single signal.
[0025] 3. The module reuse rate is high, avoiding functional overlap. This design optimizes the space configuration, improves the overall efficiency and practicality of the system, and reduces resource waste;
[0026] 4. The system supports real-time parameter adjustment. Users can instantly observe the impact of parameter adjustment on system functions. This instant feedback mechanism deepens students' understanding of the working principle of the module, enhances their awareness of the impact of parameter adjustment, and promotes students' comprehensive mastery of system functions.
[0027] 5. The system is equipped with a touch screen, which realizes real-time display of data and instant response to user operations. The intuitive user interface and interactive feedback mechanism enhance students' participation in experiments, break the limitation of insufficient student participation in traditional experimental teaching, and effectively stimulate students' interest in exploration and innovative thinking. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A block diagram of a modular multi-modal signal acquisition circuit board of a modular multi-modal circuit experiment system provided by the present invention;
[0029] Figure 2 A screen interactive software program flow chart of a modular multi-modal circuit experiment system provided by the present invention. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] See also Figure 1 and Figure 2 The present invention provides a modular multimodal circuit experiment system, including a modular multimodal signal acquisition circuit board and a screen interaction software program stored in a main control chip ESP32.
[0033] The above-mentioned modular multimodal signal acquisition circuit board includes an ESP32-S3 main control chip, a signal conditioning module, a variable resistor and capacitor module, an ADC module, a CPU module and a screen.
[0034] Among them: the signal conditioning module has 8 slots, a signal input terminal and a signal output terminal for inserting various signal processing modules. The contact metal strips equipped in each slot provide ±5V power supply, ground, input and output, and data line and clock line pins of IIC (Inter-Integrated Circuit) communication. The slots are connected in a cascade manner. The output of the previous slot can be directly used as the input of the next slot to form a signal transmission sequence, thereby realizing continuous signal processing. When no module is inserted in the slot, the signal can be directly transmitted through the gold finger to ensure the continuity of the signal path;
[0035] The analog front-end signal chain when the signal conditioning module processes the signal is composed of analog front-end modules inserted into the slots. The insertion slot part at the bottom of each analog front-end module is equipped with a contact metal strip that matches the corresponding pin of the slot to ensure the transmission of the signal input and output modules. The analog front-end signal chain is specifically responsible for processing the input analog signal, which includes signal amplification, filtering, right leg drive, buffering and other functional modules. These modules support plug-and-play functions. Users can flexibly adjust the analog front-end circuit according to specific needs by adding, removing or replacing each module to improve signal quality and form an acquisition system for different signals.
[0036] The parameter value of each analog front-end module is adjustable, so as to control the same module to be suitable for collecting different signal scenarios by adjusting the parameters. The adjustable parameter module has a first-order active low-pass filter, a first-order active high-pass filter, a second-order active low-pass filter, a second-order active high-pass filter and an amplifier circuit, wherein the first-order active high-pass and the first-order active low-pass have an adjustable resistor and an adjustable capacitor, the second-order active low-pass and the second-order active high-pass have two variable resistors and two variable capacitors, and the amplifier circuit has a variable resistor, wherein the principle of variable resistors and capacitors is: ATmega328P is used as the main controller to control ADG through SPI (serial peripheral interface bus) communication The S1612BCPZ chip and the capacitor matrix realize variable capacitance. The ADGS1612BCPZ is a single-pole single-throw switch (SPST) with 4 serial controls, which dynamically connects different capacitors to the circuit. Through different combinations of switches, the capacitors can be selectively connected in parallel or series to synthesize the required equivalent capacitance value and realize adjustable capacitance. The combination of the ADGS1612BCPZ chip and the capacitor matrix can create a highly configurable signal processing platform that can adapt to a variety of different electrical environments and dynamically changing requirements. The regulation of resistance is also achieved by the ADGS1612BCPZ chip and the resistor matrix, which is the same as the variable capacitor.
[0037] The variable resistor and capacitor module is a stackable module. Its base contains +5V power supply, ground, and data line and clock line pins for IIC (Inter-Integrated Circuit) communication. It can be stacked up to ten layers. Each variable resistor and capacitor stacking module contains a variable resistor and a variable capacitor. ATmega328P serves as the main controller, which is responsible for controlling the variable resistor and variable capacitor through its I / O port. ATmega328P uses two I / O ports to output chip select signals, which are connected to the chip select (CS) ports of the variable capacitor and variable resistor respectively. The variable capacitor module is composed of the ADGS1612BCPZ chip with a capacitor matrix, and the variable resistor module also uses the ADGS1612BCPZ chip with a resistor matrix. Through precise chip select signal control, ATmega328P can flexibly adjust the values of capacitors and resistors. The output capacitors and resistors are led out from the ports, and the appropriate resistors and capacitors can be selected according to needs to access the circuit for use.
[0038] The input of the ADC module is an analog signal chain, which can convert analog signals into digital signals. The ADS131M02 chip is selected as the main chip, and an SPI interface is provided, allowing the ADS131M02 to exchange data efficiently with various microcontrollers and processors. The SMD crystal oscillator is used as a high-precision and high-stability clock source, which can provide a stable clock signal to meet the clock signal requirements of the ADS131M02. The SMD crystal oscillator is connected to the clock end of the ADS131M02 to ensure that the ADS131M02 works under the drive of an accurate clock signal, thereby realizing accurate conversion of analog signals to digital signals.
[0039] The CPU module uses the programmable ESP32 microcontroller as the main control chip, and exchanges data with the ADC module through the SPI communication protocol. The data line (SDA) and clock line (SCL) of the CPU module and the ADC module are connected to VDD (power supply voltage) through external pull-up resistors to ensure that the IIC bus can maintain a stable high-level state when there is no device driving, and prevent the data line from floating when idle and generating an uncertain voltage state, thereby avoiding communication errors. By connecting the MOSI line, MISO line, and SCLK line of the SPI interface of the CPU module to the corresponding SPI port of the ADS131M02 chip, the ESP32 microcontroller can send control commands to the ADS131M02 and receive its converted digital signals. The SCLK line provides a synchronous clock signal, the MOSI line is used to send data or commands from the ESP32 microcontroller to the ADS131M02, and the MISO line is used to read the converted digital signal from the ADS131M02.
[0040] The two pins of the main control chip ESP32 respectively assume the functions of the data line (SDA) and clock line (SCL) of the IIC bus. These two pins are connected to the power supply through pull-up resistors to ensure that the line can maintain a high level state when there is no data transmission. Subsequently, these pins are connected to the base of the variable resistor and capacitor module, which may be used for signal conditioning or filtering to meet subsequent signal processing requirements. At the same time, they are multiplexed with 8 analog slots through the TCA9548A chip. TCA9548A is a chip made by Texas Instruments. The ESP32 is a multifunctional IIC bus switch produced by TI Instruments. It allows an IIC master device to connect and control up to eight IIC slave devices. These slots are connected in a cascaded manner to form a sequence of signal transmission. Each analog slot is designed with input and output interfaces so that the output of the previous slot can be directly used as the input of the next slot, thereby realizing continuous signal processing. This design allows the signal to be amplified, filtered, modulated or otherwise conditioned as necessary when passing through each analog component to optimize the signal quality. At the end of the signal chain, the output of the last analog slot is directly sent to the ADC module. The IIC, SPI and other communication ports of the ADC module are connected to the CPU module. The CPU module communicates with the main control chip ESP32 through two dedicated pins as the TXD and RXD of the serial port to achieve feedback. The main control chip ESP32 also has two IO ports used as TXD and RXD for serial communication with the screen, which are connected to the serial screen to display system status, user interaction or other information.
[0041] The screen interaction software program includes the data receiving and sending system and the serial screen interface interaction. It detects the online status of each module device through the IIC polling mechanism, adopts the interface design, displays the device status in a graphical way, and improves the intuitiveness and ease of use of the user interface. The software monitors and responds to the user's operation on the touch screen to achieve human-computer interaction. By calling the IIC library and analyzing the serial screen communication protocol, the software can read the device address and data, update the screen layout, and send new data to the corresponding module in real time to complete the touch circuit parameter setting and other functions;
[0042] The screen uses the Dacai serial screen M series DC32960M046. The screen display part is divided into three modules, namely the variable resistance and capacitance display module, the signal adjustment display module, and the user curve display module. The main function is that the main control chip ESP32 reads the device data from IIC and controls the arranged software interface through the serial port, and updates the screen and IIC device data according to the user's screen operation. The main interface contains three icons, corresponding to three modules, each icon contains two frames to represent the two states of on and off. The variable resistance and capacitance interface has ten icons, corresponding to the ten-layer stacking module, each icon also contains two frames to represent the two states of on and off, and the eight-layer resistance and capacitance settings are total It uses a screen ID. Its title icon has 8 frames, which can be flexibly switched to indicate the current number of adjusted layers. The value setting consists of two sliders and their corresponding display text boxes. The signal adjustment module interface also contains eight icons, corresponding to the devices in the eight slots. The icon design takes into account the number of developed modules, and there is an additional status frame indicating that there is no module. Each adjustable module is configured with a special adjustment screen according to its specific function. The adjustment of resistance and capacitance can be performed through slider controls or keyboard input. The input results will be displayed in the text box. In addition, the user curve module uses curve controls to dynamically display data changes, providing users with a graphical data analysis method.
[0043] The user curve interface design of the user curve display module allows the external CPU module to communicate efficiently with the ADC module through the SPI protocol, and provides data interaction capabilities through the API. According to the serial communication protocol, the user can send the required data obtained from the ADC module to the main control chip ESP32 through the serial port. The main control chip ESP32 is the core of data processing and interface display. After receiving these data, it will call the built-in curve drawing function to display the user-selected data in the form of a graphical curve on the user curve module on the screen.
[0044] The module devices detected by the IIC polling mechanism include signal conditioning modules and variable resistor and capacitor modules. The two module devices, variable resistor and capacitor module and signal conditioning module, can be distinguished during IIC communication. A 16-bit IIC address is defined. The first 8 bits are all 0, which represents the variable resistor and capacitor module. This module is a stacking module. The next 8 bits from 0x03 to 0x0A represent the number of devices stacked from bottom to top. The signal conditioning module selects the first 8 bits bit by bit, which represents the number of slots among the 8 slots where the device is located. The last 8 bits represent the device type, which can be expanded from 0x23 to 0x53. This address scheme allows different module devices to be identified and communicated through different slots and device types on an IIC bus. Each module device has a unique 16-bit address to ensure the accuracy and distinctiveness of communication.
[0045] The variable resistor and capacitor module in IIC communication defines a StackDevice class mainly used to manage device stacks. This module is a stacking module. The device has a continuous IIC address. This class uses the _deviceAddresses array to track the online status of a series of devices within a predefined IIC address range. The _deviceInfo array stores the information of each device, including device ID, address, setting quantity, etc. This information helps to track the status and configuration of each device. The core functions of the StackDevice class include periodically scanning devices on the IIC bus, encapsulating IIC communication details to send commands and read device responses, creating tasks to handle device logic and message queue management, and cyclically checking this queue. The signal conditioning module defines a ListDevice class to represent the device list, most of its functions are the same as the StackDevice class, the main difference is that the StackDevice class manages a device stack with continuous addresses, while ListDevice focuses on managing a series of devices that may have different addresses. This class uses the _deviceAddresses array to store the device address of each slot. These addresses are used for IIC communication to identify and access specific devices. The slot number is sent to the TCA9548A multiplexer through the TCA9548AopenChannel function to select the correct IIC channel for communication;
[0046] The serial port screen interface interaction is mainly the interaction between the variable resistance and capacitance module and the signal conditioning module. Through the data recording mechanism, intuitive feedback and precise interaction of the user interface are realized. The variable resistance and capacitance module uses the RecordArray two-dimensional array to record the device status and parameters. Through device address recognition and layer conversion, the interface display is dynamically updated, and the icon status is controlled by the light function to reflect the online status of the device. The user can enter the resistance and capacitance control interface by clicking the layer icon. The system sets the title and component value according to the RecordArray information, and responds to user operations in real time through the slider callback function, and updates the device value through IIC communication. The signal conditioning module expands the record of device type information through the RecordInsertArray two-dimensional array. The system identifies the module ownership according to the device address, and controls the slot icon display through the setInsertlight function to reflect the online status of the device. After the user clicks the icon, the system switches to the corresponding interface according to the component type, and uses global variables to record the user operation path. The resistance and capacitance parameters can be set by dragging the slider and keyboard input to improve the adjustment flexibility. At the same time, the system has designed an error state correction mechanism to ensure that when the device is accidentally disconnected, it can automatically restore to a safe state to prevent incorrect operations.
[0047] The modular multimodal circuit experiment system simulates the modular architecture design of the front-end signal chain: the system adopts a modular design, allowing users to freely combine and reconstruct signal acquisition and processing modules according to specific needs, and simulates the front-end signal chain design, including signal amplification, filtering, right leg drive, buffer and other modules, supports plug-and-play function, allowing users to flexibly adjust the circuit according to needs, suitable for the acquisition of multimodal signals while providing flexibility and adaptability of cross-subject experiments, solving the limitation that the acquisition of a physiological signal requires the provision of an entire acquisition system specifically corresponding to it, and solving the problem of low space utilization caused by overlapping functions between modules; parameters are adjustable in real time: through screen touch The parameters can be adjusted dynamically. The ATmega328P main controller in the module controls the ADGS1612BCPZ chip and the resistor-capacitor matrix to realize the dynamic adjustment of the resistance and capacitance values, thereby realizing functions such as filtering of different frequencies and adjustment of the amplification factor to adapt to different environments and the requirements of the collected signals. It solves the problem that the traditional experimental equipment has a single function and cannot be interdisciplinary, expands the application scope of the experimental equipment, solves the problem that students only complete the experiment but do not understand its internal principles, deepens students' understanding of the module, enhances their understanding of the impact of parameter adjustment, solves the problem of low student participation in traditional experimental teaching, and stimulates students' interest in exploration and innovative thinking.
[0048] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A modular multi-modal circuit experiment system, characterized in that: It includes a modular multi-modal signal acquisition circuit board and a screen interaction software program stored in the main control chip ESP32.
2. A modular multi-modal circuit experiment system according to claim 1, characterized in that: The modular multimodal signal acquisition circuit board includes an ESP32-S3 main control chip, a signal conditioning module, a variable resistor and capacitor module, an ADC module, a CPU module and a screen.
3. A modular multi-modal circuit experiment system according to claim 2, characterized in that: The signal conditioning module has 8 slots, a signal input terminal and a signal output terminal for inserting various signal processing modules. The contact metal strips equipped in each slot provide ±5V power supply, ground, input and output, and data line and clock line pins for IIC communication. The slots are connected in a cascade manner. The output of the previous slot can be directly used as the input of the next slot to form a sequence of signal transmission, thereby realizing continuous signal processing. When no module is inserted in the slot, the signal can be directly transmitted through the gold finger to ensure the continuity of the signal path; The analog front-end signal chain when the signal conditioning module processes the signal is composed of analog front-end modules inserted into the slots. The insertion slot part at the bottom of each analog front-end module is equipped with a contact metal strip that matches the corresponding pin of the slot to ensure the transmission of the signal input and output modules. The analog front-end signal chain is specifically responsible for processing the input analog signal, wherein the input analog signal includes signal amplification, filtering, right leg drive, buffering and other functional modules. These modules support plug-and-play functions. Users can flexibly adjust the analog front-end circuit according to specific needs by adding, removing or replacing each module to improve the signal quality and form an acquisition system for different signals.
4. A modular multi-modal circuit experiment system according to claim 3, characterized in that: The parameter value of each analog front-end module is adjustable, so as to control the same module to be suitable for collecting different signal scenarios by adjusting the parameters. The adjustable parameter module has a first-order active low-pass filter, a first-order active high-pass filter, a second-order active low-pass filter, a second-order active high-pass filter and an amplifier circuit, wherein the first-order active high-pass and the first-order active low-pass have an adjustable resistor and an adjustable capacitor, the second-order active low-pass and the second-order active high-pass have two variable resistors and two variable capacitors, and the amplifier circuit has a variable resistor, wherein the principle of variable resistors and capacitors is: ATmega328P is used as the main controller to control ADGS through SPI communication 1612BCPZ chip, which realizes variable capacitance with the capacitor matrix. ADGS1612BCPZ is a single-pole single-throw switch with 4 serial controls, which dynamically connects different capacitors to the circuit. Through different combinations of switches, the capacitors can be selectively connected in parallel or series to synthesize the required equivalent capacitance value and realize adjustable capacitance. The combination of ADGS1612BCPZ chip and capacitor matrix can create a highly configurable signal processing platform that can adapt to a variety of different electrical environments and dynamically changing requirements. The regulation of resistance is also achieved by ADGS1612BCPZ chip and resistor matrix, which is the same as variable capacitor.
5. The modular multi-modal circuit experiment system according to claim 2, characterized in that: The variable resistor and capacitor module is a stackable module, and its base includes a +5V power supply, a ground, and data line and clock line pins for IIC communication. It can be stacked up to ten layers. Each variable resistor and capacitor stacking module includes a variable resistor and a variable capacitor. ATmega328P serves as the main controller, which is responsible for controlling the variable resistor and the variable capacitor through its I / O port. ATmega328P uses two I / O ports to output chip select signals, which are respectively connected to the chip select ports of the variable capacitor and the variable resistor. The variable capacitor module is composed of an ADGS1612BCPZ chip with a capacitor matrix, and the variable resistor module also uses an ADGS1612BCPZ chip with a resistor matrix. Through precise chip select signal control, ATmega328P can flexibly adjust the values of capacitors and resistors. The output capacitors and resistors are led out from the ports, and suitable resistors and capacitors can be selected according to needs to be connected to the circuit for use.
6. A modular multi-modal circuit experiment system according to claim 3, characterized in that: The input of the ADC module is an analog signal chain, which can convert analog signals into digital signals. The ADS131M02 chip is selected as the main chip, and an SPI interface is provided, allowing the ADS131M02 to exchange data efficiently with various microcontrollers and processors. A patch crystal oscillator is used as a high-precision and high-stability clock source, which can provide a stable clock signal to meet the clock signal requirements of the ADS131M02. The patch crystal oscillator is connected to the clock end of the ADS131M02 to ensure that the ADS131M02 works under the drive of an accurate clock signal, thereby realizing accurate conversion of analog signals to digital signals.
7. A modular multi-modal circuit experiment system according to claim 6, characterized in that: The CPU module uses a programmable ESP32 microcontroller as the main control chip, and exchanges data with the ADC module through the SPI communication protocol. The data lines and clock lines of the CPU module and the ADC module are connected to VDD through external pull-up resistors to ensure that the IIC bus can maintain a stable high-level state when there is no device driver, and prevent the data line from floating in an uncertain voltage state when idle, thereby avoiding communication errors. By connecting the MOSI line, MISO line, and SCLK line of the SPI interface of the CPU module to the SPI corresponding port of the ADS131M02 chip, the ESP32 microcontroller can send control commands to the ADS131M02 and receive the converted digital signal. The SCLK line provides a synchronous clock signal, the MOSI line is used to send data or commands from the ESP32 microcontroller to the ADS131M02, and the MISO line is used to read the converted digital signal from the ADS131M02.
8. A modular multi-modal circuit experiment system according to claim 7, characterized in that: The two pins of the main control chip ESP32 respectively assume the functions of the data line and clock line of the IIC bus. These two pins are connected to the power supply through a pull-up resistor to ensure that the line can maintain a high level state when there is no data transmission. Subsequently, these pins are connected to the base of the variable resistor and capacitor module, which may be used for signal adjustment or filtering to meet subsequent signal processing requirements. At the same time, they are connected to 8 analog slots through TCA9548A chip multiplexing. These slots are connected in a cascade manner to form a signal transmission sequence. Each analog slot is designed with input and output interfaces, so that the output of the previous slot can be directly used as the input of the next slot, thereby realizing This design allows the signal to be amplified, filtered, modulated or otherwise conditioned as necessary when passing through the various analog components to optimize the signal quality. At the end of the signal chain, the output of the last analog slot is sent directly to the ADC module. The IIC, SPI and other communication ports of the ADC module are connected to the CPU module. The CPU module communicates with the main control chip ESP32 through two dedicated pins as the TXD and RXD of the serial port to achieve feedback. The main control chip ESP32 also has two IO ports used as TXD and RXD for serial communication with the screen, which are connected to the serial screen to display system status, user interaction or other information.
9. The modular multi-modal circuit experiment system according to claim 1, characterized in that: The screen interaction software program includes the interaction between the data receiving and sending system and the serial screen interface, detects the online status of each module device through the IIC polling mechanism, adopts the interface design, displays the device status in a graphical manner, improves the intuitiveness and ease of use of the user interface, and the software monitors and responds to the user's operation on the touch screen to achieve human-computer interaction. By calling the IIC library and analyzing the serial screen communication protocol, the software can read the device address and data, update the screen layout, and send new data to the corresponding module in real time to complete the touch circuit parameter setting and other functions; The screen uses the M series DC32960M046 serial screen of Dacai. The screen display part is divided into three modules, namely, variable resistance and capacitance display module, signal adjustment display module, and user curve display module. The main function is that the main control chip ESP32 reads the device data of IIC and controls the arranged software interface through the serial port, and updates the screen and IIC device data according to the user's screen operation. The main interface contains three icons, corresponding to three modules, each icon contains two frames to represent the two states of on and off. The variable resistance and capacitance interface has ten icons, corresponding to the ten-layer stacking module, each icon also contains two frames to represent the two states of on and off, and the eight-layer resistance and capacitance setting Sharing a screen ID, its title icon has 8 frames, which can be flexibly switched to indicate the current number of adjusted layers. The value setting consists of two sliders and their corresponding display text boxes. The signal adjustment module interface also contains eight icons, corresponding to the devices in the eight slots. The icon design takes into account the number of developed modules, and there is an additional status frame indicating that there is no module. Each adjustable module is configured with a special adjustment screen according to its specific function. The adjustment of resistance and capacitance can be performed through slider controls or keyboard input, and the input results will be displayed in the text box. In addition, the user curve module uses curve controls to dynamically display data changes, providing users with a graphical data analysis method; The user curve interface design of the user curve display module allows the external CPU module to communicate efficiently with the ADC module through the SPI protocol, and provides data interaction capabilities through the API. According to the serial port communication protocol, the user can send the required data obtained from the ADC module to the main control chip ESP32 through the serial port. The main control chip ESP32 serves as the core of data processing and interface display. After receiving these data, it will call the built-in curve drawing function to display the user-selected data in the form of a graphical curve on the user curve module on the screen.
10. A modular multi-modal circuit experiment system according to claim 9, characterized in that: Each module device detected by the IIC polling mechanism includes a signal conditioning module and a variable resistor and capacitor module. The two module devices, the variable resistor and capacitor module and the signal conditioning module, can be distinguished during IIC communication. A 16-bit IIC address is defined. The first 8 bits are all 0, which represents a variable resistor and capacitor module. This module is a stacking module. The following 8 bits from 0x03 to 0x0A represent the number of devices stacked from bottom to top. The signal conditioning module selects the first 8 bits bit by bit, representing the number of slots among the 8 slots where the device is located. The last 8 bits represent the device type, which can be expanded from 0x23 to 0x53. This address scheme allows different module devices to be identified and communicated through different slots and device types on an IIC bus. Each module device has a unique 16-bit address to ensure the accuracy and distinctiveness of communication. The variable resistor and capacitor module in the IIC communication defines a StackDevice class mainly used to manage the device stack. This module is a stacking module. The device has a continuous IIC address. This class uses the _deviceAddresses array to track the online status of a series of devices within a predefined IIC address range. The _deviceInfo array stores the information of each device, including device ID, address, setting quantity, etc. This information helps to track the status and configuration of each device. The core functions of the StackDevice class include periodically scanning the devices on the IIC bus, encapsulating IIC communication details to send commands and read device responses, creating tasks to handle device logic and message queue management, and cyclically checking this Queues, device settings for handling new messages or reading device status, etc. The signal conditioning module defines a ListDevice class to represent the device list. Most of its functions are the same as the StackDevice class. The main difference is that the StackDevice class manages a device stack with consecutive addresses, while ListDevice focuses on managing a series of devices that may have different addresses. This class uses the _deviceAddresses array to store the device address of each slot. These addresses are used for IIC communication to identify and access specific devices. The slot number is sent to the TCA9548A multiplexer through the TCA9548AopenChannel function to select the correct IIC channel for communication; The serial port screen interface interaction is mainly the interaction between the variable resistance and capacitance module and the signal adjustment module. Through the data recording mechanism, intuitive feedback and precise interaction of the user interface are realized. The variable resistance and capacitance module uses the RecordArray two-dimensional array to record the device status and parameters. Through device address recognition and layer conversion, the interface display is dynamically updated, and the icon status is controlled by the light function to reflect the online status of the device. The user can enter the resistance and capacitance control interface by clicking the layer icon. The system sets the title and component value according to the RecordArray information, and responds to user operations in real time through the slider callback function, and updates the device value through IIC communication. The signal adjustment module expands the record of device type information through the RecordInsertArray two-dimensional array. The system identifies the module affiliation according to the device address, and controls the slot icon display through the setInsertlight function to reflect the online status of the device. After the user clicks the icon, the system switches to the corresponding interface according to the component type, and uses global variables to record the user operation path. The resistance and capacitance parameters can be set by dragging the slider and keyboard input to improve the adjustment flexibility. At the same time, the system is designed with an error state correction mechanism to ensure that when the device is accidentally disconnected, it can automatically restore to a safe state to prevent erroneous operations.
