Luminous building block control method and device based on encouraging effect and electronic equipment
By identifying and distributing the circuit connectivity and luminous effects of luminescent building blocks, the problem that building blocks cannot give children reward feedback in the prior art is solved, and the spiritual satisfaction of children is achieved.
Patent Information
- Application Number
- CN202310820785.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-05
- Publication Date
- 2025-01-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing programmable control methods for luminous building blocks cannot provide children with reward feedback and spiritual satisfaction.
By identifying the circuit connectivity of luminescent building blocks and performing luminescence tests, the central control blocks are used to adjust the luminescence effect to achieve reward feedback to children.
It solves the problem that building blocks cannot give children reward feedback, and at the same time, it provides children with spiritual satisfaction through the built-in luminous effect.
Smart Images

Figure CN119258546A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of building block luminous control, and in particular to a control method, device, electronic device and computer-readable storage medium of a luminous building block based on an encouragement effect. Background Art
[0002] The patent document (CN 1 0 6 2 6 7 8 4 7A) discloses a programmable control method for luminous building blocks, comprising the following steps: 1) building at least one light-emitting diode group in a single building block body, the light-emitting diode group including two light-emitting diodes, the two light-emitting diodes are arranged in opposite directions or in the same direction, and the two light-emitting diodes emit different color lights respectively; 2) selecting the color light of a single building block body; 3) splicing multiple building block bodies to form a building block assembly, and splicing makes the light-emitting diodes in multiple building block bodies connected; 4) selecting a positive and negative electrode combination from the positive and negative electrodes to realize the electrical connection between the building block assembly and the control unit; 5) the control unit outputs the corresponding control instructions to the building block assembly, and the building block assembly runs the corresponding color lights. Compared with the prior art, the present invention can realize the programmable control of the color light and pattern light after the building blocks are spliced, thereby replacing the simple splicing of the traditional luminous building blocks, which is more suitable for the development of children's programming intelligence. However, the existing programmable control method for luminous building blocks cannot solve the problem that the building blocks cannot give children reward feedback, and at the same time cannot give children spiritual satisfaction. Summary of the invention
[0003] The present invention provides a control method, device and computer-readable storage medium of luminous building blocks based on encouragement effect, the main purpose of which is to solve the problem that building blocks cannot give reward feedback to children, and at the same time give children spiritual satisfaction by building and luminous blocks.
[0004] To achieve the above object, the present invention provides a control method of luminous building blocks based on the encouragement effect, comprising:
[0005] Receive a light-emitting block recognition instruction, and recognize a three-dimensional effect block constructed by m light source blocks, n overlapping blocks, and a central control block according to the light-emitting block recognition instruction;
[0006] Determining the circuit connectivity of the luminous building block according to the three-dimensional effect building block;
[0007] If the circuit of the luminous building block is not connected, the luminous building block is incomplete;
[0008] If the circuit of the luminous building block is connected, the luminous building block is complete and a luminous test is performed;
[0009] Receive the complete instruction of the luminous building block, and deploy the central control building block to control the light emission according to the complete instruction of the luminous building block, so as to achieve the luminous building block reward effect.
[0010] Preferably, the light source building block is composed of a transparent building block, an LED light, and a groove with a spring connector;
[0011] The overlapping building blocks include common overlapping building blocks and connected overlapping building blocks, wherein the connected overlapping building blocks are composed of at least one of a building block, a metal contact, and a groove with a spring connector, and the common overlapping building blocks are composed of at least one of a building block, a convex point, and a groove;
[0012] The central control building block is composed of a central control building block, the metal contact, the groove with a spring connector, a PCB board and a battery.
[0013] Preferably, the step of identifying a three-dimensional effect building block constructed by m light source building blocks, n overlapping building blocks, and a central control building block according to the light-emitting building block identification instruction includes:
[0014] The numbers, positions, and connection information of the m light source blocks are recorded as {B1 ID , B1 Pos , B1 Con , ..., Bm ID , Bm Pos , Bm Con};
[0015] The numbers, positions and connection information of the n overlapping blocks are recorded as {C1 ID , C1 Pos , C1 Con , ..., Cn ID , Cn Pos , Cn Con};
[0016] A rectangular coordinate system is established with the central control building block as the origin, and the coordinate positions of the m light source building blocks and the n overlapping building blocks are marked by the numbers, positions, and connection information of the m light source building blocks and the n overlapping building blocks;
[0017] The coordinate positions of the m light source blocks and the n overlapping blocks are input into a pre-built recognition model to recognize the three-dimensional effect blocks.
[0018] Preferably, the step of inputting the coordinate positions of the m light source blocks and the n overlapping blocks into a pre-built recognition model to recognize the three-dimensional effect blocks comprises:
[0019] Sorting and numbering the m light source blocks and the n overlapping blocks according to their coordinate positions to obtain numbers to be identified, wherein the numbers to be identified correspond one-to-one to the identification numbers in the pre-built identification model;
[0020] Inputting the number to be identified into the pre-built identification model and matching it with the identification number in the pre-built identification model;
[0021] If the to-be-identified number completely matches and corresponds to the identification number, the identification of the three-dimensional effect building block is completed.
[0022] Preferably, judging the circuit connectivity of the luminous building block according to the three-dimensional effect building block comprises:
[0023] According to the circuit path of the preset luminous building block, the coordinate positions of the light source building block and the overlapping building block passing through the circuit path of the preset luminous building block are recorded;
[0024] Assume that the coordinate positions of the light source blocks are {(x1, y1), (x2, y2), ..., (x m ,y m )}, the coordinate position of the overlapping building block is {(x n-1 ,y n-1 ), (x n ,y n ),...,(x 2n ,y 2n )};
[0025] Compare the x-axis coordinates and y-axis coordinates of the coordinate position of the light source building block with the coordinate position of the overlapping building block;
[0026] When any two groups of the x-axis coordinates are not connected or any two groups of the y-axis coordinates are not connected, the circuit of the luminous building block is not connected;
[0027] When any two groups of the x-axis coordinates are connected or any two groups of the y-axis coordinates are connected, the circuit of the luminous building block is connected.
[0028] Preferably, if the circuit of the luminous building block is connected, the luminous building block is complete, and a luminous test is performed, including:
[0029] The building blocks of the three-dimensional effect building blocks are numbered from 0 to m+n, the central control building block is numbered from 0, the light source building blocks are numbered from 1 to m, and the overlapping building blocks are numbered from m+1 to m+n; wherein the connecting overlapping building blocks are numbered from m+1 to m+n p;
[0030] When the central control block is overlapped with the connecting block or the connecting block is overlapped with the light source block, the blocks on the lower layer send signals to the ports corresponding to the blocks on the upper layer through the metal contacts;
[0031] The PCB board of the central control building block receives the signal and performs a lighting test to make the light source building block light up.
[0032] Preferably, the PCB board includes two registers 74LS194, a calculator 74LS190, an inverter 74LS04, m LED lights, an OR gate element, and three clocks.
[0033] Preferably, the step of adjusting the central control block to control the light emission according to the complete instruction of the light-emitting block to achieve the light-emitting block reward effect includes:
[0034] The two registers 74LS194 are connected into an 8-bit bidirectional shift register, the SS, MR, and CLK of the two 74LS194 are connected in parallel, the Q3 of the low chip is connected to the SR of the high chip, and the 00 of the high chip is connected to the SL of the low chip;
[0035] The 8-bit bidirectional shift register is shifted right, shifted left and merged into three working state cycles, that is, SS is between 01, 10 and 11, and Q1 and Q0 of the cycle counter 74LS190 are connected to SS of the two 74LS194 respectively;
[0036] Connect DO and D3 of the two registers 74LS194 together, and then connect m LED lights in parallel to achieve the luminous building block reward effect.
[0037] A control device for luminous building blocks based on an encouragement effect, the device comprising:
[0038] The luminous block recognition module recognizes the three-dimensional effect blocks constructed by m light source blocks, n overlapping blocks, and central control blocks according to the luminous block recognition instruction;
[0039] A connectivity judgment module, which judges the circuit connectivity of the luminous building blocks based on the three-dimensional effect building blocks;
[0040] If the circuit of the luminous building block is not connected, the luminous building block is incomplete;
[0041] If the circuit of the luminous building block is connected, the luminous building block is complete;
[0042] Luminous test module, used to perform luminous test on complete luminous building blocks;
[0043] The luminous reward module deploys the central control blocks for luminous control according to the complete instructions of the luminous blocks to achieve the luminous block reward effect.
[0044] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0045] a memory storing at least one instruction; and
[0046] The processor executes the instructions stored in the memory to implement the control method of the luminous building block based on the encouragement effect.
[0047] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned control method of luminous building blocks based on encouragement effect.
[0048] In order to solve the problems described in the background technology, the embodiment of the present invention first identifies the three-dimensional effect building blocks constructed by m light source building blocks, n overlapping building blocks, and central control building blocks according to the luminous building block recognition instruction; then judges the circuit connectivity of the luminous building blocks according to the three-dimensional effect building blocks; if the circuit of the luminous building blocks is connected, the luminous building blocks are complete, and the luminescence test is performed using the central control building blocks; finally, the central control building blocks are deployed according to the complete instruction of the luminous building blocks for luminescence control, so as to achieve the reward effect of the luminous building blocks. Therefore, the control method, device, electronic device and computer-readable storage medium of the luminous building blocks based on the encouragement effect proposed by the present invention can solve the problem that the building blocks cannot give children reward feedback, and at the same time, the children can be given spiritual satisfaction by completing the luminescence. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic flow chart of a control method of a luminous building block based on an encouragement effect provided by an embodiment of the present invention;
[0050] Figure 2 A control circuit diagram of a luminous building block based on an encouragement effect provided by an embodiment of the present invention;
[0051] Figure 3 A functional module diagram of a control device for luminous building blocks based on an encouragement effect provided by an embodiment of the present invention;
[0052] Figure 4 A schematic diagram of the structure of an electronic device for implementing the control method of the luminous building blocks based on the encouragement effect provided by an embodiment of the present invention.
[0053] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0055] The embodiment of the present application provides a control method for luminous building blocks based on the encouragement effect. The execution subject of the control method for luminous building blocks based on the encouragement effect includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the control method for luminous building blocks based on the encouragement effect can be executed by software or hardware installed in a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.
[0056] Reference Figure 1 -2 is a flow chart of a control method of a luminous building block based on an encouragement effect provided by an embodiment of the present invention. In this embodiment, the control method of a luminous building block based on an encouragement effect includes:
[0057] S1: receiving a light-emitting block recognition instruction, and identifying a three-dimensional effect block constructed by m light source blocks, n overlapping blocks, and a central control block according to the light-emitting block recognition instruction;
[0058] Furthermore, the light source building block is composed of a transparent building block, an LED light, and a groove with a spring connector;
[0059] The overlapping building blocks include common overlapping building blocks and connected overlapping building blocks, wherein the connected overlapping building blocks are composed of at least one of a building block, a metal contact, and a groove with a spring connector, and the common overlapping building blocks are composed of at least one of a building block, a convex point, and a groove;
[0060] The central control building block is composed of a central control building block, the metal contact, the groove with a spring connector, a PCB board and a battery.
[0061] It should be explained that, in the embodiment of the present invention, the light source blocks are arranged on the outer layer of the luminous blocks. When the LED light is on, the light source is transmitted through the transparent building blocks. Since the light source blocks are arranged on the outer layer, the light source blocks have grooves of spring connectors on the sides or bottoms, which are convenient for connecting the metal contacts of the overlapping blocks or the convex points of the ordinary overlapping blocks for splicing, and the light source blocks are distributed at the corners or edges of the entire luminous building blocks.
[0062] At the same time, in the process of building the luminous building blocks, not only the light source building blocks are needed, but also the ordinary overlapping building blocks and the connecting overlapping building blocks. The ordinary overlapping building blocks are used to splice the positions outside the circuit path of the luminous building blocks, and the connecting overlapping building blocks are used to splice the light source building blocks and the central control building blocks, so the ordinary overlapping building blocks only have building blocks and spliced protrusions and grooves. Since the ordinary overlapping building blocks may be in the outer layer and the inner layer, the ordinary overlapping building blocks are at least composed of one of the building blocks, protrusions and grooves. Some ordinary overlapping building blocks have no protrusions on the upper ends, and some ordinary overlapping building blocks have no protrusions on the upper ends, while the connecting overlapping building blocks are provided with metal contacts and grooves with spring connectors. Similarly, the connecting overlapping building blocks may also be in the outer layer and the inner layer, so the connecting overlapping building blocks are at least composed of one of the building blocks, metal contacts and grooves with spring connectors. Some connecting overlapping building blocks have no protrusions on the upper ends, and some connecting overlapping building blocks have no protrusions on the upper ends.
[0063] The central control building block is set at the bottom of the luminous building block to facilitate charging the battery.
[0064] Specifically, the step of identifying the three-dimensional effect building blocks formed by m light source building blocks, n overlapping building blocks, and central control building blocks according to the light-emitting building block identification instruction includes:
[0065] The numbers, positions, and connection information of the m light source blocks are recorded as {B1 ID , B1 Pos , B1 Con , ..., Bm ID , Bm Pos , Bm Con};
[0066] The numbers, positions and connection information of the n overlapping blocks are recorded as {C1 ID , C1 Pos , C1 Con , ..., tn ID , Cn Pos , Cn Con};
[0067] A rectangular coordinate system is established with the central control building block as the origin, and the coordinate positions of the m light source building blocks and the n overlapping building blocks are marked by the numbers, positions, and connection information of the m light source building blocks and the n overlapping building blocks;
[0068] The coordinate positions of the m light source blocks and the n overlapping blocks are input into a pre-built recognition model to recognize the three-dimensional effect blocks.
[0069] It should be explained that, in the embodiment of the present invention, since there is only one central control building block, the position of the central control building block is fixed and there is no duplication, while the number of light source building blocks and overlapping building blocks is relatively large, especially the overlapping building blocks, so it is necessary to record the numbering, position, and connection information of the light source building blocks and the overlapping building blocks for building three-dimensional effect building blocks.
[0070] Furthermore, the step of inputting the coordinate positions of the m light source blocks and the n overlapping blocks into a pre-built recognition model to recognize the three-dimensional effect blocks includes:
[0071] Sorting and numbering the m light source blocks and the n overlapping blocks according to their coordinate positions to obtain numbers to be identified, wherein the numbers to be identified correspond one-to-one to the identification numbers in the pre-built identification model;
[0072] Inputting the number to be identified into the pre-built identification model and matching it with the identification number in the pre-built identification model;
[0073] If the to-be-identified number completely matches and corresponds to the identification number, the identification of the three-dimensional effect building block is completed.
[0074] S2: judging the circuit connectivity of the luminous building block according to the 3D effect building block;
[0075] Further, judging the circuit connectivity of the luminous building block according to the three-dimensional effect building block includes:
[0076] According to the circuit path of the preset luminous building block, the coordinate positions of the light source building block and the overlapping building block passing through the circuit path of the preset luminous building block are recorded;
[0077] Assume that the coordinate positions of the light source blocks are {(x1, y1), (x2, y2), ..., (x m ,y m )}, the coordinate position of the overlapping building block is {(x n-1 ,y n-1 ), (x n ,y n ),...,(x 2n ,y 2n )};
[0078] Compare the x-axis coordinates and y-axis coordinates of the coordinate position of the light source building block with the coordinate position of the overlapping building block;
[0079] When any two groups of the x-axis coordinates are not connected or any two groups of the y-axis coordinates are not connected, the circuit of the luminous building block is not connected;
[0080] When any two groups of the x-axis coordinates are connected or any two groups of the y-axis coordinates are connected, the circuit of the luminous building block is connected.
[0081] It needs to be explained that in the embodiment of the present invention, the circuit path of the luminous building blocks is set before the luminous building blocks are built, so the coordinate positions of the three-dimensional effect building blocks are obtained by establishing a rectangular coordinate system, and by recording the coordinate positions of the light source building blocks and the overlapping building blocks passing through the circuit path of the preset luminous building blocks. Because the circuit path of the preset luminous building blocks is a loop, a complete loop is formed, and the coordinate positions of the circuit path of the preset luminous building blocks are continuous, so by comparing the x-axis coordinates between any two groups or the y-axis coordinates between any two groups, as long as the x-axis coordinates and the y-axis coordinates are continuous, the circuit of the luminous building blocks is connected.
[0082] If the circuit of the luminous building block is not connected, the luminous building block is incomplete;
[0083] It should be explained that, in the embodiment of the present invention, since the building blocks are built manually, when the luminous blocks are incomplete, we need manual intervention to readjust the luminous blocks to adjust the luminous blocks to a circuit connected state.
[0084] If the circuit of the luminous building block is connected, the luminous building block is complete and a luminous test is performed;
[0085] Specifically, if the circuit of the luminous building block is connected, the luminous building block is complete, and a luminous test is performed, including:
[0086] The building blocks of the three-dimensional effect building blocks are numbered from 0 to m+n, the central control building block is numbered from 0, the light source building blocks are numbered from 1 to m, and the overlapping building blocks are numbered from m+1 to m+n; wherein the connecting overlapping building blocks are numbered from m+1 to m+n p;
[0087] When the central control block is overlapped with the connecting block or the connecting block is overlapped with the light source block, the blocks on the lower layer send signals to the ports corresponding to the blocks on the upper layer through the metal contacts;
[0088] The PCB board of the central control building block receives the signal and performs a lighting test to make the light source building block light up.
[0089] It should be explained that in the embodiment of the present invention, when the luminous building blocks are complete, in order to ensure that the luminous effect can be exerted, a luminous test is required, and the light source building blocks numbered 1 to m and the connecting overlapping building blocks numbered m+1 to m+n are built in sequence, and the signals of the upper building blocks are transmitted to the central control building blocks, and the signals sent by the upper building blocks are received by the PCB board of the central control building blocks to realize the luminous test.
[0090] S3: receiving a complete instruction of the luminous building block, and deploying the central control building block to control the luminescence according to the complete instruction of the luminous building block, so as to achieve the luminous building block reward effect.
[0091] Furthermore, the PCB board includes two registers 74LS194, a calculator 74LS190, an inverter 74LS04, m LED lights, an OR gate element, and three clocks.
[0092] Specifically, the step of deploying the central control block to control the light emission according to the complete instruction of the light-emitting block to achieve the light-emitting block reward effect includes:
[0093] The two registers 74LS194 are connected into an 8-bit bidirectional shift register, the SS, MR, and CLK of the two 74LS194 are connected in parallel, the Q3 of the low chip is connected to the SR of the high chip, and the 00 of the high chip is connected to the SL of the low chip;
[0094] The 8-bit bidirectional shift register is shifted right, shifted left and merged into three working state cycles, that is, SS is between 01, 10 and 11, and Q1 and Q0 of the cycle counter 74LS190 are connected to SS of the two 74LS194 respectively;
[0095] Connect DO and D3 of the two registers 74LS194 together, and then connect m LED lights in parallel to achieve the luminous building block reward effect.
[0096] It should be explained that in the embodiment of the present invention, the register 74LS194 has four working modes of right shift, left shift and parallel input. Two registers 74LS194 are connected to form an 8-bit bidirectional shift register. The 8-bit bidirectional shift register cycles through three working states: right shift, left shift and merge. That is, SS is between 01, 10 and 11. Therefore, when SS is shifted right by 8 bits in sequence, m LED lights are turned on in sequence. When SS is shifted left by 8 bits in sequence, m LED lights are turned off in sequence. When SS is merged between 11 and 12, the LED lights are turned off in sequence. When the m LED lights flash in sequence, all light source blocks light up 8 LED lights in sequence in the first process for a total of 8 seconds, and turn off 8 LED lights in sequence in the second process for a total of 8 seconds, the first light goes off later, and the last 8 seconds, the 8 LED lights turn on and off, a total of 8 flashes; the three clocks are controlled by the cycle calculator, the frequency relationship between the three clocks, the clock cycle of 74LS194 is selected as 1 second, that is, the frequency is 1Hz, then the clock cycle of 74LS190 is 8 seconds, that is, the frequency is 0.125H7. DO~D3 of two 74LS194s needs to light up and go out within 1 second, then the frequency of 1 and 0 input to DO~D3 of two 74LS194s within 1 second is 2, and the clock cycle sent to DO~D3 is 0.5 seconds, that is, the frequency is 2Hz.
[0097] In order to solve the problems described in the background technology, the embodiment of the present invention first identifies the three-dimensional effect building blocks constructed by m light source building blocks, n overlapping building blocks, and central control building blocks according to the luminous building block recognition instruction; then judges the circuit connectivity of the luminous building blocks according to the three-dimensional effect building blocks; if the circuit of the luminous building blocks is connected, the luminous building blocks are complete, and the luminescence test is performed using the central control building blocks; finally, the central control building blocks are deployed according to the complete instruction of the luminous building blocks for luminescence control, so as to achieve the reward effect of the luminous building blocks. Therefore, the control method, device, electronic device and computer-readable storage medium of the luminous building blocks based on the encouragement effect proposed by the present invention can solve the problem that the building blocks cannot give children reward feedback, and at the same time, the children can be given spiritual satisfaction by completing the luminescence.
[0098] like Figure 3 , which is a functional module diagram of a control device for luminous building blocks based on encouragement effect provided by an embodiment of the present invention.
[0099] The control device 100 of the luminous building blocks based on the encouragement effect of the present invention can be installed in an electronic device. According to the functions to be implemented, the control device 100 of the luminous building blocks based on the encouragement effect can include a luminous building block recognition module 101, a connection judgment module 102, a luminous test module 103 and a luminous reward module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, which are stored in the memory of the electronic device.
[0100] The luminous building block recognition module 101 recognizes the three-dimensional effect building blocks constructed by m light source building blocks, n overlapping building blocks, and central control building blocks according to the luminous building block recognition instruction;
[0101] A connectivity determination module 102 determines the circuit connectivity of the luminous building blocks according to the three-dimensional effect building blocks;
[0102] If the circuit of the luminous building block is not connected, the luminous building block is incomplete;
[0103] If the circuit of the luminous building block is connected, the luminous building block is complete;
[0104] A light-emitting test module 103 is used to perform a light-emitting test on a complete light-emitting building block;
[0105] The luminous reward module 104 adjusts the central control building blocks to control the luminescence according to the complete instructions of the luminous building blocks, so as to achieve the luminous building block reward effect.
[0106] In detail, each module in the control device 100 of the luminous building block based on the encouragement effect in the embodiment of the present invention is used in the same manner as described above. Figure 1The technical means are the same as the blockchain-based product supply chain management method described in, and can produce the same technical effects, so I will not go into details here.
[0107] like Figure 4 , which is a schematic diagram of the structure of an electronic device for implementing a control method of luminous building blocks based on an encouragement effect provided by an embodiment of the present invention.
[0108] The electronic device 1 may include a processor 10, a memory 11 and a bus 12, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a control method program for luminous building blocks based on an encouragement effect.
[0109] The memory 11 includes at least one type of readable storage medium, including flash memory, mobile hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 1 in some embodiments, such as a mobile hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the control method program of the luminous building blocks based on the encouragement effect, but also be used to temporarily store data that has been output or is to be output.
[0110] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (such as control method programs for luminous building blocks based on encouragement effects, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.
[0111] The bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 12 may be divided into an address bus, a data bus, a control bus, etc. The bus 12 is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0112] Figure 4 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 4 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0113] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, etc. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0114] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.
[0115] Optionally, the electronic device 1 may further include a user interface, which may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.
[0116] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0117] The control method program of the luminous building blocks based on the encouragement effect stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0118] Receive a light-emitting block recognition instruction, and recognize a three-dimensional effect block constructed by m light source blocks, n overlapping blocks, and a central control block according to the light-emitting block recognition instruction;
[0119] Determining the circuit connectivity of the luminous building block according to the three-dimensional effect building block;
[0120] If the circuit of the luminous building block is not connected, the luminous building block is incomplete;
[0121] If the circuit of the luminous building block is connected, the luminous building block is complete and a luminous test is performed;
[0122] Receive the complete instruction of the luminous building block, and deploy the central control building block to control the light emission according to the complete instruction of the luminous building block, so as to achieve the luminous building block reward effect.
[0123] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figures 1 to 4 The description of the relevant steps in the corresponding embodiments will not be repeated here.
[0124] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0125] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0126] Receive a light-emitting block recognition instruction, and recognize a three-dimensional effect block constructed by m light source blocks, n overlapping blocks, and a central control block according to the light-emitting block recognition instruction;
[0127] Determining the circuit connectivity of the luminous building block according to the three-dimensional effect building block;
[0128] If the circuit of the luminous building block is not connected, the luminous building block is incomplete;
[0129] If the circuit of the luminous building block is connected, the luminous building block is complete and a luminous test is performed;
[0130] Receive the complete instruction of the luminous building block, and deploy the central control building block to control the light emission according to the complete instruction of the luminous building block, so as to achieve the luminous building block reward effect.
[0131] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0132] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0133] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0134] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0135] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0136] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0137] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.
[0138] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A control method of luminous building blocks based on encouragement effect, characterized in that: The method comprises: Receive a light-emitting block recognition instruction, and recognize a three-dimensional effect block constructed by m light source blocks, n overlapping blocks, and a central control block according to the light-emitting block recognition instruction; Determining the circuit connectivity of the luminous building block according to the three-dimensional effect building block; If the circuit of the luminous building block is not connected, the luminous building block is incomplete; If the circuit of the luminous building block is connected, the luminous building block is complete and a luminous test is performed; Receive the complete instruction of the luminous building block, and deploy the central control building block to control the light emission according to the complete instruction of the luminous building block, so as to achieve the luminous building block reward effect.
2. The control method of the luminous building block based on the encouragement effect as claimed in claim 1, characterized in that: The light source building block is composed of a transparent building block, an LED light, and a groove with a spring connector; The overlapping building blocks include common overlapping building blocks and connected overlapping building blocks, wherein the connected overlapping building blocks are composed of at least one of a building block, a metal contact, and a groove with a spring connector, and the common overlapping building blocks are composed of at least one of a building block, a convex point, and a groove; The central control building block is composed of a central control building block, the metal contact, the groove with a spring connector, a PCB board and a battery.
3. The control method of the luminous building block based on the encouragement effect as claimed in claim 1, characterized in that: The method of identifying the three-dimensional effect building blocks formed by m light source building blocks, n overlapping building blocks, and central control building blocks according to the light-emitting building block identification instruction includes: The numbers, positions, and connection information of the m light source blocks are recorded as {B1 ID , B1 Pos , B1 Con , ..., Bm ID , Bm Pos , Bm Con }; The numbers, positions and connection information of the n overlapping blocks are recorded as {C1 ID , C1 Pos , C1 Con , ..., Cn ID , Cn Pos , Cn Con }; A rectangular coordinate system is established with the central control building block as the origin, and the coordinate positions of the m light source building blocks and the n overlapping building blocks are marked by the numbers, positions, and connection information of the m light source building blocks and the n overlapping building blocks; The coordinate positions of the m light source blocks and the n overlapping blocks are input into a pre-built recognition model to recognize the three-dimensional effect blocks.
4. The control method of the luminous building block based on the encouragement effect as claimed in claim 1, characterized in that: The step of inputting the coordinate positions of the m light source blocks and the n overlapping blocks into a pre-built recognition model to recognize the three-dimensional effect blocks includes: Sorting and numbering the m light source blocks and the n overlapping blocks according to their coordinate positions to obtain numbers to be identified, wherein the numbers to be identified correspond one-to-one to the identification numbers in the pre-built identification model; Inputting the number to be identified into the pre-constructed identification model and matching it with the identification number in the pre-constructed identification model; If the to-be-identified number completely matches and corresponds to the identification number, the identification of the three-dimensional effect building block is completed.
5. The control method of the luminous building block based on the encouragement effect as claimed in claim 1, characterized in that: The determining the circuit connectivity of the luminous building block according to the three-dimensional effect building block comprises: According to the circuit path of the preset luminous building block, the coordinate positions of the light source building block and the overlapping building block passing through the circuit path of the preset luminous building block are recorded; Assume that the coordinate positions of the light source blocks are {(x1, y1), (x2, y2), ..., (x m ,y m )}, the coordinate position of the overlapping building block is {(x n-1 ,y n-1 ), (x n ,y n ),...,(x 2n ,y 2n )}; Compare the x-axis coordinates and y-axis coordinates of the coordinate position of the light source building block with the coordinate position of the overlapping building block; When any two groups of the x-axis coordinates are not connected or any two groups of the y-axis coordinates are not connected, the circuit of the luminous building block is not connected; When any two groups of the x-axis coordinates are connected or any two groups of the y-axis coordinates are connected, the circuit of the luminous building block is connected.
6. The control method of the luminous building block based on the encouragement effect as claimed in claim 1, characterized in that: If the circuit of the luminous building block is connected, the luminous building block is complete, and a luminous test is performed, including: The building blocks of the three-dimensional effect building blocks are numbered from 0 to m+n, the central control building block is numbered from 0, the light source building blocks are numbered from 1 to m, and the overlapping building blocks are numbered from m+1 to m+n; wherein the connecting overlapping building blocks are numbered from m+1 to m+n p; When the central control block is overlapped with the connecting block or the connecting block is overlapped with the light source block, the blocks on the lower layer send signals to the ports corresponding to the blocks on the upper layer through the metal contacts; The PCB board of the central control building block receives the signal and performs a lighting test to make the light source building block light up.
7. The control method of the luminous building block based on the encouragement effect as claimed in claim 6, characterized in that: The PCB board includes two registers 74LS194, a calculator 74LS190, an inverter 74LS04, m LED lights, an OR gate element, and three clocks.
8. The control method of the luminous building block based on the encouragement effect as claimed in claim 1, characterized in that: The step of deploying the central control building block to control the light emission according to the complete instruction of the light-emitting building block to achieve the light-emitting building block reward effect includes: The two registers 74LS194 are connected into an 8-bit bidirectional shift register, the SS, MR, and CLK of the two 74LS194 are connected in parallel, the Q3 of the low chip is connected to the SR of the high chip, and the 00 of the high chip is connected to the SL of the low chip; The 8-bit bidirectional shift register is shifted right, shifted left and merged into three working state cycles, that is, SS is between 01, 10 and 11, and Q1 and Q0 of the cycle counter 74LS190 are connected to SS of the two 74LS194 respectively; Connect DO and D3 of the two registers 74LS194 together, and then connect m LED lights in parallel to achieve the luminous building block reward effect.
9. A control device for luminous building blocks based on encouragement effect, characterized in that: The device comprises: The luminous block recognition module recognizes the three-dimensional effect blocks constructed by m light source blocks, n overlapping blocks, and central control blocks according to the luminous block recognition instruction; A connectivity judgment module, which judges the circuit connectivity of the luminous building blocks based on the three-dimensional effect building blocks; If the circuit of the luminous building block is not connected, the luminous building block is incomplete; If the circuit of the luminous building block is connected, the luminous building block is complete; Luminous test module, used to perform luminous test on complete luminous building blocks; The luminous reward module deploys the central control blocks for luminous control according to the complete instructions of the luminous blocks to achieve the luminous block reward effect.
Citation Information
Patent Citations
Programmable control method for light-emitting building blocks
CN106267847A