Body forward flexion tester based on photoelectric encoder and electromagnet reset
By using photoelectric encoder and electromagnet reset module in the body forward bending tester, the shortcomings of traditional test instruments in displacement data recording, automatic reset and data display are solved, and high-precision and high-efficiency test results are achieved.
Patent Information
- Application Number
- CN202510162758.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-14
- Publication Date
- 2025-06-06
AI Technical Summary
Traditional mechanical forward bending testing instruments cannot record the slider displacement data in real time and accurately, lack the automatic reset function of the slider, and the test data recording and display method are single, resulting in low efficiency and accuracy.
The body forward bending tester based on photoelectric encoder and electromagnet reset is adopted to detect the displacement data of the slider in real time through the photoelectric encoder, and the slider is automatically reset by using the electromagnet and limit switch. At the same time, the test results are displayed in real time using the OLED screen.
It realizes high-precision displacement data detection and automatic reset, improves testing efficiency and accuracy, and meets the requirements of modern testing for data accuracy and efficiency.
Smart Images

Figure CN120093281A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of sports testing equipment, and in particular to a forward flexion tester based on a photoelectric encoder and an electromagnet reset. Background Art
[0002] The sit-and-reach test is an important indicator for measuring human flexibility and is widely used in school physical tests and health assessments. The sit-and-reach test is a required item in the National Student Physical Fitness Standards, and its purpose is to test students' physical flexibility. The sit-and-reach test is designed to assess the range of motion of the test subject's trunk, waist and hip joints, so as to reflect the individual's joint flexibility, ligament and muscle stretching performance and overall body flexibility level in these key parts. It is a key indicator for measuring physical fitness.
[0003] At present, most of the forward flexion test instruments on the market are mechanical, which have the following problems:
[0004] 1. The test accuracy is low, and the displacement data of the slider cannot be recorded in real time and accurately;
[0005] 2. Lack of automatic reset function of the slider, low test efficiency;
[0006] 3. The test data recording and display method is single, and the data needs to be manually inspected and then imported into the system, which cannot meet the needs of modern testing. Summary of the invention
[0007] The technical problem to be solved by the present invention is to provide a forward flexion tester based on a photoelectric encoder and an electromagnet reset, so as to solve the problems that traditional mechanical forward flexion testers are unable to record the displacement data of the slider in real time and accurately, lack the automatic reset function of the slider, and have a single test data recording and display method, and need to manually detect the data and then import it into the system, resulting in low efficiency and precision.
[0008] The present invention is achieved in that:
[0009] A forward flexion tester based on a photoelectric encoder and an electromagnet reset comprises a tester housing, a photoelectric encoder, a control module, a reset module, a display module and a power module;
[0010] The photoelectric encoder, reset module and display module are arranged on the surface of the tester housing, and the control module and power supply module are arranged inside the tester housing;
[0011] The surface of the tester housing is provided with a slide rail, and the slide rail includes an initial position and an end position;
[0012] The slide rail is provided with a slider, and the photoelectric encoder is connected to the slider and moves with the slider;
[0013] The control module is connected to the photoelectric encoder, and the control module reads the signal output by the photoelectric encoder, obtains the motion trajectory of the slider and calculates the displacement value;
[0014] The reset module is arranged at the initial position of the slide rail, and the reset module is electrically connected to the control module;
[0015] The reset module includes an electromagnet and a limit switch. The electromagnet generates suction when it is energized to force the slider back to its initial position. The limit switch is used to detect whether the slider has returned to its initial position. When the limit switch detects that the slider has returned to its initial position, the control module turns off the current of the electromagnet.
[0016] The display module is electrically connected to the control module, and the display module is used to display the real-time displacement data of the slider and the final test result;
[0017] The final test result is the farthest displacement data before the slider returns to its original position;
[0018] The power supply module is used to provide power to the entire tester.
[0019] Furthermore, the control module reads the signal output by the photoelectric encoder by interruption or timed sampling;
[0020] The interruption mode is specifically as follows: when the photoelectric encoder moves with the slider, the A / B phase signal changes, and when the control module detects these changes, it triggers an interruption, and then reads the real-time displacement data provided by the photoelectric encoder;
[0021] The timed sampling method is specifically as follows: the control module triggers a reading operation at regular intervals to read the real-time displacement data of the photoelectric encoder.
[0022] Furthermore, the control module adopts an ESP32 controller.
[0023] Furthermore, the power supply module includes a 12V voltage and a 5V voltage, the 12V voltage is used to power the electromagnet to generate suction, and the 5V voltage is used to power the control module and the display module.
[0024] Furthermore, the display module adopts an OLED screen; the display module includes an I2C interface, and the display module is electrically connected to the control module via the I2C interface.
[0025] Furthermore, it also includes a wireless communication function module, which is arranged in the tester housing and is used for data uploading and remote monitoring.
[0026] Furthermore, it also includes a driver, which is arranged in the tester housing, and the driver is electrically connected to the control module and the electromagnet. The control module sends power-on and power-off control signals to the electromagnet through the driver.
[0027] The present invention has the following advantages:
[0028] 1. High precision: The displacement data of the slider is detected in real time through the photoelectric encoder, with high precision and fast response.
[0029] 2. Automation: The electromagnet and limit switch work together to achieve automatic reset of the slider after the test is completed, improving operational efficiency.
[0030] 3. Electronic display: The test results are displayed in real time on the OLED screen, supporting electronic recording and analysis, facilitating data recording and long-term tracking.
[0031] 4. Modular design: Each functional module is independent, easy to replace, maintain and upgrade; wireless communication or data storage functions can be expanded according to needs.
[0032] The present invention achieves high-precision detection of slider displacement and automatic reset after the test by cleverly combining photoelectric encoders with electromagnets, limit switches and other components. The test results are displayed in real time on an OLED screen, meeting the requirements of modern sports testing for data accuracy and efficiency, and can be further upgraded or expanded according to actual application needs. The invention has good application prospects and promotion value in the fields of school sports testing, rehabilitation training and health assessment. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0034] Figure 1 It is a schematic diagram of the structure of the device of the present invention.
[0035] Figure 2 Schematic diagram of electrical connection of the device of the present invention. DETAILED DESCRIPTION
[0036] The present application provides a forward flexion tester based on a photoelectric encoder and an electromagnet reset to solve the problems of low efficiency and precision caused by the inability of traditional mechanical forward flexion testers to record the displacement data of a slider in real time and accurately, the lack of an automatic reset function for the slider, and a single test data recording and display method and the need to manually detect the data before importing it into the system.
[0037] Embodiment 1
[0038] like Figure 1As shown, a forward flexion tester based on a photoelectric encoder and an electromagnet reset comprises a tester housing 1, a photoelectric encoder 2, a control module 3, a reset module 4, a display module 5 and a power module 6;
[0039] The photoelectric encoder 2, the reset module 4, and the display module 5 are arranged on the surface of the tester housing 1, and the control module 3 and the power module 6 are arranged inside the tester housing 1;
[0040] The surface of the tester housing 1 is provided with a slide rail 7, and the slide rail 7 includes an initial position 701 and an end position 702;
[0041] The slide rail 7 is provided with a slider 8, and the photoelectric encoder 2 is connected to the slider 8 and moves along with the slider 8. The tester pushes the slider 8 to perform the forward flexion test. The photoelectric encoder 2 is used to accurately sense the displacement data of the slider 8 and transmit the data to the control module 3;
[0042] The control module 3 uses an ESP32 controller and is connected to the photoelectric encoder 2; the control module 3 reads the signal output by the photoelectric encoder 2 by interruption or timed sampling, obtains the motion trajectory of the slider 8 and calculates the displacement value; the A / B phase signal output by the photoelectric encoder 2 is connected to the GPIO pin of the control module 3; the high resolution of the photoelectric encoder 2 can ensure the measurement accuracy;
[0043] The interruption mode is specifically as follows: when the photoelectric encoder 2 moves with the slider 8, the A / B phase signal changes, and the control module 3 triggers an interrupt when detecting these changes, and then reads the real-time displacement data provided by the photoelectric encoder 2;
[0044] The timing sampling method is specifically as follows: the control module 3 is provided with a timer (not shown in the figure), and the timer periodically reads the real-time displacement data of the photoelectric encoder 2;
[0045] The reset module 4 is arranged at the initial position 701 of the slide rail 7, and the reset module 4 is electrically connected to the control module 3;
[0046] It also includes a driver 9 (or MOSFET), which is arranged in the tester housing 1, and the driver 9 is electrically connected to the control module 3 and the electromagnet 401;
[0047] The reset module 4 includes an electromagnet 401 and a limit switch 402. The electromagnet 401 generates suction when it is energized to force the slider 8 to return to the initial position. The limit switch 402 is used to detect whether the slider 8 has returned to the initial position 701 to prevent the electromagnet 401 from being energized for a long time.
[0048] When the limit switch 402 detects that the slider 8 returns to the initial position 701, the control module 3 sends a control signal to turn off the current to the electromagnet 401 through the driver 9 to achieve automatic resetting;
[0049] By setting a reasonable suction force of the electromagnet 401 and the structure of the slider 8, the impact generated during resetting can be avoided;
[0050] The display module 5 uses an OLED screen and includes an I2C interface 501. The display module 5 is electrically connected to the control module 3 via the I2C interface 501. The display module 5 is used to display the real-time displacement data of the slider 8 and the final test results in real time, which is convenient for recording and analysis. The operator can easily view the tester's forward bending distance, test time and other information;
[0051] The final test result is the farthest displacement data before the slider 8 returns to its original position. After the control module 3 detects that the slider 8 stops moving, it issues an instruction to display the farthest displacement data on the display module 5 as the final test result of this test;
[0052] The power module 6 is used to provide a stable DC power supply to the entire tester, including a 12V voltage and a 5V voltage; the 12V voltage is used to power the electromagnet 401 to generate suction, and the 5V voltage is used to power the control module 3 and the display module 5;
[0053] If necessary, filter capacitors and voltage stabilizing elements can be added to the input and output ends of the power module 6 to ensure system stability;
[0054] It also includes a wireless communication function module 10 (such as wifi or bluetooth), which is arranged in the tester housing 1 and is controlled by the control module 3 for data uploading and remote monitoring.
[0055] The circuit connection between the control module 3 and the display module 5, and the interactive relationship between the control module 3 and the display module 5, the driver 9 and the electromagnet 401 are as follows: Figure 2 As shown:
[0056] The controller 3 adopts ESP32, and the GPIO pin of the controller 3 receives the A / B phase signal output by the photoelectric encoder 2;
[0057] When the limit switch 402 detects that the slider 8 returns to the initial position 701, the control module 3 outputs a control signal of closing the current to the electromagnet 401 through the driver 9 (or MOSFET), thereby achieving automatic resetting;
[0058] The display module 5 receives and displays the data transmitted by the control module 3 through the I2C interface 50 , and the display module is powered on by the power module 6 .
[0059] The working principle and working process of the present invention are:
[0060] The tester starts to perform the forward flexion test, pushing the slider 8 from the initial position 701 toward the end position, and the photoelectric encoder 2 connected to the slider 8 also moves accordingly, accurately sensing the displacement data of the slider 8, and outputting an A / B phase signal connected to the GPIO pin of the control module 3;
[0061] The control module 3 reads the A / B phase signal output by the photoelectric encoder 2 by interruption, or collects it regularly, and calculates the displacement value, and displays the current displacement value of the tester on the display module 5 in real time; after sensing that the tester has completed the test, the control module 3 issues an instruction to display the tester's farthest displacement data on the display module 5 as the final test result of this test;
[0062] After the test is finished, the control module 3 detects that the slider 8 stops moving, and sends a power-on control signal to the electromagnet 401 through the driver 9. The power module 6 generates a 12V DC power supply to the electromagnet, so that the electromagnet 401 is powered to generate a magnetic attraction to the slider 8. The slider 8 is affected by the attraction of the powered electromagnet 401 and returns to the initial position 701. The limit switch 402 detects that the slider 8 returns to its original position. The control module 3 sends a control signal to turn off the current to the electromagnet 401 through the driver 9 to achieve automatic resetting.
[0063] The control module 3 transmits the test data and calculation results to a remote receiving end (such as a computer) through the wireless communication function module 10 .
[0064] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A forward flexion tester based on a photoelectric encoder and an electromagnet reset, characterized in that: It includes a tester housing, a photoelectric encoder, a control module, a reset module, a display module and a power module; The photoelectric encoder, reset module and display module are arranged on the surface of the tester housing, and the control module and power supply module are arranged inside the tester housing; The surface of the tester housing is provided with a slide rail, and the slide rail includes an initial position and an end position; The slide rail is provided with a slider, and the photoelectric encoder is connected to the slider and moves with the slider; The control module is connected to the photoelectric encoder, and the control module reads the signal output by the photoelectric encoder, obtains the motion trajectory of the slider and calculates the displacement value; The reset module is arranged at the initial position of the slide rail, and the reset module is electrically connected to the control module; The reset module includes an electromagnet and a limit switch. The electromagnet generates suction when it is energized to force the slider back to its initial position. The limit switch is used to detect whether the slider has returned to its initial position. When the limit switch detects that the slider has returned to its initial position, the control module turns off the current of the electromagnet. The display module is electrically connected to the control module, and the display module is used to display the real-time displacement data of the slider and the final test result; The final test result is the farthest displacement data before the slider returns to its original position; The power supply module is used to provide power to the entire tester.
2. A forward flexion tester based on a photoelectric encoder and an electromagnet reset according to claim 1, characterized in that: The control module reads the signal output by the photoelectric encoder by interruption or timed sampling; The interruption mode is specifically as follows: when the photoelectric encoder moves with the slider, the A / B phase signal changes, and when the control module detects these changes, it triggers an interruption, and then reads the real-time displacement data provided by the photoelectric encoder; The timed sampling method is specifically as follows: the control module triggers a reading operation at regular intervals to read the real-time displacement data of the photoelectric encoder.
3. The forward flexion tester based on photoelectric encoder and electromagnet reset according to claim 1, characterized in that: The control module adopts ESP32 controller.
4. The forward flexion tester based on photoelectric encoder and electromagnet reset according to claim 1, characterized in that: The power supply module includes a 12V voltage and a 5V voltage, the 12V voltage is used to supply power to the electromagnet to generate suction, and the 5V voltage is used to supply power to the control module and the display module.
5. The forward flexion tester based on photoelectric encoder and electromagnet reset according to claim 1, characterized in that: The display module adopts an OLED screen; the display module includes an I2C interface, and the display module is electrically connected to the control module via the I2C interface.
6. The forward flexion tester based on photoelectric encoder and electromagnet reset according to claim 1, characterized in that: It also includes a wireless communication function module, which is arranged in the tester housing and is used for data uploading and remote monitoring.
7. The forward flexion tester based on photoelectric encoder and electromagnet reset according to claim 1, characterized in that: It also includes a driver, which is arranged in the tester housing. The driver is electrically connected to the control module and the electromagnet. The control module sends power-on and power-off control signals to the electromagnet through the driver.