The present invention relates to a physical programming interface with a multi-threaded command sequencing, which distinguishes between functions and parameters, by separating them to different planes (horizontal and vertical), and associates the parameter quantitative size and its functionality with their physical appearance and dimensions. The association between the functionality and the physical appearance also enables an automatic error prevention system by one-to-one relationship, i.e., each parameter has a unique receptor in the function block. The system also enables debugging by using lights to inform on functional errors.
Teaching robotics, computer programming and engineering skills to young learners has recently been growing in popularity due to changes in recent technology and the growing need for capable programmers [“Take a giant step: A blueprint for teaching children in a digital age” Barron, B. et al, (2011)]. [“Transforming American Education: Learning Powered by Technology”. U.S. Department of Education (2010)]. However, there is a constant shortage in programmers due to the complexity of learning and the built in barriers of programming [“Integration of Innovative Technologies and Affective Teaching & Learning in Programming Courses” Prasad et al, (2015)]. Thus, there is a need for a flexible and wide-ranged intuitive physical programming interface which demonstrates the following coding elements for non-programmers:
In the last two decades there has been a growing interest on how to develop such a physical programming interface where a large variety of products have been introduced. However, none of them was able to satisfy all the required elements. In 2012 a company called Sifteo Cubes suggested a semi-stage for physical programming by using Siftables which are small computers with a graphical interface. The small computers were able to communicate with each other to generate simple computer program. However, each cube is highly expensive and the interface is not physical but rather graphical, using separated small computers. This problem is emphasized by the parameters, which are selected in the graphical touch screen and not connected to physical objects and their characteristics.
In 2011 Modular Robotics Studio introduced the concept of Cubelets, which were small plastic blocks designed to magnetically snap together for the construction of robots. Each block contains its physical meaning (i.e. light, sensor type, movement . . . ) and communicates with each other. Once the blocks are physically connected, they begin to operate without a physical programming interface. This interface has several disadvantages in the teaching of coding, as each block is “alive” and its parameters cannot be reconfigured.
In 2014 Primo Toys launched Cubetto, which was a hands on coding program with physical elements. Their initial robot and programming kit was enhanced in March 2016. The current product includes a wooden robot and plastic blocks with electronics. Each block is a physical representation of an unambiguous instruction code (right, left, forward, backward). The coding is conducted on the horizontal plane by placing the plastic blocks. Cubetto has also similar drawbacks as discussed before: there is no clear distinction between function and parameters, Multi-threading is not possible etc.
In 2008, Hsieh et al., [U.S. Pat. No. 7,316,567], suggested a toy for teaching programming based on stackable blocks, where each one of them has a memory for storage of at least one computer program and they are all the same. The blocks are mechanically stacked and electrically connected to form a computer program. The connected blocks are transmitting the program to a robot for execution. However, U.S. Pat. No. 7,316,567 does not differentiate between function blocks and parameter blocks since all the programming is conducted based on stacking. U.S. Pat. No. 7,316,567 also allows for multi-threading by stacking different blocks to generate several functions. However, this method is limited since only the height dimension locates the sequencing interface, which means the branching process can only be conducted at the beginning of the program.
In 2014 Sullivan et al. introduced KIBO which was a robotic demo for teaching children how to program [“KIBO robot demo: engaging young children in programming and engineering” Sullivan et al., (2015)]. KIBO is programmed using physical wooden blocks which, do not contain any electronics but instead, each block had a unique barcode. KIBO has an embedded scanner, which allows the user to scan and interpret the coding sequence. However, it allows neither threading, nor parameter control.
In Jun. 27, 2016, Google introduced the Project Bloks which was based on the Tern Tangible Programming, and which very similar to KIBO, is a physical programming interface where programming can be conducted in one plane (vertical or horizontal). The programming is conducted by using a Brain Board, Base Boards, and Pucks. The brain board activates the entire program. Functions are determined by Base Boards, where their functionality is defined by the Pucks which are placed on top of them. Each Puck contains one instruction, which means that each Base Board can contain a function with one parameter only. The basic Puck is flat or has a 3D graphics imprinted on it, which means that physical dimensions do not correlate with the logical value. The physical connections of the Brain Board and Base Boards include 2 physical connections for the Brain Board and 4 connections (1 male, 3 females) to the Base Board. This structure does not use the full 4 directional possibilities of physical programming. For example, threading in four directions straight from the Brain Board is not feasible. In addition, the 1 male\3 females structure doesn't allow for a cube to receive inputs from more than one prior cube (e.g. an if statement, or combine threads . . . ). Another important issue is that the interface does not distinguish between functions and parameters, meaning that each function receives only one parameter scale creating a limited flexibility, for example, if a function requires summing its duration period of 2 seconds and also adding external duration value, such as value from sensor or a value from calculator function. This limits the programming possibilities as in many cases one would like to change more than one parameter in the function, i.e. controlling a motor's speed, power and duration all at once.
In addition to the above mentioned problems, all of the current methods address the issue of debugging the program in a rather limited way. For example, U.S. Pat. No. 7,316,567, suggests stacking of same blocks, which cannot support mixture of commands. None of them is offering the possibility to run a specific block to activate a specific function, i.e. it is not possible to use a “me button”. In addition, none of the above has a run-time debagging system to spot the function, which performed on a real time by the external device (PC, Robot, Motor etc.).
The present invention solves the foregoing problem by using the 3D space as the physical programming playground, as hereunder explained.
In the present invention, the code visualization is conducted by using three main building blocks: function block, parameter block and the programmed element (motors, sensors, robots, PC). Each function block includes a microcontroller, which allows communication with its neighboring function blocks, distinguishing between function blocks, reading data from parameter blocks and controlling the programmed element.
The present invention separates between function blocks and parameter blocks using different dimensions and different physical axes. The function blocks are placed in the horizontal 2D plane, while the parameter blocks are placed in the vertical plane. Placing the function blocks in the horizontal plane allows for multi-threading at every point of the program. This is important for even a simple program, which wants to activate different motors in different events of the program independently. In addition, using the vertical plane for the parameter blocks generates a clear correlation between the embodiment of the block (its physical vertical size) and its quantitative representation.
Error prevention is conducted by adding complexity to the system of different blocks, which represent different types, correlate with their physical meaning (i.e. a stop shape for stop command) and prevents the user from placing blocks, which may lead to compilation errors by controlling their physical connections. Finally, this interface generates a clear visualization of the coding sequence.
The system allows for bidirectional communication, during runtime, between function blocks and the programmed element so that, at any given running time, user may know which function block is running by adding notification lights. I.e., when a function block is active (in the programmed element), a led is turned on in the operative function block.
An embodiment is an example or implementation of the inventions. The various appearances of “one embodiment,” “an embodiment” or “some embodiments” do not necessarily all refer to the same embodiments. Although various features of the invention may be described in the context of a single embodiment, the features may also be provided separately or in any suitable combination. Conversely, although the invention may be described herein in the context of separate embodiments for clarity, the invention may also be implemented in a single embodiment.
Reference in the specification to “one embodiment”, “an embodiment”, “some embodiments” or “other embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiments is included in at least one embodiment, but not necessarily all embodiments, of the inventions. It is understood that the phraseology and terminology employed herein is not to be construed as limiting and are for descriptive purpose only.
A Spring-Based (600) connection for data and current flow is shown in
In order to formulate a program using the current invention, user needs at least one Play Block (300) to communicate with the Programmed Element (400) and one Function Block (100) to determine a specific function. Parameter Blocks (200) may or may not be included according to the requirement of the function. Meaning that a program may include more functions and parameters in different combinations. For example, read from sensor Parameter Block (200) may be stacked over a 2 seconds Parameter Blocks (200) (
Play Block (300) is connected to Function Block (100(1)), which has two Parameter Blocks (200b(1)). Each of Parameter Blocks (200b) holds the information for 10 iterations, thus forming a repetition of 20 iterations in total (
Parameter Blocks (200) may be in different embodiments and different shapes in order to illustrate a correlation between their physical and logical values. For example,
(1) Operate motor A (200b(1)), Motor B (200b(2)), and Motor C (200b(3)),
(2) Set motor polarity (200(a)), which determines the turning direction of Move Motor (100) (clockwise or counter clockwise)
(3) The duration of motor (200b(4)) and motor speed (200(d)).
Parameter Blocks (200), which are used, were previously introduced in
Parameter Blocks (200) may come as stackable (200(b)), non-stackable (200(a)) and in different combinations thereof as shown in
The invention also enables code branching in each one of Play Blocks (300) and Function Blocks (100) of the code. As Play Blocks (300) and Function Blocks (100) contain electronic conductors on all sides, as shown on
The invention is not limited to squared shapes only, and Function Block (100) may create a rectangle with N walls of Function Block (100), the branching code enables (N−1) branches from every branching point in the code. Furthermore, there is no limitation for code branching as shown in
The invention may also demonstrate the concept of pointers, in which one Function Block (100) points to another Function Block (100), without the need to be directly connected to it; this concept simulates using pointers in programming.
Each of Parameter Blocks (200), which are placed, (in a stackable or non-stackable manner), on Function Block (100) have a specific value, which is transmitted to Function Block (100) using Electrical Components (700) (
The invention also enables a runtime debugging by lighting up Function Block (100) whenever Programmed Element (400) performs a specific corresponding Function Block (100), (
The invention also enables Error Prevention mechanisms in two ways: (1) the physical size of Parameter Block (100), which has to be similar to Receptor (800) of Function Block (100). In case of placing an unsuitable shape of Parameter Block (200) on Function Block (100), an Error Prevention light turns on (
Such hierarchical failure described hereto lights up an Error Prevention notification on Function Block (100(2)). Nevertheless, the invention may connect two threads into one Function Block (100) using ‘Read from Function’ of Function Block (100).
A program may be stored and re-used using a Function Block (100a) with saving capabilities, by pressing the “me store button” (900(b)) (
Each Parameter Block (200g(1)), (200h(2) is a unique pointer to another Parameter Block (200(g(2)), (200(h(2)), which then may be reused by placing Parameter Blocks (200(b(1)), (200c) on read Function Block (100b). The Parameter Blocks (200g(1)), (200h(1), (200g(2)), (200h(2)) may be reused more than once in a plurality of appearances. The saved program may be stored either on Play Block (300) or in save Function Block (100a) by pressing the “me store button” (900(b)).
Similarly, a program may be stored or read by communicating with a Programmed Element (400) wireless or wired, (
Number | Date | Country | Kind |
---|---|---|---|
246551 | Jun 2016 | IL | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/IL2017/050700 | 6/25/2017 | WO | 00 |