Learning Objective: to be able to design programs that use sequencing.

Slides:



Advertisements
Similar presentations
EducateNXT Follow the Leader Using Bluetooth communication, one robot can be made to follow the actions of a second robot. Features in this presentation:
Advertisements

COMPUTER PROGRAMMING I Understand Problem Solving Tools to Design Programming Solutions.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
Research Core Laboratories. Requirements: Adobe Acrobat (Full Version) In order to digitally sign form you must be using the full version of Adobe Acrobat.
Do it now activity Last lesson we learnt about instructions are run in a computer. Write a set of instructions that a computer could follow to make a cup.
Positive and Negative Numbers
Problem Solving Through Coding Names. PROBLEM SOLVING PROCESS UNDERSTAND THE PROBLEM: READ OR LISTEN TO THE PROBLEM. MAKE A PLAN TO SOVLE THE PROBLEM-
Addition and Subtraction of Integers
End Show Writing a computer program involves performing the following tasks. 1. Understanding the problem 2. Developing an Algorithm for the problem 3.
L ILY P AD T RAINING C ENTENNIAL E LEMENTARY 2012 Material by Linz Craig Revision by Sarah Bloms Additional images by Modkit & Adam Meyer.
Find the Mindstorms Icon on the computer.. To start a new program click go.
Computer Programming I Summer 2011
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
Unit 9.1_Lesson 4_CD Resource 4a_Sensors and flowcharts Sensors and Flowcharts.
Lesson 1 Sequencing.
Algorithms and Flowcharts
EV3 Programming By Dianna de Matos.
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Programming – Algorithms (Flowcharts)
Creating a Flowchart Computer Integrated Manufacturing
Understand Problem Solving Tools to Design Programming Solutions
Selection Learning Objective: to be able to design algorithms that use selection.
Do it now activity Last lesson we used Flowol to create a solution to a problem a computer could solve. Identify what each symbol does:
Starter Activity Instructions: Complete the starter sheet Planner
Lesson 1 An Introduction
Understand Problem Solving Tools to Design Programming Solutions
Teaching design techniques to design efficient solutions to problems
@TeacherToolkit, license CC BY-NC-ND 3.0
Computational Thinking
BBC micro:bit Robot Buggy
Graph Paper Programming
BBC Microbit.
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Designing an Algorithm
Selection Learning Objective: to be able to design algorithms that use selection.
Global Challenge Fitness Friend Lesson 2.
Global Challenge Night Sensor Lesson 2.
Computational Thinking for KS3
Global Challenge Night Sensor Lesson 2.
Game Controller Lesson Two.
ME 142 Engineering Computation I
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Fitness Friend Lesson 2.
Global Challenge Night Sensor Lesson 2.
Flowcharting & Algorithms
Lesson 4 Variables.
Global Challenge Night Sensor Lesson 2.
Global Challenge Fitness Friend Lesson 2.
Which way does the robot have to turn to get to the charger?
Global Challenge Fitness Friend Lesson 2.
BBC Microbit.
Global Challenge Night Sensor Lesson 2.
Global Challenge Fitness Friend Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Fitness Friend Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Fitness Friend Lesson 2.
Iteration Learning Objective: to be able to design algorithms that use iteration.
Global Challenge Night Sensor Lesson 2.
Global Challenge Night Sensor Lesson 2.
Global Challenge Fitness Friend Lesson 2.
Lesson 1 – using the LED lights
Iteration Learning Objective: to be able to design algorithms that use iteration.
WRITING AN ALGORITHM, PSEUDOCODE, AND FLOWCHART LESSON 2.
Learning Objective: to be able to design programs that use iteration.
Presentation transcript:

Learning Objective: to be able to design programs that use sequencing.

This is Bobbot, a robot that is controlled by the BBC micro:bit. You are going to be using it to help you learn key Computer Science concepts.

LeftMotor.forward(on) RightMotor.forward(on) Algorithms An algorithm is a set of steps that can be followed to solve a specific problem. Algorithms can be represented in a number of ways, these include: Flowcharts Start Stop Left Motor Forward On Right Motor Forward On Pseudocode LeftMotor.forward(on) RightMotor.forward(on)

Flowcharts Start / Stop Input / Output Decision Process Flowcharts allow us to design algorithms using symbols. These are the main symbols used in flowcharts: Start / Stop Input / Output Decision Process

Predict what this algorithm will do: Right Motor Forward Off Activity 1 The simplest type of algorithm takes the form of a sequence. Start Left Motor Forward On A sequence is a set of instructions that are carried out once in the order they appear. Right Motor Forward On This is an example of a sequence: Delay 2 Predict what this algorithm will do: Left Motor Forward Off Prediction: Right Motor Forward Off Stop

Fill in the blanks to complete the algorithm: Activity 2 This is the design for an algorithm that makes the Bobbot go forward for 5 seconds, then backward for 5 seconds before stopping. Fill in the blanks to complete the algorithm: Start Left Motor Backward On Left Motor Forward On Right Motor Forward On Delay 2 Delay 2 Stop

Sending a 1 to a pin turns it on and sending a 0 turns it off. Pins The BBC micro:bit sends signals through its pins to control Bobbot’s motors. Pin Controls 16 Right Motor Forward 12 Left Motor Forward 8 Right Motor Backward Left Motor Backward Sending a 1 to a pin turns it on and sending a 0 turns it off.

Right Motor Forward Off Activity 3 An algorithm is turned into a computer program by writing it in program code. Match the blocks of program code to the algorithm: Start Left Motor Forward On Right Motor Forward On Delay 2 Left Motor Forward Off Right Motor Forward Off Stop

You are going to use the Microsoft Block Editor to program Bobbot. Click this button to download your program. Once downloaded you will need to copy it onto the micro:bit

Place a screenshot of your program here: Activity 4 Use the Block Editor to create the program you designed in activity 3 and test it on Bobbot. Place a screenshot of your program here:

Activity 5 Here is part of the program code for the algorithm from activity 2. You need to complete it by adding the missing blocks. Add blocks here to move forward for 2 seconds and stop. Place a screenshot of your program here: Add blocks here to stop moving backwards.

Right Motor Forward Off Turning You can turn Bobbot by making only one of the motors go forward. For example if you want to turn left then you can make only the right motor move forward. Start Stop Right Motor Forward On Delay 1 Right Motor Forward Off

Right Motor Forward Off Activity 6 Complete this algorithm for Bobbot that is designed to make it move forward, turn left and move forward again before stopping. Start Left Motor Forward On Right Motor Forward On Delay 2 Right Motor Forward Off Stop Delay 1

Place a screenshot of your program here: Activity 7 Turn the algorithm you designed in activity 6 into a program and test it on Bobbot. Place a screenshot of your program here:

Place a screenshot of your program here: Extension Adapt your program from activity 7 to make Bobbot move to form a square pattern. Place a screenshot of your program here: