Saturday 30 May 2020

junkbots: School Outreach 1

3 MINUTE READ

Junkbots session 1: Move the robot

from Junkbots: Move the robot
by Scott Turner

What is the Junkbots project

The Junkbots project has been running for a number of years as an initiative to bring sustainability, computing and engineering together by building bots out of junk; details of the project can be found at. https://junkbots.blogspot.com/ . Junkbots is an extension of the Research into the teaching problem-solving going on at the University of Northampton please feel to visit https://computingnorthampton.blogspot.com/2019/01/problem-solving-research-outputs-and.html for more details. These activities were tried to in a primary school.

What are we going to do?

Play with a Scratch robot on the screen! Guess what the routine does. Run the routine see if it does as we guessed. Consider what it did and if it is different to what we thought it was going to do. Change the routine a little bit to do another task.



Activity 1: What blocks are we using?

This means when the green flag is pressed do whatever follows.


This means place our robot (go to block) to point on the screen roughly in the centre of the screen.


Do you want a challenge: What do think would happen if instead 0 and 0 in the white spaces in the go to block, we put in 50 and 50? Have a guess.



This means stop the scratch program for 1 second and the carry on.



We can use this block to move the robot 50 steps on the screen in the direction it is facing.

Do you want a challenge: How do you think we could get the robot to move 100 steps? Have a guess.



We can use this block to turn the robot to the right 45 degrees.

Do you want a challenge: How do you think we could get the robot to move 90 degrees to the right? Have a guess.

We are also going to look at two more ‘things’ today: one new block and a new type of blocks to make our programming easier – the control blocks.



We can use this block to change the direction the robot faces.



When we click on the control button at the side we see several more blocks we can use.

One of these we have played with before the wait block.

The other two we are going to use today in later activities.

When we want to repeat a combination of blocks so many times, we can use the middle block and then change the 10 to the number of times we want to repeat.

If we want it repeat something forever (or until we stop the program with the red button) we can use the last block.


Activity 2: Have a go at guessing what it is going to do?

Using what you have learnt in Activity 1.

Let us look at this block of programming.


What do you think it is going to do? If you have someone helping you tell them what you think it does.

If you don’t get it exactly right, it is more important to have a guess.

Activity 3: Try it for yourself

Now go to the weblink: https://scratch.mit.edu/projects/3 84342734 You should see something that looks like figure below 



Click on the box at the top of the screen that says see inside. You should a screen similar to figure above Now press the green flag it should now perform a little dance.

Questions

Does the robot work the way you thought it would from Activity 2? If it did move the way you thought– great! If it didn’t move the way thought still good. What was different?

Activity 4: Change it a bit

Save your work from Activity 3 by going to the top of the screen: find file, click on it and the click on Save to your computer. Then press the save button. Now change the code so that the robot moves in a square. Hint: We need to move in a straight line and then turn 90 degrees several times.

Did the robot work the way you thought it would? If it did move the way you thought– great! Can you make it move in a rectangle where two sides are longer than the other two? If it didn’t move the way thought still good. What was different?

Activity 5: Try it for yourself

Save your work from Activity 4. Now produce a dance routine for the robot. It must include moving forward and at least three turns.

You could also try adding in 

 Making it move backwards (negative number in the move block) 

 Turning left 





Activity 6: Have a go at guessing what it is going to do?

Follow this link to a new Scratch project https://bit.ly/ScratchJunkbot2

Challenge 1: Can you describe using the chat what you see it do?

Challenge 2: Can you rewrite the routine so when you press the green flag it hits the rock? What happens when it hits the rock share on the chat? Can you do this using less than seven blocks?

Challenge 3: Rewrite the routine so when we press the green flag it goes around the rock in a square. Hints: You did a similar task last week so please feel free use what you have done before. You might have to change the starting position of the robot. It is worth putting the wait blocks in to help you see it in action.

Activity 7: Modify and Make

Now go to the weblink: https://bit.ly/Junkbot3 Press the green flag and see what it does. Challenge 4: Using the chat describing what it did, please include when do you think it will stop? Challenge 5: How can we change this so that it goes around the rock twice?

Activity 8: Modify and make play

Challenge 6: Try and change what you did in Activity 3 so that the robot goes around the block in a different shape Challenge 7: The really tough challenge. How to we get the robot to move in a figure 8? It must not hit the rock. Have a go yourself and if you want to see one possible answer (there are more than one way to do this) go to https://scratch.mit.edu/projects/398164007/

Questions

Does the robot work the way you thought it would? If it did move the way you thought– great! Can you make it move in a rectangle where two sides are longer than the other two? If it didn’t move the way thought still good. What was different?If you would like to know more about the Junkbots project contact scott.turner@northampton.ac.uk



 If you would like to know more about the Junkbots project contact scott.turner@northampton.ac.uk






All views and opinions are the author's and do not necessarily reflected those of any organisation they are associated with. Twitter: @scottturneruon

No comments:

Post a Comment