Recap the basics Lesson 1.

Slides:



Advertisements
Similar presentations
Michael Parkes Dudley LA What can Scratch do? Make simple games, animations, presentations and stories.
Advertisements

Scratch Programming Session 9 of 10 Review elements to use in stories, games, etc.
Racing Car Game Using the keys to control a sprite.
Scratch Understanding some programming techniques using Scratch Resetting, Parallelism and Events.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech Oct 2010.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
INTRODUCTION TO THE SCRATCH PROGRAMMING ENVIRONMENT.
Code Club Session 2 Dance Party. What will we learn ?  How to change the background  How to create animations  How to make objects talk to each other.
Scratch – Simple Programming
Scratch Programming Lesson 2 First glance to programming logic.
Exploring Computer Science 2/2/15 2/2No School 2/3Scratch creating a program- Name 2/4 Scratch creating a program Dialogue 2/5 Scratch creating a dialogue.
1 Understand how to use Scratch to: – Animate a sprite – Add sound to your script – Use the forever command to create a loop Lesson 2: Learning Objectives.
Digital Art in Scratch part 1 Barb Ericson Georgia Tech May 2011.
Fish Chomp. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
WHAT IN THE WORLD IS SCRATCH??? AN INTRODUCTION TO COMPUTER PROGRAMMING By MD Showman.
Making a Sprite Dance Barb Ericson Georgia Tech June 2011.
Program Flow LabVIEW Robotics Fundamentals. Unintuition You know what this program does… So what does this one do? Inserted code.
Marble Racer. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Using MIT Scratch for Programming and Control Exercise 1 Creating movement Year 11 DTG 2012.
Cloning in Scratch Computer App Session 6. Cloning in Scratch Learning Objectives: I will clone sprites in Scratch to create copies of an existing sprite.
Programming a Shooter Game Design.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
Moving Sprites in Scratch Exploring Computer Science – Lesson 4-4.
1 Understand what Scratch is and what it can be used for Lesson 1: Learning Objectives.
Hacking Minecraft on the Raspberry Pi using Python Lesson 2 1.
Computer Programming Modeling a Passive Solar Home.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Introduction to Programming with Scratch Exploring Computer Science – Lesson 4-1.
Scratch Helicopter Game
Broadcasting (Adding a new level)
Dancing on Green Light.
Exploring Mathematical Relationships Module 5: Investigation 3
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Scratch – Simple Programming
Programming Scratch to Control a K’NEX Fairground Ride
Unit 2 Getting Started With
Scratch – Simple Programming
Gaming with conditionals
Loopy Motion Control.
Introduction to.
Variables Lesson 3.
Explain what touch develop is to your students:
BBC Microbit.
Scratch – Simple Programming
An Introduction to VEX IQ Programming with Modkit
Motion and Looks.
Line Following Behavior
Learning about Conditional Selection
Learning about Conditional Selection
Lesson Objectives To understand how to make sprites interact
Using the sensor Lesson 5.
Moving Sprites in Scratch
Put it all together Lesson 5.
Gaming with conditionals
Explain what touch develop is to your students:
Code to Enhance Learning
Game Over Module 4 Lesson 2.
An Introduction to VEX IQ Programming with Modkit
Learning about Conditional Selection before using it inside a Game
I can program behaviours using inputs and outputs
Put it all together Lesson 6.
Variables Lesson 3.
Recap the basics Lesson 1.
Using the sensor Lesson 5.
I can control a motor and use a sensor
I can control multiple outputs with a sensor
I can program behaviours using inputs and outputs
© A+ Computer Science -
Scratch 7B IT1.
Learning Objective: to be able to design programs that use iteration.
Presentation transcript:

Recap the basics Lesson 1

Starter What is meant by the term “humanoid robot”? Where are the blocks stored to control Edbot in Scratch? How can you run your programs with Edbot? What is a servo?

What is this unit about? In this unit you will continue writing programs to control Edbot. We will recap what you learnt in the first unit and then extend this into looking at more elaborate programming techniques.

Objective of the lesson Recap the basics of programming with Edbot All of you will: Explain what is meant by the term “humanoid robot” Control Edbot with simple commands Most of you will: Make Edbot’s servo lights change colour Add script for separate sprites to allow Edbot to be controlled by clicking on the sprites Some of you will: Explain the difference between a forever and a repeat loop

How much do you remember? Open L1_Recap.sb2. The program has been started but remember to change the name to the name your class is using: Write a program which will make Edbot walk forwards and then wave its arm 3 times. It should keep doing this until the program is stopped. When you are ready to test your program raise your hand and your teacher will connect the Edbot software to your computer so you can run the program with Edbot.

The answer The most efficient program is shown here. What does the forever loop do? What does the repeat loop do?

Servos Change your program so that after Edbot stands in the initial position it should make the lights on its left arm light up for 1 second BEFORE it starts the loops.

The answer Here we have added the code to switch the correct servo lights on and after 1 second switch them all off again before we start on the forever loop.

When the sprite is clicked… Turn right Turn left Kick ball Walk forward Sidestep right Walk backwards Sidestep left Do push-ups Reset (This will stop the current command) Sprites What is a sprite? Open the program called L1_FootballSprites.sb2. You need to complete the program. On the stage also add some script so that when the green flag is clicked it will set Edbot into the initial position.

Self-assessment Write your name and class at the top of the sheet. Read the highlighted points and tick those that you feel you have achieved.