1. This is code for the Lego WeDo robot Dancing Birds:


    You can see the control code here:


    Simply press the space bar to make the birds dance and sing.

    # vimeo.com/130042299 Uploaded 199 Plays 0 Comments
  2. # vimeo.com/130042300 Uploaded 81 Plays 0 Comments
  3. This is a robot vehicle I made with the Lego WeDo kit. You can see the control code and photos here:


    If you click the green flag, it will drive forward until it approaches an obstacle. It will then reverse and turn to the right. After 5 seconds, so long as the obstacle is out of range of the distance sensor, it will start driving forward again.

    It can also be controlled manually using the up and down arrows.

    The key to this model is the back wheel (made from a cog as the WeDo set only comes with two proper wheels). The cog can pivot between the yellow block at the back-right, and the yellow bar in front of it.

    When the vehicle moves forward, the cog wheel moves to the back position, where it is aligned with the front wheels, and so the vehicle moves in a straight line. When the vehicle reverses, the cog wheel swings forwards and to the left, so steering the vehicle to the right.

    Because the cog wheel doesn’t work very well on a smooth surface, this vehicle works best on a rougher surface, such as a carpet or a cloth.

    You can see more photos of this model stored inside the project as backdrops.

    # vimeo.com/130042301 Uploaded 360 Plays 0 Comments
  4. This program is for use with the Lego WeDo model Flying Bird:


    You can see the control code here:


    Press on the tail to flap the wings. The bird will make a sound once per flap.

    Lift the tail right up, so the bird pecks at her feet. She will make a sound when she does this too.

    If you look very closely, you’ll see that I have made two small changes from the official model. I have added grey rings to the yellow bits that stick out the front, so that the wings don’t go so far down that the cams at the back get too high. I’ve also raised the distance sensor up a little, so the bird doesn’t have to peck so far down.

    I also found some strange behaviour with earlier versions of this program, and I’m wondering if anyone else has encountered problems when using both the tilt and distance sensor in one model with Scratch. If so, please let me know.

    # vimeo.com/130365118 Uploaded 250 Plays 0 Comments
  5. # vimeo.com/129717020 Uploaded 275 Plays 0 Comments

Lego WeDo Robots

Mike Dowman

These are robots built with the Lego WeDo robot kit, and controlled through the Scratch programming language. To see more details, and the Scratch code for each robot, look here: https://scratch.mit.edu/studios/1269590/

Browse This Channel

Shout Box

Heads up: the shoutbox will be retiring soon. It’s tired of working, and can’t wait to relax. You can still send a message to the channel owner, though!

Channels are a simple, beautiful way to showcase and watch videos. Browse more Channels.