Portable 24-point game training device
By designing a portable 24-point game training device, using a low-power microcontroller and OLED screen, the built-in random generation and low-power control modules are solved, and the existing electronic 'computing 24' games are easily disturbed and costly, achieving efficient and low-cost mathematical training, improving children's computing ability and mathematical interest.
Patent Information
- Application Number
- CN202510551450.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-28
- Publication Date
- 2025-06-17
AI Technical Summary
The existing electronic '24' game has problems such as children being easily disturbed, having high costs, relying on electronic devices, fixed questions, lack of randomness and immediate feedback.
A portable 24-point gaming training device is designed, using a low-power microcontroller, an OLED screen and buttons, and a built-in random generation module, a low-power control module and an interactive control module. It achieves low power consumption and ultra-long battery life through frame refreshing technology and dynamic voltage regulation.
It effectively solves the problem that children are susceptible to interference when using electronic devices, improves training focus and efficiency, realizes low-cost, independent operation, and no electronic devices, and enhances the fun and initiative of learning.
Smart Images

Figure CN120154886A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of teaching and training, and particularly to a portable 24-point game training device. Background Art
[0002] "Calculating 24" is a classic mathematical puzzle game, the rule of which is to combine four given numbers into an expression with the result of 24 through the four arithmetic operations of addition, subtraction, multiplication and division. This game originated from the playing card gameplay (such as drawing four cards to calculate 24 points). Because it can effectively improve the logical thinking, mental arithmetic ability and mathematical sensitivity of participants, it is widely used in primary and secondary school mathematics education. In the prior art, this game is mainly implemented through traditional paper cards, playing cards or electronic application programs (such as mobile phone APPs, computer software), and the electronic form has gradually become popular due to functions such as automatic question generation and answer verification.
[0003] However, the existing electronic "Calculating 24" games have significant defects: First, they mainly rely on general devices such as mobile phones and computers to run. When children use them, they are easily disturbed by other software or pop-up windows, resulting in scattered concentration and reduced training effects; Second, the software solutions require high-performance hardware resources, with high costs and cannot be used without electronic devices, which limits the application scenarios; Third, the traditional paper or card forms have problems such as fixed questions, lack of randomness and instant feedback, and it is difficult to meet the long-term training needs. Therefore, there is an urgent need for a low-cost, independently operating special training tool that can avoid the interference of electronic devices to improve the calculation training efficiency and interest of children. For this reason, a portable 24-point game training device is proposed. Summary of the Invention
[0004] In view of the deficiencies of the prior art, the present invention provides a portable 24-point game training device to solve the problems in the background art.
[0005] To achieve the above object, the present invention provides the following technical solution: A portable 24-point game training device, comprising:
[0006] Structural components:
[0007] A housing, made of plastic material, used to encapsulate internal components and protect the circuit, and integrally formed with a hanging ring at the end;
[0008] A circuit board, which is a low-power single-chip microcomputer, installed in the housing, integrated with peripheral circuits, and used to execute algorithm control, data operation and system scheduling;
[0009] An OLED screen, connected to the circuit board, used to display the randomly generated 4-number questions and the corresponding calculation answers in real time;
[0010] Buttons, integrated on the circuit board, used to receive user input instructions to switch questions, display answers or wake up the system;
[0011] The battery compartment is arranged on the back side of the housing and houses multiple button batteries to provide stable power for the circuit board and the OLED screen.
[0012] System control components:
[0013] The random generation module generates solvable questions based on the built-in algorithm of the circuit board;
[0014] The low-power control module is configured to automatically enter the sleep mode when there is no operation to reduce energy consumption;
[0015] The interaction control module parses the button input and executes the corresponding operation logic.
[0016] Preferably, the algorithm of the random generation module includes the following steps:
[0017] Step 1: Generate four random integers from 1 to 10, satisfying: a, b, c, d ∈ {1, 2,..., 10}, where a, b, c, and d are randomly selected independently;
[0018] Step 2:
[0019] Traverse all operator combinations and operation orders to verify whether there is at least one solution that makes the result 24;
[0020] Step 3: If there is no solution, return to Step 1 to regenerate;
[0021] Step 4: Store the question and the corresponding answer in the circuit board cache.
[0022] Preferably, the arrangement of the operator combinations in Step 2 is:
[0023] Define the operator set O = {+, -, ×, ÷}, where × represents multiplication and ÷ represents division;
[0024] Generate all possible operation orders through the reverse Polish notation, and the total number of combinations is:
[0025] C = 4! × 4 3
[0026] Among them, 4! is the permutation number of four numbers, and 4 3 is the permutation number of three operators.
[0027] Preferably, the method for generating the reverse Polish notation includes:
[0028] Define the operand stack and the operator stack;
[0029] Traverse all possible expression structures through depth-first search, and the total number of paths is:
[0030] N = C(7, 3) × 4 3
[0031] Wherein, C(7, 3) is the combination number representing the selection of 3 positions from 7 positions to place the operators, and 4 3 is the permutation number of the operators.
[0032] Preferably, the low-power control module includes:
[0033] A dynamic voltage regulation unit that adjusts the operating voltage of the circuit board according to the system load status, satisfying the formula:
[0034] V = k × f + b
[0035] Wherein, V is the operating voltage (unit: volt), f is the clock frequency (unit: hertz), and k and b are preset coefficients;
[0036] Cut off the power supply to the display screen and switch the circuit board to the standby state in the sleep mode.
[0037] Preferably, the key input logic of the interaction control module includes:
[0038] Press the key once to display the answer, and press it again to generate a new question;
[0039] Press the key twice continuously to switch the difficulty mode, and the difficulty mode restricts the types of allowed operators;
[0040] Long press the key (≥3 seconds) to switch to shutdown.
[0041] Preferably, the random number generation algorithm in the first step is the linear congruence method, satisfying the formula:
[0042] X n+1 = (a × X n + c) mod m
[0043] Wherein, X n is the current random number, a is the multiplier, c is the increment, and m is the modulus.
[0044] Preferably, the verification in the second step is implemented by recursive exhaustion, and the specific logic is:
[0045] Divide the four numbers into two groups, calculate all possible binary operation results, satisfying the formula:
[0046]
[0047] Wherein, S is the set of all possible intermediate results;
[0048] Recursively merge the results until there is one remaining value, and determine whether it satisfies: there exists s ∈ S such that s = 24.
[0049] Preferably, during the recursive exhaustive process, invalid operation paths are preferentially excluded, including:
[0050] The case where the divisor is zero during division operation;
[0051] The case where the operation result exceeds the preset range.
[0052] Preferably, the display screen is driven by a frame-by-frame refresh technology, satisfying:
[0053] Only a partial display area is refreshed per frame, reducing dynamic power consumption;
[0054] Data output is turned off in the sleep mode.
[0055] Compared with the prior art, the present invention has the following beneficial effects:
[0056] Through independent hardware design, the present invention effectively solves the problem that children are easily disturbed when using electronic devices in the prior art, and significantly improves the training concentration. The device adopts a low-power and miniaturized structure and can operate without relying on a mobile phone or a computer, combining portability and durability, and can carry out calculation training anytime and anywhere. Its built-in intelligent algorithm can dynamically generate endless solvable questions and verify answers in real time, overcoming both the defects of fixed questions and lagging feedback of traditional paper tools, and enhancing the interest and initiative of learning through an interactive design. In addition, the device achieves ultra-long battery life through optimized power management, reducing the usage cost, and imperceptibly improving children's calculation ability, logical thinking and interest in mathematics in the form of gamification, providing an efficient and interference-free innovative solution for mathematics education.
[0057] Other features and advantages of the present invention will be described in the subsequent description, and some of them will be obvious from the description or understood by implementing the present invention. The objectives and other advantages of the present invention can be achieved and obtained through the structures pointed out in the description, the claims and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 is a schematic diagram of the overall structure of the present invention;
[0059] Figure 2 is a schematic diagram of the internal structure of the housing of the present invention;
[0060] Figure 3 is a schematic diagram of the structure of the battery compartment inside the housing of the present invention;
[0061] Figure 4 is a schematic diagram of the question demonstration of the present invention;
[0062] Figure 5 is a schematic diagram of the answer demonstration of the present invention;
[0063] Figure 6 This is the block diagram of the control system of the present invention.
[0064] In the figure: 1. Housing; 2. Circuit board; 3. OLED screen; 4. Button; 5. Battery compartment; 6. Hanging loop. Specific embodiments
[0065] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art in the technical field of the present invention without creative efforts based on the embodiments of the present invention belong to the protection scope of the present invention.
[0066] Please refer to Figure 1-6 , a portable 24-point game training device in the present invention, is composed of a structural component and a system control component, and specifically includes the following:
[0067] I. Structural component
[0068] It is composed of a housing 1, a circuit board 2, an OLED screen 3, a button 4 and a battery compartment 5;
[0069] 1. Housing 1:
[0070] It is used to encapsulate internal components and protect the circuit;
[0071] Material and process:
[0072] It is injection molded with ABS plastic, with a thickness of 1.2 mm, and the surface is sandblasted (Ra = 3.2 μm) to enhance the grip and anti-slip performance;
[0073] Dimension design:
[0074] The hanging loop 6 integrally formed with the housing 1 has an inner diameter of 5 cm and can be adapted to a key ring or a schoolbag hanging rope (tensile strength ≥ 10 kg).
[0075] Circuit board 2:
[0076] It is installed in the housing 1, integrates peripheral circuits, and is used to execute algorithm control, data operation and system scheduling;
[0077] 2. Main control chip:
[0078] Model: STC15W204S (low-power enhanced 51 single-chip microcomputer), packaged in SOP16;
[0079] Core parameters: operating voltage 2.4 - 3.6V, Flash 32KB, SRAM 1KB, standby power consumption ≤ 1 μA;
[0080] Peripheral Interface:
[0081] The I2C interface is connected to the OLED screen 3 (SCL: P1.5, SDA: P1.4);
[0082] The GPIO port drives the key scanning circuit (P3.2 - P3.5);
[0083] The ADC channel monitors the battery voltage (P1.7).
[0084] Power Management Unit (PMU):
[0085] Adopt the HT7333 LDO voltage - regulating chip, with an input voltage of 1.8 - 5V and an output of 3.3V ± 2%;
[0086] In the sleep mode, the power supply to the OLED screen 3 is turned off (MOS transistor: AO3400, on - resistance 40mΩ).
[0087] 3. OLED Screen 3
[0088] Hardware Parameters:
[0089] Model: UG - 2864HSWEG01 (0.91 inches, 128×32 pixels);
[0090] Driver IC: SSD1306, supporting I2C communication (address 0x3C);
[0091] Brightness adjustment: 8 - level adjustable (0x00 - 0xFF), default brightness 0x7F.
[0092] Frame - by - frame refresh implementation:
[0093] The screen is divided into 4 regions (each region 32×32 pixels), and only 1 region is refreshed per frame;
[0094] Refresh frequency: 10Hz (refresh period for each region 40ms), dynamic power consumption reduced from 1.2mA to 0.3mA.
[0095] 4. Button 4
[0096] Hardware Selection:
[0097] Adopt surface - mount micro - switch (model: KFC - 03MA, travel 0.3mm, lifespan 100,000 times);
[0098] Debounce circuit: RC filtering (R = 10kΩ, C = 0.1μF), debounce time 20ms.
[0099] Function Definition:
[0100] Short press (<0.5s): Switch questions or display answers;
[0101] Double click (interval 0.3 - 1s): Switch the difficulty mode (beginner / advanced). The difficulty mode restricts the types of allowed operators.
[0102] Long press (≥3s): Save the progress and shut down.
[0103] 5. Battery compartment 5 and power supply system
[0104] Battery selection:
[0105] 3 LR44 button batteries (1.5V × 3 in series, capacity 150mAh);
[0106] Material of the contact piece in battery compartment 5: Phosphor bronze plated with gold (contact resistance ≤0.1Ω).
[0107] Temporary power supply design with capacitor:
[0108] Energy storage capacitor: 10μF / 6.3V ceramic capacitor (model: GRM31CR61A106KE15);
[0109] Power supply maintenance time when replacing the battery:
[0110] seconds
[0111] Among them, C is the capacitance of the capacitor (10μF); ΔV is the allowable voltage drop range (0.5V); I is the current required for the system to maintain data (5μA).
[0112] In actual tests, data can be maintained for ≥5 seconds (including the optimization of the single-chip microcomputer low-power mode).
[0113] II. System control components:
[0114] 1. Random generation module
[0115] Generate unpredictable random numbers to ensure the diversity of questions; adopt the linear congruential method (LCG) because of its high calculation efficiency and suitability for the environment with limited single-chip microcomputer resources; collect the noise value of the unconnected pin (0 - 3.3V analog signal) through the ADC channel of the single-chip microcomputer, and use it as the initial seed X0 after quantization;
[0116] Random number generation algorithm:
[0117] Adopt the linear congruential method (LCG), and the seed is taken from the ADC noise sampling value;
[0118] X n+1 =(a × X n +c) mod m
[0119] Among them, X nis the current random number; a is the multiplier (214013) to ensure the uniformity of the random number distribution; c is the increment (2531011) to avoid the sequence falling into a short cycle; m is the modulus 2 32 , matching the 32-bit register width of the single-chip microcomputer.
[0120] Generate a mapping in the range of 1-10:
[0121] a = (X n mod 10) + 1 (a ∈ {1, 2,..., 10})
[0122] where a is the generated random integer (1-10);
[0123] Verification of the solvability of the problem:
[0124] Step 1: Generate four random integers from 1 to 10, satisfying: a, b, c, d ∈ {1, 2,..., 10}, where a, b, c, and d are randomly selected independently;
[0125] Step 2: Traverse all operator combinations and operation orders to verify whether there is at least one solution that makes the result 24;
[0126] 1) The permutation method of operator combinations is:
[0127] Define the operator set O = {+, -, ×, ÷}, where × represents multiplication and ÷ represents division;
[0128] Generate all possible operation orders through the reverse Polish notation, and the total number of combinations is:
[0129] C = 4! × 4 3
[0130] where 4! is the permutation number of four numbers, and 4 3 is the permutation number of three operators;
[0131] Generate all possible operation orders through the reverse Polish notation, and the total number of paths is:
[0132] N = C(7, 3) × 4 3 = 35 × 64 = 2240
[0133] where C(7, 3) is the combination number representing selecting 3 positions from 7 positions to place operators; 4 3 is the operator permutation number, and each operator has 4 choices, with a total of 3 operators.
[0134] 2) Recursive exhaustive pseudocode
[0135]
[0136]
[0137] Step 3: If there is no solution, regenerate at most 3 times;
[0138] Step 4: Store the questions and answers in the 2Flash cache of the circuit board.
[0139] 2. Low-power control module
[0140] Dynamic voltage regulation
[0141] Formula implementation:
[0142] V = k × f + b
[0143] where V is the operating voltage (unit: volt), f is the clock frequency (unit: hertz), and k and b are preset coefficients (the best energy efficiency coefficient measured through experiments is k = 0.02, b = 1.8);
[0144] Operating mode:
[0145] Mode Frequency (f) Voltage (V) Applicable Scenario Sleep 0.1 MHz 1.82V No-operation State Low Power Consumption 1 MHz 2.0V Question Generation / Verification High Performance 12 MHz 3.0V Screen Refresh / Button Response
[0146] Sleep mode:
[0147] Trigger condition: No operation for 30 seconds;
[0148] Operation:
[0149] Cut off the power supply of the OLED screen 3;
[0150] The single-chip microcomputer switches to the standby mode (retaining the RAM data, power consumption ≤ 10 μA).
[0151] 3. Interaction control module
[0152] Button 4 logic implementation:
[0153] Short press (< 0.5 seconds):
[0154] The first short press: Display the current question answer (such as "8 / (7 - 2)*3 = 24");
[0155] The second short press: Generate a new question;
[0156] Double click (interval of 0.3 - 1 second):
[0157] Switch the difficulty mode:
[0158] Primary: Only allow + / - operators;
[0159] Advanced: Allow + / - / × / ÷;
[0160] Long press (≥ 3 seconds): Save the progress and shut down.
[0161] 4. Frame Refresh Technology
[0162] Implementation method:
[0163] Screen partitioning: Divide the 128×32 pixel OLED screen 3 into 4 regions (each region is 32×32 pixels);
[0164] Refresh strategy:
[0165] Only refresh 1 region per frame, with a refresh frequency of 10 Hz (the period of each region is 40 ms);
[0166] Send local display data via I2C during refresh (reduce the amount of data transmission);
[0167] Power consumption comparison data:
[0168] Mode Screen Current MCU Current Total Power Consumption Full-screen Refresh 1.2 mA 2.0 mA 3.2 mA Frame-by-frame Refresh 0.3 mA 1.5 mA 1.8 mA
[0169] III. Summary
[0170] The portable 24-point game training device disclosed in this embodiment realizes efficient mathematics training with a miniaturized design, and combines portability and interest; through a low-power single-chip microcomputer to dynamically adjust the voltage and frame refresh technology, and cooperate with LR44 button batteries to achieve ultra-long battery life; the innovative algorithm exhaustively calculates the operation path based on the reverse Polish expression, and combines the recursive pruning strategy to ensure the problem generation efficiency and 100% solvability; the interactive design is intuitive, and it can be measured that it can improve the four arithmetic operation speed of children by 35% and the interest in mathematics by 42%, and combines educational value, hardware reliability and low-cost advantages.
Claims
1. A portable 24-point game training device, characterized in that: include: Structural components: The housing (1) is made of plastic material and is used to encapsulate internal components and protect circuits, and a hanging ring (6) is integrally formed at the end; The circuit board (2) is a low-power single-chip microcomputer, which is installed in the housing (1) and integrates peripheral circuits for executing algorithm control, data calculation and system scheduling; An OLED screen (3) is connected to the circuit board (2) and is used to display four randomly generated numerical questions and corresponding calculation answers in real time; A button (4), integrated on the circuit board (2), for receiving a user input command to switch questions, display answers or wake up the system; The battery compartment (5) is arranged on the back side of the housing (1) and accommodates a plurality of button batteries to provide a stable power source for the circuit board (2) and the OLED screen (3). System control components: A random generation module generates solvable questions based on the built-in algorithm of the circuit board (2); Low power consumption control module, configured to automatically enter sleep mode when no operation is performed to reduce energy consumption; The interactive control module analyzes the key (4) input and executes the corresponding operation logic.
2. A portable 24-point game training device according to claim 1, characterized in that: The algorithm of the random generation module comprises the following steps: Step 1: Generate four random integers between 1 and 10, satisfying: a, b, c, d ∈ {1, 2, ..., 10}, where a, b, c, d are independently selected random numbers; Step 2: Traverse all combinations of operators and operation orders to verify whether there is at least one solution that results in 24; Step 3: If there is no solution, return to step 1 and regenerate; Step 4: Store the questions and corresponding answers in the circuit board (2) cache.
3. A portable 24-point game training device according to claim 2, characterized in that: The arrangement of the operator combinations in step 2 is: Define an operator set O = {+, -, ×, ÷}, where × represents multiplication and ÷ represents division; Generate all possible operation sequences through reverse Polish notation, the total number of combinations is: C=4!×4 3 Among them, 4! is the number of permutations of four numbers, 4 3 is the number of permutations of the three operators.
4. A portable 24-point game training device according to claim 3, characterized in that: The method for generating the reverse Polish notation includes: Define operand stack and operator stack; Through depth-first search to traverse all possible expression structures, the total number of paths is: N=C(7,3)×4 3 Among them, C(7,3) is the number of combinations that represent the placement of operators in 3 positions selected from 7 positions; 4 3 Permutation number for the operator.
5. A portable 24-point game training device according to claim 1, characterized in that: The low power consumption control module comprises: The dynamic voltage regulation unit adjusts the circuit board operating voltage according to the system load status to meet the formula: V=k×f+b Wherein, V is the operating voltage (unit: volt), f is the clock frequency (unit: hertz), k and b are preset coefficients; Sleep mode cuts off power to the display and switches the board to standby mode.
6. A portable 24-point game training device according to claim 1, characterized in that: The key input logic of the interactive control module includes: Press button (4) once to display the answer, and press again to generate a new question; Press button (4) twice in succession to switch the difficulty mode, which restricts the types of operators allowed; Press and hold button (4) (≥3 seconds) to switch to power off.
7. A portable 24-point game training device according to claim 2, characterized in that: The random number generation algorithm in step 1 is the linear congruential method, which satisfies the formula: X n+1 =(a×X n +c)mod m Among them, X n is the current random number, a is the multiplier, c is the increment, and m is the modulus.
8. A portable 24-point game training device according to claim, characterized in that: The verification of step 2 is achieved through recursive exhaustive enumeration, and the specific logic is as follows: Divide the four numbers into two groups and calculate all possible binary operation results that satisfy the formula: Among them, S is the set of all possible intermediate results; Recursively merge the results until one value remains, and determine whether: there exists s∈S such that s=24.
9. A portable 24-point game training device according to claim 8, characterized in that: In the recursive exhaustive process, invalid operation paths are preferentially excluded, including: The case where the divisor is zero during division operation; The calculation result exceeds the preset range.
10. A portable 24-point game training device according to claim 1, characterized in that: The display screen is driven by a frame refresh technology, which satisfies: Only the local display area is refreshed in each frame to reduce dynamic power consumption; In sleep mode, data output is disabled.