News Download Tutorial FAQ Reference Buy

Entry : Block List for Single Robot


If there is a hand or object in front of the left or right proximity sensor, it is judged as 'True', otherwise 'False'.
If the hand or object is too close (within 1cm), it will not be detected.

The sensor value of a Hamster robot

Parameter

Moves one space forward on the board composed of black grids.
The board can be downloaded from the Tutorial - Classroom Materials - Worksheet.

Turn left/right 90 degrees in place on the board composed of black grids.
The board can be downloaded from the Tutorial - Classroom Materials - Worksheet.

Parameter

Move forward for the number of seconds entered.

Parameter

Move backward for the number of seconds entered.

Parameter

Turn left/right in place for the number of seconds entered.

First Parameter

Second Parameter

Add the values you entered to the current speed (%) of the left wheel and the right wheel respectively.
If the result is positive, the wheel rotates forward; if negative, the wheel rotates backward.

First Parameter

Second Parameter

Set the speed of the left wheel and the right wheel to the entered value (-100 to 100%), respectively.
If you enter a positive value, the wheel rotates forward. If you enter a negative value, the wheel rotates backward. Entering the number 0 stops it.
The value you entered is the % value based on the maximum speed.

First Parameter

Second Parameter

Add the value you entered to the current speed (%) of the left/right/both wheels.
If the result is positive, the wheel rotates forward; if negative, the wheel rotates backward.

First Parameter

Second Parameter

Set the speed of the left/right/both wheels to the entered value (-100 to 100%).
If you enter a positive value, the wheel rotates forward. If you enter a negative value, the wheel rotates backward. Entering the number 0 stops it.
The value you entered is the % value based on the maximum speed.

First Parameter

Second Parameter

Move along the black/white line by using the left/right/both floor sensors.

First Parameter

Second Parameter

Move along the black/white line on the left/right/front/rear, then stops when it encounters the intersection.
When you first start, it is best to choose the 'front' or 'rear' intersection for the second parameter. The robot may not turn left or right if the first starting position is not exactly on the intersection. If the robot encounters an intersection while moving, it will stop at the correct location, so you can choose anything for the second parameter from hereafter.

First Parameter

Second Parameter

Set the speed (1 to 8) to move along the line. The greater the number, the faster the movement.

Parameter

Stop both wheels.

Turn on the left/right/both LEDs to the selected color.

First Parameter

Second Parameter

Turn off the left/right/both LEDs.

Parameter

The buzzer sound of 440 Hz sounds short (0.2 seconds).

Add the value you entered to the current pitch (Hz) of the buzzer sound. You can enter up to two decimal places.

Parameter

Set the pitch of the buzzer sound to the value (Hz) you entered. You can enter up to two decimal places. Entering the number 0 turns off the buzzer sound.

Parameter

Turn off buzzer sound.

It sounds the note of the selected pitch and octave as much as the beat you entered.

First Parameter

Second Parameter

Third Parameter

Rest as much as the beat you entered.

Parameter

Add the value you entered to the current BPM (beats per minute) of playing or rest.

Parameter

Set the speed of playing or rest to the BPM (beats per minute) you entered.

Parameter

Set the input/output mode of the external extension port.

First Parameter

Second Parameter

Add the value you entered to the current output value of the external extension port. The result will have the following range depending on the mode of the external extension port.

First Parameter

Second Parameter

Set the output value of the external extension port to the value you entered. The input value has the following range depending on the mode of the external extension port.

First Parameter

Second Parameter
Contents
Hardware
  1. Hamster robot
  2. USB dongle
Preparation for Class
  1. Software installation   Windows · MacOS · Linux
  2. Robot to PC connection
  3. Software execution   Windows · MacOS · Linux
  4. Block list for single robot
  5. Block list for multiple robots
Basic
  1. Standing and singing
  2. My precious ass
  3. Moving an object with the accelerometer
Advanced
  1. Moving an object with the accelerometer
  2. Line follower with one sensor
Previous Lectures
  1. Ordering in sequence
  2. Repeat
  3. Debugging
  4. Repeat until hand found
  5. Move a robot
  6. Use sensors
  7. Use the default board
  8. Braitenberg's robot
Copyright Robot Software Education Institute. All rights reserved.
Please contact prof. Kwang-Hyun Park (akaii@kw.ac.kr) if you have any problem.