In other languages

Help the wiki!

The Scratch Wiki is made by and for Scratchers. Do you want to contribute?

Learn more about joining as an editor!

See discussions in the Community Portal

LEGO WeDo Construction Set

(Redirected from LEGO Education WeDo Robotics Kit)

"Motor" redirects here. For the block category with that name, see Motor Blocks.
A LEGO WeDo robot being used with Scratch.

The LEGO® WeDo™ Construction Kit is a simple robotics tool designed for ages 7–11. It allows users to design their own interactive machines, and then program them using drag-and-drop software like Scratch.

In Scratch 2.0, you can add a LEGO WeDo extension within the "More Blocks" category. Click "Add an Extension" and choose "LEGO WeDo."

Contents

LEGO WeDo Parts

WeDo part What it looks like What you can use it to do
Motor Legomotor.jpg Make things turn
Distance sensor LEGO-WeDo-distance-sensor.jpg Interact by moving closer and further from this sensor
Tilt sensor Tiltsensor.jpg Interact by tilting this sensor
Hub Legowedohub.jpg Connect the WeDo parts to your computer

LEGO WeDo with Scratch 2.0

The LEGO WeDo Construction Kit can be used with the online editor of Scratch 2.0 by adding an extension. The LEGO WeDo extension can be added within the "More Blocks" category. Click "Add an Extension" and choose "LEGO WeDo."

Note: Scratch 2.0 offline editor does not support LEGO WeDo yet.

LEGO WeDo Extension Blocks


turn (motor) on for () secs Turns a specific motor on for a certain amount of time. There are four options for the motor, listed as "motor", "motor A", "motor B" and "all motors".

turn (motor) on Turn a specific motor on indefinitely.

turn (motor) off Turn a specific motor off.

set (motor) power to () This block sets the power of a specific motor, controlling the speed at which the motor is spinning.

set (motor) direction to () This block sets the direction that a specific motor should turn with.

There are three options for the direction, listed as "this way", "that way", and "reverse". The first two are equivalent to clockwise and counter-clockwise. Reverse switches the direction.

MotorMenu.png

All motor blocks have a menu that allows you to control two WeDo motors separately. If you have only one motor, use the "motor" option, which will control the motor regardless of where it is connected on the WeDo hub. If you have two motors which you want to control separately, you can use "motor A" with one and "motor B" with the other. "all motors" option does the same as "motor".


when distance (<) () This hat block runs a script when the distance becomes less (or greater) than a specified value.

when tilt (=) () This hat block runs a script when the tilt value becomes equal (or not equal) to a specified value.

distance It reports the distance sensor value.

tilt It reports the tilt sensor value.

LEGO WeDo with Scratch 1.4

The Motor blocks in 1.4.

To show the blocks to control the LEGO WeDo motors, click "Show Motor Blocks" in the Edit tab. They can be then found below within the Motion palette. Unlike the LEGO WeDo extension in Scratch 2.0, Motor Blocks cannot control two WeDo motors separately. Running a motor block will affect all the connected motors.

To report the values of the LEGO WeDo sensors, use the sensor value block which can be found in the Sensing palette.

See Also

External Links

  • This page was last modified on 2 April 2014, at 19:38.