CHALLENGE 2: Your robot is a baseball player.
The robot has to run from one base to the next.
Oh no! She’s going to be tagged out.
So he has to turn around and run back to the previous base!
What should you do?
- Program the code
- Test it out
Explain our code.
This was the first time Lena and I have actually started to program the robot because our robot didn’t work. Bronte told us a brick which made the robot go forward and that was all we needed to know. Now that we know how to make the robot go forward we had to find out how to make it turn and come back to us. We figured out this part on the brick called rotations. It made the robot turn.When we combined those two things together we made the robot go forward, turn around and finally come back to us. The moving bricks are located in the green section. Each section has its each colour, that way it is more easier to recognise. You select the motor which makes your robot go forward, then match it up with the little arrow. After selecting a couple of them and placing them in a row you can make the robot go forward. Then on the last brick change the little brick in the brick called rotations. You then change the number to a negative number in order for it to turn. We chose -45. Then we added more forward bricks until finally we had a robot which went forward, turned around and came back to the starting position.
What was challenging?
I think that the challenging part of this program was to find out how to make the robot turn. After a lot of experimenting we found out that you had to change the little box called rotations to the number of turns you wanted your robot to turn. I was also pretty challenging to find out how to make the robot go forward as well because we had no idea what each brick did and what its purpose is.
What do you notice about how the robot moves? Which parts? How?
I noticed that if your motor doesn’t work then your wheels wont work because the wheels are connected to the motor. The motor is basically where the power for the wheels come from. When you download a program a little message is sent to the motors from the brick telling it what its directions are so it can then pass on that information to the wheels.
Could it be done a different way?
I think there are a lot more different ways you can do this program, and any other program. I’m sure that if you ask every group nearly all of them will have a different program. The way Lena and I did it is simply the way that we chose to do it. Everyone has different brains and they all work differently.