2 labeled Lego WeDo motor and timing blocks |
If you run the first program, both motors will rotate this way (clockwise) for 3 seconds, then both will rotate that way (anticlockwise) for anotehr 3 seconds
If you want them to run separately, you need to label both the motor blocks as well as the timing block with different labels as shown in program 2 above. To label the first motor block with 1 button, shift+click on the motor block once, likewise for the timing block. Then shift-click twice on the second motor block to label it with 2 buttons, likewise for the second timing block.
Labeled photo: 2 labeled motors connected to Wedo USB Hub |
Then connect Motor 1 to USB hub left side (see photo below) and Motor 2 to the right side of the hub. Motor connected to the left side of the hub will be Motor 1 while motor connected to the right will be motor 2
With the motor blocks and timing blocks thus labelled, run the program now. You will notice that this time the first motor will rotate 3 seconds, then the second motor will rotate anticlockwise for another 3 seconds.
Look at the video below to see how it is done and to better understand.
If you want to control more than 2 motors, you will need at least 2 USB hub. But the labeling is the same, shift+click once on the programming block for 1 button, shift+click twice for 2 buttons, shift+click 3 times for 3 buttons
hi is this wedo software or you are using different software to do it
ReplyDeletebecause i couldn't see the option what you've mentioned
DeleteI'm not getting that option either- I'm shift clicking, but nothing happens.
DeleteThis comment has been removed by the author.
ReplyDelete