Project ROBBO Kit Specks

From scratchduino
(Difference between revisions)
Jump to: navigation, search
(Created page with " __TOC__ ==Link to author's page== [http://wiki.robbo.ru/wiki/%D0%A3%D1%87%D0%B0%D1%81%D1%82%D0%BD%D0%B8%D0%BA:%D0%98%D0%BB%D1%8C%D1%8F_%D0%91%D0%B5%D1%80%D0%B5%D0%B7%D0%BE%...")
 
 
Line 7: Line 7:
  
 
==Description of the project==
 
==Description of the project==
Students will need to program the Robot in the ScratchDuino 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 ScartchDuino they are programmed for a set of points at the time of activation. Two or more competitors compete in a set of points.
+
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.
 
To prevent an emergency, first of all, you should program the stop key for all processes! Picture STOP.

Latest revision as of 17:58, 6 June 2018

Contents


[edit] Link to author's page

Link to author page (Ilya Berezovsky)

[edit] 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

[edit] Download links

Active link to download the file in sb format

Personal tools
Namespaces

Variants
Actions
Navigation
Tools
Print/export