I now have the WeDo crocodile happily chomping on my finger, powered by my Pi, thanks to some help from Alex Bradbury. In order to make this happen you need to add a udev rule which makes the WeDo USB hub readable and writable by the pi user.
Go to directory
/lib/udev/rules.d
make a file called "40-scratch.rules" that contains the following:
ATTRS{idVendor}=="0694", ATTRS{idProduct}=="0003", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
Then start up Scratch, plug in your WeDo USB hub, and the motor control blocks should show up in the Motion area.
Hooray, chomping crocodiles for everyone!
WeDo + Scratch working!
3 posts
- Posts: 13
- Joined: Fri Jan 06, 2012 3:14 pm
Hmmm, I think my announcement was a bit premature. This udev rule works with the Scratch on the new wheezy distribution, but not on squeeze. At least it doesn't work on the version of squeeze that I've got!
- Posts: 13
- Joined: Fri Jan 06, 2012 3:14 pm
We're moving to wheezy anyway. Very possibly the version of squeak-plugins-scratch used in the wheezy distribution didn't have WeDo, or maybe the pi user isn't a member of the plugdev group (if that's the problem, running scratch as root should still allow WeDo to work).
- Moderator
- Posts: 652
- Joined: Fri Sep 16, 2011 7:16 pm