Bloques Lego Ev3 Classroom
Bloques Lego Ev3 Classroom
Bloques Lego Ev3 Classroom
EV3 Classroom
Blocks
Types and Descriptions
Table of Contents
Word Block Types ......................................................................... 2
Word Block Description ................................................................. 4
Motor Blocks ................................................................................. 4
Movement Blocks .......................................................................... 7
Display Blocks ............................... Error! Bookmark not defined.
Sound Blocks .............................................................................. 14
Event Blocks ............................................................................... 16
Control Blocks ............................................................................. 20
Sensor Blocks ............................................................................. 23
Operator Blocks .......................................................................... 28
Variable Blocks ........................................................................... 32
My Blocks .................................................................................... 34
Weather Blocks ............................. Error! Bookmark not defined.
More Motor Blocks ........................ Error! Bookmark not defined.
More Movement Blocks ................. Error! Bookmark not defined.
More Sensors ................................ Error! Bookmark not defined.
Music Blocks ................................. Error! Bookmark not defined.
Log and Visualize Data Over Time Error! Bookmark not defined.
Display Extension .......................... Error! Bookmark not defined.
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Word Block Types
The Scratch programming language is made up of different types of blocks, each
represented by a different shape.
Hat Blocks
Hat Blocks are used to start a program. They have a rounded top so that other
blocks can only be attached under them.
Stack Blocks
Stack Blocks perform the main commands in a program. They’re the blocks that
can make the motors move and the lights light up!
C Blocks
C Blocks are C-shaped blocks. They’re placed between the beginning and the
end of the loop or check whether a condition is “true.” All of the C Blocks can be
found in the Control category.
Reporter Blocks
Reporter Blocks hold values, which be a number or a string. Among other things,
they can hold a sensor reading or store the value of a variable.
Boolean Blocks
Boolean Blocks are conditions that can either be true or false. They’re used
together with C Blocks to form the logic of a program.
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Cap Blocks
Cap Blocks are used to end scripts. They’re shaped with a notch at the top and a
flat bottom so that you can’t place any blocks below them. There are two Cap
Blocks, both which can be found in the Control category.
Block Stacks
A block stack is a number of blocks that have been put together.
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Word Block Description
Motor Blocks
Motor Blocks either make the motors run or get information from the motors. The Motor
Blocks category contains the most common Motor Blocks.
Run Motor for Duration at Speed Runs one motor for a specified
number of rotations, seconds, or
degrees at a specified speed. A
negative speed value runs the motor
counterclockwise.
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Stop Motor Stops one motor from running. The
motor will brake so that it quickly
comes to a complete stop. The
motor will not hold its position once
it has stopped.
Set Motor Position at Stop Sets the action that the motor will
perform when its current command
completes. It can be set to either
float or actively hold position when
the motor stops.
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Reset Motor Degrees Counted Resets the degree count of a
motor to “0.” A motor’s degree
count is equal to the motor’s
relative position from where it
started. The degree count is “0”
whenever a program starts, or a
motor is connected to an EV3
Brick. Turning the motor clockwise
increases the count, while turning
counterclockwise decreases the
count.
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Movement Blocks
Movement blocks enable you to run two motors in a synchronized motion. They’re
primarily used to move Driving Bases around. Only motors of the same type (e.g., two
Medium Motors) can be synchronized.
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Move with Steering for Duration Moves a model forward the
specified number of seconds,
degrees, or rotations with the
specified steering. the possibility
of steering.
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Stop Moving Stops all movement.
Set Movement Motors to Hold Position Sets the action that the
at Stop movement motors will perform
when their current command
completes. It can be set to either
float or actively hold the current
position when the motors stop.
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Move with Steering for Duration at Moves a model the specified
number of seconds, degrees, or
Speed
rotations at the specified speed,
with the specified steering.
10
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Start Moving with Steering at Speed Starts moving a model at the
specified speed, with the
specified steering until the motors
are told to do something else or
the program stops.
11
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Display Blocks
Display blocks enable you to display text or graphics on the EV3 Brick Display.
12
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Write at Coordinates with Font Displays the defined text in
the specified font, at the
specified XY coordinates on
the EV3 Brick Display. The
line height is 10 pixels.
13
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Sound Blocks
Sound blocks enable you to play sounds using the speaker inside the
EV3 Brick.
14
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Set Volume This block sets the volume
of the sound. The default
volume is 100%.
15
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Event Blocks
Event blocks are comprised entirely of Hat Blocks, meaning that they’re
always the first block in a programming stack and other blocks can only
be attached under them. Hat Blocks are necessary to start a
programming stack and will be triggered when a specified event occurs.
16
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
When Pressed Runs the blocks attached to it
when the Touch Sensor is
pressed or released.
17
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
When Brick Button Pressed Runs the blocks attached to it
when the specified Brick
Button is pressed or released.
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Broadcast Message and Broadcasts the specified
message. All of the When I
Wait
Receive Message Blocks that
have been set to the specified
message will activate.
19
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Control Blocks
The Control Blocks category contains all of the blocks that can modify
the linear flow of block execution, such as “wait for” structures, loops
and conditions.
20
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Repeat Until Loop All of the blocks held inside the block
will loop until the specified Boolean
condition is true. When the specified
condition becomes true, blocks
beneath it will play.
21
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Stop Other Stacks This block stops all programming
stacks expect its own.
22
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Sensor Blocks
Sensor Blocks receive information from the sensors.
23
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Is Color? Returns true if the Color Sensor
detects the specified color. The
detectable colors are:
– Black
– White
– Blue
– Brown
– Green
– Yellow
– Red
– No color
24
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Is Pressed? Returns true if the Touch Sensor is
pressed.
25
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Reset Angle Returns the Gyro Sensor’s angle to
“0.”
26
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Reset Timer This block resets the timer.
27
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Operator Blocks
Operator blocks perform all of the mathematical operations that can be
done using numerical values.
28
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Less Than Returns true if the first value
is less than the second
value.
29
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Join Strings Concatenates, or “joins” the
values together and returns
the result. For example if
“hello” and “world” were input
into the block, it would return
“helloworld”). To return “hello
world” input “hello ” and
“world” or “hello” and “ world”
including a space after hello
or before world.
30
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Math Functions Performs the specified math
function on a given number
and reports the result.
31
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Variable Blocks
The Variable Blocks category contains all of the blocks linked to
variables and lists (arrays).
32
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
Delete All Items in List The block deletes all of the
items in the specified list.
33
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved
My Blocks
My Blocks are part of the Variable Blocks category. You can create your
own definition of a My Block.
34
LEGO, the LEGO logo, the minifigure, DUPLO, the SPIKE logo, MINDSTORMS and the MINDSTORMS logo are
trademarks and/or copyrights of the LEGO Group, Ⓒ2020 The LEGO Group. All rights reserved