Code building block with program running state indicated by lamplight

By integrated light display parts in the code building and using dynamic lighting instructions, the problem that is difficult to instruct the program running status in existing technology, and achieves more efficient program development and learning.

CN222424071UActive Publication Date: 2025-01-28WUHAN PAIYOU TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420882711.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-04-25
Publication Date
2025-01-28
Estimated Expiration
2034-04-25

AI Technical Summary

Technical Problem

The lack of structural design in existing visual programming technologies that can intuitively indicate the running status of the program, making it difficult for program developers to judge the correspondence between the program's current running step and the program statements, which affects development efficiency.

Method used

Design a coding blocks with a light indicator program running status. By welding the light display parts on the circuit board, and controlling the status of the luminous unit according to the instruction, the dynamic beating or flow of the indicator strip or the light strip is used to obvious Essence

Benefits of technology

Through dynamic lighting instructions, program developers can intuitively judge the operating status, operation path and right and wrong operation of the program, which improves the learning and development efficiency of developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN222424071U_ABST
    Figure CN222424071U_ABST
Patent Text Reader

Abstract

The utility model discloses a code building block capable of indicating the running state of a program through lamplight, which comprises a plurality of building blocks capable of being spliced and connected, a circuit board is arranged in each building block, and a lamplight display piece comprising a plurality of lamps is welded on each circuit board. The circuit board can control a plurality of light-emitting units on the light display part connected with the circuit board according to instructions, the light display part is provided with the light-emitting units capable of being independently controlled, each light-emitting unit is provided with one or more lamps, and the brightness or color of light can be changed along with the running state of a program or the correctness of the program. According to the utility model, the display state of the light display element is displayed through the dynamic jumping or flowing of the indication strip or the light strip, so that the function of visually indicating the running state, running path and running correctness of a program is realized, and the lamp effect of transmitting information such as the running state of the program is achieved; developers can visually understand program logic, program errors can be found in time, and the learning and development efficiency of the developers is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of programmable code building blocks, in particular to a code building block with a light indicating a program running state. Background Art

[0002] At present, with the scientific concept of development becoming more and more popular, the development of youth programming is in full swing. In a simple sense, programming means converting human ideas into codes and languages ​​that can be recognized by computers according to certain coding rules, so that computers can help us realize mathematical operations, transaction processing and information query functions. Programming, as a creative activity that young people can generally participate in, can not only strengthen young people's logical thinking ability, systematic thinking ability, and organizational coordination ability, but also stimulate young people's innovative and creative ability, and has a strong auxiliary effect on young people's learning ability.

[0003] As a common tool for programming among teenagers, code blocks are easy to understand and educational, so they are widely used. In the prior art, visual programming mostly uses graphics or blocks as code components to form programs. However, current visual programming lacks a structural design that can intuitively indicate the program running status. Therefore, when the program is running, it is difficult for program developers to intuitively judge which specific step the program is currently running at, and the correspondence between the program running phenomenon and the program statements, which affects the learning and development efficiency of program developers. Utility Model Content

[0004] The utility model provides a code building block with a light indicating the program running status, which is convenient for program developers to intuitively understand the program and improve the program development efficiency, and can solve at least one of the above technical problems.

[0005] In order to solve the above technical problems, the utility model adopts the following technical solution: a code building block with light indicating the running status of a program, comprising a plurality of building blocks 1 that can be spliced ​​and connected, each of the building blocks 1 is provided with a circuit board 2, a light display part 3 comprising a plurality of lights is welded on the circuit board 2, the circuit board 2 can control the states of a plurality of light-emitting units on the light display part 3 connected thereto according to instructions, the light display part 3 has a plurality of light-emitting units that can be independently controlled, each light-emitting unit comprises one or more lights, and the brightness or color of the light can change according to the running status or correctness of the program.

[0006] Furthermore, the light display element 3 including a plurality of lights is a light array 6, and the light array 6 includes a plurality of regularly distributed lights. A focusing grid plate 5 is installed on the same side of the inner shell of each of the building blocks 1, and the focusing grid plate 5 is divided into a plurality of focusing compartments. Each of the lights is arranged in each of the focusing compartments one by one, and the light of the lights passes through the focusing compartments and is emitted toward the indicator bar 4.

[0007] Furthermore, the shell of each building block 1 is located directly above the light array 6 and is provided with the indicator bar 4 for observing the display status of the light array 6 .

[0008] Furthermore, the indicator strip 4 is a strip-shaped groove opened on the same side of the front side of the shell of each of the building blocks 1.

[0009] Furthermore, the indicator strip 4 is a light-transmitting or semi-light-transmitting strip plate embedded on the same side of the front side of the shell of each building block 1.

[0010] Furthermore, each of the building blocks 1 is spliced ​​and connected in sequence through electronic connectors according to program instructions to form a string, and a plurality of the indicator bars 4 are connected in sequence to form one or more general indicator bars with or without branches, and along with the gradual running of the overall program, each of the circuit boards 2 controls the brightness or color status of the corresponding light array 6 one by one, and displays them one by one through each of the indicator bars 4.

[0011] Furthermore, the light display element 3 including a plurality of lights is a light strip, and each of the light strips is respectively embedded in the front side of the shell of each of the building blocks 1 .

[0012] Furthermore, each of the building blocks 1 is spliced ​​and connected in sequence through electronic connectors according to program instructions to form a string, and a plurality of the light strips are connected in sequence to form one or more total light strips with or without branches, and along with the gradual running of the overall program, each of the circuit boards 2 controls the brightness or color state of the corresponding light strip one by one.

[0013] The beneficial effects of the utility model are embodied in:

[0014] In the utility model, the dynamic brightness or color change state of the light display component is displayed by dynamically jumping or flowing the indicator bar or light strip, which has the function of intuitively indicating the running state, running path, and running correctness of the program, thereby achieving the light language effect of conveying information such as the program running state. It is convenient for program developers to intuitively and timely judge the regularity with which the current program is running, and specifically run to a certain code fragment or a certain branch, and it is also convenient for program developers to easily establish the relationship between the program running effect and the program statement, which helps developers to intuitively understand the program logic and promptly discover program errors, thereby greatly improving the learning and development efficiency of developers. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 It is a front view of a building block according to an embodiment of the utility model.

[0016] Figure 2 It is a front view schematic diagram of the overall structure of the building block of an embodiment of the utility model.

[0017] Figure 3 It is a schematic diagram of the back of the overall structure of the building block of an embodiment of the utility model.

[0018] Figure 4 It is a schematic diagram of splicing multiple building blocks according to an embodiment of the utility model.

[0019] The components in the attached drawings are marked as follows: 1. building block; 2. circuit board; 3. light display element; 4. indicator bar; 5. focusing grid plate; 6. light array; 7. bottom plate. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the utility model to clearly and completely describe the technical solutions in the embodiments of the utility model. Obviously, the described embodiments are only part of the embodiments of the utility model, not all of the embodiments. It should be noted that "multiple" refers to two or more. In addition, the various electrical components involved in this application, such as light display parts, are all standard parts that can be purchased in the prior art, and the shell structures involved can also be purchased or printed by 3D printing technology.

[0021] See also Figure 1 and 4 The utility model provides a code building block for indicating the running status of a program by light, comprising a plurality of building blocks 1 that can be spliced ​​and connected, each of the building blocks 1 is provided with a circuit board 2 inside, a light display part 3 comprising a plurality of lights is welded on the circuit board 2, the circuit board 2 can control the states of a plurality of light-emitting units on the light display part 3 connected thereto according to instructions, the light display part 3 has a plurality of light-emitting units that can be independently controlled, each light-emitting unit comprises one or more lights, and the brightness or color of the light can be changed according to the running status or correctness of the program.

[0022] It should be noted that, in the present embodiment, the lamps on the light display element 3 include LEDs, laser diodes, tungsten filament bulbs, etc., which are not particularly limited here.

[0023] In the utility model, the dynamic brightness or color change state of the light display component is displayed by dynamically jumping or flowing the indicator bar or light strip, which has the function of intuitively indicating the running state, running path, and running correctness of the program, thereby achieving the light language effect of conveying information such as the program running state. It is convenient for program developers to intuitively and timely judge the regularity with which the current program is running, and specifically run to a certain code fragment or a certain branch, and it is also convenient for program developers to easily establish the relationship between the program running effect and the program statement, which helps developers to intuitively understand the program logic and promptly discover program errors, thereby greatly improving the learning and development efficiency of developers.

[0024] See also Figure 2-3 In this embodiment, the light display part 3 including a plurality of lights is a light array 6, and the light array 6 includes a plurality of regularly distributed lights. A focusing grid plate 5 is installed on the same side of the shell of each building block 1, and the focusing grid plate 5 is divided into a plurality of focusing compartments. Each of the lights is arranged in each of the focusing compartments in a one-to-one correspondence, and the light of the lamp passes through the focusing compartments and is directed toward the indicator bar 4. With this design, after any of the lights in any of the building blocks 1 is turned on, with the assistance of the corresponding focusing compartment, a focusing compartment area in the shell is illuminated. By alternately lighting up a plurality of lights, different focusing compartment areas in the shell of the building block 1 are alternately illuminated, and the dynamic running state of the program is intuitively presented, which is convenient for program developers to understand that the current program is running to a certain code segment or program branch.

[0025] See also Figure 1 In this embodiment, the housing of each building block 1 is located directly above the light array 6, and is provided with the indicator bar 4 for observing the display status of the light array 6. In this design, during the running process of the entire program, the dynamic brightness or color change of the light array 6 is displayed through the dynamic jumping or flow of the indicator bar 4, which has the function of intuitively indicating the running status, running path, and running correctness of the program.

[0026] See also Figure 1 In this embodiment, the indicator bar 4 is a strip groove opened on the same side of the front surface of the housing of each building block 1. With this design, the indicator bar 4 is a design structure on the housing of the building block 1 that has the ability to intuitively present the display status of the light array 6. It can be explicitly marked or not, and is specifically presented by the brightness or color change of the light array 6 when the program is running.

[0027] See also Figure 1In another embodiment, the indicator strip 4 is a light-transmitting or semi-light-transmitting strip plate embedded on the same side of the front surface of the housing of each building block 1. With this design, the indicator strip 4 is a design structure on the housing of the building block 1 that has the ability to intuitively present the display status of the light array 6. It can be explicitly marked or not, and is specifically presented by the brightness or color change of the light array 6 when the program is running.

[0028] See also Figure 4 In this embodiment, each of the building blocks 1 is spliced ​​and connected in sequence through electronic connectors according to program instructions to form a string, and multiple indicator bars 4 are connected in sequence to form one or more general indicator bars with or without branches, and along with the gradual running of the overall program, each of the circuit boards 2 controls the brightness or color state of the corresponding light array 6 one by one, and displays it one by one through each of the indicator bars 4. With this design, after the program developer has spliced ​​and built all of the building blocks 1 in sequence according to the program content, the code building blocks of the device are wirelessly connected to the peripherals through wireless communication equipment, such as robots, smart cars, etc. As the program is gradually run, the light array 6 in the building block 1 corresponding to the corresponding code segment or program branch lights up and is presented through the indicator bar 4. At the same time, the peripheral executes the corresponding instruction action according to the current code segment or program branch.

[0029] See also Figure 1 In another embodiment, the light display element 3 including a plurality of lights is a light strip, and each of the light strips is respectively embedded in the front of the shell of each of the building blocks 1. In this design, when the light display element 3 is a light strip, the focusing grid plate 5 does not need to be pre-installed in the building block 1. Since the light strip itself has a length and can realize alternate flashing of different points and segments, it is easier to realize the flow of light and saves more cost in installation.

[0030] See also Figure 4 In this embodiment, each of the building blocks 1 is spliced ​​and connected in sequence through electronic connectors according to program instructions to form a string, and multiple light strips are connected in sequence to form one or more total light strips with or without branches, and with the gradual running of the overall program, each of the circuit boards 2 controls the brightness or color state of the corresponding light strips one by one. With this design, after the program developer has spliced ​​and built all of the building blocks 1 in sequence according to the program content, the code building blocks of this device are wirelessly connected to peripherals through wireless communication equipment, such as robots, smart cars, etc. As the program is gradually run, the light strips in the building blocks 1 corresponding to the corresponding code fragments or program branches are lit, and at the same time, the peripherals execute corresponding instruction actions according to the current code fragments or program branches.

[0031] See also Figure 3 In this embodiment, the bottom surface of the shell of each building block 1 is detachably mounted with a bottom plate 7, and each circuit board 2 is respectively mounted on the same side of each bottom plate 7. With this design, when installing a specific building block 1, the light display component 3 is first welded on the circuit board 2, and then the circuit board 2 is mounted on the bottom plate 7, ensuring that the front of the circuit board 2 faces upward, and finally the bottom plate 7 is reversely mounted in the shell of the building block 1, and the bottom sealing is completed, making disassembly and maintenance more convenient and quick.

[0032] See also Figure 1-3 In this embodiment, one end of the housing of the building block 1 is provided with an electronic connection sub-seat, and the other end is provided with an electronic connection female seat, and two adjacent building blocks 1 are spliced ​​and connected through the plug-in matching of the electronic connection female seat and the electronic connection sub-seat. With this design, the electronic connection female seat and the electronic connection sub-seat need to be electrically connected to the circuit board 2 during installation, so as to transmit power and signals between the two connected building blocks 1.

[0033] In summary, in the utility model, the dynamic brightness or color change state of the light display component is displayed by adopting the dynamic jumping or flow of the indicator bar or light strip, which has the function of intuitively indicating the running status, running path, and running correctness of the program, thereby achieving the light language effect of conveying information such as the program running status. It is convenient for program developers to intuitively and timely judge the rules according to which the current program runs, and specifically run to a certain code fragment or a certain branch, and it is also convenient for program developers to easily establish the relationship between the program running effect and the program statement, which helps developers to intuitively understand the program logic and discover program errors in time, greatly improving the learning and development efficiency of developers.

[0034] It should be understood that the examples and implementation modes described herein are for illustrative purposes only and are not intended to limit the present invention. Those skilled in the art may make various modifications or changes based on the examples and implementation modes. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A code building block with a light indicating the running status of a program, characterized in that: The invention comprises a plurality of building blocks (1) that can be connected and spliced, each of the building blocks (1) being provided with a circuit board (2) inside, a light display component (3) comprising a plurality of lights being welded on the circuit board (2), the circuit board (2) being able to control the states of a plurality of light-emitting units on the light display component (3) connected thereto according to instructions, the light display component (3) being provided with a plurality of light-emitting units that can be controlled independently, each light-emitting unit comprising one or more lights, and the brightness or color of the light being able to change according to the running state or correctness of a program.

2. The code building block for indicating the running status of a program by light as claimed in claim 1, characterized in that: The light display element (3) including a plurality of lights is a light array (6), wherein the light array (6) includes a plurality of lights that are regularly distributed, and a focusing grid plate (5) is installed on the same side of the inner shell of each of the building blocks (1), wherein the focusing grid plate (5) is divided into a plurality of focusing compartments, and each of the lights is arranged in a one-to-one correspondence in each of the focusing compartments, and the light of the lights passes through the focusing compartments and is emitted toward the indicator bar (4).

3. The code building block for indicating the running status of a program by light as claimed in claim 2, characterized in that: The shell of each building block (1) is located directly above the light array (6) and is provided with an indicator bar (4) for observing the display status of the light array (6).

4. The code building block for indicating the running status of a program by light as claimed in claim 3, characterized in that: The indicator strip (4) is a strip-shaped groove opened on the same side of the front side of the shell of each building block (1).

5. The code building block for indicating the running status of a program by light as claimed in claim 3, characterized in that: The indicator strip (4) is a light-transmitting or semi-light-transmitting strip plate embedded on the same side of the front side of the shell of each building block (1).

6. The code building block for indicating the running status of a program by lighting as claimed in claim 3, characterized in that: Each of the building blocks (1) is connected in sequence via electronic connectors in accordance with program instructions to form a string, and a plurality of the indicator bars (4) are connected in sequence to form one or more general indicator bars with or without branches. As the overall program is gradually run, each of the circuit boards (2) controls the brightness or color state of the corresponding light array (6) one by one, and displays them one by one through each of the indicator bars (4).

7. The code building block for indicating the running status of a program by light as claimed in claim 1, characterized in that: The light display element (3) comprising a plurality of lights is a light strip, and each of the light strips is respectively embedded in the front side of the shell of each of the building blocks (1).

8. The code building block for indicating the running status of a program by light as claimed in claim 7, characterized in that: Each of the building blocks (1) is connected in sequence via electronic connectors in accordance with program instructions to form a string, and a plurality of the light strips are connected in sequence to form one or more total light strips with or without branches, and along with the gradual running of the overall program, each of the circuit boards (2) controls the brightness or color state of the corresponding light strip one by one.