11/21/2023 0 Comments Lego wedo kits scratch![]() ![]() The Scratch documentation (what I can find) says that Scratch will show these special function blocks only when the WeDo USB hub is recognized. However, not so much luck with Scratch in another Linux version on other computers that I tried.ĭo any of you know someone who worked on, or understands, the Raspbian distribution - who might know something about any drivers or USB or other configurations needed to get the Scratch-WeDo connection working?Īs you may know, in Scratch, there are some special functions (program blocks) that interact with the WeDo motor and sensors through the special WeDo USB hub. I have recently obtained a Raspberry Pi, which came with a Raspbian (Debian) distro, and the included Scratch (version 1.4) worked right away with the USB connection to my LEGO WeDo system (both motor and sensors worked). There is some simple example code for using the WeDo kit with both Scratch and Python here. on_Support, and the actual Python WeDo library is on Github. For this, you will need to install some Python libraries, but the process has been nicely documented here. It's also possible to use Python on a Raspberry Pi to interact with the Lego WeDo kit. No additional software required! Just plug the WeDo USB module into the Pi, start up Scratch, and off you go! See the above link for some details of using the WeDo with Scratch 1.4. I can confirm from personal experience that the LeGo WeDo kit works very nicely, out of the box, with Raspbian Scratch 1.4 on a Raspberry Pi. The previous, non-Flash, version of Scratch (1.4) comes bundled with the Raspbian distribution, and nowadays Scratch 1.4 works really nicely on the Pi, thanks to lots of clever development work by people at the Foundation and elsewhere. Having said that, it seems that the Lego WeDo kit itself does not currently work with Scratch 2.0, although the MIT Scratch team have said they have plans to support it in the future - see their statement here. The Adobe Flash player is not (and I understand will not become) available for the Raspberry Pi, and so Scratch 2.0 cannot be used on the Pi. So far as I understand, Scratch 2.0 has been built using Adobe Flash, and therefore requires the Adobe Flash Player in order to work. Use the sensor value block in the Sensing category, selecting tilt from the pull-down menu.I know it's been a while since you posted your question, but I hate to see queries go unanswered - so here's what I can tell you about Lego WeDo, Scratch, and Raspberry Pi:įirstly, you specifically mention using Scratch 2.0. Tilt Sensor: The tilt sensor can be used to determine orientation, where 0 is flat, 1 is down, 2 is right, 3 is up, and 4 is left.Use the sensor value block in the Sensing category, selecting distance from the pull-down menu. Distance Sensor: The distance sensor can be used to determine proximity, where 0 is close and 100 is far.You can use the blocks to turn the motor on and off, set the motor power, and set the motor direction. If not, select Show Motor Blocks from the Edit menu. Motor: The WeDo motor blocks should be visible in the Motion category.Controller: Connect the WeDo controller to your computer via USB.This guide is intended to be a quick overview of the WeDo components (controller, motor, distance and tilt sensors) and how to control them via Scratch. Scratch version 1.4 has special programming blocks to interact with motors and sensors in your LEGO WeDo robotic creations. ![]() Curricular Areas: Computer Science, Engineering, Language Arts, Mathematics, Music, Science, Social Studies, Teacher Education, Technology, Visual Arts, Other. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |