Please expand this article or section. You can help by adding more information if you are an editor. More information might be found in a section of the talk page. (August 2018) |
This article has links to websites or programs outside of Scratch and Wikipedia. Remember to stay safe while using the internet, as we cannot guarantee the safety of other websites. |
- This article is about the extension in Scratch 3.0 and Scratch 2.0. For the older version of WeDo, see LEGO WeDo 1.0 Extension. For the extension in Scratch 1.4, see Motor Blocks.
The LEGO Education WeDo 2.0 Extension is an extension in Scratch 3.0 and Scratch 2.0. It lets projects interact with the Lego WeDo 2.0 Construction Set.
Blocks
Scratch 3.0 contains six Lego Education WeDo 2.0 stack blocks, two hat blocks, two reporter blocks, and one boolean block.
turn ( v) on for () seconds
— allows the selected motor to run for a given amount of seconds.turn ( v) on
— toggles a selected motor's state to "on", but does not turn the motor; an additionalturn ( v) on for () seconds
block is needed.turn ( v) off
— the opposite ofturn ( v) on
; it sets a motor's state to "off".set ( v) power to ()
— sets the speed (or power) of a motor to the given number.set ( v) direction to ( v)
— determines the direction the motor will turn; either left or right.set light color to ()
— sets the hub light to the given number's color code.when distance ( v) ()
— runs the code, when the distance sensor recognises an object in the given range.when tilted ( v)::wedo
— runs the code, when the hub is tilted to the direction specified, which can be:- any
- left
- right
- up
- down
distance::wedo
— can be used as an expression in maths blocks.tilted ( v)?::wedo
— checks if the hub is tilted in the given direction.tilt angle ( v)::wedo
— checks the angle of the hub if tilted.
Removed Block
- Main article: Play Note () for () Seconds (block)
The play note ( v) for () seconds
was a stack block available for use in Scratch 2.0, but was removed in Scratch 3.0 because the sound it made was very quiet.[1] If the block is imported into Scratch 3.0 from a Scratch 2.0 project, the block functions as expected.[2]
Connecting a LEGO WeDo 2.0 Set
To connect a WeDo set in Scratch 3.0, a Scratcher must go to the extensions menu. From there, click on the LEGO WeDo 2.0 extension. A pop up will appear with the option to start searching. When the button is clicked, it begins looking for WeDo sets via Bluetooth. To connect a WeDo set, one needs to install Scratch Link. It can be installed here.
Connecting in 2.0
This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
To connect a LEGO WeDo set in Scratch 2.0, a Scratcher must go to "More Blocks", then click on "Add and Extension" and select "LEGO WeDo 2.0". The plugin must be downloaded onto the computer. A traffic light system will show if the set has been connected.
See Also
- How to Connect to the Physical World
- Hardware that can connect to Scratch other than LEGO WeDo
- Lego WeDo
External Links
- LEGO WeDo resources and activities on ScratchEd website
- LEGO Education WeDo 2.0 Construction Set
- LEGO Education WeDo Building Instructions
References
- ↑ ericr. (2018-08-16). "Also, hide the WeDo's "play note" block from the palette, because the sound from the WeDo's tiny buzzer is often very quiet or inaudible." https://github.com/scratchfoundation/scratch-vm/pull/1487
- ↑ projects:866777252/editor