This is our third robotics challenge and as you might have guessed from the title we had to make our robot follow a line that was in a circle. I think that this is the most challenging challenge yet. Now let me show you my code.
Its a little bit similar to the switch block challenge because it has a switch block and a loop block in it. My first block after the starting block is the sensing block, it tells the robot which colour it has to sense. My next block is the in the yes section is the display block. If it does sense the colour it will wink, if it doesn’t it will do its evil eyes. Back to the yes section. After the display block I have put in a move block. I’ve also made it turn because its going in a circle, not in a straight line. Finally I have put the speed on 30 because its not to slow or not to fast. In the no section after the display block I’ve put in a large motor block. Its on for rotations. Then I have made it turn -35 degrees, finally I’ve put the speed on 30. Then the loop bock makes it go on and on without stopping.
Here is the video of my program working.