An electric control system for identifying cordyceps sinensis
Patent Information
- Application Number
- CN202610925240.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-25
- Publication Date
- 2026-11-03
AI Technical Summary
[0004]由于冬虫夏草在不同生长阶段以及不同环境条件下的外观和细节上存在较大差异,这使得真伪鉴别变得异常困难
本发明采用手持式虫草检定仪和虫草旋转仓的组合,使用灵活;旋转拍摄的方式能最大程度拍摄虫草全方位影像,手持式虫草检定仪集高清相机图像采集、存储,图像数据通过5G高速网络传输到云端服务器,调用云端AI大模型对冬虫夏草进行鉴别。
Smart Images

Figure CN123029018A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of intelligent control technology, specifically to an electronic control system for the identification of Cordyceps sinensis. Background Technology
[0002] The identification of wild and cultivated Cordyceps sinensis is a crucial issue in the Cordyceps industry, particularly valuable for protecting consumer rights and maintaining market order. Currently, Cordyceps identification relies primarily on manual methods, visually observing morphological characteristics and classifying grades by origin and weight. Overall, this experience-based method suffers from drawbacks such as low efficiency, low accuracy, over-reliance on personal experience, and inability to be applied on a large scale.
[0003] Currently, there is no mature, comprehensive, and efficient mechanism, method, or technology for identifying the quality of Cordyceps sinensis. For users, identifying different qualities of Cordyceps sinensis remains a significant challenge. In recent years, with the rapid development of various disciplines and computer technology, the use of various instruments and analytical methods has been continuously updated and improved. As a result, some new technologies for identifying traditional Chinese medicine have emerged, providing a solid technical and theoretical foundation for the identification of Cordyceps sinensis. Among these, identification based on the morphological characteristics of Cordyceps sinensis remains a commonly used method for quality identification.
[0004] Because Cordyceps sinensis exhibits significant differences in appearance and details at different growth stages and under varying environmental conditions, distinguishing genuine from counterfeit products is exceptionally difficult. Currently, the market is flooded with counterfeit and substandard products, and traditional identification methods rely heavily on the experience and knowledge of professionals. This is not only susceptible to subjective influences but also inefficient and costly. Therefore, developing intelligent identification technologies is particularly urgent to address the significant challenges faced by consumers and the industry in authenticating Cordyceps sinensis. Summary of the Invention
[0005] To address the aforementioned issues, this invention provides an electronically controlled system for identifying Cordyceps sinensis, comprising a handheld Cordyceps sinensis identification instrument and a rotating Cordyceps sinensis chamber; the handheld Cordyceps sinensis identification instrument and the rotating Cordyceps sinensis chamber interact via Bluetooth. The handheld cordyceps identification instrument specifically includes: a first main control module, a first power supply module, a signal amplification module, a visual module, an image acquisition module, a light source module, and a first data communication module; The image acquisition module acquires images of cordyceps and transmits the acquired image data to the first main control module. The first main control module receives the acquired image data and the data uploaded from the cordyceps rotation chamber and transmits it to the outside world via the first data communication module. The first data communication module receives external command information, amplifies the received command information through the signal amplification module, and transmits it to the first main control module. The first power supply module provides power to the first main control module, signal amplification module, visualization module, image acquisition module, light source module, and first data communication module. The visualization module is used to display the acquired cordyceps image data and the received command information. The light source module is used to provide supplementary lighting during image acquisition. The cordyceps rotating chamber specifically includes: a second main control module, a second power supply module, a driver, a rotating motor, a weight acquisition module, a second data communication module, and an analog signal module; After receiving external command information, the second data communication module transmits it to the second main control module. The second main control module then issues commands to control the driver to drive the rotating motor to rotate. The weight acquisition module acquires the weight of the cordyceps and transmits it to the second main control module. The second main control module packages the cordyceps weight and the status of the cordyceps rotation chamber and uploads it to the handheld cordyceps identification instrument via the second data communication module. The second power supply module provides power to the second main control module, driver, rotating motor, weight acquisition module, and second data communication module. The analog signal module is used to convert the acquired cordyceps weight into an analog signal.
[0006] Furthermore, the first power supply module is equipped with a DC / DC boost submodule to boost the power supply voltage to 5V.
[0007] Furthermore, the second main control module specifically consists of an STM32F4 processor, a power management conversion submodule, a motor drive submodule, and an analog signal submodule; The STM32F4 processor is used for task scheduling and controls the driver and rotary motor via the CAN bus. The power management submodule is used to control the power supply to the drive, rotary motor, STM32F4 processor, and analog signal module in the Cordyceps rotation chamber; The motor drive submodule is used to control the driver to drive the rotary motor to operate. The analog signal submodule uses a full-bridge strain gauge sensing circuit to convert the acquired cordyceps weight information into an analog signal, which is then processed, amplified, and input into the STM32F4 processor.
[0008] Furthermore, the second power supply module uses a 24V lithium battery, and includes a power monitoring submodule and a DC / DC step-down submodule. The power monitoring submodule is used to monitor the voltage and current of the cordyceps rotating chamber in real time. The DC / DC step-down submodule reduces the 24V voltage to 12V and 5V. The 12V voltage is sent to the driver to drive the rotary motor, and the 5V voltage is sent to the second main control module, the weight acquisition module, the second data communication module and the analog signal module for power supply.
[0009] Furthermore, the weight acquisition module specifically uses a stress-strain sensor to sense and acquire the weight of the cordyceps.
[0010] Furthermore, the cordyceps rotating chamber is also equipped with a self-testing module and a temperature sensor to detect the voltage, current and temperature of each part in the rotating chamber in real time to determine whether each module is working properly; when there are abnormalities in the voltage, current and temperature of each part, they are reported to the second main control module for processing; when the second main control module determines that there are too many abnormal data or the abnormal values are far beyond the normal values, it cuts off the power to the cordyceps rotating chamber.
[0011] Furthermore, it also includes a data processing subsystem, comprising the following modules: power management module, sensor monitoring module, motor control module, communication module, task scheduling module, and anomaly alarm module; The power management module is used to monitor and manage the power supply of the handheld cordyceps identification instrument and the cordyceps rotating chamber. The sensor monitoring module is used to monitor the status of the temperature sensor and the stress-strain sensor in real time. Specifically, the motor control module sends rotation control commands to the driver via the CAN bus and adjusts the operating status of the rotating motor based on the driver feedback. The communication module is used to interact with the handheld cordyceps identification instrument via Bluetooth communication and transmit image data and weight data to the cloud server via 5G communication. The task scheduling module specifically prioritizes image acquisition, weight acquisition, rotation control, and data upload tasks. Specifically, the abnormal alarm module receives abnormal voltage, current and temperature data collected by the self-test module, and triggers the second main control module to shut down the cordyceps rotating chamber when the number of abnormal data exceeds a preset threshold or the abnormal value exceeds a preset normal value range.
[0012] This invention provides an electronic control system for identifying Cordyceps sinensis, which has the following beneficial effects: This invention combines a handheld cordyceps detector with a rotating cordyceps chamber, offering flexible use. The rotating shooting method maximizes the capture of all-around images of cordyceps. The handheld cordyceps detector integrates high-definition camera image acquisition and storage, and the image data is transmitted to the cloud server via a 5G high-speed network, where a cloud-based AI model is invoked to identify cordyceps. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0014] Figure 1 This is a schematic diagram of the system structure provided by the present invention; Figure 2 The block diagram of fuzzy PID control for motors provided by this invention. Detailed Implementation
[0015] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0016] The following detailed description of the implementation method of the present invention is in conjunction with the accompanying drawings. The description is only a partial embodiment and not all embodiments. For clarity, representations and descriptions unrelated to the present invention are omitted in the drawings and description.
[0017] To provide a clearer understanding of the technical features, objectives, and beneficial effects of this invention, the following detailed description of the technical solution is provided. Obviously, the described embodiments are only a portion of the embodiments of this invention, not all of them, and should not be construed as limiting the scope of implementation of this invention. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without inventive effort are within the protection scope of this invention.
[0018] like Figure 1 As shown, the present invention provides an electronic control system for the identification of Cordyceps sinensis, including a handheld Cordyceps sinensis identification instrument and a rotating Cordyceps sinensis chamber; the handheld Cordyceps sinensis identification instrument and the rotating Cordyceps sinensis chamber communicate with each other via Bluetooth.
[0019] The handheld cordyceps identification instrument specifically includes: a first main control module, a first power supply module, a signal amplification module, a visual module, an image acquisition module, a light source module, and a first data communication module. The image acquisition module acquires images of cordyceps and transmits the acquired image data to the first main control module. The first main control module receives the acquired image data and data uploaded from the cordyceps rotation chamber and transmits it to the outside world via the first data communication module. The first data communication module receives external command information, amplifies the received command information through the signal amplification module, and transmits it to the first main control module. The first power supply module provides power to the first main control module, signal amplification module, visual module, image acquisition module, light source module, and first data communication module. The visual module is used to display the acquired cordyceps image data and the received command information. The light source module is used to provide supplementary lighting during image acquisition. The first main control module uses an MTK6762 motherboard; the first power supply module is a 4.2V lithium battery; the signal amplification module is a flexible PCB antenna; the image acquisition module is a high-definition camera module; the visual module is a TFT capacitive touchscreen; it also connects to a multi-way switch with customizable functions; the MTK6762 motherboard runs the Android 10.0 operating system, enabling display control, communication interconnection, fill light control, image information uploading, and other functions. The first power supply module includes a DC / DC boost submodule to boost the power supply voltage to 5V.
[0020] The handheld cordyceps identification instrument uses a 12nm octa-core Cortex-A53 (64-bit) MTK6272 chip with a main frequency of 2.0GHz as its core computing unit, and an IMG GE8300@650MHz GPU. The motherboard includes 6GB LPDDR3 memory and 128GB GeMMC, supports a touchscreen display with a resolution up to 1920x1200, two cameras with a maximum resolution of 21MP each, supports various sensors, 5G / WIFI / BT / GPS / BeiDou, and a rich array of peripheral interfaces such as serial port, GPIO, I2C, and SPI to meet the needs of various peripherals. It can also support an external 128GB SD card for storage. The motherboard runs on Android 10.0, and its performance meets the requirements of this project while also featuring low power consumption to adapt to different industrial control environments.
[0021] The handheld cordyceps identification instrument uses high-power LEDs for illumination, driven by a DC-DC boost converter. The brightness of the light source is adjusted via a PWM signal, enabling stepless dimming. The light source is a GST-2016UWC1500A06 series LED, which is white, with a wavelength range of 6000-7000nm, a brightness of 400-450LM, a beam angle of 120°, and a current of 1500mA.
[0022] The cordyceps rotation chamber specifically includes: a second main control module, a second power supply module, a driver, a rotating motor, a weight acquisition module, a second data communication module, and an analog signal module. The second data communication module receives external command information and transmits it to the second main control module. The second main control module then issues commands to control the driver to drive the rotating motor to rotate. The weight acquisition module acquires the weight of the cordyceps and transmits it to the second main control module. The second main control module packages the cordyceps weight and the status of the cordyceps rotation chamber and uploads it to the handheld cordyceps identification instrument via the second data communication module. The second power supply module provides power to the second main control module, driver, rotating motor, weight acquisition module, and second data communication module. The analog signal module converts the acquired cordyceps weight into an analog signal.
[0023] The second main control module specifically consists of an STM32F4 processor, a power management conversion submodule, a motor drive submodule, and an analog signal submodule. The STM32F4 processor is used for task scheduling and controls the driver and rotating motor via the CAN bus. The power management submodule controls the power supply to the driver, rotating motor, STM32F4 processor, and analog signal module in the cordyceps rotating chamber. The motor drive submodule controls the driver to drive the rotating motor. The analog signal submodule uses a full-bridge strain gauge sensing circuit to convert the acquired cordyceps weight information into an analog signal, amplifies it, and then inputs it to the STM32F4 processor. The rotating chamber main control module mainly consists of an STM32F4 processor and peripheral circuit modules, a power management conversion circuit, a motor drive circuit, and an analog signal acquisition circuit. The main control module MCU is an STM32F4 processor with a main frequency of 168MHz, running the FreeRTOS real-time operating system, power management program, motor control program, and ADC acquisition algorithm, responsible for multi-task scheduling and controlling the motor via the CAN bus. The power management circuit independently manages and controls the power supply of all peripheral modules in the rotating chamber. Each power interface, in addition to standard shock and surge protection, features short-circuit protection and self-resetting capabilities. Imported connectors are used, and the power interface pins employ at least two pins for power supply, ensuring stable and reliable power delivery. The analog signal acquisition circuit uses a full-bridge strain gauge sensing circuit design. The weight information of the cordyceps is converted into an analog signal, which is then processed by an operational amplifier circuit and input to the ADC chip. The ADC chip connects to the MCU via an SPI interface to read data.
[0024] The second power supply module uses a 24V lithium battery and includes a power monitoring submodule and a DC / DC step-down submodule. The power monitoring submodule is used to monitor the voltage and current of the cordyceps rotating chamber in real time. The DC / DC step-down submodule reduces the 24V voltage to 12V and 5V. The 12V voltage is sent to the driver to drive the rotating motor, and the 5V voltage is sent to the second main control module, the weight acquisition module, the second data communication module, and the analog signal module for power supply.
[0025] The weight acquisition module specifically uses a stress-strain sensor to sense and acquire the weight of the cordyceps. After receiving a change in weight, the stress-strain sensor outputs a different analog signal, which is then processed by an operational amplifier circuit and input to the ADC acquisition module. The main control module reads the weight data through the SPI interface.
[0026] The cordyceps rotating chamber is also equipped with a self-test module and a temperature sensor to detect the voltage, current and temperature of each part in the rotating chamber in real time to determine whether each module is working properly. When there are abnormalities in the voltage, current and temperature of each part, they are reported to the second main control module for processing. When the second main control module determines that there are too many abnormal data or the abnormal values are far beyond the normal values, it cuts off the power to the cordyceps rotating chamber.
[0027] Both the handheld cordyceps identification instrument and the cordyceps rotating chamber are equipped with a separate high-capacity lithium battery module. The module consists of a cell module and a BMS board, which has the functions of battery charge and discharge management and accurate power calculation. The handheld cordyceps identification instrument is powered by a 4.2V high-capacity lithium battery, which is boosted to 5V by a DC / DC boost circuit. Multi-level power management is used to power the main control module, screen, camera module, and light source module separately. The rotating chamber is powered by a 24V lithium battery. The voltage and current of the rotating chamber are monitored in real time by a power monitoring circuit. Then, a DC / DC step-down circuit is used to obtain 12V and 5V. The 12V is input to the motor driver to drive the motor, and the 5V powers the main control module, LED buttons, and ADC acquisition module.
[0028] The cordyceps rotating chamber communicates with a micro-driver via CAN communication to control the operation of the rotating motor. The driver has power management functions, with the F4 processor controlling its switching to supply power to the motor circuit. The F4 processor parses motion commands, uses a timer to generate PWM pulses, and sends them to the MOSFET driver circuit to drive the H-bridge MOSFETs, controlling the operation of the external motor. The driver acquires motor encoder signals in real time, captures pulses, processes them using motor control algorithms, forms feedback, and adjusts the PWM pulse control output to achieve closed-loop motor drive control. The H-bridge MOSFETs have current and voltage sampling circuits, and use a precision operational amplifier signal conditioning circuit for real-time AD sampling to achieve overload protection for the drive circuit.
[0029] The Cordyceps Rotating Chamber communicates with a handheld mobile terminal via Bluetooth to achieve data interaction. Information is transmitted to the terminal APP via Bluetooth, which makes it easier for operators to have a better understanding of the robot's overall information and simplifies the operator's work steps.
[0030] The underlying software architecture of the electronic control system described in this invention is designed based on FreeRTOS. An RTOS (Real-Time Operating System) is an operating system that can accept and process external events or data at a sufficiently fast speed, and whose processing results can control the production process or provide a rapid response to the processing system within a specified time. It schedules all available resources to complete real-time tasks and controls all real-time tasks to run in a coordinated manner. It features task priority scheduling, task switching, multi-level interrupt mechanisms, and thread independence. This system is open-source and free, highly scalable, and has abundant software resources, making it suitable for small platforms with limited resources. It includes a self-test program for the rotating chamber, a motor control program, a strain sensor monitoring program, power management, Bluetooth communication, data feedback and storage, etc., and uploads the collected data and local status information to a handheld terminal via Bluetooth communication.
[0031] The system receives various types of sensor data at the RTOS layer, including temperature sensors and stress / strain sensors. The system processes the data and transmits it to a handheld terminal APP via Bluetooth. The APP displays the current voltage, current, power, motor rotation position, and current weight of the cordyceps in the rotating chamber. Motor encoder data is transmitted from the driver board to the controller. The RTOS layer processes and parses the data. The sensor data update thread is switched by a timer in the background. In addition to updating sensor data, there is also a status light program. The onboard status lights are used to determine the current status flag of the rotating chamber, making it easy to judge various states of the equipment.
[0032] The motor control program, located at the lowest level, directly controls the motor's operating state in real time. The motor control interacts with the processor on the underlying driver board via an industrial CAN (Controller Area Network) bus. It receives control commands from the handheld cordyceps identification instrument and runs a state trajectory tracking algorithm based on fuzzy PID. Utilizing fuzzy inference's ability to process unknown information, it optimizes PID parameters in real time through a fuzzy inference engine. This overcomes the limitation of traditional PID controllers in real-time parameter adjustment, effectively handling the nonlinearity and uncertainty of the controlled object, and achieving precise rotation control. Figure 2 As shown.
[0033] This invention allows for the combined use of a handheld cordyceps detector and a cordyceps rotating chamber, depending on the application scenario. The handheld cordyceps detector is equipped with a 5G high-speed communication module, which enables rapid data synchronization to a cloud server. By calling cloud-based AI large-scale model algorithms, the data is processed in real time, and the processed results are returned to the handheld cordyceps detector.
[0034] This invention combines a handheld cordyceps detector with a rotating cordyceps chamber, offering flexible use. The rotating shooting method maximizes the capture of all-around images of cordyceps. The handheld cordyceps detector integrates high-definition camera image acquisition and storage, and the image data is transmitted to the cloud server via a 5G high-speed network, where a cloud-based AI model is invoked to identify cordyceps.
[0035] The identification instrument of this invention uses a high-definition camera for image acquisition. It designs a specific supplementary lighting environment based on the characteristics of Cordyceps sinensis and enhances the images so that the captured images can reflect the true image of Cordyceps sinensis. The Cordyceps sinensis is photographed by rotating a fixed Cordyceps sinensis head. The motor is controlled to rotate to multiple angles for shooting, thereby obtaining all-round image data of Cordyceps sinensis.
[0036] The above description is merely a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the forms disclosed herein and should not be construed as excluding other embodiments. It can be used in various other combinations, modifications, and environments, and can be altered within the scope of the concept described herein through the above teachings or related technologies or knowledge. Modifications and variations made by those skilled in the art that do not depart from the spirit and scope of the present invention should be within the protection scope of the appended claims.
Claims
1. An electronic control system for identifying Cordyceps sinensis, characterized in that, It includes a handheld cordyceps identification instrument and a cordyceps rotating chamber; the handheld cordyceps identification instrument and the cordyceps rotating chamber communicate with each other via Bluetooth; The handheld cordyceps identification instrument specifically includes: a first main control module, a first power supply module, a signal amplification module, a visual module, an image acquisition module, a light source module, and a first data communication module; The image acquisition module acquires images of cordyceps and transmits the acquired image data to the first main control module. The first main control module receives the acquired image data and the data uploaded from the cordyceps rotation chamber and transmits it to the outside world via the first data communication module. The first data communication module receives external command information, amplifies the received command information through the signal amplification module, and transmits it to the first main control module. The first power supply module provides power to the first main control module, signal amplification module, visualization module, image acquisition module, light source module, and first data communication module. The visualization module is used to display the acquired cordyceps image data and the received command information. The light source module is used to provide supplementary lighting during image acquisition. The cordyceps rotating chamber specifically includes: a second main control module, a second power supply module, a driver, a rotating motor, a weight acquisition module, a second data communication module, and an analog signal module; After receiving external command information, the second data communication module transmits it to the second main control module. The second main control module then issues commands to control the driver to drive the rotating motor to rotate. The weight acquisition module acquires the weight of the cordyceps and transmits it to the second main control module. The second main control module packages the cordyceps weight and the status of the cordyceps rotation chamber and uploads it to the handheld cordyceps identification instrument via the second data communication module. The second power supply module provides power to the second main control module, driver, rotating motor, weight acquisition module, and second data communication module. The analog signal module is used to convert the acquired cordyceps weight into an analog signal.
2. The electronic control system for identifying Cordyceps sinensis according to claim 1, characterized in that, The first power supply module is equipped with a DC / DC boost submodule to boost the power supply voltage to 5V.
3. The electronic control system for identifying Cordyceps sinensis according to claim 1, characterized in that, The second main control module specifically consists of an STM32F4 processor, a power management conversion submodule, a motor drive submodule, and an analog signal submodule; The STM32F4 processor is used for task scheduling and controls the driver and rotary motor via the CAN bus. The power management submodule is used to control the power supply to the driver, rotary motor, STM32F4 processor, and analog signal module in the Cordyceps rotation chamber; The motor drive submodule is used to control the driver to drive the rotary motor to operate. The analog signal submodule uses a full-bridge strain gauge sensing circuit to convert the acquired cordyceps weight information into an analog signal, and then amplifies it before inputting it into the STM32F4 processor.
4. The electronic control system for identifying Cordyceps sinensis according to claim 1, characterized in that, The second power supply module uses a 24V lithium battery and includes a power monitoring submodule and a DC / DC step-down submodule. The power monitoring submodule is used to monitor the voltage and current of the cordyceps rotating chamber in real time. The DC / DC step-down submodule reduces the 24V voltage to 12V and 5V. The 12V voltage is sent to the driver to drive the rotary motor, and the 5V voltage is sent to the second main control module, the weight acquisition module, the second data communication module and the analog signal module for power supply.
5. The electronic control system for identifying Cordyceps sinensis according to claim 1, characterized in that, The weight acquisition module specifically uses a stress-strain sensor to sense and acquire the weight of the cordyceps.
6. The electronic control system for identifying Cordyceps sinensis according to claim 1, characterized in that, The cordyceps rotating chamber is also equipped with a self-testing module and a temperature sensor, which detects the voltage, current and temperature of each part in the rotating chamber in real time to determine whether each module is working properly. When there are abnormalities in the voltage, current and temperature of each part, they are reported to the second main control module for processing. When the second main control module determines that there are too many abnormal data or the abnormal values are far beyond the normal values, it cuts off the power to the cordyceps rotating chamber.
7. The electronic control system for identifying Cordyceps sinensis according to any one of claims 1 to 6, characterized in that, It also includes a data processing subsystem, comprising the following modules: power management module, sensor monitoring module, motor control module, communication module, task scheduling module, and anomaly alarm module; The power management module is used to monitor and manage the power supply of the handheld cordyceps identification instrument and the cordyceps rotating chamber. The sensor monitoring module is used to monitor the status of the temperature sensor and the stress-strain sensor in real time. Specifically, the motor control module sends rotation control commands to the driver via the CAN bus and adjusts the operating status of the rotating motor based on the driver feedback. The communication module is used to interact with the handheld cordyceps identification instrument via Bluetooth communication and transmit image data and weight data to the cloud server via 5G communication. The task scheduling module specifically prioritizes image acquisition, weight acquisition, rotation control, and data upload tasks. Specifically, the abnormal alarm module receives abnormal voltage, current and temperature data collected by the self-test module, and triggers the second main control module to shut down the cordyceps rotating chamber when the number of abnormal data exceeds a preset threshold or the abnormal value exceeds a preset normal value range.
