Skip to main content

About the WeDo

The Lego WeDo is a tethered-over-USB sensing and robotics toolkit produced by Lego for the educational market.

It’s gotten lots of press, including a favorable review on the One Laptop Per Child blog, on deployments and training in Peru.

It’s supported by Scratch(on Windows and OSX) and by Lego’s proprietary software(on Windows.)

It prominently features the LB1836 motor driver and the LM358 op-amp, as well as an epoxy blob with USB support.

The digital communication protocol used by the Power Functions system is documented on Philo’s Awesome Page.

Requirements

  • Python 2.7+

  • pyusb (setup.py should take care of installing the dependency)

Installation

From pypi:

pip install wedo

From the source tree:

./setup.py install

How to Use it

>>> from wedo import WeDo
>>> wd = WeDo()
# Activating the first motor full forward:
>>> wd.motor_a = 100
# Activating the second motor half speed/force backward:
>>> wd.motor_b = -50
# Current value of the tilt sensor:
>>> wd.tilt
# Current distance value in meters of the distance sensor:
>>> wd.distance

Contributors

Ian Daniher

Tony Forster

Walter Bender

Guillaume Binet

Joshua Coxwell

Alan Aguiar

CHANGELOG

2016-06-20 v1.1.0

2013-04-30 v1.0.0

  • massive refactoring and packaging for the first version

  • basic documentation

Release files for wedo 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wedo 1.1.0
File Size Uploaded
wedo-1.1.0.tar.gz 7.3 kB Details

Release files / wedo-1.1.0.tar.gz

Download URL wedo-1.1.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0c2a54745c47164a35b203b68f98bf157198704c3d3cdfb41129233d833e2c67
BLAKE2b-256 checksum
How to use checksums
01e897c2f64c458fee8c58e097e4631668a2cadebed7a17b9b7838a7f8be3821
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page