THE SENSOR BLOCK FACTORY
Sensor Table
This table sets the function of each sensor
Touch sensor |
|
| OBJECT |
|
|
|
| ||
Sensor reacts |
|
|
|
|
| The wire | |||
- | Right sensor |
|
|
|
|
| |||
when antenna |
|
|
|
|
| antenna can | |||
- | Left antenna |
|
|
|
|
| |||
touches something |
|
|
|
|
| be bent into | |||
- | Both antennae |
|
|
|
|
| |||
|
|
|
|
|
| any shape | |||
|
|
|
|
|
|
|
| ||
|
| OBJECT |
|
|
| Front |
|
| |
|
|
|
| Infrared | Left | Right | Approx. | ||
|
|
|
|
|
|
| |||
Infrared sensors | Infrared ray |
| ray from |
|
|
| 10 cm | ||
| wonderBorg |
|
|
|
| ||||
|
| reflects off |
|
|
|
|
| ||
- | Something ahead |
|
|
|
|
|
| ||
obstacle |
|
|
|
| Sensor may not | ||||
| to the right |
|
|
|
| ||||
|
|
|
|
|
| ||||
|
|
|
|
|
| react if robot | |||
- | Something ahead |
|
|
|
|
| |||
|
|
|
|
| is too close | ||||
| to the left |
|
|
|
|
| |||
|
|
|
|
|
| to obstacle. | |||
- | Something ahead |
|
|
|
|
| |||
|
|
|
|
|
|
| |||
|
| The Infrared ray emitted | Sensors will not react if robot is too | ||||||
|
| by WonderBorg bounces | close to an obstacle shown | ||||||
|
| off obstacle & is detected | small objects that do not reflect much | ||||||
|
| on way back |
| infrared rays will not be detected. | |||||
|
| Floor Sensor - senses status | Infrared ray emitted by | ||||||
|
| of floor in front of robot | |||||||
|
| WonderBorg is reflected back | |||||||
|
|
|
|
| |||||
Floor Sensor | ON = | Floor | & detected by the sensor when | ||||||
- | Floor sensor ON | detected sensor is ON. | |||||||
| Present | ||||||||
| Note: On certain floor surfaces, | ||||||||
- | Floor sensor OFF |
|
|
| |||||
OFF = | Floor is | this sensor will not react. | |||||||
|
| When it is off, the Green LED | |||||||
|
| dark or absent | flashes faster. |
|
| ||||
|
| Light souce | OBJECT |
| Robot in shadow | ||||
|
| on robot |
|
|
| of an object | |||
Brightness |
|
|
|
|
|
|
| ||
sensor |
|
| Light sensor |
|
|
| |||
|
|
|
|
|
|
| |||
- | Light |
|
|
|
|
|
|
| |
- | Dark |
|
|
|
|
|
|
| |
|
| Bright |
|
|
| Dark | |||
Infrared signal | Example Infrared signal 2 |
|
|
|
| ||||
sensor |
|
|
|
| |||||
(Guide to another robot) |
|
|
|
| |||||
- | Found a fellow |
|
|
|
| ||||
|
|
|
|
|
| Infrared | |||
| WonderBorg |
|
|
|
|
|
| ||
|
|
|
|
|
|
| signals can | ||
- | Call |
|
|
|
|
|
| ||
|
|
|
|
|
| be emitted | |||
- | Threatened |
|
|
|
|
|
| ||
|
|
|
|
|
| by the | |||
- | Infrared signal 1 |
|
|
|
|
|
| ||
|
|
|
|
|
| interface | |||
| (Guide to goal) |
|
|
|
|
|
| ||
|
|
|
|
|
|
| or by other | ||
- | Infrared signal 2 |
|
|
|
|
|
| ||
|
|
|
|
|
| WonderBorgs | |||
| (Guide to another |
|
|
|
|
|
| ||
| Infrared signal 1 |
|
|
|
|
|
| ||
| robot) |
|
|
|
|
|
| ||
|
|
|
|
|
|
|
| ||
- | Infrared signal 3 | Robot distinguishes infrared |
|
|
|
| |||
- | Infrared signal 4 |
|
|
|
| ||||
signal 1, and advances in |
|
|
|
| |||||
- | Infrared signal 5 | that direction |
|
|
|
|
|
| |
|
| TIMER |
| Usage Example |
|
|
| ||
|
|
| - Make robot emit a cry once every 30 sec. | ||||||
Internal clock |
| Sensor reacts every 30 sec., so robot can | |||||||
|
| ||||||||
sensor | The sensor reacts once | be made to give a cry at | |||||||
- Switch to another panel after 40 seconds. | |||||||||
- | 10 sec. elapsed | in each specified period | |||||||
of time, measured from | - The clock does not count the length of | ||||||||
- | 20 sec. elapsed | when the program switches | time for which an infrared signal is | ||||||
- | 30 sec. elapsed | to the panel in question | emitted, or the direction of cries and | ||||||
|
| (or from the start of | tones emitted by the robot. |
|
| ||||
|
| the program). |
|
|
|
|
|
|
THE COMMAND BLOCK FACTORY
The Command Block Factory
You can move to the Command Block Factory screen by clicking "Create command block" at the top of the Panel screen, or by clicking one of the pink triangles on the Panel screen.
Names of Parts:
The names of the parts are shown below. The numbers correspond to the numbered explanations.
Help Screen | Command List | OK | Cancel |
|
| Help | Interrupt Button | Number Keys | Block | |
1. | OK: | Sends the created command block to the Panel screen. |
| |||
2. | Cancel: | Returns you to the Panel screen without creating a command block. | ||||
3. | Command List: | List of the commands that can be specified. |
|
| ||
4. | Block: | Displays the command selected from the command list. |
| |||
5. | Number keys: | Used to input the parameter for the selected command. The parameter | ||||
|
| units - "steps", "sec" and so on - vary depending on the command, | ||||
|
| and they are displayed in the key area. |
|
|
Note: The number of steps must be between 1 and 50, the number of cries must be between 1 and 50, the Option action must last between 1 and 50 seconds, and the number of
6.
7.Interrupt button: Use to select the whether or not the currently selected command
|
| can be interrupted. This button is only displayed when you have |
|
| selected a command which can be interrupted. |
8. | Help: | Displays a help animation indicating the function of the sensor |
|
| currently selected. To stop the animation, click the button again |
|
| (the text on the button will change to "STOP"). |
9. | Help screen: | Screen area where the help animation is displayed. |
How to Create a Command Block
On the Command Block Factory screen, select and click the desired command from the command list in the middle of the screen. Next, input the required parameter by
Option | When an ON / OFF switch is fitted to the WonderBorg’s Option |
Connector, this sensor will react by entering state 1 when the | |
39 | switch is ON, and state 0 when the switch is OFF. |
clicking the number keys. When you have finished inputting, click the "Decide" button at the top right of the screen. The command block will now be created on the Panel screen.
40