Hand rehabilitation training game system based on FPGA

Through the FPGA-based hand rehabilitation training game system, combined with the scroll shooting game, the problem of single and boring traditional hand rehabilitation training methods is solved, the patient's participation and rehabilitation effect is improved, and efficient hand rehabilitation training is achieved, with cost-effectiveness. Benefits and flexibility.

CN118925201APending Publication Date: 2024-11-12SOUTHEAST UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411172875.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The traditional hand rehabilitation training method is single and boring, lacking fun and interactive, making it difficult to maintain the enthusiasm and continuous participation of patients.

Method used

Design a hand rehabilitation training game system based on FPGA, combining FPGA control board, game output module and rehabilitation training module, using AMD Spartan-7FPGA Boo l ean board as the core controller, to enhance fun and interaction through reel shooting games , using multi-degree-of-freedom handles and buttons for hand rehabilitation training, and using 8-bit LED digital tubes to display scores in real time.

Benefits of technology

It improves the fun and participation of hand rehabilitation training, enhances the rehabilitation effect, and the implementation based on FPGA is cost-effective and flexible, suitable for widespread promotion, and can be customized according to the needs of different patients.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118925201A_ABST
    Figure CN118925201A_ABST
Patent Text Reader

Abstract

The invention discloses a hand rehabilitation training game system based on an FPGA (Field Programmable Gate Array), which at least comprises an FPGA control panel, a game output module and a rehabilitation training module, and is characterized in that the FPGA control panel adopts a Boolean board card of an AMD Spartan-7 FPGA as a core controller and a processor to realize data acquisition, processing and control; the game output module is used for sending a training instruction to the rehabilitation training module and outputting a hand rehabilitation training result according to a control signal of the FPGA control panel; the rehabilitation training module at least comprises a multi-degree-of-freedom handle and keys and is connected with the FPGA control panel, the handle and the keys are operated according to output information displayed on the game output module by the FPGA control panel to carry out hand rehabilitation training, and a hand rehabilitation training result is transmitted back to the FPGA control panel and displayed on the game output module. The system can improve the participation degree of the patient and the rehabilitation training effect, and is suitable for wide popularization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of artificial intelligence rehabilitation training, and mainly relates to a hand rehabilitation training game system based on FPGA. Background Art

[0002] Finger rehabilitation training is commonly used in various situations, such as postoperative rehabilitation, nerve damage, fractures, arthritis, rehabilitation after stroke, and tendon injuries. Traditional hand rehabilitation training methods include passive exercise, active exercise, fine motor training, finger coordination training, functional training, electrical stimulation and heat therapy, etc. These methods gradually restore and enhance the strength, flexibility, coordination and functionality of the fingers through joint range of motion training, finger flexion and extension, the use of grip balls and elastic bands, fine operation exercises, daily activity simulation and electrical stimulation equipment. However, most of these training methods are single and repetitive, relatively boring, and it is difficult to maintain the enthusiasm and continuous participation of patients.

[0003] If hand rehabilitation training can be combined with games, it can increase the fun and interactivity, stimulate the patient's enthusiasm and persistence, and effectively improve the effect of hand rehabilitation training and the patient's participation. Gamified hand rehabilitation training can not only provide real-time feedback and progress tracking, but also gradually improve the patient's ability and enhance the rehabilitation effect by setting different levels of difficulty and goals. Summary of the invention

[0004] The present invention aims at the problem that hand rehabilitation training in the prior art is monotonous and boring, lacks interest and attraction, and provides a hand rehabilitation training game system based on FPGA, which at least includes an FPGA control board, a game output module and a rehabilitation training module. The FPGA control board is connected to the game output module and the rehabilitation training module respectively, and adopts the Bullean board of AMD Spartan-7 FPGA as the core controller and processor to realize data collection, processing and control; the game output module sends training instructions to the rehabilitation training module, and outputs the result of hand rehabilitation training according to the control signal of the FPGA control board; the game output module at least includes a display module, an audio module and an evaluation module, and the evaluation module displays the real-time score of the game in real time through an 8-bit LED digital tube, and evaluates the hand rehabilitation training during the game; the rehabilitation training module at least includes a handle and a button with multiple degrees of freedom, which is connected to the FPGA control board, and according to the output information displayed by the FPGA control board on the game output module, the handle and the button are operated to perform hand rehabilitation training, and the result of the hand rehabilitation training is transmitted back to the FPGA control board to be displayed on the game output module. The present invention is aimed at hand dexterity rehabilitation training, involves a highly interesting game, and improves patient participation and rehabilitation training effects. At the same time, the FPGA-based implementation can be customized according to different patient rehabilitation needs. Compared with some high-end hand rehabilitation training equipment, it is more cost-effective and suitable for wide promotion and application.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is: a hand rehabilitation training game system based on FPGA, comprising at least an FPGA control board, a game output module and a rehabilitation training module,

[0006] The FPGA control board is connected to the game output module and the rehabilitation training module respectively, and uses the AMD Spartan-7 FPGA Bullean board as the core controller and processor to realize data collection, processing and control;

[0007] The game output module sends training instructions to the rehabilitation training module and outputs the results of hand rehabilitation training according to the control signal of the FPGA control board; the game output module at least includes a display module, an audio module and an evaluation module, and the evaluation module displays the real-time game score in real time through an 8-bit LED digital tube and evaluates the hand rehabilitation training during the game;

[0008] The rehabilitation training module at least includes a handle and buttons with multiple degrees of freedom, which are connected to the FPGA control board. According to the output information displayed by the FPGA control board on the game output module, the handle and buttons are operated to perform hand rehabilitation training, and the results of the hand rehabilitation training are transmitted back to the FPGA control board and displayed on the game output module.

[0009] As an improvement of the present invention, the game processed and controlled by the FPGA control board is a scroll shooting game, in which the character movement is controlled by using the handle in the rehabilitation training module, shooting is performed by pressing buttons, the attacks displayed in the game output module are avoided, and rewards are obtained according to the game tasks.

[0010] As an improvement of the present invention, the software part of the hand rehabilitation training game system uses VerilogHDL hardware programming language and adopts modular design concept, including at least clock division, HDMI-based screen display, scroll game control, memory usage, SPI-based handle joystick control and score display process.

[0011] As another improvement of the present invention, the display module uses the HDMI video communication protocol based on FPGA, and the screen image is set to a resolution of 1920*1080 and a refresh rate of 60Hz.

[0012] As another improvement of the present invention, the handle in the rehabilitation training module consists of two parts: a handle and a receiver. The handle is used to send key information. The receiver is connected to the FPGA and communicates with the FPGA using the SPI protocol. It is used to receive information sent by the handle and pass it to the FPGA. At the same time, the FPGA sends commands to the handle through the receiver to configure the sending mode of the handle.

[0013] As another improvement of the present invention, the hand rehabilitation training game system completes the top-level design through Verilog HDL hardware description language, and at least includes HDMI_Interface, Game_Generate, PS2_Control, Score_Di splay and Audio_Generate modules.

[0014] The HDMI_Interface module is an HDMI interface driver module. According to the TMDS transmission protocol, other modules need to provide valid image data and control signals.

[0015] The Game_Generate module is used to control the generation of the current game screen, including the logic of the game content:

[0016] The PS2_Control module is used to receive the input signal of the handle and read the patient's hand operation;

[0017] The Score_Display module is used to display the current game score and analyze the hand dexterity;

[0018] The Audio_Generate module realizes dual-channel audio output, and each of the two channels is driven by a PWM signal.

[0019] As a further improvement of the present invention, the game materials of the hand rehabilitation training game system are stored in the BRAM storage unit of the FPGA, and the use method thereof includes the following steps:

[0020] S1: Design characters and elements, use Photoshop to enlarge the drawn pixel art to a suitable size, and save it as an image file in bmp format;

[0021] S2: Write a matlab script to re-encode and save the 24-bit RGB data, assign a dedicated ID to each color starting from 1, and convert the bmp file into a coe file format;

[0022] S3: Create a ROM module through the general Block Memory Generator IP core, store the encoded and compressed coe file in it, and each file corresponds to a separate ROM module;

[0023] S4: The display module reads the ROM module according to the game logic, decodes the color and displays the picture.

[0024] Compared with the prior art, the present invention has the following beneficial effects:

[0025] (1) The system of the present invention combines hand rehabilitation training with the scroll shooting game, which can increase the fun and interactivity, stimulate the patient's enthusiasm for participation, and thus achieve better rehabilitation training effects.

[0026] (2) The system of the present invention is developed based on FPGA, which can ensure higher operating speed and flexibility while increasing stability and reducing costs. Compared with high-end hand rehabilitation training equipment, the system of the present invention is more cost-effective and suitable for wide promotion and application. At the same time, FPGA has a high degree of programmability and can be customized according to different rehabilitation needs to meet the needs of various specific patients.

[0027] (3) The game of the system of the present invention is a scroll mode, and the game design is innovative and unique, which can bring a different experience, is more vivid and interesting, and the picture is smoother and more natural.

[0028] (4) In the scroll game in the system of the present invention, the patient needs to use the handle and joystick to control movement and shooting during operation, so that the patient is not fixed in a single posture, thereby improving the rehabilitation effect; at the same time, the precise control of direction in the scroll shooting game can exercise more postures and flexibility, simulating the action operations in real life.

[0029] (5) The whole set of equipment of the system of the present invention is small in size and easy to carry, so that hand rehabilitation training games can be carried out anytime and anywhere; the external equipment designed in conjunction with the system includes a portable universal display screen with clear picture quality and high resolution, which brings a better gaming experience; the digital tube displays the game score, which can be used to evaluate the patient's finger flexibility, coordination and projection ability, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 is a flow chart of the working steps of the system of the present invention;

[0031] Figure 2 It is the overall block diagram of the top-level design of the system of the present invention;

[0032] Figure 3 It is a schematic diagram of the SPI communication timing of the system of the present invention;

[0033] Figure 4 This is a schematic diagram of the PS2 controller data format in the system of the present invention;

[0034] Figure 5 This is a schematic diagram of HDMI transmission in the system of the present invention;

[0035] Figure 6 It is a schematic diagram of a scroll shooting game implemented by the system of the present invention based on FPGA;

[0036] Figure 7 and Figure 8 It is the original picture material picture used by the system of the present invention. DETAILED DESCRIPTION

[0037] The present invention will be further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the following specific embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention.

[0038] Example 1

[0039] The hand rehabilitation training game system based on FPGA is aimed at hand dexterity rehabilitation training, involving VerilogHDL hardware description language and FPGA (Field-Programmable Gate Array) application design, and at least includes FPGA control board, game output module and rehabilitation training module. The FPGA control board is the core controller and processor of the system, which realizes data collection and processing, and adopts the Bullean board of AMD Spartan-7FPGA. The patient conducts rehabilitation training through the rehabilitation training module, using a PS2 wireless controller, including a multi-degree-of-freedom handle and buttons. The game output module specifically includes a display module, an audio module and an evaluation module. The display module uses a high-definition display screen to provide patients with visual game images, the audio module uses a dual-channel audio device for game background music and guidance training, and the evaluation module uses an 8-bit LED digital tube to display the real-time score in real time, and displays the total score after the game is over to measure the patient's hand dexterity.

[0040] FPGA is an integrated circuit that can be configured and reconfigured on site to perform specific tasks. Unlike traditional fixed-function integrated circuits, FPGAs have programmable logic blocks and programmable interconnect resources, which enable them to be flexibly configured and reprogrammed according to the needs of specific applications. In hand rehabilitation training games, the programmability and parallel computing capabilities of FPGAs can provide strong support for the design of real-time graphics processing and key game logic. In addition, FPGAs can be used to design flexible human-computer interaction solutions, support a variety of input and output devices and control logic, and are suitable for human-computer interaction design for patients with hand motor dysfunction. The FPGA control board: is connected to the game output module and the rehabilitation training module respectively, and uses the AMD Spartan-7FPGA Bullean board as the core controller and processor to realize data collection, processing and control;

[0041] The game output module sends training instructions to the rehabilitation training module and outputs the results of hand rehabilitation training according to the control signal of the FPGA control board; the game output module at least includes a display module, an audio module and an evaluation module, and the evaluation module displays the real-time game score in real time through an 8-bit LED digital tube and evaluates the hand rehabilitation training during the game;

[0042] The rehabilitation training module includes at least a handle and a button with multiple degrees of freedom, which are connected to the FPGA control board. According to the output information displayed by the FPGA control board on the game output module, the handle and the button are operated to perform hand rehabilitation training, and the result of the hand rehabilitation training is transmitted back to the FPGA control board and displayed on the game output module. The game in this embodiment is a scroll shooting game, which is a type of electronic game with the gameplay features of controlling the character shooting and the map scrolling. The development history of this type of game can be traced back to the early arcade and home game console era, and its simple and easy-to-understand gameplay and exciting game experience have attracted many players. During the game, the picture will scroll continuously, and the player needs to control the character to move and shoot. The gameplay of the scroll shooting game is simple and easy to use, but it can well exercise the player's finger flexibility, reaction speed and hand-eye coordination ability.

[0043] like Figure 1 As shown, first, the patient operates the rehabilitation training module with his hand, the FPGA collects the hand movement data, the game character moves according to the patient's operation, and then determines whether the end condition is met according to the current position of the game element. If the end condition is met, the game ends. If the end condition is not met, the game screen is updated, specifically including the lateral movement of all game elements except the character, such as attacks and background, to create the effect of the character moving to the right, and at the same time updates the current state according to the character operation and the current position.

[0044] The patient uses the joystick on the handle to control the character's movement and the buttons on the handle to shoot. The patient needs to obtain the bonus props generated in the map and dodge bullets to increase the score and defeat the enemy. The game involves multiple finger collaborative operations, which trains the patient's finger flexibility, reaction speed and hand-eye coordination ability. It can be customized based on FPGA according to the patient's rehabilitation needs.

[0045] The game display includes the start, game loop and end interfaces. During the game, the screen background is continuously refreshed to achieve a smooth scrolling effect, allowing the operator to feel that the game character is constantly moving forward.

[0046] The FPGA-based hand rehabilitation training scroll shooting game includes two characters: an operator character and an enemy character that can be controlled. Figure 6As shown, the enemy character is located at the right end of the screen and moves automatically. The operator character is located in the left half of the screen. The operator controls the character's movement by operating the joystick on the handle and shoots by pressing the buttons on the handle. The enemy character randomly fires bullets, and the enemy's movement speed and bullet movement speed increase as the game time increases, which is equivalent to the gradual increase in the difficulty of the game. Stars used to increase scores and shields used to resist one attack are randomly generated on the map. The operator needs to actively obtain props, dodge enemy attacks and try to defeat the enemy. The operator can reduce the enemy's health by hitting the enemy character. If the operator is hit without a shield, the game ends.

[0047] The FPGA-based hand rehabilitation training scroll shooting game takes full account of the rehabilitation training characteristics of patients with hand dysfunction. The game background is set to various roads, and the left-moving reference graphics are displayed on both sides, including sidewalks, bushes, and clouds, creating an effect that the game character is constantly moving to the right. At regular intervals, the characters, bullets, and props on the screen disappear, and an image containing the road name is displayed instead, moving from right to left on the screen, indicating that the operator character enters a new game scene, and then the game enters the next level.

[0048] The display module uses HDMI video communication protocol based on FPGA and TMDS encoding technology, with small interface size and strong anti-interference ability. The screen image is set to 1920*1080 resolution and 60Hz refresh rate. When using HDMI, four differential line pairs are used to form TMDS display data and clock channels, which are used to transmit video, audio and auxiliary data.

[0049] The rehabilitation training module uses a game controller PS2, which consists of a controller and a receiver. The controller is mainly responsible for sending key information. The receiver is connected to the FPGA and communicates with the FPGA using the SPI protocol to receive information from the controller and pass it to the FPGA. The FPGA also sends commands to the controller through the receiver to configure the controller's sending mode.

[0050] Example 2

[0051] In this embodiment, the system includes a Bullean board of AMD Spartan-7FPGA, a general high-definition display screen and a PS2 controller to achieve human-computer interaction. The rehabilitation training game screen has a resolution of 1920*1080 and a refresh rate of 60Hz. It includes menus and game over screens. The game includes several cartoon characters, dozens of bullets, stars for extra points, and shields to resist attacks, such as Figure 7 , 8As shown, the game background is a sidewalk and a road with local characteristics. It is equipped with a dual-channel audio device to output audio, and an 8-bit LED digital tube to display the real-time score. After the game is over, the total score is displayed to evaluate the patient's hand flexibility recovery.

[0052] The specific steps of the rehabilitation training process are as follows:

[0053] S1: Patient hand operation rehabilitation training module movement

[0054] S2: FPGA collects hand motion data

[0055] S3: The game character moves according to the patient's operation

[0056] S4: Determine whether the end condition is met based on the current position of the game elements. If the end condition is met, the game ends. If the end condition is not met, the game screen is updated, specifically including the horizontal movement of all game elements except the character, such as attacks and background, to create the effect of the character moving to the right. At the same time, the current state is updated according to the character operation and the current position.

[0057] Specifically, the patient operated the game through a PS2 controller, which consists of two remote sensors and multiple buttons. First, the state transition of the FSM, i.e. the finite state machine, can be affected by the controller input, including: resetting the game console, displaying the start menu, pressing a button to start the game, etc. After starting the game, the enemy on the right side of the screen will fire bullets at the character on the left side representing the operator at a random position, and the bullet speed increases with time. The operator can change the position of the operator's character in 360° directions by manipulating the joystick of the controller to dodge, and press the button on the top of the controller to shoot. At the same time, there are background images on the upper and lower sides of the screen that move with time, creating a "scroll" effect of the operator moving forward. In addition, the operator's game score will be dynamically displayed on the digital tube, gradually increasing over time, and the operator's character can greatly increase the score when obtaining stars or shooting enemies. When the operator hits the bullet without a shield, it is judged that the game has failed, the screen displays the game end screen, and the score stops changing. At this time, the reset button can be pressed to start the game again.

[0058] The hardware of the PS2 controller consists of two parts: the controller and the receiver. When connected, the controller continuously sends key information to the receiver; the receiver is connected to the FPGA, continuously receives information sent by the controller and transmits it to the FPGA; the FPGA acts as a host and sends commands to the controller through the receiver at the same time to configure the controller's sending mode.

[0059] The communication between PS2 and the host uses the SPI communication protocol. SPI is the abbreviation of serial peripheral interface. It is a high-speed, full-duplex, synchronous communication bus, and only occupies four lines (DI, DO, CS, CLK) on the chip pins, saving chip pins and space for layout. Figure 3 As shown in the figure, DI and DO are a pair of 8-bit serial data transmitted simultaneously. During transmission, CS needs to be at a low level and CLK needs to change from high to low. DO is the signal sent by the control board to the receiver. DI is the signal sent by the receiver to the control board.

[0060] The PS2 communication data format is as follows Figure 4 As shown, first, pull down the chip select signal CS to start data communication. The first byte is sent by the control board to the receiver 0x01 to start communication. The second byte is sent by the control board to the receiver 0x42 to request to send data. The handle replies with an id, which is the current status (red light mode or green light mode, that is, whether the joystick is valid). The third byte is sent by the handle to the controller 0x5A to indicate that the data has arrived. The last six bytes are the specific data sent by the handle.

[0061] The process of transmitting video signals to the display uses the HDMI protocol. HDMI is based on TMDS encoding technology. The cable and connector provide four differential line pairs to form TMDS data and clock channels, such as Figure 5 As shown in the figure, these channels are used to transmit video, audio and auxiliary data. The TMDS transmitter receives 24-bit parallel data representing RGB signals from the host (TMDS encodes the three primary colors of RGB for each pixel as 8 bits, 8 bits for red, green and blue respectively), encodes and converts the data and clock signals of these three channels into parallel and serial signals, and then distributes the signals of the four channels of RGB and clock to independent transmission channels for transmission.

[0062] The top-level design file in this example is the HDMI_game.v file, such as Figure 2 As shown in FIG. 1 , the instantiated modules include HDMI_Interface, Game_Generate, PS2_Control, Score_Display, and Audio_Generate. The Verilog HDL hardware description language is used to complete the design and realize the functions of each module.

[0063] HDMI_Interface is the HDMI interface driver module. According to the TMDS transmission protocol, other modules need to provide valid image data and control signals. Game_Generate calculates the current game logic based on the input of the PS2 controller module and the state of the FSM, and controls the generation of the current game screen. The video signal generator module Video_Generator_Interface reads the game material image from the ROM module and decodes it into 24-bit parallel data representing RGB. Finally, the HDMI_Interface receives this data, which is encoded by the submodule encoder and then converted to parallel and serial by the serializer. Finally, the differential signal available for transmission is sent to the onboard HDMI pin. Audio_Generate realizes dual-channel audio output, and each of the two channels is driven by a PWM signal.

[0064] The Game_Generate module contains the main logic of the game content, including the control of the patient role, the path of the enemy, the game scene, the generation logic of game elements such as bullets and props, and the logic composition of winning and losing.

[0065] The materials of the hand rehabilitation game are stored in the BRAM storage unit of the FPGA. The specific usage is as follows:

[0066] S1: Design characters and elements, use Photoshop to enlarge the drawn pixel art to a suitable size, and save it as an image file in bmp format.

[0067] S2: Write a matlab script to re-encode and save the 24-bit RGB data, that is, assign a dedicated ID to each color starting from 1, and convert the bmp to a coe format file, greatly reducing the required onboard storage space.

[0068] S3: Create a ROM module through the general Block Memory Generator IP core, store the encoded and compressed coe files in it, and each file corresponds to a separate ROM module.

[0069] S4: The display module reads the ROM module according to the game logic, decodes the color and displays the picture.

[0070] In summary, the present invention discloses a hand rehabilitation training game system based on FPGA, which is composed of an FPGA control board, a rehabilitation training module and a game output module. The hardware part is implemented based on the Bullean board of AMD Spartan-7FPGA, a general high-definition display screen displays the picture, a dual-channel audio device outputs audio, and a PS2 wireless controller is used to realize human-computer interaction. The digital tube displays the score for evaluating the rehabilitation situation. During the game, the picture scrolls horizontally continuously to create the effect that the operator is constantly moving forward, increasing the game experience. At the same time, the patient needs to use multiple fingers to collaborate, which helps to exercise the patient's finger flexibility and hand-eye coordination ability. At the same time, the implementation based on FPGA can be customized according to different patient rehabilitation needs. Compared with some high-end hand rehabilitation training equipment, it is more cost-effective and suitable for wide promotion and application.

[0071] It should be noted that the above content only illustrates the technical idea of ​​the present invention and cannot be used to limit the protection scope of the present invention. For ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications all fall within the protection scope of the claims of the present invention.

Claims

1. FPGA-based hand rehabilitation training game system, characterized by : At least includes FPGA control board, game output module and rehabilitation training module, The FPGA control board is connected to the game output module and the rehabilitation training module respectively, and uses the Boolean board of AMD Spartan-7FPGA as the core controller and processor to realize data collection, processing and control; The game output module sends training instructions to the rehabilitation training module and outputs the results of hand rehabilitation training according to the control signal of the FPGA control board; the game output module at least includes a display module, an audio module and an evaluation module, and the evaluation module displays the real-time game score in real time through an 8-bit LED digital tube and evaluates the hand rehabilitation training during the game; The rehabilitation training module at least includes a handle and buttons with multiple degrees of freedom, which are connected to the FPGA control board. According to the output information displayed by the FPGA control board on the game output module, the handle and buttons are operated to perform hand rehabilitation training, and the results of the hand rehabilitation training are transmitted back to the FPGA control board and displayed on the game output module.

2. The FPGA-based hand rehabilitation training game system according to claim 1, characterized in that: The game processed and controlled by the FPGA control board is a scroll shooting game, in which the character is controlled to move by using the handle in the rehabilitation training module, shooting is performed by pressing buttons, the attacks displayed in the game output module are avoided, and rewards are obtained according to the game tasks.

3. The FPGA-based hand rehabilitation training game system according to claim 2, characterized in that: The software part of the hand rehabilitation training game system uses the Verilog HDL hardware programming language and a modular design concept, and at least includes clock division, HDMI-based screen display, scroll game control, memory usage, SPI-based handle joystick control, and score display process.

4. The FPGA-based hand rehabilitation training game system according to claim 3, characterized in that: The display module uses the HDMI video communication protocol based on FPGA, and the screen image is set to a resolution of 1920*1080 and a refresh rate of 60Hz.

5. The FPGA-based hand rehabilitation training game system according to claim 3, characterized in that: The handle in the rehabilitation training module consists of two parts: a handle and a receiver. The handle is used to send key information. The receiver is connected to the FPGA and communicates with the FPGA using the SPI protocol. It is used to receive information sent by the handle and pass it to the FPGA. At the same time, the FPGA sends commands to the handle through the receiver to configure the sending mode of the handle.

6. The FPGA-based hand rehabilitation training game system according to claim 3, characterized in that: The hand rehabilitation training game system is designed with Verilog HDL hardware description language, and at least includes HDMI_Interface, Game_Generate, PS2_Control, Score_Display and Audio_Generate modules. The HDMI_Interface module is an HDMI interface driver module. According to the TMDS transmission protocol, other modules need to provide valid image data and control signals. The Game_Generate module is used to control the generation of the current game screen, including the logic of the game content: The PS2_Control module is used to receive the input signal of the handle and read the patient's hand operation; The Score_Display module is used to display the current game score and analyze the hand dexterity; The Audio_Generate module implements dual-channel audio output, and each of the two channels is driven by a PWM signal.

7. The FPGA-based hand rehabilitation training game system according to claim 6, characterized in that: The game materials of the hand rehabilitation training game system are stored in the BRAM storage unit of the FPGA, and the use method thereof includes the following steps: S1: Design characters and elements, use Photoshop to enlarge the drawn pixel art to a suitable size, and save it as an image file in bmp format; S2: Write a matlab script to re-encode and save the 24-bit RGB data, assign a dedicated ID to each color starting from 1, and convert the bmp file into a coe format file; S3: Create a ROM module through the general Block Memory Generator IP core, store the encoded and compressed coe file in it, and each file corresponds to a separate ROM module; S4: The display module reads the ROM module according to the game logic, decodes the color and displays the picture.

Citation Information

Patent Citations

  • Portable body movement rehabilitation training device and using method thereof

    CN102989124A

  • Human-computer interaction control system, embedded in Android mobile terminal and FPGA, of hand function rehabilitation robot

    CN103558786A

  • Upper limb rehabilitation training system and method using virtual reality technology

    CN110075486A

  • Game machine one -hand operation device

    CN207838251U

  • Systems And Methods For Facilitating Rehabilitation Therapy

    US20170069223A1