Tangram device for realizing pattern recognition by utilizing magnet characteristics
By utilizing magnet characteristics and control circuits, the shape and position recognition of the tangrams is achieved, and the problem that existing tangrams cannot be reflected in real time and shape recognition is solved, improving the puzzle efficiency and gaming experience, becoming an ideal educational tool.
Patent Information
- Application Number
- CN202311819130.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-12-15
- Filing Date
- 2023-12-27
- Publication Date
- 2024-12-13
AI Technical Summary
The existing tangrams cannot provide real-time feedback to the player's operations, and cannot portably identify each small board shape, which increases the cost of use, and the small board position is unstable and easy to be scattered, resulting in cumbersome operation.
A tiara device that uses magnet characteristics to achieve graphic recognition, including substrate and magnetic tiara, the substrate is embedded with control circuits and magnets, and the graphics recognition and positioning are achieved through magnetic tiara connections, and uses magnetic key matrix and lighting matrix to provide real-time feedback.
Real-time recognition of the shape and position of the tangram is achieved, reducing the number of operations, improving the efficiency of the puzzle, enhancing the game experience, and becoming a fun, interactive and educational puzzle tool.
Smart Images

Figure CN119113502A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of educational toys, and in particular relates to a tangram device which utilizes the characteristics of magnets to realize pattern recognition. Background Art
[0002] Tangram is a popular jigsaw puzzle game. Using this ingenious tool consisting of seven small boards, people can piece together various realistic patterns. This game toy is designed to cultivate young people's innovation, independent thinking and hands-on ability. Tangram is a simple and easy game that can stimulate players' creativity and flexibility of thinking. However, traditional tangram lacks feedback to players, and players will feel boring and dull during the splicing process.
[0003] For this reason, many studies have been conducted to enhance the fun of tangrams. Chinese patent CN100544801C discloses a tangram, which includes a display screen that can display the splicing process and a keyboard that controls the display. The lower half is a concave magnetic platter in which the tangram is placed, and the upper and lower parts of the shell are hingedly connected to form a loose-leaf structure. However, this display screen only displays the splicing method of the picture and cannot provide feedback to the player's placement operation. Chinese patent CN103349841A discloses a tangram equipped with a control circuit and a speaker. A Hall sensor is installed on the bottom back of the template groove. When there is a magnet in the tangram, when the template groove is placed, the Hall sensor will be triggered so that the speaker emits a prompt sound, but its template groove can only sense a specific single graphic and is not reusable. At present, the tangram recognition method can often only recognize whether there is a small board placed, and cannot recognize the shape of each small board, and requires additional electronic sensors to sense, increasing manufacturing costs. Chinese patent CN111079698A discloses a design that uses vision to detect the shape of each tangram board, but it needs to rely on a camera and a computer to process data and is not portable.
[0004] In the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: the existing tangram puzzle cannot provide real-time feedback to the player's placement each time, which will cause the player to feel confused and other negative emotions, and it is impossible to achieve portable identification of each small board, which often requires additional identification equipment, increasing the cost of use. In addition, the placement of the small boards of the tangram puzzle is not accurately positioned, and often needs to be adjusted continuously, and there is no suction effect. The position of the small boards is easily scattered, which increases the number of operations of the player. Summary of the invention
[0005] The purpose of the embodiment of the present application is to provide a tangram device that uses the characteristics of magnets to achieve pattern recognition, which is convenient for display education, has the function of detecting the shape and position of the placed tangram, has a delicate structure and is relatively low in cost. The present invention has the advantages of prompting children to quickly spell out patterns during the jigsaw puzzle game, promoting the development of children's brains, and has a simple structure and is easy to use.
[0006] The embodiment of the present application provides a tangram device for realizing pattern recognition by utilizing the characteristics of magnets, comprising a substrate and a magnetic tangram, wherein the substrate has an embedded control circuit and a substrate magnet pair, and the magnetic tangram is connected to the substrate by magnetic attraction;
[0007] The magnetic tangram puzzle includes seven plates, namely a first large triangle, a second large triangle, a square, a parallelogram, a first small triangle, a second small triangle, and a middle triangle. Each plate is composed of a number of triangular units. A unit magnet is embedded at the center of the inscribed circle of each triangular unit to achieve magnetic attraction through the interaction between the substrate magnet pair and the unit magnet.
[0008] Furthermore, the unit magnet is a micro magnet with a diameter larger than the diameter of the substrate magnet pair and a thickness larger than the thickness of the magnetic tangram puzzle board.
[0009] Furthermore, the unit magnet has a diameter of 6 mm to 8 mm and a thickness of 4 mm to 4.5 mm.
[0010] Furthermore, each plate body is made by laser cutting and has a thickness of 1.5 mm to 2 mm, wherein the hole for embedding the unit magnet is cut through, and the diameter of the hole is smaller than the diameter of the unit magnet to achieve an interference fit between the unit magnet and the plate body.
[0011] Furthermore, the diameter of the substrate magnet pair is 1.5 mm-2.5 mm, the thickness is 1 mm-1.5 mm, and the thickness of the substrate magnet pair is greater than the thickness of the substrate.
[0012] Furthermore, the control circuit includes a main control module, a lighting effect matrix module, and a magnetic button matrix module;
[0013] The main control module is a single chip microcomputer and its peripheral circuits, including a number of row pins, a number of column pins and a lamp pin;
[0014] The substrate is divided into a plurality of unit areas according to the triangular units of the magnetic tangram puzzle, and the substrate magnet pairs are arranged on each unit area to form the magnetic key matrix module, and the left monomer of each pair of the substrate magnet pairs is electrically connected to the row pin of the main control module through a diode, and the right monomer is electrically connected to the column pin of the main control module, wherein the left monomer of the substrate magnet pair is electrically connected to the positive electrode of the diode, and the negative electrode of the diode is electrically connected to the row pin of the main control module;
[0015] The lighting effect matrix module is electrically connected to the lighting pins of the main control module to provide visual feedback.
[0016] Furthermore, each row pin is electrically connected to a pull-down resistor.
[0017] Furthermore, the lighting effect matrix module includes a light-emitting electronic element located in each unit area, wherein the light-emitting electronic element is a light-emitting electronic element that can emit light of different colors.
[0018] Furthermore, the graphic recognition is realized by the control circuit, including:
[0019] The row and column coordinates of the target graphic are stored in the main control module;
[0020] If the user places any plate on the substrate, the substrate magnet pair and the unit magnet on the plate are attracted to each other, so that the corresponding row pins and column pins are turned on;
[0021] The row and column coordinates of the turned-on image are compared with the row and column coordinates of the target image. If the row and column coordinates of the turned-on image are included in the row and column coordinates of the target image, the judgment is correct, otherwise it is wrong.
[0022] Furthermore, before the pattern recognition is realized by the control circuit, the main control module performs pin initialization: for n rows and m columns of pins, the column pins are set to output mode, the row pins are set to input mode, and the column pins output high level successively from the smallest to the largest column number;
[0023] In the process of realizing the graphic recognition through the control circuit, the main control module scans the pin status to determine the row and column coordinates that are turned on: read the column pins 0 to m-1 in sequence, if the column pin i outputs a high level, then read the level status of the row pins 0 to n-1 in sequence, if the row pin j is in a high level state, then (i, j) is used as the row and column coordinates that are turned on.
[0024] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0025] As can be seen from the above embodiments, the present application cleverly utilizes the physical properties of magnet attraction and conductivity. The magnetic tangram can be well attracted to the substrate, helping the tangram board to stabilize its position, while reducing the number and time of operations to adjust the tangram board, and providing visual assistance with the help of the triangular grid array silk screen on the substrate; when the magnetic tangram and the substrate are attracted, the control circuit on the substrate can obtain the pressing information of the magnetic key matrix, thereby realizing graphic recognition, and comparing it with the pre-stored pattern library, and giving feedback to the player through lighting. It overcomes the technical problem that the tangram is usually unable to recognize the placed graphics and provide real-time feedback to the player in the past. It helps them to quickly spell out the graphics, effectively avoid boredom during the game, and increase their interest in jigsaw puzzles. The device has a simple structure and is easy to use, making it an ideal educational tool, providing a more interesting, interactive and educational jigsaw puzzle experience.
[0026] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0028] Figure 1 The figure is a three-dimensional schematic diagram of a tangram device for realizing pattern recognition by utilizing the characteristics of magnets according to an exemplary embodiment.
[0029] Figure 2 is a schematic diagram of seven magnetic tangram puzzles according to an exemplary embodiment.
[0030] Figure 3 is a diagram of a first small triangle structure according to an exemplary embodiment.
[0031] Figure 4 is a diagram showing a substrate structure according to an exemplary embodiment.
[0032] Figure 5 is a circuit diagram of a substrate according to an exemplary embodiment.
[0033] Figure 6 is a side view of a magnetic connection according to an exemplary embodiment.
[0034] Figure 7 It is a flowchart according to an exemplary embodiment.
[0035] Figure 8 The figure is a schematic diagram of a pattern that can be assembled according to an exemplary embodiment.
[0036] Figure numerals: 1. substrate; 11. main control module; 12. magnetic button matrix module; 13. lighting effect matrix module; 14. diode; 15. substrate magnet pair; 151. substrate magnet; 2. magnetic tangram; 21. first large triangle; 22. second large triangle; 23. square; 24. parallelogram; 25. first small triangle; 26. second small triangle; 27. middle triangle; 28. unit magnet. DETAILED DESCRIPTION
[0037] Here, exemplary embodiments are described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.
[0038] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0039] The present application provides a tangram device that utilizes the characteristics of magnets to realize pattern recognition, such as Figure 1 As shown, it includes a substrate 1 and a magnetic tangram puzzle 2, wherein the substrate has an embedded control circuit and a substrate magnet pair 15, and the magnetic tangram puzzle 2 is connected to the substrate 1 by magnetic attraction.
[0040] like Figure 2 As shown, the magnetic tangram 2 has the same appearance as the traditional tangram, and both include seven plates, namely the first large triangle 21, the second large triangle 22, the square 23, the parallelogram 24, the first small triangle 25, the second small triangle 26, and the middle triangle 27. By observing the various figures of the traditional tangram, it is not difficult to find that the seven tangram figures can be divided into a combination of several triangular units. According to the combination of the smallest triangular units of each board, a unit magnet 28 is embedded at the center of the inscribed circle of the smallest triangular unit, so as to achieve magnetic attraction through the interaction between the substrate magnet pair 15 and the unit magnet 28.
[0041] like Figure 3As shown, the unit magnet 28 is a micro magnet with a diameter greater than the diameter of the substrate magnet 151 and a thickness greater than the thickness of the magnetic tangram 2. Specifically, the diameter of the unit magnet 28 is 6mm to 8mm and the thickness is 4mm to 4.5mm. The magnetic tangram 2 is made by laser cutting a plate (such as an acrylic plate) with a thickness of 2mm. Because the depth of laser scanning cutting is difficult to keep consistent, the position where the unit magnet 28 needs to be embedded in the center of the acrylic is cut out in a through-cut manner. When cutting, the hole size is slightly smaller than the diameter of the unit magnet 28, which can usually be 90%-95% of the diameter of the unit magnet 28, so that the unit magnet 28 and the acrylic plate have an interference fit and provide a certain preload force. The unit magnet 28 is 2-2.5mm thicker than the acrylic plate to leave a distance to prevent interference with the components on the substrate 1. Figure 3 Taking the first small triangle 25 in the magnetic tangram puzzle 2 as an example, other patterns are made in the same way and will not be described in detail.
[0042] like Figure 4 As shown, the substrate 1 has a built-in control circuit and a substrate magnet pair 15, which is a customized printed circuit board with a thickness of 1 mm. The circuit includes a main control module 11, a magnetic key matrix module 12, and a lighting matrix module 13. The substrate magnet pair 15 constitutes the magnetic key matrix module 12. The substrate 1 is divided into 4×8=32 areas according to the shape of the smallest unit triangle of the magnetic tangram 2, and a continuous triangular grid array is screen-printed according to these areas. Therefore, when placing, the effective placement state of each magnetic tangram 2 component is limited.
[0043] The main control module 11 is a single chip microcomputer and its peripheral circuits. In one embodiment, Figure 5 As shown, the main control module 11 is an ESP32-WROOM-32 chip and its basic peripheral circuits, wherein IO15, IO2, IO4, IO16 are row pins, IO13, IO12, IO14, IO27, IO26, IO25, IO33, IO32 are column pins, and IO5 is a light pin.
[0044] The magnetic key matrix module 12 is 4×8=32 pairs of substrate magnets 151 located at the inscribed center of each area, wherein each substrate magnet 151 has a diameter of 1.5mm-2.5mm and a thickness of 1mm-1.5mm. In one embodiment, it is a miniature neodymium iron boron magnet with a diameter of 2mm and a thickness of 1.5mm. It can also be other types of magnets, and the present application does not limit it. The left monomer of each pair of substrate magnets 151 is electrically connected to the positive pole of the diode 14, and the negative pole of the diode 14 is electrically connected to the row pin of the main control module 11. The right monomer of each pair of substrate magnets 151 is electrically connected to the column pin of the main control module 11. The diode 14 can improve the anti-interference ability and input accuracy of the magnetic key, so that the current can only flow in one direction, that is, it prevents the current from flowing back from other paths. Even if the user connects multiple magnetic keys at the same time, the circuit can accurately judge. Each row pin is electrically connected to a 470 ohm pull-down resistor. The row pin is in input mode. When it is not connected to anything, it is in a suspended state, also known as a high impedance state. In this case, the voltage of the pin may be affected by the surrounding electromagnetic environment, or due to the circuit characteristics inside the microcontroller, the voltage may be in an uncertain state. This may cause the system to misunderstand the actual level state of the pin, which in turn leads to incorrect operation. The pull-down resistor connects the pin to the ground (zero voltage), thereby ensuring that the pin remains in a logical low state when there is no other signal input. This avoids the pin being in an uncertain state and improves the reliability of the system.
[0045] The lighting effect matrix module 13 is a light-emitting electronic component (such as WS2812B LED, etc.) located in each area, which is electrically connected to the light pins of the main control module 11 to provide visual feedback.
[0046] like Figure 6 As shown, when in use, the user can place the magnetic tangram 2 of any shape on the substrate. Since the position of the unit magnet 28 on the magnetic tangram 2 corresponds to the position of each pair of substrate magnets 151 in the magnetic key matrix module 12 on the substrate 1, each unit magnet 28 in the magnetic tangram can simultaneously attract a pair of substrate magnets 151. Since the magnet is conductive, each pair of substrate magnets 15 attracted by the unit magnet 28 will be electrically connected, thereby realizing the conduction of the magnetic key.
[0047] In a specific implementation, the graphic recognition is realized by the control circuit, including: saving the row and column coordinates of the target graphic in the main control module 11; if the user places any board on the substrate 1, the substrate magnet pair 15 is attracted to the unit magnet 28 on the board, so that the corresponding row pins and column pins are turned on; the turned-on row and column coordinates are compared with the row and column coordinates of the target graphic, if the turned-on row and column coordinates are included in the row and column coordinates of the target image, it is judged to be correct, otherwise it is judged to be wrong.
[0048] Specifically, before the pattern recognition is realized by the control circuit, the main control module 11 performs pin initialization: for n rows and m columns of pins, the column pins are set to output mode, the row pins are set to input mode, and the column pins output high level successively from the smallest to the largest column number;
[0049] In the process of realizing the graphic recognition through the control circuit, the main control module 11 scans the pin status to determine the row and column coordinates that are turned on: read the column pins 0 to m-1 in sequence, if the column pin i outputs a high level, then read the level status of the row pins 0 to n-1 in sequence, if the row pin j is in a high level state, then (i, j) is used as the row and column coordinates that are turned on.
[0050] like Figure 7 As shown, the main control module 11 in the substrate 1 starts to initialize the pins, defines 4 rows and 8 columns, sets the column pins to output mode, and the row pins to input mode. Then the column pins col=0 to col=7 successively output high levels. When col is not less than 8, the col value is reset to zero, and so on. The level states of the row pins row=0 to row=4 are read in sequence. When row is not less than 4, the row value is reset to zero, and so on. When a magnetic key module is attracted, the row and column pins of the module are turned on. At this time, the high level of the column pin of the main control module will be output to the row pin, which will be read by the row pin. The main control module 11 records the values of col and row at this time, and you can know which row and column magnetic keys are turned on. In this way, you can know the pattern and position of the tangram that has been put down.
[0051] This tangram device can be assembled into many patterns. Please see Figure 8 , this article will not describe it in detail.
[0052] When operating, Figure 8Take the "fish" in the game as an example, store the pattern information in advance, and set the target graphic coordinates in the program as (2, 2)(2, 3)(2, 6)(3, 2)(3, 3)(3, 6). Connect the power supply, the lighting matrix module 13 will flash, and with the help of the triangular grid array silk screen on the substrate, the player can choose any shape of tangram to be attracted to the substrate. The main control module will compare the coordinates of the magnetic button matrix module 12 read with the target graphic coordinates. If the read coordinates are included in the target graphic coordinates, it is judged to be correct, and the read area will light up. If the read coordinates are not within the target graphic coordinates, it is judged that the tangram is placed incorrectly and the red light flashes. When the player cannot correctly assemble the graphics for a long time, the lighting matrix will also light up in the correct area to prompt the user. When the entire puzzle is completed correctly, the lighting matrix module 13 emits colorful light to congratulate the player.
[0053] In this embodiment, only one pattern can be pre-stored at a time. If you want to change the pattern, you need to change the target graphic coordinates in the program, and then re-burn the program into the main control module 11. It should be noted that in the specific implementation, multiple pre-stored patterns can also be set and switched by an additional button.
[0054] The magnetic tangram puzzle 2 can be stably adsorbed on the substrate, which reduces the number of times the position of the tangram puzzle is adjusted and improves the efficiency of the puzzle.
[0055] The triangular grid screen printing on the substrate 1 provides a visual reference for the user, making it easier to choose the appropriate tangram. The information of the magnetic key matrix module 12 is obtained by the control circuit, and the real-time recognition of the graphics and the real-time feedback of the user's operation are realized, which improves the user experience. The device provides an interesting, interactive and educational jigsaw puzzle game experience, which can be used as an ideal educational tool to promote the development of children's cognitive and hands-on abilities.
[0056] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the contents disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0057] It should be understood that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
Claims
1. A tangram device for realizing pattern recognition by utilizing the characteristics of magnets, characterized in that: It includes a substrate and a magnetic tangram puzzle, wherein the substrate is embedded with a control circuit and a substrate magnet pair, and the magnetic tangram puzzle is connected to the substrate by magnetic attraction; The magnetic tangram puzzle includes seven plates, namely a first large triangle, a second large triangle, a square, a parallelogram, a first small triangle, a second small triangle, and a middle triangle. Each plate is composed of a number of triangular units. A unit magnet is embedded at the center of the inscribed circle of each triangular unit to achieve magnetic attraction through the interaction between the substrate magnet pair and the unit magnet.
2. The device according to claim 1, characterized in that The unit magnet is a miniature magnet with a diameter larger than the diameter of the substrate magnet pair and a thickness larger than the thickness of the magnetic tangram board.
3. The device according to claim 1, characterized in that The unit magnet has a diameter of 6 mm to 8 mm and a thickness of 4 mm to 4.5 mm.
4. The device according to claim 1, characterized in that Each plate is made by laser cutting and has a thickness of 1.5 mm to 2 mm, wherein the hole for embedding the unit magnet is cut through, and the diameter of the hole is smaller than the diameter of the unit magnet to achieve interference fit between the unit magnet and the plate.
5. The device according to claim 1, characterized in that The diameter of the substrate magnet pair is 1.5 mm-2.5 mm, the thickness is 1 mm-1.5 mm, and the thickness of the substrate magnet pair is greater than the thickness of the substrate.
6. The device according to claim 1, characterized in that The control circuit includes a main control module, a lighting effect matrix module, and a magnetic button matrix module; The main control module is a single chip microcomputer and its peripheral circuits, including a number of row pins, a number of column pins and a lamp pin; The substrate is divided into a plurality of unit areas according to the triangular units of the magnetic tangram puzzle, and the substrate magnet pairs are arranged on each unit area to form the magnetic key matrix module, and the left monomer of each pair of the substrate magnet pairs is electrically connected to the row pin of the main control module through a diode, and the right monomer is electrically connected to the column pin of the main control module, wherein the left monomer of the substrate magnet pair is electrically connected to the positive electrode of the diode, and the negative electrode of the diode is electrically connected to the row pin of the main control module; The lighting effect matrix module is electrically connected to the lighting pins of the main control module to provide visual feedback.
7. The device according to claim 6, characterized in that Each row pin is electrically connected to a pull-down resistor.
8. The device according to claim 6, characterized in that The lighting effect matrix module includes a light-emitting electronic element located in each unit area, wherein the light-emitting electronic element is a light-emitting electronic element that can emit light of different colors.
9. The device according to claim 6, characterized in that The graphic recognition is realized by the control circuit, including: The row and column coordinates of the target graphic are stored in the main control module; If the user places any plate on the substrate, the substrate magnet pair and the unit magnet on the plate are attracted to each other, so that the corresponding row pins and column pins are turned on; The row and column coordinates of the turned-on image are compared with the row and column coordinates of the target image. If the row and column coordinates of the turned-on image are included in the row and column coordinates of the target image, the judgment is correct, otherwise it is wrong.
10. The device according to claim 6, characterized in that Before the pattern recognition is realized by the control circuit, the main control module performs pin initialization: for n rows and m columns of pins, the column pins are set to output mode, the row pins are set to input mode, and the column pins output high level successively from the smallest to the largest column number; In the process of realizing the graphic recognition through the control circuit, the main control module scans the pin status to determine the row and column coordinates that are turned on: read the column pins 0 to m-1 in sequence, if the column pin i outputs a high level, then read the level status of the row pins 0 to n-1 in sequence, if the row pin j is in a high level state, then (i, j) is used as the row and column coordinates that are turned on.
