itdaniher / WeDoMore

A Python Library & Reverse Engineering for the WeDo Kit.
GNU General Public License v2.0
36 stars 18 forks source link

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

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_

.. _Lego WeDo: http://education.lego.com/en-us/lego-education-product-database/wedo/9580-lego-education-wedo-construction-set/ .. _LB1836: http://semicon.sanyo.com/en/ds_e/EN3947F.pdf .. LM358: http://www.national.com/ds/LM/LM158.pdf .. deployments and training in Peru: http://blog.laptop.org/2011/02/12/lego-wedo-oloc-peru/ .. _Philo's Awesome Page: http://www.philohome.com/pf/LEGO_Power_Functions_RC.pdf .. Guillaume Binet: https://github.com/gbin .. Ian Daniher: https://github.com/itdaniher .. Walter Bender: https://github.com/walterbender .. Joshua Coxwell: https://github.com/JCoxwell .. _Alan Aguiar: https://github.com/alanjas