The drive block helps you move around. This will drive the motor for a set number of rotations - click it for more options like on/off, on for seconds or on for degrees. You can control the speed and direction of each motor by changing these values. The loop block (look in the orange section) is very useful. Here we run the motors for 1 second and then check if the colour white is found by the colour sensor ([6] is the white colour, you can change the options). Note that the colour sensor is plugged into port 3. Check the different options you have available! |