alf_gon
Posts: 1
Joined: Mon Dec 09, 2013 8:42 pm

Lego Wedo & Scratch

Mon Dec 09, 2013 8:50 pm

Hi,

I have recently purchased a Pi and I would like to use it to with Scratch to interact with LEGO® Education WeDo™ robotics kit. I have no doubt that I could use Pi GPIO pins to manage some kind of motors/sensors attached to a breadboard but I found much more simply for my kid to manage a device directly attached to the USB hub.

My doubt is: can anybody confirm that Lego Wedo USB hub (see link at http://www.legoeducation.us/eng/product ... b_hub/1655) will be recognised by the Pi in some of its distros (e.g: Raspbian) when using Scratch 2.0 ?


Thanks in advance,

lcww1
Posts: 31
Joined: Sat Jun 01, 2013 6:40 pm

Re: Lego Wedo & Scratch

Sun Jan 12, 2014 11:28 pm

Hello alf_gon,

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:

Firstly, you specifically mention using Scratch 2.0. 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. 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. 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: http://wiki.scratch.mit.edu/wiki/LEGO_E ... botics_Kit.

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. 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. 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.

It's also possible to use Python on a Raspberry Pi to interact with the Lego WeDo kit. For this, you will need to install some Python libraries, but the process has been nicely documented here: http://zdome.net/wiki/index.php/Install ... on_Support, and the actual Python WeDo library is on Github: https://github.com/itdaniher/WeDoMore. There is some simple example code for using the WeDo kit with both Scratch and Python here: http://www.ieee-oregon.org/live/attachm ... istmas.pdf.

I hope that helps?

Best wishes,

lcww1

User avatar
MsG
Posts: 3
Joined: Sun Apr 06, 2014 9:26 pm
Location: Texas

Re: Lego Wedo & Scratch

Sun Apr 06, 2014 9:41 pm

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).
Yay!

However, not so much luck with Scratch in another Linux version on other computers that I tried.
Boo.

Do 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?

Background:
As 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. The Scratch documentation (what I can find) says that Scratch will show these special function blocks only when the WeDo USB hub is recognized. (One can show the blocks manually, through a menu option, but that doesn't necessarily mean they'll work).
I installed the Ubermix (Ubuntu) distro on 2 old-ish Dell Latitude D610's, and the WeDo USB connection does NOT seem to be working/recognized on either laptop. The special blocks do not appear in Scratch (1.4), nor does any sensor or motor work, even if I make the blocks appear by using the menu, then put them in a program. And yes, I tried all of the USB ports.
I am NOT very proficient with Linux, but I can search for & edit config files, etc, if I have instructions. I also have a few Linux-loving friends who I can call upon if needed, but I'd like to have first done whatever research I can.

Any clues would be welcome!
~ Ms. G
STEM / CTE Teacher
Middle School
Texas

Pete66
Posts: 1
Joined: Sun Jun 01, 2014 5:30 pm

Re: Lego Wedo & Scratch

Sun Jun 01, 2014 5:37 pm

Hi,
There is an extension to Scratch 1.4 which enables two motors to be controlled. I have tried it out and it works perfectly on a Windows PC but I don't know if it would work on a Raspberry Pi. Here is the link and instructions:
http://scratch.mit.edu/discuss/topic/25 ... ost-232137

Return to “General discussion”