This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-08-02 22:25:11

Johnny6740
New Scratcher
Registered: 2011-08-02
Posts: 2

Use SCRATCH WeDo on Ubuntu 11.04

Hi all,

Does anyone try SCRATCH WeDo function on Ubuntu 11.04?

I use 'lsusb' command to check motor and sensors devices, and it found.

But it can not work on SCRATCH.

It works fine on Windows XP.

Please advise!

Thanks

Johnny

Offline

 

#2 2011-08-02 22:51:38

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Use SCRATCH WeDo on Ubuntu 11.04

I haven't tested it. How do you use WeDo with Scratch on Ubuntu?


Posts: 20000 - Show all posts

Offline

 

#3 2011-08-02 23:50:05

Johnny6740
New Scratcher
Registered: 2011-08-02
Posts: 2

Re: Use SCRATCH WeDo on Ubuntu 11.04

I plugged motor and distance sensor to hub, then I plugged hub to PC USB port.

Inside the SCRATCH program, I can not control the motor.

And I can not read any value from distance sensor either.

The same process worked fine on Windows SCRATCH.

Thanks

Offline

 

#4 2011-08-10 12:41:22

dmoko
Scratcher
Registered: 2009-05-01
Posts: 5

Re: Use SCRATCH WeDo on Ubuntu 11.04

Unplug the WeDo, open a terminal, plug it back in then type the following and paste it back here: dmesg | tail -n 10

Offline

 

#5 2011-08-10 18:48:58

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: Use SCRATCH WeDo on Ubuntu 11.04

The latest installer, Scratch_1.4.0.1-0ubuntu5_i386.deb, doesn't have WeDoPlugin.
So you need get it from OLPC XO version.

http://web.media.mit.edu/~jmaloney/scra … atch-16.xo

You can extract Scratch-16.xo as a ZIP file.
Then try the following commands.

cd Scratch.activity
sudo cp WeDoPlugin-disabled /usr/lib/scratch/Plugins/WeDoPlugin
sudo ./installWeDoRules.sh

Offline

 

#6 2011-11-03 19:14:19

XenoKStudios
Scratcher
Registered: 2011-10-02
Posts: 87

Re: Use SCRATCH WeDo on Ubuntu 11.04

seriously, upgrade to 11.10


http://www.weebly.com/uploads/9/6/6/5/9665487/4685517.png?386

Offline

 

#7 2011-11-03 19:17:39

XenoKStudios
Scratcher
Registered: 2011-10-02
Posts: 87

Re: Use SCRATCH WeDo on Ubuntu 11.04

its awesome


http://www.weebly.com/uploads/9/6/6/5/9665487/4685517.png?386

Offline

 

#8 2011-11-16 11:55:09

eventexception
Scratcher
Registered: 2011-04-08
Posts: 500+

Re: Use SCRATCH WeDo on Ubuntu 11.04

Try wine - a win emulator, works fine with older software for windows like Scratch

http://appdb.winehq.org/objectManager.php?sClass=application&iId=5148

Offline

 

#9 2013-02-23 15:51:34

thecloth
New Scratcher
Registered: 2013-02-23
Posts: 3

Re: Use SCRATCH WeDo on Ubuntu 11.04

I've got a Wedo set  and have install Scratch 1.4 on OpenSuse 12.2.  I can't get the motors to work.  They work on a Raspberry Pi but Scratch on the Pi was so unstable I decided to move to linux.  My linux box sees the USB connection to motors and is duly reported by dmsg and lsusb commands.  Scratch  shows block but no motion.  I installed the XO WedoPlugin as  shown above but no go.  I also tried the new Beta 2.0 web version of Scratch and no motors also.  What should I try next?

Offline

 

#10 2013-02-24 09:28:30

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: Use SCRATCH WeDo on Ubuntu 11.04

thecloth,
Could you tell me the result of "whereis scratch" and "ls /usr/lib/scratch/Plugins" command?

Offline

 

#11 2013-02-24 11:51:15

thecloth
New Scratcher
Registered: 2013-02-23
Posts: 3

Re: Use SCRATCH WeDo on Ubuntu 11.04

whereis scratch
scratch: /usr/bin/scratch /usr/lib/scratch /usr/bin/X11/scratch /usr/share/scratch /usr/share/man/man1/scratch.1.gz


ls /usr/lib/scratch/Plugins
CameraPlugin  Mpeg3Plugin    UnicodePlugin   vm-sound-ALSA  vm-sound-OSS    WeDoPlugin  MIDIPlugin    ScratchPlugin  vm-display-X11  vm-sound-null  vm-sound-pulse

Offline

 

#12 2013-02-25 05:31:25

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: Use SCRATCH WeDo on Ubuntu 11.04

Thanks. It seems OK.
I'd like to make sure that your linux box is based on x86 architecture. Is it correct?
And could you get a tilt or a distance sensor value?
If your sensor is working, the cause might be low electric current of the USB port.
In this case, you should use self powered hub to provide much current.

Offline

 

#13 2013-02-25 17:45:13

thecloth
New Scratcher
Registered: 2013-02-23
Posts: 3

Re: Use SCRATCH WeDo on Ubuntu 11.04

Yes,  I have a x86  architecture box.  The sensors are not working but computer sees the Lego USB  hub/device.  I moved the RPi just  to make sure Wedo was working, and it still is.

Here's a little output from dmesg:


USB Hub V1.00] on usb-0000:00:1d.2-1/input0
[181615.528070] hub 4-0:1.0: port 1 disabled by hub (EMI?), re-enabling...
[181615.528079] usb 4-1: USB disconnect, device number 4
[181615.768044] usb 4-1: new low-speed USB device number 5 using uhci_hcd
[181615.936120] usb 4-1: New USB device found, idVendor=0694, idProduct=0003
[181615.936127] usb 4-1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[181615.936131] usb 4-1: Product: LEGO USB Hub V1.00
[181615.956491] generic-usb 0003:0694:0003.0043: hiddev0,hidraw2: USB HID v1.10 Device [LEGO USB Hub V1.00] on usb-0000:00:1d.2-1/input0
[182585.456068] usb 4-1: USB disconnect, device number 5
[182602.700042] usb 4-2: new low-speed USB device number 6 using uhci_hcd
[182602.868994] usb 4-2: New USB device found, idVendor=0694, idProduct=0003
[182602.869001] usb 4-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[182602.869005] usb 4-2: Product: LEGO USB Hub V1.00
[182602.887207] generic-usb 0003:0694:0003.0044: hiddev0,hidraw2: USB HID v1.10 Device [LEGO USB Hub V1.00] on usb-0000:00:1d.2-2/input0

Offline

 

#14 2013-02-26 05:10:54

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: Use SCRATCH WeDo on Ubuntu 11.04

Umm, it's strange. I have no idea.
You might check and modify installWeDoRules.sh by the location of rules.d for your environment.

# XO-1
if [ -d /etc/udev/rules.d ] ; then
    cp 45-lego-wedo.rules /etc/udev/rules.d
    chmod 666 /etc/udev/rules.d/45-lego-wedo.rules
fi

# XO-1.5
if [ -d /lib/udev/rules.d ] ; then
    cp 45-lego-wedo.rules /lib/udev/rules.d
    chmod 666 /lib/udev/rules.d/45-lego-wedo.rules
fi

Last edited by abee (2013-02-26 06:29:17)

Offline

 

Board footer