1. Field of the Invention
The invention relates to a microprocessor controlled toy building element comprising a microprocessor which can execute instructions in the form of a program stored in a memory, said memory comprising subprograms which can be activated individually by specifying a list of subprogram calls; coupling means for coupling with building elements which can be moved by activation means, said activation means being controllable in response to the instructions.
2. Description of the Prior Art
In connection with the development of small, sophisticated and relatively inexpensive microprocessors it has become attractive to use these in many different consumer products—including toys. Generally, the development of toys has proceeded from simple functions such as playing of sounds in dolls, performance of simple patterns of movement in robots, etc., to the development of toys with sophisticated patterns of action and a form of behaviour.
Such toy building elements can perform different physical actions partly by programming the toy building element and partly by building a structure which consists of interconnected toy building elements of different types. Thus, there are numerous combination possibilities of making structures and giving the structures various functions. The physical actions may be unconditional and comprise simple or complex movements controlled by an electric motor as well as emission of light and sound signals. The physical actions may also be conditioned by the interaction of the toy with its surroundings, and the toy may then be programmed to respond to physical contact with an object or to light and optionally sound and to change its behaviour on the basis of such an interaction.
Such programmable toys are known e.g. from the product ROBOTICS INVENTION SYSTEM from LEGO MINDSTORMS, which is a toy which can be programmed by a computer to make unconditioned as well as conditioned actions.
CA 2,225,060 relates to interactive toy elements; a first toy element activated by a user can activate a second toy element, which can in turn activate the first toy element or a third toy element. The toy elements may be in the form of dolls, animals or a car which can perform activities.
However, it is a problem of this toy that the toy requires an external computer for the user-defined programs to be transferred to such a microprocessor controlled toy element. It has been a prejudice within the prior art that exchange of programs between toy elements is relevant only between identical toy elements, since, otherwise, the interaction between a program and a mechanical structure will involve possibilities of error.
Within the field of construction toys it is a typical situation that structures are built and modified repeatedly. Since this is part of the game, there is thus a need for the ability to activate a new program adapted to the specific structure.
Accordingly, an object of the invention is to provide a microprocessor controlled toy building element having more flexible programming functions.
This is achieved when the microprocessor controlled toy building element mentioned initially is characterized by comprising communications means which can transmit said function call to a second toy building element for programming of it.
Thereby, a first microprocessor controlled toy building element can transmit a list of function calls to a second microprocessor controlled toy building element. When the second toy building element has stored subprograms known by the first toy building element, programs can rapidly be exchanged between two toy building elements. Thereby the potential of construction toys based on the functionality between a plurality of standard building elements in a structure and a plurality of standard program steps may be utilized in an effective manner.
A preferred embodiment of the invention will be described below with reference to the drawing, in which
a shows a first diagram of a state machine for visual programming of a toy element;
b shows a second diagram of a state machine for visual programming of a toy element;
c shows a third diagram for interrupting a state machine;
d shows a fourth diagram for starting a state machine;
The toy element may hereby be caused to perform sophisticated functions such as e.g. action controlled movement, provided that the toy element is combined with the electronic units/sensors in a suitable manner.
The toy element 101 comprises a microprocessor 102 which is connected to a plurality of units via a communications bus 103. The microprocessor 102 can receive data via the communications bus 103 from two A/D converters “A/D input #1” 105 and “A/D input #2” 106. The A/D converters can pick up discrete multibit signals or simple binary signals. Further, the A/D converters are adapted to detect suitable values such as e.g. ohmic resistance.
The microprocessor 102 can control electronic units such as e.g. an electric motor (not shown) via a set of terminals “PWM output #1” 107 and “PWM output #2” 108. In a preferred embodiment of the invention the electronic units are controlled by a pulse width modulated signal.
Moreover, the toy element can emit sound signals or sound sequences by controlling a sound generator 109, e.g. a loudspeaker or piezoelectric unit.
The toy element can emit light signals via the light source “VL output” 110. These light signals can be emitted by means of light emitting diodes. The light emitting diodes may e.g. be adapted to indicate various states of the toy element and the electronic units/sensors. The light signals may furthermore be used as communications signals for other toy elements of a corresponding type. The light signals may e.g. be used for transferring data to a second toy element via a light guide.
The toy element can receive light signals via the light detector “VL input” 111. These light signals may be used inter alia for detecting the intensity of the light in the room in which the toy element is present. The light signals may alternatively be received via a light guide and represent data from a second toy element or a personal computer. The same light detector may thus have the function of communicating via a light guide and of serving as a light sensor for detecting the intensity of the light in the room in which the toy element is present.
In a preferred embodiment, the “VL input” 111 is adapted to selectively either communicate via a light guide or alternatively to detect the intensity of the light in the room in which the toy element is present.
Via the infrared light detector “IR input/output” 112 the toy element can transfer data to other toy elements or receive data from other toy elements or e.g. a personal computer.
The microprocessor 102 uses a communications protocol for receiving or transmitting data. Transmission of data may take place by activating a special key combination.
The display 104 and the keys “shift” 113, “run” 114, “select” 115 and “start/interrupt” 116 constitute a user interface for operating/programming the toy element. In a preferred embodiment, the display is an LCD display that can show a plurality of specific icons or symbols. The appearance of the symbols on the display may be controlled individually, e.g. an icon may be visible, be invisible and be caused to flash.
By affecting the keys the toy element may be programmed at the same time as the display provides feedback to a user about the program which is being generated or executed. This will be described more fully below. As the user interface comprises a limited number of elements (that is a limited number of icons and keys), it is ensured that a child who wants to play with the toy will quickly learn how to operate it.
The toy element also comprises a memory 117 in the form of RAM or ROM. The memory contains an operating system “OS” 118 for control of the basic functions of the microprocessor, a program control “PS” 119 capable of controlling the execution of user-specified programs, a plurality of rules 120, each rule consisting of a plurality of specific instructions for the microprocessor, and a program 121 in RAM which utilizes the specific rules.
The rules may be designed as subprograms which may be called by a function call. This is also called scripting. A program (e.g. a user-specified one) may thus be designed as a combination of function calls. When transmitting a program to another microprocessor controlled toy building element, merely the function calls may be transferred, if the subprograms are known by the toy building element which is to receive the program. Transmission of a program may be started by activating a key combination or by activating a special icon on the display 201.
In a preferred embodiment, the toy element is based on a so-called single chip processor which comprises a plurality of inputs and outputs, a memory and a microprocessor in a single integrated circuit.
In a preferred embodiment, the toy element comprises light emitting diodes which can indicate the direction of revolution of the connected motors.
The icons may e.g. be designed to illustrate possible patterns of movement for a vehicle. A vehicle may e.g. be constructed by combining the toy element with two motors which can drive a set of wheels at the right-hand side and the left-hand side, respectively, of a vehicle. The vehicle may hereby be controlled to drive forwards, backwards, to the left and to the right. Further, the vehicle may comprise pressure-sensitive switches for detecting collision and light-sensitive sensors.
The group 204 includes icons for a straight and forwardly directed pattern of movement, a forwardly directed zigzag pattern of movement, a circular movement and a movement which repeats a given pattern. These patterns of movement are not conditioned by the action of sensors and are therefore unconditioned.
The group 205 includes a first icon for a pattern of movement, which is reversed when an obstacle is detected. A second icon shows a straight and forwardly directed pattern of movement, where the forwardly directed movement is merely corrected by the detection of an obstacle. A third icon conditions initiation of a pattern of movement. A fourth icon stops an ongoing pattern of movement when a pressure sensor is activated. The icons in the group 205 thus represent patterns of movement which are conditioned by pressure-sensitive sensors.
The group 206 includes icons for starting a pattern of movement which moves toward the strongest light intensity and a pattern of movement which moves toward the weakest light intensity, respectively. The light intensity is detected by means of light-sensitive sensors. The icons in the group 205 thus represent patterns of movement which are conditioned by light-sensitive sensors.
The group 207 includes three identical icons which can be displayed in combination to indicate the time constant at which the mentioned patterns of movement are to be performed. For example, the zigzag pattern may be modified by stepwise changing the period of time which has to elapse before the direction is changed. The time constant may e.g. be 2 seconds, 4 seconds and 7 seconds.
The group 208 comprises icons which represent a plurality of special effects. These effects may e.g. comprise emission of various sound and light signals optionally combined with an arbitrary activation of the mentioned patterns of movement.
As the toy element of the invention includes a building element which may be coupled with other building elements, it is particularly easy to realize the functions which can be seen on the icons by building a structure with a plurality of standard elements.
It should be noted that the display may be of LCD type, LED type or another type. The display may moreover be adapted to show various forms of text messages. Icons may also be text.
a shows a first diagram of a state machine for visual programming of a toy element. The state machine is implemented as a program which can be executed by the microprocessor 102. When the state machine does not execute a user-specified program, and when the toy element has been turned on, activation of the key “select” will direct focus from one group of icons to another group of icons. That a group of icons is in focus may be shown by flashing an icon in a group or all the icons in a group. The state machine shown comprises three states 301, 302 and 303 corresponding to switching focus between three different groups of icons.
The state machine changes states when the keys “select” or “shift” are activated. When the key “select” is activated, switching takes place between the states 301, 302 and 303. When the key “shift” is activated, the state machine continues in another set of states, as shown in
It should be noted that just three states are indicated in this program, corresponding to three groups of icons on the display 201. This has been chosen in order to make the diagram readily understandable. In practice, there must be a number of states corresponding to the number of groups of icons on the display. Further, there may be a state for the transmission of programs.
b shows a second diagram of a state machine for visual programming of a toy element. The state machine is caused to assume these states when the key “shift” is activated. It is assumed that a group of icons has been focused. When “shift” is activated, the state machine assumes the state 304 in which the first icon in the group which has been focused is activated—the other icons in the same group are not shown.
If the key “select” is activated, the state machine assumes the state 305 where “rule #1” is selected. “Rule #1” corresponds to a set of instructions for the microprocessor 102 which can perform a pattern of movement as shown on the icon “icon #1”. Then the state machine assumes the state 306 where focus is moved from the current group of icons to another group of icons for the selection of an icon in this group.
Alternatively, if the key “shift” is selected in the state 304, the state machine assumes the state 307, where the “icon #2” is shown on the display—the other icons in the same group are not shown. Like in the state 304, it is possible in the state 307 to select a rule corresponding to the icon. This is done by activating the key “select”, and then the state machine assumes the state 308 for the selection of the rule “rule #2”. Subsequently, in state 309 focus is moved to the next group of icons.
Correspondingly, “icon #3” may be displayed in state 310 by activation of “shift”. “Rule #3” may be selected by activation of “select”, following which focus is moved to another group.
A further activation of “shift” in the state 310 causes all the icons in the group to be shown, and then the icons in the group are shown individually as described above.
In the states 306, 309 and 312, activation of the key “shift” will cause the state machine to assume one of the respective states 302 or 303 or 301.
It should be noted that it is also possible not to select a rule in one or more groups. In alternative embodiments, it can moreover be made possible to select several rules in the same group.
Additionally, it should be noted that this diagram corresponds to a display with just three icons in each group. This has been chosen to make the diagram readily understandable. In practice, there must be a number of states corresponding to the number of icons in a given group.
Generally, activation of the key “run” 114 will cause the state machine to assume a state in which a program is executed—irrespective of the number of selected rules. Thus, it is not necessary to ask the user whether the program is ready or not.
It is possible to jump to a desired group of icons in order just to change a rule in a user-specified program consisting of several rules.
In a selected state of the state machine, a specified program can be transmitted.
c shows a third program for the interruption of a state machine. This program shows how the state machine in state 314, upon activation of “interrupt”, stores a representation of the state T in which the microprocessor/state machine is present. It is hereby possible to resume a suddenly interrupted programming course without having to start from scratch. The toy element is turned off in state 315.
d shows a fourth diagram for starting a state machine. This program shows how the state machine, upon activation of “start”, turns on the toy element in state 316. Then, a previously stored state representation T is retrieved in state 317. In state 318, the icons representing the state T are shown. In state 319, the icons in group 1 are focused, and then the state machine is ready for operation as described in connection with
As will appear from the above description of
The state machine described above may be implemented in a very compact manner. It is ensured hereby that sophisticated and user-specified functions can be performed in response to a simple dialogue with the user.
In the states where a rule is selected, that is the states 305, 308 and 311, the program system 119 executes a number of operations, thereby generating a user-specified program which can be executed by the microprocessor 102.
The user-specified program can be generated by storing a reference (that is a pointer) in the memory 121 which refers to a rule stored in the memory 120. When several rules are selected to be included in the same user-specified program, a list of references to rules in the memory 120 is stored in the memory 121. A user-specified program may thus comprise one or more rules.
Alternatively, the user-specified program may be programmed by making a copy of each of the selected rules in the memory 120 and inserting the copies into the memory 121; the memory 121 will hereby contain a complete program. Furthermore, the user-specified program may be generated as a combination of references to rules and instructions to the microprocessor 102.
It should be noted that each rule typically comprises a set of instructions which may be considered a subprogram, a function or a procedure. But a rule may also just comprise modification of a parameter e.g. a parameter which indicates the speed of a connected motor or a time constant.
In an expedient embodiment of the invention, a given action may be performed when the state machine changes from a first state to a second state. An action may e.g. comprise signalling with sound and/or light to the user to indicate the state or type of state which the toy element has assumed.
An example of two rules to be executed in parallel in time may be a first rule that a vehicle is to search for light, and a second rule that the vehicle is to change its direction when it detects obstacles.
An example of two rules to be performed sequentially in time may be a first rule that the vehicle is to drive straight ahead, and a second rule that the vehicle is to drive in a circular movement.
Rules R1401, R2402, R3406, R4405, R5403 and R6404 provide an example of a combination of sequential and parallel program execution.
When rules are executed as subprograms run in parallel in time, or in some form of time division between the subprograms, it must be possible to handle situations in which several rules want access to a resource e.g. in the form of a motor. In a preferred embodiment, such a situation is handled by allocating a priority number to each of the rules which may be selected. For example, rules within the same group of icons on the display may be given the same priority number. When the operating system 118 detects that two rules or subprograms both want access to a resource within a period of time, the rule having the lowest priority number is interrupted or stopped. The rule with the highest priority number is then allowed to use the resource. If only one rule can be selected from the same group of icons, a unique and predictable program execution of user-specified programs is thus achieved.
Correspondingly, the second toy element 502 comprises a microprocessor 514, a I/O module 515 and a memory 516. The toy element 502 moreover comprises a communications unit 513 for communication via an infrared transmitter/receiver 512 or for communication by means of a light source/light detector 511 which can emit and detect visible light.
In a preferred embodiment of the invention, the first toy element can both transmit and receive data, while the second toy element can only receive data.
Data can be transferred as visible light via a light guide 503. Alternatively, data may be transferred as infrared light 517 and 518. Data may be in the form of codes that indicate a specific instruction and associated parameters which can be interpreted by the microprocessors 507 and/or 514. Alternatively, data may be in the form of codes which refer to a subprogram or rule stored in the memory 516.
The I/O modules 510 and 515 may be connected to electronic units (e.g. motors) for control of these. The I/O modules 510 and 515 may also be connected to electronic sensors so that the units may be controlled in response to detected signals.
In a preferred embodiment, the fibre 503 is adapted such that part of the visible light transmitted by it escapes from the fibre. It is hereby possible for a user-directly-to watch the transmission. The user can e.g. see when the communication begins and stops.
The light through the fibre can transfer data with a given data transmission frequency as changes in the light level in the fibre. Data may be transmitted such that it is possible for the user to observe individual light level changes during a transmission (that is at a suitably low data transmission frequency), or merely by seeing whether the transmission is going on (that is at a suitably high data transmission frequency).
Generally, it is undesirable that part of the light to be transmitted through the fibre escapes from the fibre. But in connection with communication between two toy elements, it is a desired effect, since it is then possible to watch the communication in a very intuitive manner.
It is known to a skilled person how to ensure that part of the light escapes from the fibre. It can e.g. be done by imparting impurities to the sheath of the fibre, or by making mechanical notches or patterns in the fibre. The part of the light which is to escape from the fibre may also be controlled by controlling the ratio of the refractive index of a core to that of a sheath of a light guide.
It will be described below how a program may be received in the toy element 502 when this is in a state R=P.
An example of a command to be carried out at once may be that the commands in the storage 609 are to be executed.
In an alternative embodiment, the user's own rules may be formed by making a combination of existing rules without using an external unit.
Examples of possible functions of a number of rule based programs R1–R7 are given below (rule 1, rule 2, rule 3, rule 4, rule 5, rule 6 and rule 7).
Rule 1:
Example of the user's experience: A model is constructed such that when the model drives backwards the model turns, and when it drives forwards it drives straight ahead. The rule therefore gives a search light function—when the user throws light on the model, the model drives forwards toward the user.
As described above, it is possible to store user-defined rules by combining the predetermined rules.
The toy structure moreover comprises two movable arms 806 which are pivotable about a bearing 807, so that the arms, when being pivoted, can be caused to affect a set of switches 808. The switches 808 are electrically connected to the toy element 801 via wires 809.
The toy element may be operated via the keys 813. The display 812 can show information, as described above in connection with
By suitable programming of the toy element 801 the vehicle may be caused to drive round obstacles that may affect the arms 806.
Number | Date | Country | Kind |
---|---|---|---|
1999 00144 | Feb 1999 | DK | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/DK00/00050 | 2/4/2000 | WO | 00 | 1/16/2002 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO00/45925 | 8/10/2000 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
4109398 | Hida | Aug 1978 | A |
4712184 | Haugerud | Dec 1987 | A |
4802879 | Rissman | Feb 1989 | A |
4938483 | Yavetz | Jul 1990 | A |
5127658 | Openiano | Jul 1992 | A |
5259626 | Ho | Nov 1993 | A |
5724074 | Chainani et al. | Mar 1998 | A |
6083104 | Choi | Jul 2000 | A |
6290565 | Galyean, III et al. | Sep 2001 | B1 |
Number | Date | Country |
---|---|---|
2225060 | Oct 1998 | CA |
WO 9002983 | Mar 1990 | WO |