Building block with operating piece and building block system
By designing building blocks with operating parts, the problem of not being able to accurately observe or record or change the device number, calculation method or variable value during the program construction process is solved, and a more intuitive programming process is achieved, which improves learning and development efficiency, and reduces the Reliance on the screen.
Patent Information
- Application Number
- CN202420608090.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-27
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2034-03-27
AI Technical Summary
In the prior art, the program building process cannot be accurately observed or recorded or changed during the program building process, the input and output device numbers or calculation methods or variable values that the program builder wants to specifically control, resulting in inefficient programming learning and development.
A building block with operating parts is designed, including a building block housing, circuit board and operating parts. The circuit board is equipped with a controller, an electronic connection interface, an analog signal acquisition circuit and a detection device. The operating parts can be changed through manual adjustment. Information, analog signal acquisition circuit or detection device is used to identify the position information of the operating part.
Through the position changes of the operating parts, program builders can intuitively change variable values, calculation methods or input and output device numbers, reducing dependence on the screen, improving programming intuitiveness and learning efficiency, and reducing the program construction process The number of building blocks required reduces the difficulty of carrying.
Smart Images

Figure CN222529906U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of program construction, in particular to a building block with operating parts and a building block system. Background Art
[0002] At present, 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 teenagers can generally participate in, can not only strengthen teenagers' logical thinking ability, systematic thinking ability, and organizational coordination ability, but also stimulate teenagers' innovative and creative ability, and has a strong auxiliary effect on teenagers' learning ability. In programming learning, the use of computers and compilers to write programs has been well known to the public, but this programming method has a high entry threshold for beginners and a high learning cost, thus generating graphical programming software such as scratch. However, these programming methods can never be separated from computers, and programmers cannot intuitively feel the running effect of the programs they write during the computer compilation process. At the same time, whether it is a computer or other electronic device, programming can never be separated from the screen, and keeping the programmer in front of the screen for a long time is not conducive to the user's eye health. In order to be separated from computers or other electronic devices and make the program writing process more intuitive and easy to understand, in the prior art, visual programming mostly uses building blocks as code components.
[0003] However, the current visual programming lacks a structural design that can intuitively indicate the program running status. During the program running process, it is necessary to control multiple input and output devices of the same type at the same time, change the value of numerical variables or Boolean variables, and use multiple calculation methods to process variables such as numerical calculations or Boolean calculations. Once the program starts running, it is difficult for the program developer to intuitively see the correspondence between the device number specifically controlled by the program and the program statement, that is, it is impossible to determine which input and output device the current program controls is the number of the device, and it is also difficult to intuitively see the set variable value or the set calculation method for processing data, which affects the learning and development efficiency of the program developer. When using building blocks as codes, program developers in the prior art often need to use screens and buttons to select the device number or change the variable value or select the calculation method. This method still fails to free programming from the constraints of the screen, and when the building blocks are not electrically connected, that is, during the program construction process, it is impossible to accurately observe, record or change the input and output device number or calculation method or variable value that the program builder wants to specifically control. If a screen is not used, each calculation method, variable value, or device number in the prior art must correspond to a corresponding code building block, which is inconvenient for programmers to carry, and it is impossible to change the variable value, calculation method, or device number after the program is built. Utility Model Content
[0004] In view of the problems existing in the prior art, the utility model provides a building block, aiming to solve the technical problem in the prior art that the input and output device numbers or calculation methods or variable values that the program builder wishes to specifically control cannot be accurately observed, recorded or changed during the program building process.
[0005] Based on the above purpose, the utility model provides a building block, including a building block shell, a circuit board and an operating piece, the circuit board is provided with a controller, an electronic connection interface, an analog signal acquisition circuit and a detection device for detecting the position information of the operating piece, the circuit board is inside the building block shell, the electronic interface is exposed on the building block shell, the controller is electrically connected to the electronic connection interface through a circuit, and transmits information with an external device through the electronic connection interface or constructs a program representing logic with another building block together, the operating piece is partially exposed on the building block shell, and the position change information after the position of the operating room is changed is detected by the analog signal acquisition circuit or detected by the detection device.
[0006] Furthermore, the operating element includes a dial and / or a knob and / or a slider.
[0007] Furthermore, the position of the operating member is changed by being touched and manually adjusted.
[0008] Furthermore, the operating element has characters or indicative patterns on it.
[0009] Furthermore, the operating member is connected to a potentiometer, an encoder or a sliding resistor, and the analog signal acquisition circuit is electrically connected to the potentiometer, the encoder or the sliding resistor, and the position information of the operating member block is identified by detecting the change in resistance of the potentiometer, the encoder or the sliding resistor.
[0010] Furthermore, the operating member is connected to a switch, a grating or a magnet, and the position change of the operating member is detected by a switch, a photoelectric sensor or a Hall sensor as a position information detection device.
[0011] Furthermore, the building block housing is provided with characters, patterns or lights representing program semantics.
[0012] Furthermore, when the controller transmits information to an external device, the transmitted information includes identification information of the controller itself.
[0013] The utility model also provides a building block system, comprising a plurality of the above-mentioned building blocks, wherein the electronic connection interfaces of the building blocks are connected to each other when the building blocks are spliced together.
[0014] Furthermore, the building blocks are spliced together by magnetic attraction, and are located in the same plane after splicing.
[0015] The beneficial effects of the utility model include using operation teaching plans such as dials, knobs or sliders, and transmitting their position information to the controller as input information of the program builder, making it more intuitive for the building block builder to change the required variable values or calculation methods or input and output device numbers during the program building process, reducing the damage caused by the screen to the human eye, reducing the number of building blocks required during the program building process, and greatly reducing the difficulty of carrying when the program builder writes programs of the same size. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.
[0017] Figure 1 It is a schematic diagram of the structure of building blocks in one embodiment of the utility model.
[0018] Figure 2 It is a schematic structural diagram of a building block with the upper half of the shell opened in one embodiment of the utility model.
[0019] Figure 3 It is a top view of a building block with the upper half of the shell opened in one embodiment of the utility model.
[0020] Figure 4 It is a schematic diagram of the structure of building blocks in another embodiment of the utility model.
[0021] Figure 5 It is a schematic structural diagram of a building block with the upper shell opened in another embodiment of the utility model.
[0022] Figure 6 This is a top view of a building block with the upper half of the shell opened in another embodiment of the utility model.
[0023] Figure 7 It is a structural schematic diagram of a left building block in another embodiment of the utility model.
[0024] Figure 8 This is a top view of building blocks after construction in one embodiment of the utility model.
[0025] Fig. 9 It is a schematic diagram of the structure after the building blocks are assembled in one embodiment of the utility model. DETAILED DESCRIPTION
[0026] The present invention will be described in further detail below in conjunction with the accompanying drawings.
[0027] Figure 1The building block shown is a building block with an operating element provided by the utility model. The following is a numerical constant block 40. The numerical constant block is a non-row first block, that is, it is not at the first position of each row in the program. Figure 8 As shown. The numerical constant block 40 includes a numerical constant block housing 1 printed with characters or patterns or lights representing program semantics. The numerical constant block housing 1 can be composed of an upper shell and a lower shell 2 of a building block, or can be integrally formed. The specific production depends on the actual situation and is not limited here. The numerical constant block 40 also includes a numerical constant block circuit board 3 with a controller. The numerical constant block circuit board 3 is inside the numerical constant block housing 1. The numerical constant block circuit board 3 is provided with a controller, a numerical constant block left electronic connection interface 4, a numerical constant block right electronic connection interface 5, an analog signal acquisition circuit and a detection device for detecting the position information of the operating part. The electronic interface is exposed on the numerical constant block housing 1. The above-mentioned controller is electrically connected to the numerical constant block left electronic connection interface 4 and the numerical constant block right electronic connection interface 5 through a circuit. The numerical constant block 40 also includes an operating member, which is exposed to the building block housing. The position change information of the operating member after the position is changed is detected by the analog signal acquisition circuit or the detection device, wherein the position change mode of the operating member is to be touched and manually adjusted. In this embodiment, the operating member is four dials, namely user-adjustable potentiometer 1 601, adjustable potentiometer 2 602, adjustable potentiometer 3 603, and adjustable potentiometer 4 604. There are digital characters on the four potentiometers to indicate the actual value of the numerical variable. There are also a left magnetic magnet 701 and a right magnetic magnet 703 of the numerical constant block inside the numerical constant block housing 1, so that the numerical constant block 40 can more conveniently transmit information with external devices through the left and right electronic connection interfaces or construct a program representing logic together with another building block.
[0028] In actual use, the controller, potentiometer 1 601, potentiometer 2 602, potentiometer 3 603, potentiometer 4 604, left spring pin 401 of the numerical constant block, right spring pin 501 of the numerical constant block, and light bar 301 indicating that it is numerical type are welded on the circuit board, the left magnetic magnet 701 of the numerical constant block and the right magnetic magnet 703 of the numerical constant block are assembled in the magnet slot of the lower shell 2 of the numerical constant block, the left electronic connection interface 4 of the numerical constant block and the right electronic connection interface 5 of the numerical constant block are assembled on the spring pins, and the numerical constant block circuit board 3 is placed on the lower shell 2 of the numerical constant block, as shown in FIG. Figure 2 As shown, by snapping together the numerical constant block housing 1, a complete numerical constant block 40 with a controller inside can be obtained. At this time, the numerical constant block housing 1 has a light bar 301 representing the program semantics, that is, it is a numerical type. The housing 1 also has four potentiometer characters representing the program semantics, that is, the numerical constant values.
[0029] When the program builder wants to change the value represented by the numerical constant block 40, the program builder can manually adjust the four potentiometers exposed on the housing 1 of the numerical constant block to rotate the digital characters on the potentiometers to the values shown in the figure. Figure 3 When the top view is shown, the potentiometer shows a reading of "7777", which is the value assigned to the numerical constant block by the program builder. In this embodiment, the operating member itself is a potentiometer, and the analog signal acquisition circuit is electrically connected to the potentiometer, and the position information of the operating member block is identified by detecting the change in the resistance value of the potentiometer. In another embodiment, the operating member is connected to an encoder, and the analog signal acquisition circuit is electrically connected to the encoder, and the position information of the operating member block is identified by detecting the change in the resistance value of the encoder.
[0030] Figure 4 The figure shows another building block with an operating member provided by the utility model. The following is the output block 30, which is also the first block in the row, that is, the first block in each row when the program is spliced. Figure 8 As shown. The program output block 30 includes an output block shell 8 printed with characters or patterns or lights representing the program semantics. The output block shell can be composed of an upper shell and an output block lower shell 9, or can be formed in one piece. It is made according to actual conditions and is not limited here. The output block 30 also includes an output block circuit board 10 with a controller, a female connector 11 connected to the upper and lower parts of the output block, a male connector 13 connected to the upper and lower parts of the output block, a female connector 12 connected to the left and right parts of the output block, an output block upper and lower magnetic magnet 165, and an output block left and right magnetic magnet 163. In this embodiment, the user-adjustable potentiometer 151 is a knob with digital characters on it, which is used to indicate the device number controlled by the output block 30.
[0031] In actual use, the controller, the knob 151, the right spring pin 121 of the output block, the LED light bar 103 indicating program running, and the LED light bar 101 indicating transmission are welded on the circuit board, the upper magnetic magnet 161 of the output block, the lower magnetic magnet 165 of the output block, and the right magnetic magnet 163 of the output block are assembled in the magnet slot of the lower shell 9 of the output block, the upper and lower male connectors 13 of the output block, the upper and lower female connectors 11 of the output block, and the left and right female connectors 12 of the output block are assembled on the spring pins, and the output block circuit board 10 is placed on the lower shell 9 of the output block, as shown in FIG. Figure 5 By snapping the output block upper shell together as shown, a complete output block 30 with a controller inside can be obtained. At this time, there is a light bar 101 on the output block shell 8, which represents the program semantics, that is, it is a building block for controlling the output device. The output block shell 8 also has characters on the knob that represent the program semantics, that is, the device number controlled by itself.
[0032] When the program builder wants to change the device number controlled by the output block 30, the program builder can manually adjust the knob 151 exposed on the output block housing 8 to rotate the digital characters on the knob 151 to the following positions: Figure 6 When the knob 151 is in the top-down position, the knob 151 displays a reading of "7", which is the seventh device number that the program builder wants the output block to control. In this embodiment, the operating member itself is a sliding rheostat, and the analog signal acquisition circuit is electrically connected to the sliding rheostat, and the position information of the operating member block is identified by detecting the change in the resistance value of the sliding rheostat.
[0033] Figure 7 The building block shown is another building block with an operating element provided by the utility model. The following is a Boolean variable block 60. This building block is a non-row head block, that is, it is not at the first position of each row in the program. Figure 8 As shown. The Boolean variable block 60 includes a Boolean variable block housing 26 printed with characters or patterns or lights representing program semantics. The Boolean variable block housing can be composed of an upper shell and a Boolean variable block lower shell 27, or can be integrally formed. It is made according to actual conditions and is not limited here. The Boolean variable block 60 is also similar to the numerical constant block 40. It has a Boolean variable block circuit board 31 with a controller inside. The Boolean variable block Boolean variable indicator light strip 311 and the Boolean variable block electronic connection interface 28 are exposed on the Boolean variable block housing 26. Its internal structure and assembly method are the same as those of the numerical constant block 40, and will not be described in detail here. The Boolean variable block 26 of the complete Boolean variable block 60 with a controller inside has a Boolean variable indicator light strip 311 representing program semantics, that is, a Boolean type Boolean variable block itself. The above-mentioned controller and the Boolean variable block electronic connection interface 28 are electrically connected through a circuit. The Boolean variable block 40 also includes an operating member, which is exposed to the Boolean variable block housing 26. The position change information of the operating member after the position is changed is detected by the analog signal acquisition circuit or the detection device. In this embodiment, the operating member is a slider 29, and there is a pattern 291 indicating the variable on the slider 29, which can be a hook or a cross indicating that the Boolean variable is yes or no. There are also left and right magnetic magnets inside the building block housing, so that the Boolean variable block 60 can more conveniently transmit information with external devices through the left and right electronic connection interfaces or construct a program representing logic together with another building block.
[0034] In actual use, the assembly method of the Boolean variable block 60 is similar to that of the numerical constant block 40, which will not be elaborated here. After the assembly is completed, there is a Boolean variable indicator light strip 311 on the shell 26 of the Boolean variable block 60, which represents the program semantics, that is, the Boolean variable block itself is a Boolean type. There is also a pattern 291 on the shell 26 of the Boolean variable block, which represents the program semantics, that is, the variable name of the Boolean variable.
[0035] When the program builder wants to change the Boolean variable identified by the Boolean variable block 60, the program builder can manually slide the slider 29 exposed in the Boolean variable block housing 26 to slide the pattern on the slider 29 to the position shown in the figure. Figure 7When the slider is in the position shown, the slider is identified by a cross 291, and the Boolean negation is a value of No assigned to the numerical constant block by the program builder. In this embodiment, the operating member itself is a slider 29, which is connected to a grating or a magnet, and the position change is detected by a photoelectric sensor or a Hall sensor on the circuit board as a position information detection device.
[0036] In another embodiment, the slider 29 is connected to a switch on a circuit board, and the position change is detected by the switch as a position information detection device.
[0037] When all building blocks are assembled, the numerical constant block 40 is as follows Figure 1 , output block 30 such as Figure 4 , Boolean variable block 607, you can start building the program, where the upper and lower connection is taken as an example of the connection between the output block 30 and another output block 50. When the two are close to each other, the lower connection magnet 165 of the output block and the upper connection magnet 161 of the other output block 50 attract each other, and the output block upper and lower connection male connector 13 of the output block 30 slides into the output block upper and lower connection female connector 11 of the output block 50, so that the two building blocks reach the correct connection position, and the output block spring pin male 131 of the output block 50 and the output block spring pin female 111 of the output block 30 in the electronic connection interface are in contact, and a reliable connection is established between the output block 30 and the circuit board of the other output block 50. Take the connection between the output block 30 and the numerical constant block 40 as an example. When the numerical constant block 40 approaches the right side of the output block 30, the output block right connection magnet 163 and the numerical constant block left connection magnet 701 attract each other, and the numerical constant block left and right connection male connector 4 slides into the output block left and right connection female connector 12, so that the two building blocks reach the correct connection position. The numerical constant block spring pin male 401 in the left electronic connection interface 4 of the numerical constant block contacts the output block spring pin female 121 in the output block left and right connection female connector 12, and a reliable connection is established between the output block 30 and the numerical block 40 circuit boards. The splicing effect is as follows: Figure 8 shown.
[0038] The above is a process of splicing some building blocks. After splicing, the building blocks form a complete building block system.
[0039] The utility model also provides a building block system, comprising one or more of the above-mentioned building blocks, different building blocks are provided with different characters, patterns or lights representing program semantics on the logic, and when all the building blocks are spliced together, a complete program logic can be formed, and at this time, the electronic connection interfaces are connected to each other when the building blocks are spliced together. The building blocks are spliced together by magnetic attraction, and are in the same plane after splicing.
[0040] When the program is running, when it runs to any building block in the program, the controller on the circuit board in the building block transmits information to the external device. The transmitted information includes the controller's own identification information, and then the light bar on the corresponding building block lights up to indicate the progress of the program. When there are variables to be transferred, the light bar on the corresponding building block will also light up to indicate the data transmission process.
[0041] In summary, the utility model uses magnetic building blocks to build programs, and uses spring pins and male and female interfaces to establish stable and reliable circuit connections between different building blocks, so that the building blocks can transmit identification information such as digital potentiometer dials and sliders to other building blocks, and instruct the internal controller to light up the lights on the building blocks in a predetermined manner. Among them, the identification on the digital potentiometer and slider makes the program parameter change process more intuitive, simplifies the programming learning process, and the attribute of no screen display also alleviates the eye health problem of the program builder.
[0042] The utility model also provides a building block system, comprising any building block mentioned in the above embodiment, wherein the electronic connection interfaces of the building blocks are connected to each other when the building blocks are spliced together. The building blocks are spliced together by magnetic attraction, and are in the same plane after splicing.
[0043] The above embodiments only express the preferred implementation of the utility model, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the utility model patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the utility model, which all belong to the protection scope of the utility model. Therefore, the protection scope of the utility model patent shall be based on the attached claims.
Claims
1. A building block with an operating element, characterized in that: The invention comprises a building block shell, a circuit board and an operating element, wherein the circuit board is provided with a controller, an electronic connection interface, an analog signal acquisition circuit and a detection device for detecting the position information of the operating element, the circuit board is inside the building block shell, the electronic connection interface is exposed on the building block shell, the controller is electrically connected to the electronic connection interface through a circuit, and transmits information with an external device through the electronic connection interface or constructs a program representing logic with another building block together, the operating element is partially exposed on the building block shell, and the position change information of the operating element after the position is changed is detected by the analog signal acquisition circuit or by the detection device.
2. The building block with operating elements according to claim 1, characterized in that: The operating element includes a dial and / or a knob and / or a slider.
3. The building block with an operating member according to claim 1, characterized in that: The position of the operating member is changed by being touched and manually adjusted.
4. The building block with an operating member according to claim 1, characterized in that: The operating member has characters or indicative patterns on it.
5. The building block with an operating member according to any one of claims 1 to 4, characterized in that: The operating member is connected to a potentiometer, an encoder or a sliding resistor, and the analog signal acquisition circuit is electrically connected to the potentiometer, the encoder or the sliding resistor. The position information of the operating member is identified by detecting the change in resistance of the potentiometer, the encoder or the sliding resistor.
6. The building block with an operating member according to any one of claims 1 to 4, characterized in that: The operating member is connected to a switch, a grating or a magnet, and the position change of the operating member is detected by a switch, a photoelectric sensor or a Hall sensor as a position information measuring device.
7. The building block with operating elements according to claim 1, characterized in that: The building block housing is provided with characters, patterns or lights representing program semantics.
8. The building block with operating elements according to claim 1, characterized in that: When the controller transmits information to an external device, the transmitted information includes the identification information of the controller itself.
9. A building block system with operating elements, characterized in that: The invention comprises a plurality of building blocks according to any one of claims 1 to 8, wherein the electronic connection interfaces of the building blocks are connected to each other when the building blocks are spliced together.
10. The building block system with operating elements according to claim 9, characterized in that: The building blocks are connected together by magnetic attraction and are located in the same plane after being connected.