Project ROBBO Kit Specks

From scratchduino
Revision as of 17:58, 6 June 2018 by Николай (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents


Link to author's page

Link to author page (Ilya Berezovsky)

Description of the project

Students will need to program the robot in the program so that it can move through the keyboard. Movements are made forward, backward, to the left, to the right. On the robot are installed touch sensors, in the program they are programmed for a set of points at the time of activation. Two or more competitors compete in a set of points.

To prevent an emergency, first of all, you should program the stop key for all processes! Picture STOP.

The programming of control occurs through the logic "if, then" in the cycle "always". It is important to note that to correctly control the robot it is also necessary to use the logic "wait till <<" not "key pressed >>", otherwise the robot does not recognize when the control signal ceases to arrive and will continue to move in the given direction.

Next, program a touch sensor using a variable. The variable must change its value to "1" when the sensor triggers. Here, you also need to set the "wait until" limit for a certain value of the sensor, so that the variable changes only within this range. Otherwise, the changes will exceed the value "1".

In addition, it is possible to program a robust action for the robot in the event that any conditions are met. An example is an image of Victory. In this case, at the moment when the variable becomes "5", the robot performs "dance": moves back, turns left and right.

Video of the finished project

Download links

Active link to download the file in sb format

Personal tools
Namespaces

Variants
Actions
Navigation
Tools
Print/export