Docsity

Open Roberta per programmare un EV3, Guide, Progetti e Ricerche di Informatica

Anteprima parziale del testo

Scarica Open Roberta per programmare un EV3 e più Guide, Progetti e Ricerche in PDF di Informatica solo su Docsity!

Do it and Film

Italy march 22

What’s a Robot?

A robot is an autonomous system that replaces human work, has a purpose and is able to interact with the physical

environment in which it is located. It consists of 4 fundamental parts:

1. the Hardware, i.e. its physical structure that makes it capable of moving,

2. sensors and motors and all the electronic part with which the robot receives the signals from the surrounding

environment and interacts with it

3. the controller: that is his brain where the program resides

4. the programming software: which contains the instructions that the robot will have to execute

Open Roberta Lab is a free programming environment created as part of the Roberta research project, girls

discover robots, promoted by the Fraunhofer Institute to increase the interest of young people and, in

particular, girls, in science subjects and educational robotics.

It allows the programming of robots such as Lego Mindstorms EV3, Wedo,

Arduino, Calliope ... it is a cloud-based programming environment

Programming is graphical and takes place through a variety of blocks that guarantee versatility and ease of

use.

It can be used with any device (PC, Tablet, smartphone) and can be used without having to register on the

site

Thanks to the simulation function, it does not require the availability of the

robotic kit for carrying out the activities, but allows, in any case, to view

the programming result.

  1. Choose your system: clik EV3dev
  1. The programming environment that consists of will open:

Instruction blocks

Working area

control menù

Simulation area (SIM)

this is the virtual robot

that we will program in

the simulation

environment it is

equipped with some

sensors and motors

color sensor

Led
wheel + motor

ultrasonic sensor

touch sensor minimum

distance

ultrasound beam

In a block language, programming takes place within an application, which allows you to interpret

and execute the "code" created by the sequential arrangement of the blocks

These languages allow you to create games, animations,

stories interactive, musical sequences or can be used for

giving commands to a robot.

This way you can program without writing a single line of

code, as everything happens through the sorting and moving

of a series of graphic objects, arranging them in sequences.

With Open Roberta it is possible to program a virtual robot and see how it behaves in the

simulation environment

It is also possible to download the code on

the real EV3 robot and physically test the

programming in the real environment.

And this is exactly what we will do in Italy

Let's now discover the main blocks to build our program
You can choose the blocks by opening the colored menus on the right.
Each color identifies similar commands
you can select your language by clicking on the button representing the
world located at the top left
if you click on the colored block, an additional menu will open with all the
instructions relating to the specific activity.
For example, if I click on the orange color related to the movement function I can see
all the instructions that I can use to make my robot move

If you clik on the “action block” you will be able to see the

block “DRIVE”

if you want to make your robot move backwards click on

the triangle next to the word "forwards" and select the

word "backwards",

In the upper part of the program you can see different icons representing the setting of the Try to change the speed and distance parameters and observe

what happens in the robot simulation environment

In the upper part of the program you can see different icons representative of the robot settings

this is the

programming

environment

clicking on this button opens the configuration of the

robot (i.e. the arrangement of motors and sensors

with respect to the dialogue door with the

controller)

1 .sensor touch

  1. gyroscope
  2. color sensor
  3. ultrasonic sensor we use programming mode 1

because being simpler it is ideal to

start with

is the robot model we use

For real robots, which you have

built yourself, you can change the

configuration while

For SIMulator this is the fixed

configuration

B. rigth motor

C. left motor

the "wait" block causes the program to wait for a certain time,

expressed in milliseconds, before moving on to the next block

in the sequence.

it is found in the orange menu

the "Wait until" block causes the program to wait for one or more events to occur before

moving on to the next block in the sequence