This is a python library for the Lego WeDo, a tethered-over-USB sensing and robotics toolkit produced by Lego for the educational market.
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.)
The digital communication protocol used by the Power Functions system is documented on Philo’s Awesome Page.
- Python 2.7+
- pyusb (setup.py should take care of installing the dependency)
pip install wedo
From the source tree:
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
- massive refactoring and packaging for the first version
- basic documentation
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size wedo-1.0.0.tar.gz (4.9 kB)||File type Source||Python version None||Upload date||Hashes View|