A pedal direct connection detection method, device, electronic device and storage medium
Through the direct foot connection detection method of MCU control module and porous connection wire, the problem of inconvenience in detection and maintenance of foot equipment in the existing technology is solved, and accurate detection and real-time feedback of foot performance is realized, and detection and maintenance are reduced. Cost ensures the stable operation of medical equipment.
Patent Information
- Application Number
- CN202411201422.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-08-29
AI Technical Summary
During the production, inspection and use of existing foot control devices, there are factory inspection limitations, user-side inspection complexity, inconvenient inspection and maintenance, lack of real-time feedback and functional inspection limitations, resulting in the failure of equipment performance to meet standards.
The direct foot connection detection method of MCU control module, porous connection cable, display screen and indicator light is adopted. By collecting and analyzing the ADC signal in real time, it quickly determines whether the voltage value meets the standard, and uses the indicator light to provide performance status feedback.
Accurate detection and instant feedback on foot performance are achieved, reducing the time cost of inspection and maintenance, and avoiding potential problems in the medical process caused by performance failure.
Smart Images

Figure CN118707235B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical device technology, and in particular to a pedal direct connection detection method, device, electronic device and storage medium. Background Art
[0002] With the development of medical technology, the precision and functionality requirements of medical devices are getting higher and higher. Among many medical devices, foot control devices have been widely used in operating rooms due to their simple operation and sensitive response. However, there are some urgent problems to be solved in the production, testing and use of existing foot control devices, specifically in the following two aspects:
[0003] 1. Production and testing issues of existing foot control devices
[0004] 1. Limitations of factory inspection: Although pedal manufacturers conduct strict inspections before shipment to ensure that products meet standards, due to minor differences in the production process or potential impacts during transportation, pedals that pass factory inspections may still fail to meet performance standards. This results in users facing the risk of equipment failure in actual use.
[0005] 2. Complexity of user-side detection: When users find pedal performance problems during actual use, secondary detection and repair are often required. This process not only increases the user's use cost, but also brings inconvenience to the maintenance work.
[0006] 3. Uncertainty of spring adjustment: The spring of the pedal can be adjusted according to the specific needs of the user to adapt to different operating environments and force requirements. However, this adjustment makes the actual working state of the pedal uncertain, and it is necessary to test to determine whether its performance meets expectations.
[0007] 2. Use and maintenance issues of existing foot control devices
[0008] 1. Inconvenience in detection and maintenance: After users discover problems with pedal performance, they usually need to dismantle the equipment, rewire or use professional detection tools. This process is cumbersome and time-consuming, which seriously affects the efficiency of medical equipment use.
[0009] 2. Lack of real-time feedback: Existing foot-operated control devices often lack intuitive feedback mechanisms, making it difficult for users to understand the working status of the pedal in real time, which may lead to operational errors in emergency situations.
[0010] 3. Limitations of functional testing: In addition to force and spring adjustment, pedals may also have other functions integrated into them, such as buttons, etc. Existing testing methods may not fully cover these functions, thus affecting the overall performance evaluation of the pedals.
[0011] Therefore, in view of the above problems, the prior art has the problem that it is very inconvenient to detect and repair the foot pedal control device, which leads to the problem that the foot pedal may cause trouble to the medical process due to substandard performance during actual use. Summary of the invention
[0012] In view of the above-mentioned deficiencies in the prior art, the present application provides a pedal direct connection detection method, device, electronic device and storage medium, which are applied to the field of medical device technology. Through the MCU control module, multi-hole connecting wire, display screen and indicator light of the pedal direct connection detection device, the method realizes accurate detection and instant feedback of pedal performance. It collects and analyzes ADC signals in real time to quickly determine whether the pedal voltage value meets the standard, and uses indicator lights to show the performance status to the user, avoiding the problem of substandard performance when the user actually uses the pedal, optimizing the user experience, and saving the time cost of detection and maintenance.
[0013] In a first aspect, the present application proposes a pedal direct connection detection method, the method is applied to a pedal direct connection detection device, the pedal direct connection detection device includes an MCU control module, a multi-hole connecting line, a display screen and an indicator light, the multi-hole connecting line is used to connect the pedal, the MCU control module is used to obtain a pedal signal of the pedal through the multi-hole connecting line, and generate reminder information according to the pedal signal, and transmit the reminder information to the display screen and the indicator light to display it to the user, the method includes:
[0014] S1: After the pedal is connected, an initial ADC signal value of the pedal is obtained;
[0015] S2: when the initial ADC signal value changes, obtaining multiple real-time ADC signal values of the pedal;
[0016] S3: Calculate an average ADC signal value of the multiple real-time ADC signal values, and perform analog-to-digital operation on the average ADC signal value to obtain the voltage value of the pedal;
[0017] S4: Determine whether the voltage value meets the standard voltage value, and generate a first reminder message according to the determination result to remind the user whether the performance of the pedal meets the standard.
[0018] A pedal direct connection detection method proposed in the present application is applied to a pedal direct connection detection device. The pedal direct connection detection device includes an MCU control module as a core component, connected with a multi-hole connecting line, a display screen and an indicator light for receiving and processing pedal signals. The multi-hole connecting line provides a flexible connection method, allowing signal transmission between the pedal and the pedal direct connection detection device. The display screen and the indicator light are used to intuitively display the detection results to the user. After the pedal is connected, the initial ADC signal value of the pedal is obtained to capture the basic signal after the pedal is connected, so that the MCU control module can determine whether the pedal is connected normally; when the initial ADC signal value changes, multiple real-time ADC signal values of the pedal are obtained. Through real-time monitoring, the changes in the real-time ADC signal values corresponding to different states when the pedal is stepped on or the button is pressed can be more accurately captured, providing a more comprehensive data basis for performance testing; calculating the average ADC signal value of multiple real-time ADC signal values can reduce the random error of the real-time ADC signal value, and a specific voltage value can be obtained through mathematical operations, which is beneficial to performance testing; judging whether the voltage value meets the standard voltage value, and generating a first reminder message based on the judgment result to remind the user whether the pedal performance meets the standard, which is beneficial to providing clear feedback to the user, so that the user can clearly know whether the pedal needs to be repaired, reducing the time cost of detection and maintenance, and avoiding the user discovering that the pedal performance does not meet the standard after actually using the pedal, which affects the medical process.
[0019] Further, step S1 includes:
[0020] S11: After the pedal is connected, obtaining an initial ADC signal value of the pedal;
[0021] S12: comparing the initial ADC signal value with the fixed ADC signal value of the pedal directly connected device, and if the initial ADC signal value is greater than the fixed ADC signal value, issuing a second reminder message to remind the user that the pedal is connected;
[0022] S13: If the initial ADC signal value is less than or equal to the fixed ADC signal value, a third reminder message is issued to remind the user that the pedal is not connected.
[0023] The present application proposes a pedal direct connection detection method, which determines whether the pedal is successfully connected by obtaining the initial ADC signal value of the pedal after the pedal is connected, and comparing the initial ADC signal value with the fixed ADC signal value. The connection status of the pedal is effectively determined, and intuitive feedback is provided to the user through reminder information, thereby improving the accuracy of detection. The user can quickly determine whether the pedal interface needs maintenance based on the reminder information, thereby avoiding the discovery of poor contact of the pedal interface during actual use, which affects the medical process.
[0024] Further, step S2 includes:
[0025] S21: when the initial ADC signal value changes, collecting the ADC signal value of the pedal at every set time interval to obtain a plurality of ADC signal values;
[0026] S22: Perform median filtering on the multiple ADC signal values to obtain multiple processed real-time ADC signal values.
[0027] The present application proposes a pedal direct detection method, which periodically collects the pedal ADC signal value when the initial ADC signal value changes to ensure the stability of the collected ADC signal value. The collected ADC signal value is then subjected to median filtering to reduce the influence of noise and abnormal values, thereby obtaining a more stable and reliable real-time ADC signal value.
[0028] Furthermore, step S4 includes:
[0029] S5: Acquire the button pressing state of the pedal;
[0030] S6: when the button is in the pressed state, obtaining a corresponding real-time button voltage value;
[0031] S7: Determine whether the real-time button voltage value meets the standard button voltage value, and generate fourth reminder information according to the determination result to remind the user whether the button performance of the pedal meets the standard.
[0032] The present application proposes a pedal direct connection detection method, which detects whether the pedal button can be correctly identified and responded to by obtaining the button pressing status of the pedal. When it is detected that the button is pressed, the MCU control module will obtain the real-time button voltage value of the pedal at this time. By obtaining the real-time button voltage value, the response speed and voltage stability of the button can be evaluated to ensure that the button can provide an accurate signal when pressed; the obtained real-time button voltage value is evaluated and compared with the preset standard button voltage value to determine whether the button performance meets the requirements, such as voltage instability or response delay, etc., so as to generate corresponding reminder information to guide the user to perform corresponding inspections or repairs. This avoids the user discovering that the performance of the pedal button is poor after officially using the pedal, and then wasting time on repairs.
[0033] Further, step S7 includes:
[0034] S71: Obtain the pressing force value of the button;
[0035] S72: adjusting the determination range of the standard key voltage value according to the pressing force value to obtain an adjusted standard key voltage value;
[0036] S73: Determine whether the real-time button voltage value meets the adjusted standard button voltage value, and generate fourth reminder information according to the determination result to remind the user whether the button performance of the pedal meets the standard.
[0037] Furthermore, the MCU control module also includes a storage module, which is used to store different pedal models and their corresponding standard voltage values. Step S4 includes:
[0038] S41: extracting the signal characteristics of the pedal according to the multiple real-time ADC signal values;
[0039] S42: determining the model of the pedal according to the signal characteristics, and when the model of the pedal matches the model stored in the storage module, obtaining the corresponding standard voltage value of the pedal;
[0040] S43: Determine whether the voltage value meets the standard voltage value, and generate a first reminder message according to the determination result to remind the user whether the performance of the pedal meets the standard.
[0041] Furthermore, step S42 further includes:
[0042] S421: determining the model of the pedal according to the signal feature, and when the model of the pedal does not match the model stored in the storage module, establishing a prediction detection model according to the signal feature;
[0043] S422: Acquire actual ADC signal values under different pedaling degrees, and input different pedaling states into the prediction detection model to obtain predicted ADC signal values;
[0044] S423: Compare the actual ADC signal value with the predicted ADC signal value. If the error value between the actual ADC signal value and the predicted ADC signal value is less than or equal to the allowable error, use the voltage value corresponding to the predicted ADC signal value as the standard voltage value and store it in the storage module accordingly to update the storage module.
[0045] In a second aspect, the present application proposes a pedal direct connection detection device, the device comprising:
[0046] A first acquisition module: used for acquiring an initial ADC signal value of the pedal after the pedal is connected;
[0047] A second acquisition module: used for acquiring a plurality of real-time ADC signal values of the pedal when the initial ADC signal value changes;
[0048] A calculation module: used for calculating an average ADC signal value of a plurality of real-time ADC signal values, and performing analog-to-digital operation on the average ADC signal value to obtain a voltage value of the pedal;
[0049] The judgment module is used to judge whether the voltage value meets the standard voltage value, and generate a first reminder message according to the judgment result to remind the user whether the performance of the pedal meets the standard.
[0050] In a third aspect, the present application provides an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in any of the above methods are executed.
[0051] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in any of the above methods are executed.
[0052] Beneficial effects: The present application proposes a pedal direct connection detection method, device, electronic device and storage medium, which are applied to a pedal direct connection detection device. The pedal direct connection detection device includes an MCU control module as a core component, connected with a multi-hole connecting line, a display screen and an indicator light for receiving and processing pedal signals. The multi-hole connecting line provides a flexible connection method, allowing signal transmission between the pedal and the pedal direct connection detection device. The display screen and the indicator light are used to intuitively display the detection results to the user. After the pedal is connected, the initial ADC signal value of the pedal is obtained to capture the basic signal after the pedal is connected, so that the MCU control module can determine whether the pedal is connected normally; when the initial ADC signal value changes, multiple real-time ADC signal values of the pedal are obtained. Through real-time monitoring, the changes in the real-time ADC signal values corresponding to different states when the pedal is stepped on or the button is pressed can be more accurately captured, providing a more comprehensive data basis for performance testing; calculating the average ADC signal value of multiple real-time ADC signal values can reduce the random error of the real-time ADC signal value, and a specific voltage value can be obtained through mathematical operations, which is beneficial to performance testing; judging whether the voltage value meets the standard voltage value, and generating a first reminder message based on the judgment result to remind the user whether the pedal performance meets the standard, which is beneficial to providing clear feedback to the user, so that the user can clearly know whether the pedal needs to be repaired, reducing the time cost of detection and maintenance, and avoiding the user discovering that the pedal performance does not meet the standard after actually using the pedal, which affects the medical process. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 This is a flow chart of a pedal direct connection detection method proposed in this application.
[0054] Figure 2 This is a structural diagram of a pedal direct connection detection device proposed in this application.
[0055] Figure 3 A schematic diagram of the structure of the electronic device provided in this application.
[0056] Description of reference numerals: 201, first acquisition module; 202, second acquisition module; 203, calculation module; 204, judgment module; 301, processor; 302, memory; 303, communication bus; 3, electronic device. DETAILED DESCRIPTION
[0057] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application usually described and marked in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0058] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first, second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0059] The following disclosure provides many different implementations or examples for achieving the purpose of the present invention, which solves the problem in the prior art that the detection and maintenance of the foot pedal control device is very inconvenient, resulting in the foot pedal easily causing trouble to the medical process due to substandard performance during actual use.
[0060] Please refer to Figure 1 The present application provides a pedal direct connection detection method, which is applied to a pedal direct connection detection device, the pedal direct connection detection device includes an MCU control module, a multi-hole connecting line, a display screen and an indicator light, the multi-hole connecting line is used to connect the pedal, the MCU control module is used to obtain a pedal signal of the pedal through the multi-hole connecting line, and generate reminder information according to the pedal signal, and transmit the reminder information to the display screen and the indicator light to display it to the user, the method includes:
[0061] S1: After the pedal is connected, the initial ADC signal value of the pedal is obtained;
[0062] S2: when the initial ADC signal value changes, obtain multiple real-time ADC signal values of the pedal;
[0063] S3: Calculate the average ADC signal value of multiple real-time ADC signal values, and perform analog-to-digital operation on the average ADC signal value to obtain the voltage value of the pedal;
[0064] S4: Determine whether the voltage value meets the standard voltage value, and generate a first reminder message according to the determination result to remind the user whether the pedal performance meets the standard.
[0065] Among them, the pedal direct connection detection device is used to connect the pedal and detect the performance of the pedal to prevent unqualified pedals from flowing into the actual use process. The pedal direct connection detection device at least includes an MCU control module, a porous connection line, a display screen and an indicator light. In order to interact with the user more conveniently, the pedal direct connection detection device may also include a display interface. As the core component of the pedal direct connection detection device, the MCU control module is mainly responsible for processing and controlling the entire detection process. By setting the MCU control module to be connected with the porous connection line and the indicator light, the pedal signal transmitted by the pedal can be received from the porous connection line, and the performance of the pedal can be analyzed according to the pedal signal. Whether it is qualified, and the judgment result is reflected on the display screen and the indicator light display, for example, the display screen can output prompt words such as "pedal connected", "pedal not connected", etc., to directly show the user whether the pedal performance is qualified, and the pedal performance can also be reflected through the indicator light, specifically, if the pedal performance is qualified, the indicator light is green, and if the pedal performance is unqualified, the red light is on. Through this design, the pedal direct connection mechanism can intuitively display the test results to the user, improving the accuracy and convenience of the test, while also saving time and cost for deciding whether to return the product to the factory for repair.
[0066] Among them, in step S1, the pedal signal includes an initial ADC signal value, which refers to the ADC signal value of the pedal itself after the pedal is connected to the pedal direct connection detection device. The initial ADC signal value can be used as a reference point for detection to ensure that subsequent detections are all started from the initial state after the pedal is successfully connected, avoiding large subsequent detection errors caused by unsuccessful or poor connection of the pedal. By obtaining the initial ADC signal value, the performance changes of the pedal during use can be more accurately detected and evaluated.
[0067] Among them, the initial ADC signal value can be used to preliminarily determine whether there is a fault or abnormality in the connection part of the pedal. If the initial ADC signal value is abnormally low, it can be determined that the pedal connection is abnormal, so that the user is reminded that the pedal is not connected through the display screen and indicator light. The pedal may have a bad interface problem, and the user can decide whether to send the pedal for repair based on this. Specifically, step S1 includes:
[0068] S11: After the pedal is connected, the initial ADC signal value of the pedal is obtained;
[0069] S12: comparing the initial ADC signal with the fixed ADC signal value of the pedal directly connected device, and if the initial ADC signal value is greater than the fixed ADC signal value, sending a second reminder message to remind the user that the pedal is connected;
[0070] S13: If the initial ADC signal value is less than or equal to the fixed ADC signal value, a third reminder message is issued to remind the user that the pedal is not connected.
[0071] Among them, the fixed ADC signal value is the circuit signal of the pedal direct connection detection device itself. If the initial ADC signal value is greater than the fixed ADC signal value, it proves that the pedal is normally connected, and a second reminder message is issued, such as the indicator light turns green, indicating to the user that the pedal is connected and subsequent performance testing can be performed. If the initial ADC signal value is less than or equal to the fixed ADC signal value, it means that the pedal is not connected normally, and a third reminder message is issued, such as the indicator light turns red, indicating to the user that the pedal is not connected. In this way, it can be quickly and intuitively reflected whether there is a problem with the interface of the pedal, which not only improves the detection efficiency, but also improves the user experience, so that the user can perform corresponding processing on the pedal according to the test results before actually using the pedal, thereby saving maintenance time and cost and avoiding problems with the pedal during the medical process that affect the medical process.
[0072] Wherein, in step S2, the real-time ADC signal value refers to the pedal signal value continuously collected by the pedal direct connection detection device within a specific time, and the real-time ADC signal value reflects the actual state of the pedal at the time of collection. In the process of using the pedal, there will be a variety of different states, such as stepping on, releasing, pressing buttons, etc. The real-time ADC signal value can reflect the performance under these different states. By obtaining multiple real-time ADC signal values of the pedal in real time when the initial ADC signal value changes (that is, when the pedal is stepped on or the button is pressed after the pedal is connected), the performance of the pedal in actual use can be more accurately predicted, and any potential problems can be discovered in time. And obtaining multiple real-time ADC signal values is helpful to judge the stability of the pedal signal, and avoid obtaining special data that causes the pedal direct connection detection device to make a misjudgment.
[0073] Further, step S2 includes:
[0074] S21: when the initial ADC signal value changes, collecting the ADC signal value of the pedal at every set time interval to obtain multiple ADC signal values;
[0075] S22: Perform median filtering on the multiple ADC signal values to obtain multiple processed real-time ADC signal values.
[0076] Among them, when the initial ADC signal value changes, the set time period refers to the preset time interval during the acquisition process, and the time interval can be set according to the frequency of the pedal signal. For example, the highest frequency of the pedal being pressed or released is 100HZ. In order to be able to stably collect data without aliasing, a sampling frequency of 250HZ can be set, that is, a set time period of 4ms, and an ADC signal value is collected every 4ms. Collecting multiple ADC signal values helps to obtain more stable and accurate ADC signal values. Median filtering of multiple ADC signal values can reduce noise and abnormal values in the ADC signal values, improve the quality of the ADC signal values, and obtain more stable and reliable real-time ADC signal values, which helps to more accurately judge whether the pedaling performance is qualified.
[0077] Among them, in step S3, by calculating the average value of multiple real-time ADC signal values, the influence of random noise can be reduced and the stability of the real-time ADC signal value can be improved. The formula for analog-to-digital operation is:
[0078] ,in, is the voltage value to be output, is the average ADC signal value (from 0 to , N is the number of bits of the average ADC signal value), is the reference voltage used for the average ADC signal value, It is the total number of quantization levels of the average ADC signal value. Through this formula, the average ADC signal value can be converted into a voltage value output, so that the MCU control module can determine whether the voltage value meets the standard voltage value, thereby determining whether the performance of the pedal is qualified.
[0079] Among them, in step S4, by comparing the voltage value with the standard voltage value, it can be evaluated whether the performance of the pedal meets expectations. If the voltage value exceeds the range of the standard voltage value, it may indicate that there is a problem with the pedal, such as poor pedaling or poor buttoning. Specifically, the standard voltage value for normal pedaling can be 3V to 3.3V, and the range of the standard voltage value can also be other parameters. The corresponding standard voltage value can be set according to different models of pedals and different functions of the test. Among them, the voltage value can also be judged by obtaining the degree of pedaling. Different pedaling degrees correspond to different voltage values. The pedaling degree of the pedal can be determined by the stroke of the spring contraction of the pedal, and the pedaling degree is truthfully reflected on the display screen, such as: pedaling degree 30%, pedaling degree 50%, pedaling degree 100%, etc. By obtaining the voltage value of the pedal under different pedaling degrees, the pedaling data can be better sampled, and the subsequent judgment of the pedaling performance will be more accurate. After the MCU control module makes a judgment based on the data, it generates a first reminder message and displays the performance status of the pedal to the user through an indicator light, so that the user can understand and take corresponding measures in time.
[0080] Furthermore, the MCU control module also includes a storage module, which is used to store different pedal models and their corresponding standard voltage values. Step S4 includes:
[0081] S41: extracting a signal feature of a pedal according to a plurality of real-time ADC signal values;
[0082] S42: determining the model of the pedal according to the signal characteristics, and when the model of the pedal matches the model stored in the storage module, obtaining the corresponding standard voltage value of the pedal;
[0083] S43: Determine whether the voltage value meets the standard voltage value, and generate a first reminder message according to the determination result to remind the user whether the pedaling performance meets the standard.
[0084] Among them, the storage module can store a large amount of pedal data, which is the basis for pedal detection. Among them, the signal characteristics include but are not limited to the voltage value change law after the ADC signal value is converted into a voltage value, and the voltage value range, etc. The model of the pedal can be determined according to the signal characteristics. For example, in the storage module, there is a database storing the key characteristics of pedal signals of different models. If the signal characteristics can match the key characteristics stored in the database, it means that the pedal is a pedal stored in the database, and then the pedal signal can be queried from the database, and the corresponding standard voltage value of the pedal can be obtained, and then it can be judged whether the voltage value meets the standard voltage value, and the first reminder information is generated according to the judgment result to remind the user whether the performance of the pedal meets the standard. By setting the storage module to store different models of pedals and the standard voltage values corresponding to different models of pedals, the pedal direct connection detection device can adapt to the detection of pedals of different models, and has good versatility and expansibility.
[0085] Furthermore, step S42 further includes:
[0086] S421: determining the model of the pedal according to the signal characteristics, and when the model of the pedal does not match the model stored in the storage module, establishing a prediction detection model according to the signal characteristics;
[0087] S422: Acquire actual ADC signal values under different pedaling degrees, and input different pedaling states into a prediction detection model to obtain predicted ADC signal values;
[0088] S423: Compare the actual ADC signal value with the predicted ADC signal value. If the error between the actual ADC signal value and the predicted ADC signal value is less than or equal to the allowable error, the voltage value corresponding to the predicted ADC signal value is used as the standard voltage value and stored in the storage module accordingly to update the storage module.
[0089] Among them, the signal characteristics include but are not limited to the voltage value change law after the ADC signal value is converted into a voltage value, and the voltage value range, etc. The predictive detection model is a mathematical or statistical model used to predict the performance of the pedal based on the known input signal characteristics, such as the ADC signal value. The predictive detection model can help the pedal direct-connected device predict the performance of the pedal under different pedaling degrees without storing the standard voltage value of the pedal currently being detected. Generally, when there is a quality problem with the pedal, the ADC signal value obtained when stepping on the pedal or pressing the button is usually very high or very low, and the data is irregular and difficult to predict. Therefore, if the actual detected result and the predicted result are within the allowable error range, it means that the detection data of the pedal is stable.
[0090] Among them, when the model of the pedal does not match the known model, the process of establishing the prediction detection model is started, and a prediction detection model is established using the signal characteristics to analyze and predict the performance of the unknown model pedal. By comparing the actual ADC signal value with the predicted ADC signal value, the accuracy of the model is evaluated, and the error between the actual signal and the predicted signal is evaluated to determine whether it is within an acceptable range. If the error is within the allowable range, the voltage value and the relevant data of the custom (or unknown) pedal model are stored in the storage module, and the storage module is updated so that the MCU control module can determine whether the performance of the current unknown model pedal or the user-defined pedal is qualified. If the error exceeds the allowable range, it means that the voltage value of the new model pedal or the user-defined pedal is unstable, and the indicator light can be used to show the user that the pedal performance is unqualified.
[0091] Furthermore, after step S4, the method further comprises:
[0092] S5: Get the button pressing status of the pedal;
[0093] S6: When the button pressing state is pressed, obtain the corresponding real-time button voltage value;
[0094] S7: Determine whether the real-time button voltage value meets the standard button voltage value, and generate fourth reminder information according to the determination result to remind the user whether the button performance of the pedal meets the standard.
[0095] Wherein, the pedal state at least includes the button pressing state, and specifically, the button pressing state includes button pressing and button not pressing. The button pressing state can be displayed to the user by the display screen. When the button pressing state is that the button is pressed, the corresponding real-time button voltage value is obtained, which can be obtained by a specific ADC chip. The ADC chip is connected to the MCU control module, and the real-time ADC signal value of the button can be obtained, and then the real-time ADC signal value of the button is transmitted to the MCU control module for analog-to-digital conversion to obtain the real-time button voltage value. Wherein, the judgment of the real-time button voltage value can be realized by a judgment module set in the MCU control module, the judgment module is connected to the storage module, and the storage module stores the standard button voltage value. By calling the standard button voltage value and comparing it with the real-time button voltage value, the fourth reminder information is generated, such as the display screen displays "button performance is qualified", and the corresponding indicator light indicating the button pressing state is green; "button performance is unqualified", the corresponding indicator light indicating the button pressing state is red, so that it can be intuitively displayed to the user whether the button performance is up to standard, thereby avoiding the user to find that the performance of the pedal button is poor after the formal use of the pedal, and then return it for repair. It is a waste of time.
[0096] Further, step S7 includes:
[0097] S71: Obtain the pressing force value of the button;
[0098] S72: adjusting the determination range of the standard key voltage value according to the pressing force value to obtain an adjusted standard key voltage value;
[0099] S73: Determine whether the real-time key voltage value meets the adjusted standard key voltage value, and generate fourth reminder information according to the determination result to remind the user whether the key performance of the pedal meets the standard.
[0100] Among them, in actual applications, the determination of key performance usually uses a fixed standard key voltage value range, such as 2.2V to 3V. However, different users may apply different pressing forces, which may lead to inaccurate determination results. For example, a user who presses lightly may be misjudged as having substandard key performance, while a user who presses too hard may cover up potential problems with the key. Therefore, in order to solve this problem, the pressing force value of the key can be obtained, wherein the pressing force value of the key can be obtained according to the stroke of the key travel switch being pressed down, or the key can be connected to a specific ADC chip, and the user presses the key with different forces to obtain different key pressure ADC signal detection values, and calculates the voltage values corresponding to different key pressure ADC signal detection values through analog-to-digital operations, wherein different key pressure ADC signal detection values represent the pressing force values of the key, and different pressing force values correspond to their own voltage values, and the user can formulate the corresponding relationship into a key pressing force custom table stored in the storage module, which can be called at any time when needed. The key pressure ADC signal detection value is used to represent the pressing force value, and the data obtained is more accurate.
[0101] Among them, the judgment range of the standard key voltage value is adjusted according to the pressing force value to obtain the adjusted standard key voltage value, which provides a fairer evaluation standard for users with different strength habits and reduces the misjudgment caused by different user operation habits. For example, if the pressing force value of the button is 0.3, it means that the pressing degree of the button is 30% of the normal pressing, and the pressing degree is relatively low. The voltage value calculated according to the modulus operation or actually obtained by the voltage detection device is 2V, which does not meet the judgment standard of the standard key voltage value of 2.2V to 3V, and therefore, it is easy to make a misjudgment. When the voltage value of the button normally triggered under the pressing force value is 2V, the range of the standard key voltage value can be adjusted according to the pressing force value, and the adjusted standard key voltage value is between 2V and 3V, thereby generating a fourth reminder message according to the dynamically adjusted standard key voltage value to remind the user that the performance of the pedal button meets the standard and avoid misjudgment.
[0102] From the above, it can be seen that a pedal direct connection detection method proposed in this application is applied to a pedal direct connection detection device. The pedal direct connection detection device includes an MCU control module as a core component, connected with a multi-hole connecting line, a display screen and an indicator light for receiving and processing pedal signals. The multi-hole connecting line provides a flexible connection method, allowing signal transmission between the pedal and the pedal direct connection detection device. The display screen and the indicator light are used to intuitively display the detection results to the user. After the pedal is connected, the initial ADC signal value of the pedal is obtained to capture the basic signal after the pedal is connected, so that the MCU control module can determine whether the pedal is connected normally; when the initial ADC signal value changes, multiple real-time ADC signal values of the pedal are obtained. Through real-time monitoring, the changes in the real-time ADC signal values corresponding to different states when the pedal is stepped on or the button is pressed can be more accurately captured, providing a more comprehensive data basis for performance testing; calculating the average ADC signal value of multiple real-time ADC signal values can reduce the random error of the real-time ADC signal value, and a specific voltage value can be obtained through mathematical operations, which is beneficial to performance testing; judging whether the voltage value meets the standard voltage value, and generating a first reminder message based on the judgment result to remind the user whether the pedal performance meets the standard, which is beneficial to providing clear feedback to the user, so that the user can clearly know whether the pedal needs to be repaired, reducing the time cost of detection and maintenance, and avoiding the user discovering that the pedal performance does not meet the standard after actually using the pedal, which affects the medical process.
[0103] Please refer to Figure 2 , the present application proposes a pedal direct connection detection device, the device comprising:
[0104] The first acquisition module 201 is used to acquire the initial ADC signal value of the pedal after the pedal is connected;
[0105] The second acquisition module 202 is used to acquire multiple real-time ADC signal values of the pedal when the initial ADC signal value changes;
[0106] Calculation module 203: used to calculate the average ADC signal value of multiple real-time ADC signal values, and perform analog-to-digital operation on the average ADC signal value to obtain the pedal voltage value;
[0107] The judgment module 204 is used to judge whether the voltage value meets the standard voltage value, and generate a first reminder message according to the judgment result to remind the user whether the pedaling performance meets the standard.
[0108] Among them, the first acquisition module 201 can be an ADC chip, which is responsible for converting analog signals into digital signals to obtain initial ADC signal values, or the first acquisition module 201 can also be an ADC signal value acquisition unit provided in the MCU control module. When the first acquisition module 201 is an ADC chip, the ADC chip is connected to the MCU control module and transmits the acquired ADC signal value to the MCU control module; the second acquisition module 202 can include an ADC chip, a timer and a processor. When a change in the initial ADC signal value is detected, the processor controls the timer and the ADC chip to collect multiple real-time ADC signal values. Similarly, the second acquisition module 202 can also include an ADC signal value acquisition unit provided in the MCU control module. When the ADC chip is used to obtain the real-time ADC signal value, the ADC chip is connected to the MCU control module, so that the ADC chip transmits the real-time ADC signal value to the MCU control module for the next step of calculation; the calculation module 203 can be a processor, and the processor calculates the voltage value of the pedal through a digital signal processing algorithm, an average value algorithm, and an analog-to-digital conversion algorithm; the judgment module 204 can be a processor, which generates a first reminder message corresponding to the judgment result through a threshold comparison algorithm and a decision logic, and feeds it back to the user through an indicator light.
[0109] Among them, the pedal signal includes the initial ADC signal value, which refers to the ADC signal value of the pedal itself after the pedal is connected to the pedal direct connection detection device. The initial ADC signal value can be used as a reference point for detection to ensure that subsequent detections start from the initial state after the pedal is successfully connected, avoiding large errors in subsequent detections due to unsuccessful or poor connection of the pedal. By obtaining the initial ADC signal value, the performance changes of the pedal during use can be more accurately detected and evaluated.
[0110] The initial ADC signal value can be used to preliminarily determine whether there is a fault or abnormality in the connection of the pedal. If the initial ADC signal value is abnormally low, it can be determined that the pedal connection is abnormal, so that the user is reminded of the pedal not being connected through the display screen and indicator light. The pedal may have a bad interface problem, and the user can decide whether to send the pedal for repair based on this.
[0111] Among them, the real-time ADC signal value refers to the pedal signal value continuously collected by the pedal direct detection device within a specific time, and the real-time ADC signal value reflects the actual state of the pedal at the time of collection. In the process of using the pedal, there will be a variety of different states, such as stepping on, releasing, button pressing, etc. The real-time ADC signal value can reflect the performance under these different states. By obtaining multiple real-time ADC signal values of the pedal in real time when the initial ADC signal value changes, the performance of the pedal in actual use can be more accurately predicted, and any potential problems can be discovered in time. In addition, obtaining multiple real-time ADC signal values helps to determine the stability of the pedal signal and avoid misjudgment of the pedal direct detection device due to the acquisition of special data.
[0112] Among them, when the initial ADC signal value changes, the set time period refers to the preset time interval during the acquisition process, and the time interval can be set according to the frequency of the pedal signal. For example, the highest frequency of the pedal being pressed or released is 100HZ. In order to be able to stably collect data without aliasing, a sampling frequency of 250HZ can be set, that is, a set time period of 4ms, and an ADC signal value is collected every 4ms. Collecting multiple ADC signal values helps to obtain more stable and accurate ADC signal values. Median filtering of multiple ADC signal values can reduce noise and abnormal values in the ADC signal values, improve the quality of the ADC signal values, and obtain more stable and reliable real-time ADC signal values, which helps to more accurately judge whether the pedaling performance is qualified.
[0113] Among them, by calculating the average value of multiple real-time ADC signal values, the influence of random noise can be reduced and the stability of the real-time ADC signal value can be improved. The formula for analog-to-digital operation is:
[0114] ,in, is the voltage value to be output, is the average ADC signal value (from 0 to , N is the number of bits of the average ADC signal value), is the reference voltage used for the average ADC signal value, It is the total number of quantization levels of the average ADC signal value. Through this formula, the average ADC signal value can be converted into a voltage value output, so that the MCU control module can determine whether the voltage value meets the standard voltage value, thereby determining whether the performance of the pedal is qualified.
[0115] Among them, by comparing the voltage value with the standard voltage value, it is possible to evaluate whether the performance of the pedal meets expectations. If the voltage value exceeds the range of the standard voltage value, it may indicate that there is a problem with the pedal, such as poor pedaling or poor buttoning. Specifically, the standard voltage value for normal pedaling can be 3V to 3.3V, and the range of the standard voltage value can also be other parameters. The corresponding standard voltage value can be set according to different models of pedals and different functions of the test. Among them, different pedaling degrees correspond to different voltage values. The pedaling degree of the pedal can be determined by the contraction stroke of the pedal spring, and the pedaling degree is truthfully reflected on the display screen, such as: pedaling degree 30%, pedaling degree 50%, pedaling degree 100%, etc. By obtaining the voltage value of the pedal under different pedaling degrees, the pedaling data can be better sampled, and the subsequent judgment of the pedaling performance will be more accurate. After the MCU control module makes a judgment based on the data, it generates a first reminder message, and displays the performance status of the pedal to the user through the indicator light, so that the user can understand and take corresponding measures in time.
[0116] Wherein, the pedal state at least includes the button pressing state, and specifically, the button pressing state includes button pressing and button not pressing. The button pressing state can be displayed to the user by the display screen. When the button pressing state is button pressing, the corresponding real-time button voltage value is obtained, which can be obtained by a specific ADC chip. The ADC chip is connected to the MCU control module, and the real-time ADC signal value of the button can be obtained, and then the real-time ADC signal value of the button is transmitted to the MCU control module for analog-to-digital conversion to obtain the real-time button voltage value. Wherein, the judgment of the real-time button voltage value can be realized by a judgment module set in the MCU control module, the judgment module is connected to the storage module, and the storage module stores the standard button voltage value. By calling the standard button voltage value and comparing it with the real-time button voltage value, the fourth reminder information is generated, such as the display screen displays "button performance is qualified", and the corresponding indicator light indicating the button pressing state is green; "button performance is unqualified", the corresponding indicator light indicating the button pressing state is red, so that it can be intuitively displayed to the user whether the button performance is up to standard, thereby avoiding the user to find that the performance of the pedal button is poor after the formal use of the pedal, and then return it for repair. It is a waste of time.
[0117] From the above, it can be seen that a pedal direct connection detection device proposed in this application is applied to a pedal direct connection detection device. The pedal direct connection detection device includes an MCU control module as a core component, connected with a multi-hole connecting line, a display screen and an indicator light for receiving and processing pedal signals. The multi-hole connecting line provides a flexible connection method, allowing signal transmission between the pedal and the pedal direct connection detection device. The display screen and the indicator light are used to intuitively display the detection results to the user. After the pedal is connected, the initial ADC signal value of the pedal is obtained to capture the basic signal after the pedal is connected, so that the MCU control module can determine whether the pedal is connected normally; when the initial ADC signal value changes, multiple real-time ADC signal values of the pedal are obtained. Through real-time monitoring, the changes in the real-time ADC signal values corresponding to different states when the pedal is stepped on or the button is pressed can be more accurately captured, providing a more comprehensive data basis for performance testing; calculating the average ADC signal value of multiple real-time ADC signal values can reduce the random error of the real-time ADC signal value, and a specific voltage value can be obtained through mathematical operations, which is beneficial to performance testing; judging whether the voltage value meets the standard voltage value, and generating a first reminder message based on the judgment result to remind the user whether the pedal performance meets the standard, which is beneficial to providing clear feedback to the user, so that the user can clearly know whether the pedal needs to be repaired, reducing the time cost of detection and maintenance, and avoiding the user discovering that the pedal performance does not meet the standard after actually using the pedal, which affects the medical process.
[0118] Please refer to Figure 3 , Figure 3 This is a structural schematic diagram of an electronic device provided in an embodiment of the present application. The present application provides an electronic device 3, including: a processor 301 and a memory 302. The processor 301 and the memory 302 are interconnected and communicate with each other through a communication bus 303 and / or other forms of connection mechanisms (not shown). The memory 302 stores computer-readable instructions executable by the processor 301. When the electronic device is running, the processor 301 executes the computer-readable instructions to execute the method in any optional implementation of the above embodiment to achieve the following functions: after connecting the pedal, obtain an initial ADC signal value of the pedal; when the initial ADC signal value changes, obtain multiple real-time ADC signal values of the pedal; calculate the average ADC signal value of the multiple real-time ADC signal values, and perform analog-to-digital operation on the average ADC signal value to obtain a voltage value of the pedal; determine whether the voltage value meets the standard voltage value, and generate a first reminder message based on the determination result to remind the user whether the performance of the pedal meets the standard.
[0119] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: after connecting the pedal, obtaining an initial ADC signal value of the pedal; when the initial ADC signal value changes, obtaining multiple real-time ADC signal values of the pedal; calculating the average ADC signal value of the multiple real-time ADC signal values, and performing analog-to-digital operation on the average ADC signal value to obtain a voltage value of the pedal; judging whether the voltage value meets the standard voltage value, and generating a first reminder message based on the judgment result to remind the user whether the performance of the pedal meets the standard.
[0120] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0121] In addition, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0122] Furthermore, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0123] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0124] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A pedal direct connection detection method, characterized in that: The method is applied to a pedal direct connection detection device, which includes an MCU control module, a multi-hole connecting line, a display screen, and an indicator light. The multi-hole connecting line is used to connect the pedal, and the MCU control module is used to obtain a pedal signal of the pedal through the multi-hole connecting line, and generate reminder information according to the pedal signal, and transmit the reminder information to the display screen and the indicator light to display it to the user. The method includes: S1: After the pedal is connected, an initial ADC signal value of the pedal is obtained; S2: when the initial ADC signal value changes, obtaining multiple real-time ADC signal values of the pedal; S3: Calculate an average ADC signal value of the multiple real-time ADC signal values, and perform analog-to-digital operation on the average ADC signal value to obtain the voltage value of the pedal; S4: judging whether the voltage value meets the standard voltage value, and generating a first reminder message according to the judgment result to remind the user whether the performance of the pedal meets the standard; Step S4 includes: S5: Acquire the button pressing state of the pedal; S6: when the button is in the pressed state, obtaining a corresponding real-time button voltage value; S7: judging whether the real-time key voltage value meets the standard key voltage value, and generating fourth reminder information according to the judgment result to remind the user whether the key performance of the pedal meets the standard; Step S7 includes: S71: Obtain the pressing force value of the button; S72: adjusting the determination range of the standard key voltage value according to the pressing force value to obtain an adjusted standard key voltage value; S73: Determine whether the real-time button voltage value meets the adjusted standard button voltage value, and generate fourth reminder information according to the determination result to remind the user whether the button performance of the pedal meets the standard.
2. A pedal direct connection detection method according to claim 1, characterized in that: Step S1 includes: S11: After the pedal is connected, obtaining an initial ADC signal value of the pedal; S12: comparing the initial ADC signal value with the fixed ADC signal value of the pedal directly connected device, and if the initial ADC signal value is greater than the fixed ADC signal value, issuing a second reminder message to remind the user that the pedal is connected; S13: If the initial ADC signal value is less than or equal to the fixed ADC signal value, a third reminder message is issued to remind the user that the pedal is not connected.
3. A pedal direct connection detection method according to claim 2, characterized in that: Step S2 includes: S21: when the initial ADC signal value changes, collecting the ADC signal value of the pedal at every set time interval to obtain a plurality of ADC signal values; S22: Perform median filtering on the multiple ADC signal values to obtain multiple processed real-time ADC signal values.
4. A pedal direct connection detection method according to claim 1, characterized in that: The MCU control module also includes a storage module, which is used to store different pedal models and their corresponding standard voltage values. Step S4 includes: S41: extracting the signal characteristics of the pedal according to the multiple real-time ADC signal values; S42: determining the model of the pedal according to the signal characteristics, and when the model of the pedal matches the model stored in the storage module, obtaining the corresponding standard voltage value of the pedal; S43: Determine whether the voltage value meets the standard voltage value, and generate a first reminder message according to the determination result to remind the user whether the performance of the pedal meets the standard.
5. A pedal direct connection detection method according to claim 4, characterized in that: Step S42 also includes: S421: determining the model of the pedal according to the signal feature, and when the model of the pedal does not match the model stored in the storage module, establishing a prediction detection model according to the signal feature; S422: Acquire actual ADC signal values under different pedaling degrees, and input different pedaling states into the prediction detection model to obtain predicted ADC signal values; S423: Compare the actual ADC signal value with the predicted ADC signal value. If the error value between the actual ADC signal value and the predicted ADC signal value is less than or equal to the allowable error, use the voltage value corresponding to the predicted ADC signal value as the standard voltage value and store it in the storage module accordingly to update the storage module.
6. A pedal direct connection detection device, characterized in that: The device runs the steps in any one of the methods described in claims 1 to 5, and the device comprises: A first acquisition module: used for acquiring an initial ADC signal value of the pedal after the pedal is connected; A second acquisition module: used for acquiring a plurality of real-time ADC signal values of the pedal when the initial ADC signal value changes; A calculation module: used for calculating an average ADC signal value of a plurality of real-time ADC signal values, and performing analog-to-digital operation on the average ADC signal value to obtain a voltage value of the pedal; The judgment module is used to judge whether the voltage value meets the standard voltage value, and generate a first reminder message according to the judgment result to remind the user whether the performance of the pedal meets the standard.
7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 5 are executed.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are executed.
Citation Information
Patent Citations
Acceleration control method and device, vehicle and storage medium
CN112721629A
Tool for detecting performance of signal control wiring harness of electric wheelchair pedal assembly
CN209264874U
