![]() ![]() Shame, because I built a lego car with a raspberry pi on board and could operate it from a remote connection but it was too slow and the motors would just stop turning. The problem with the 2 motors is not unique to Scratch and I believe it is a fault with the hub - possibly just mine as I have not seen the issue reported elsewhere. Never had a problem with a single motor though. The only solution in this case is to unplug the USB cable and put it back in. In addition, when you run two motors and put them both under fairly small loads they just stop turning. However, I have found that the motors are rather underpowered by the USB hub (delivers 5V and not the required 9V). I've just tried it again and was pleased to find that Scratch now supports 2 motors. I played around with Lego WeDo a while ago ( see here) before Scratch 2.0. Scratch Link appears as an icon at the bottom of your screen. Using Scratch Link requires both Scratch (you can use either the Scratch website or the Scratch app) and a compatible Bluetooth device. Sensors are around £15 each, so if you want those too, then it is more economical to buy the whole kit. Scratch Link is a helper app that lets you connect Scratch to other devices, such as micro:bit and LEGO robotics kits. This block reports the angle at which the WeDo has been tilted in the specified direction (unlike other tilt blocks, "any" cannot be selected here)If you just want to control a couple of Lego motors that you already have, then you can just buy the Lego WeDo hub for about £35 in the UK. This block reports whether or not the WeDo is tilted in the specified direction. "everything" controls all connected motors and lights. "light" controls the lights regardless of where they are connected on the WeDo hub. If two motors are available but need to be controlled separately, "motor A" can be used with one and "motor B" with the other. If only one motor is available, use the "motor" option, which will control the motor regardless of where it is connected on the WeDo hub. Reverse switches the direction.Īll motor blocks have a menu that allows control over two WeDo motors and lights separately. The first two are equivalent to clockwise and counter-clockwise. ![]() There are three options for the direction, listed as "this way", "that way", and "reverse". This block sets the direction that a specific motor should turn with. This block sets the power of a specific motor or the lights, controlling the speed at which the motor is spinning or the brightness of the lights. Turn a specific motor or the lights on indefinitely. There are five options for the block, listed as "motor", "motor A", "motor B", "light" and "everything". ![]() Turns a specific motor or the lights on for a certain amount of time. Note: Scratch 2 offline editor now supports LEGO WeDo. There is more information about the LEGO WeDo, including sample projects and more detailed instructions on setup, on Scratch here. Once the LEGO WeDo extension has been added, the Tips window will open and give the link to the Extensions installation instructions. Click "Add an Extension" and choose "LEGO WeDo."Ī plugin is needed to use any hardware extension. The LEGO WeDo extension can be added within the "More Blocks" category. You can snap together Scratch programming. The LEGO WeDo Construction Kit can be used with the online editor of Scratch 2.0 by adding an extension. LEGO Education WeDo 2.0 is an introductory invention kit you can use to build interactive robots and other creations. It is only useful from a historical perspective. This article or section documents something not included in the current version of Scratch ( 3.0). ![]() Used to connect the WeDo parts to a computer. Interact by moving closer and further from this sensor. These are LEGO Power Function lights that are not included in the WeDo kit, but can still be connected to the WeDo hub and controlled using Scratch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |