LEGO WeDo

I/O Ports

The WeDo USB hub has 2 I/O ports. These can be connected to WeDo sensors or Power Functions Motors.

Note

The hub can only provide 5V to motors, so they will not be as powerful as if you were using a proper Power Functions battery. You also need to be careful not to overload your USB port. Most ports are limited to 500mA per the USB specification. However, the EV3 will supply up to 1A.

General Info

Module wedo
Driver name wedo-port
Connection types WeDo/Analog, dc-motor, led
Connection prefix wedo [1]
Number of modes 1

Modes

Name Description
auto The attached device is automatically detected.

Notes

[1]

The full address is in the format:

usb<usb-path>:wedo<n>

The USB path might be something like 1-1.3:1.0. Read more about it here. Run lsusb -t to help figure out the correct path for your WeDo hub.

For example, this:

/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/4p, 480M
    |__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 2: Dev 6, If 0, Class=Human Interface Device, Driver=wedo, 1.5M

…translates to usb5-4.2:1.0:wedo1. You can see how Bus 05, Port 4 and Port 2 result in 5-4.2. The last bit (configuration and interface) will always be :1.0.