Video courtesy of www.inspiredmindstutors.com/
This video is a good starting point to see how motors can be controlled.
You will see how block code is put together by dragging over the commands from the left-hand side of the screen. The code will control both motor 1 and motor 2 making them go either forward or backwards.
(The video refers to the 'robot', in our case this is the buggy)
Obviously to see the motors move they will have to be connected to the Crumble microcontroller as shown in an earlier video:
A more complex example of block coding
This program will control the buggy.
You should be able to see that the two motors move forward, then stop and then reverse. Then motor 1 goes forward and motor 2 goes in reverse. What direction do you think the buggy will move in?
This program will be explained to you in detail, so do not worry if it looks a bit complicated at this stage.