Visual programming game host based on matrix type input and output and knob encoder

The visual programming game console with matrix input and output and knob encoder, combined with web-side graphical programming and hardware modules, solves the game development difficulties of beginners and children, realizes intuitive interaction and instant feedback, and improves the creative experience and efficiency.

CN120803449AInactive Publication Date: 2025-10-17NINGBO XIAOMA HOME TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510957568.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-11
Publication Date
2025-10-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing game development tools pose a high technical threshold for beginners and children, and lack deep integration of hardware input and output devices with visual programming platforms, which limits the creative experience and learning interest.

Method used

It adopts a visual programming game console based on matrix input and output and knob encoder, combined with a web-side graphical programming interface, hardware-side modules and server-side compilation, to provide intuitive interaction and instant creative feedback.

Benefits of technology

It lowers the technical threshold for game development, improves creative efficiency and user participation, enhances the feasibility and interactivity of game creation, and is suitable for children and educational scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120803449A_ABST
    Figure CN120803449A_ABST
Patent Text Reader

Abstract

The invention provides a visual programming game console based on matrix input and output and a knob encoder, and relates to the technical field of electronic game development, and the visual programming game console comprises a visual programming platform which comprises a graphical programming interface used for game development at a Web end, and game logic is constructed by dragging a graphical module; after the server side receives the game logic data, the game logic data is automatically compiled into a bin file capable of running on the hardware side; according to the method, a Web end visual programming platform is arranged, an OpenBlock graphical module is used for replacing traditional codes, and a user can design game logic and simulate and debug on the Web end by dragging. The server can automatically compile codes into bin files and send the bin files to the equipment end, grammar obstacles are eliminated, the storage problem is solved through integrated hardware design, programmable input and output equipment capable of being flexibly configured is arranged, the game playability is improved, and the system is suitable for multi-age users and education scenes.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic game development, and particularly relates to a visual programming game host based on matrix input and output and knob encoder. BACKGROUND

[0002] With the rapid development of computer technology and the game industry, game development has become an important technical field. Traditional game development usually requires professional programming knowledge and complex development environment, which poses a high technical threshold for beginners, especially children.

[0003] The game development tools on the market at present are mainly divided into two categories: one is a development environment based on a text programming language, such as Unity, Unreal Engine, etc., which is powerful but has a steep learning curve and requires developers to have professional programming skills; the other is a visual programming tool for beginners, such as Scratch, which reduces the programming difficulty but cannot well support large-scale project programming.

[0004] Especially for non-professional programming user groups and children user groups, the complex development process and abstract operation mode seriously affect their creation experience and learning interest. The root of these problems lies in the fact that the prior art fails to deeply integrate hardware input and output devices with a visual programming platform, lacks a simple and intuitive interaction mode, and cannot provide immediate creation feedback.

[0005] Therefore, it is necessary to provide a visual programming game host based on matrix input and output and knob encoder to solve the above technical problems. SUMMARY

[0006] The present application provides a visual programming game host based on matrix input and output and knob encoder to solve the problems in the background art.

[0007] To solve the above technical problems, the visual programming game host based on matrix input and output and knob encoder provided by the present application comprises: A visual programming platform comprising a graphical programming interface for game development on the Web side, which builds game logic by dragging graphical modules, and sends game logic data to the server side after real-time debugging by a simulator; A server side for receiving game logic data after receiving an application from the Web side, automatically compiling it into a bin file that can run on the hardware side, and pushing the file to the device side; The hardware end includes an ESP32 chip module, a double-knob encoder, a matrix module, a display screen and a memory; the chip module connects the double-knob encoder and the matrix input-output module through a GPIO interface, connects the display screen through an SPI bus, and connects the memory through a built-in external storage space interface; the memory is used for storing a plurality of bin format game files; The double-knob encoder detects the rotation direction through a phase difference and supports independent control of the movement and function triggering of a game character. The matrix module includes a key array and a corresponding RGB LED lamp group and has input operation and pixel-level visual feedback functions.

[0008] As preferred, the visual programming platform adopts an OpenBlock graphical programming language and includes a graphical programming interface, a simulator and a compiler; after a user constructs game logic by dragging a graphical module, the logic validity is verified online by a Web-side simulator, and the game is simulated and run for debugging by a simulator in the Web-side based device; after the user completes the debugging, an application can be sent to a server side, the OpenBlock code is translated into C code, the C code is compiled into a target bin file, and the bin file is pushed to the device bound to the user.

[0009] As preferred, the Web side further includes a community interaction function, and the community interaction function includes user registration and login, game work browsing, liking, commenting, scoring, and work uploading and downloading functions.

[0010] As preferred, the display screen is specifically a TFT-LCD or OLED screen, and the display content of the display screen includes game scores, next block shapes, game prompt information, and the display content is updated in real time by the ESP32 chip according to game logic.

[0011] As preferred, the key array of the matrix module is connected to the GPIO pin of the ESP32 through a row-column matrix, and one or more pressed keys are located through a bidirectional scanning algorithm of outputting a low level by row and reading an input state by column.

[0012] As preferred, the double-knob encoder identifies the rotation direction through a phase difference of two-way IO pins, and the A phase leading the B phase is forward rotation, and vice versa is reverse rotation, and the angle measurement is realized through pulse counting.

[0013] As preferred, the display screen is built-in with a power consumption management unit, which dynamically adjusts the refresh rate and backlight brightness according to the user operation frequency and game state, and specifically: Let the user operation frequency be f, set a high frequency threshold , a low frequency threshold , game state s (wherein s=1 represents game running, s=0 pause), according to which the refresh rate r, backlight brightness b adjustment rule is set:

[0014] Wherein, if the game is running (s=1), the refresh rate is dynamically adjusted according to the operating frequency (high frequency , medium frequency , low frequency ), the brightness is kept , if the game is paused (s=0), the refresh rate is fixed , and the brightness is uniformly reduced to the preset brightness .

[0015] As preferred, the server side adopts a collaborative filtering recommendation algorithm, constructs a user-game interaction matrix, uses singular value decomposition for dimension reduction, calculates the similarity according to a preset formula, generates personalized game recommendations, and specifically includes the following steps: Collecting game behavior data of users fed back to the server side through respective game consoles, including game browsing, downloading, playing time and scoring; the server side includes a data processing unit, which constructs a user-game interaction matrix according to the game behavior data through the data processing unit, wherein the matrix elements are the scores of users to games; In order to reduce the data dimension and calculation complexity, a singular value decomposition algorithm is used to reduce the dimension of the sparse matrix; Based on the reduced matrix, the cosine similarity between users or games is calculated, and the formula is , wherein are the score vectors of users u and v respectively, indicates the similarity between user u and user v; According to the similarity calculation result, the games loved by other users similar to the target user are weighted and summed to generate a Top-N recommendation list; and a preset recommendation system update frequency is adopted, and a combination of real-time updating and daily morning full updating is adopted; the real-time updating is completed within a set time after user operation; the daily morning full updating recalculates the recommendation list of all users.

[0016] As preferred, the server side supports batch processing of multi-device compilation requests, and adjusts the compilation queue according to the concurrency.

[0017] Compared with the related art, the visual programming game console based on matrix input and output and knob encoder provided by the application has the following beneficial effects: 1. The application sets up a Web visual programming platform, uses OpenBlock graphical module to replace traditional code, and users can complete game logic design, simulation operation and debugging by dragging, eliminate programming syntax barriers, solve the problem of high threshold of traditional development, cooperate with hardware real-time debugging, significantly improve the creation efficiency, and are suitable for children and education scenes.

[0018] 2. The application uses the key matrix integrated with color LEDs and the double rotary knob as the main control and display mode of the game, provides the user with a use experience different from traditional game machines, and makes up for the single and homogeneous interaction mode of existing game machines. BRIEF DESCRIPTION OF DRAWINGS

[0019] Figure 1 The application provides a principle framework diagram of a visual programming game host based on matrix input and output and knob encoder. DETAILED DESCRIPTION

[0020] The technical solutions in the embodiments of the application will be clearly and completely described below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments are only part of the embodiments of the application, rather than all the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the application.

[0021] The terms used in the present disclosure are only for the purpose of describing specific embodiments, and are not intended to limit the present disclosure. The singular forms "a", "an" and "the" used in the present disclosure and the appended claims are also intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein means and includes any or all possible combinations of one or more associated listed items.

[0022] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the present disclosure, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "when" or "upon determination" or "in response to determining".

[0023] Please refer to Figure 1 The visual programming game host based on matrix input and output and knob encoder comprises: The visual programming platform includes graphical programming for game development on the Web side, game logic is built by dragging graphical modules, after real-time debugging through the simulator, game logic data is sent to the server side; The server side receives game logic data after receiving the application from the Web side, compiles it into a bin file that can run on the hardware side, and pushes it to the user's device; The hardware side includes an ESP32 chip module, a double-knob encoder, a matrix module, a display screen, and a memory; the chip module connects the double-knob encoder and the matrix input-output module through the GPIO interface, connects the display screen through the SPI bus, and connects the memory through the built-in external storage space interface; the memory is used to store multiple bin format game files; The double-knob encoder detects the rotation direction through phase difference and supports independent control of the movement and function triggering of game characters; The matrix module includes a key array and corresponding RGB LED light groups, and has input operation and pixel-level visual feedback functions.

[0024] Specifically, the visual programming platform uses OpenBlock graphical programming language, including graphical programming interface, simulator, and compiler; after the user builds game logic by dragging graphical modules, the simulator in the device-based Web side simulates and debugs the game, the simulator verifies the logic validity in real time, if the user completes the debugging, sends an application to the server side, the server will translate OpenBlock code into C code; and compile it into a target bin file, and then push the file to the user's bound device; the server side automatically converts game logic into C language code, and compiles it into a bin file that can run directly on the hardware side, plays a core role in reducing the technical threshold of game development and simplifying the development process, so that users without programming foundation (such as children and educators) can complete game logic design through intuitive modular operation without mastering professional code knowledge, the platform automatically completes code generation and compilation, realizes the convenient development experience of "creative drag and get", at the same time ensures that the generated bin file can be directly adapted to the hardware of the game console, and connects the whole process from creative design to console running, significantly improves the feasibility and efficiency of user participation in game creation, and promotes the formation of a popular game development ecosystem.

[0025] Specifically, the Web side also includes community interaction functions, including user registration and login, game work browsing, liking, commenting, scoring, and work uploading and downloading functions.

[0026] It needs to be explained that through the community interaction function provided with the APP terminal or WeChat applet, an open and active user ecological system is built. On the one hand, users can conveniently show personal creative achievements (upload works) and obtain feedback from others (likes, comments, scores), thereby stimulating the enthusiasm of creation; on the other hand, through browsing and downloading rich game works in the community, users can not only obtain diversified game experience at low cost, but also form social connections in interaction, thereby enhancing user stickiness.

[0027] Specifically, the display screen is specifically TFT-LCD or OLED screen, and the display content of the display screen includes game score, next block shape, game prompt information, and the display content is updated in real time by the ESP32 chip according to the game logic; Its core role is to provide clear and timely auxiliary information display for users, and enhance the smoothness and strategy of game experience; for example, in the "Tetris" game, the screen pre-visualizes the shape of the next block, which can help users plan the layout in advance; the real-time updated score intuitively reflects the game progress, thereby improving the sense of achievement; and the game prompt information (such as operation guide, state warning) reduces the operation threshold of users and ensures the interaction efficiency. Through the pixel-level display complementary to the matrix module, the display screen focuses on the presentation of dynamic data and strategic information, so that the allocation of hardware resources is more reasonable, and users can simultaneously obtain operation feedback (matrix LED) and global information (screen display), thereby optimizing the immersive game experience.

[0028] Specifically, the double-knob encoder identifies the rotation direction through the phase difference of two IO pins, and the A phase leading the B phase is forward rotation, and vice versa is reverse rotation, and the angle measurement is realized through pulse counting.

[0029] Specifically, the display screen is built-in power consumption management unit, which dynamically adjusts the refresh rate and backlight brightness according to the user operation frequency and game state, specifically: Let the user operation frequency be f, set the high frequency threshold , the low frequency threshold , the game state s (where s=1 indicates that the game is running, and s=0 is paused), and the refresh rate r and the backlight brightness b adjustment rules are set accordingly:

[0030] Among them, when the game is running (s=1), the refresh rate is dynamically adjusted according to the operation frequency (high , medium , and low ), and the brightness remains , and when the game is paused (s=0), the refresh rate is fixed , and the brightness is uniformly reduced to the preset brightness .

[0031] Specifically, the server side adopts a collaborative filtering recommendation algorithm, constructs a user-game interaction matrix, uses singular value decomposition for dimension reduction, calculates the similarity according to a preset formula, and generates personalized game recommendations, specifically including the following steps: Collect the game behavior data of users fed back to the server side through their respective hosts, including game browsing, downloading, playing time and scoring; the server side includes a data processing unit, which constructs a user-game interaction matrix according to the game behavior data through the data processing unit, wherein the matrix elements are the scores of users on games; In order to reduce the data dimension and calculation complexity, singular value decomposition algorithm is used to reduce the dimension of the sparse matrix; Based on the reduced matrix, the cosine similarity between users or games is calculated, and the formula is , wherein and are the score vectors of users u and v respectively, represents the similarity between users u and v, and the similarity of user interest is measured by the formula; According to the similarity calculation result, the games loved by other users similar to the target user are weighted and summed to generate a Top-N recommendation list; and the recommendation system update frequency is preset, and the combination of real-time update and daily early morning full update is adopted; real-time update is completed within a set time after user operation, and responds to the latest user behavior in time; daily early morning full update recalculates the recommendation list of all users to adapt to the long-term changes of game library and user interest.

[0032] It should be noted that the server side adopts a collaborative filtering recommendation algorithm, constructs an interaction matrix by collecting user game behavior data and reduces the dimension, calculates the interest correlation between users or games based on the cosine similarity formula, and plays a core role in accurately matching user interest and improving content distribution efficiency. Specifically, by analyzing the user's browsing, downloading, scoring and other behaviors, the system can automatically identify similar interest groups and recommend high-score games to potential interested users (such as users who like "Snake" may receive "Tetris" recommendation), while real-time updating (short time after user operation) quickly responds to changes in user preferences, avoiding recommendation lag, and daily full update ensures that the recommendation list is continuously optimized with the expansion of the game library and the evolution of user interest.

[0033] Specifically, the server side supports batch processing of multi-device compilation requests, and adjusts the compilation queue according to the concurrency.

[0034] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the application be construed as including any patent, any patent applications, and any patent publications to the extent that such patent, patent applications, and patent publications are consistent with the present disclosure. It is intended that the specification and examples be considered exemplary only, with the true scope and spirit of the application being indicated by the following claims.

[0035] It is to be understood that the application is not limited to the precise construction herein disclosed and shown in the drawings, and that various modifications and changes can be effected therein by those skilled in the art without departing from the scope of the application. The scope of the application is to be limited only by the appended claims.

Claims

1. A visual programming game console based on matrix input and output and knob encoder, characterized by: include: A visual programming platform, including a graphical programming interface for game development on the web, allows users to build game logic by dragging and dropping graphical modules, and after real-time debugging via the simulator, sends game logic data to the server. The server side is used to receive the game logic data after receiving the application from the web side, automatically compile it into a bin file that can be run on the hardware side, and push the file to the user's bound device; The hardware side includes the ESP32 chip module, dual-knob encoder, matrix module, display screen and memory; The chip module is connected to the dual-knob encoder and the matrix input and output module via the GPIO interface, connected to the display screen via the SPI bus, and has a built-in external storage space interface connected to the memory; the memory is used to store multiple bin format game files; Dual-knob encoder detects rotation direction through phase difference, supporting independent control of game character movement and function triggering; The matrix module includes a key array and corresponding RGBLED light groups, which combines input operations and pixel-level visual feedback functions.

2. The visual programming game console based on matrix input and output and knob encoder according to claim 1, characterized in that: The visual programming platform uses the OpenBlock graphical programming language, including a graphical programming interface and a simulator. After the user builds the game logic by dragging and dropping graphical modules, the simulator on the device-based web terminal simulates and runs the game for debugging. After the user completes debugging, he sends a request to the server. The server will translate the OpenBlock code into C code, compile it into a target bin file, and then push the file to the device bound to the user.

3. The visual programming game console based on matrix input and output and knob encoder according to claim 1, characterized in that: The web terminal also includes community interaction functions, which include user registration and login, game work browsing, liking, commenting, scoring, and work upload and download functions.

4. The visual programming game console based on matrix input and output and knob encoder according to claim 1, characterized in that: The display screen is specifically a TFT-LCD or OLED screen. The display content of the display screen includes game scores, the shape of the next block, and game prompt information. The display content is updated in real time by the ESP32 chip according to the game logic.

5. The visual programming game console based on matrix input and output and knob encoder according to claim 1, characterized in that: The key array of the matrix module is connected to the GPIO pin of ESP32 through a row and column matrix. The pressed key is located through a bidirectional scanning algorithm that outputs low level row by row and reads input status column by column.

6. The visual programming game console based on matrix input and output and knob encoder according to claim 1, characterized in that: The dual-knob encoder identifies the rotation direction through the phase difference of two IO pins. When phase A leads phase B, it is forward rotation, and when phase A leads phase B, it is reverse rotation. Angle measurement is achieved by pulse counting.

7. The visual programming game console based on matrix input and output and knob encoder according to claim 1, characterized in that: The display screen has a built-in power management unit that dynamically adjusts the refresh rate and backlight brightness based on the user's operation frequency and game status. Specifically: The user operation frequency is recorded as f, and the high frequency threshold is set , low frequency threshold , game status s (where s=1 means the game is running, s=0 means it is paused), and the refresh rate r and backlight brightness b adjustment rules are set accordingly: Among them, if the game is running (s=1), the refresh rate is dynamically adjusted according to the operating frequency (high frequency , intermediate frequency , low frequency ), brightness is maintained If the game is paused (s=0), the refresh rate is fixed , and reduce the brightness to the preset brightness .

8. The visual programming game console based on matrix input and output and knob encoder according to claim 1, characterized in that: The server uses a collaborative filtering recommendation algorithm to generate personalized game recommendations by constructing a user-game interaction matrix, using singular value decomposition to reduce the dimensionality, and calculating similarity according to a preset formula. The algorithm specifically includes the following steps: Collecting gaming behavior data fed back to the server by users through their respective game consoles, including game browsing, downloading, play time, and ratings; the server includes a data processing unit that constructs a user-game interaction matrix based on the gaming behavior data, where the matrix elements are the user's ratings of the game; In order to reduce the data dimension and computational complexity, the singular value decomposition algorithm is used to reduce the dimensionality of the sparse matrix; Based on the reduced dimension matrix, the cosine similarity between users or games is calculated using the formula: ,in are the rating vectors of users u and v respectively, Indicates the similarity between user u and user v; Based on the similarity calculation results, a weighted sum is taken of the favorite games of other users similar to the target user to generate a Top-N recommendation list; the update frequency of the recommendation system is preset, and a combination of real-time updates and full updates at dawn every day is adopted; the real-time updates are completed within a set time after the user operation; the full updates at dawn every day recalculate the recommendation lists of all users.

9. The visual programming game console based on matrix input and output and knob encoder according to claim 1, characterized in that: The server supports batch processing of compilation requests from multiple devices and adjusts the compilation queue according to the concurrency.