Lesson 1 Sequencing.

Slides:



Advertisements
Similar presentations
Component 4: Introduction to Information and Computer Science Unit 5: Overview of Programming Languages, Including Basic Programming Concepts Lecture 1.
Advertisements

PIC Programming with Logicator
Defining Control Structures
Program Flow Charting How to tackle the beginning stage a program design.
Program Flow Charting How to tackle the beginning stage a program design.
Algorithm Design CS105. Problem Solving Algorithm: set of unambiguous instructions to solve a problem – Breaking down a problem into a set of sub- problems.
Game city International Starting on the road to programming. This project is all about learning how to program using scratch and other languages. The aim.
Sequencing Miss Regan. Blood Hound  Does anyone know what the Bloodhound project is?  Video 1 Video 1  Video 2 Video 2  Link to website Link to website.
The Scratch Calculator You are all going to be real computer programmers!!!
Topics Introduction Hardware and Software How Computers Store Data
The New Computing Curriculum select, use and combine a variety of software (including internet services) on a range of digital devices to design and create.
How to Run a Java Program CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
By the end of this session you should be able to...
Overview of this morning What … is computing? Why … is computing an important skill to learn? What … will my child be learning in computing lessons?
Lesson 4 Using Variables in Python – Creating a Simple ChatBot Program.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
BBC Microbit Getting set up and making your first program.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
Algorithms and Pseudocode
Programming. In your own words, explain what an algorithm is, and give an example of how people use algorithms every day.
Participatory Simulation: The Virus Game on PDAs.
Getting Started With Python Brendan Routledge
BBC MICRO:BIT Lesson 6 Networking. Digital devices can be networked together to exchange data. You are going to create a very simple network using two.
BBC MICRO:BIT Lesson 2 Variables and Lists. Variables When programming it is often necessary to store a value for use later on in the program. A variable.
Algorithms and Flowcharts
Lesson 4 Accelerometer.
GCSE COMPUTER SCIENCE Practical Programming using Python
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Starter What is BBC micro:bit?
Lesson 1 - Sequencing.
Topics Introduction Hardware and Software How Computers Store Data
Lesson 1 An Introduction
Learning Objective: to be able to design programs that use sequencing.
Choice 1 Choice 2 Choice 3 Choice 4
Iteration and Selection
BBC Microbit.
BBC Microbit.
Raspberry Pi: External Inputs & Outputs
Programming for Visually Impaired Learners
Sequencing Learning Objective: to be able to design algorithms that use sequencing.
Learning to Code with the MicroBit
BBC Microbit.
micro:bit: External Inputs & Outputs
For -G7 programing language Teacher / Shamsa Hassan Alhassouni.
Game Controller Lesson Three.
Lesson 4 Accelerometer.
Topics Introduction Hardware and Software How Computers Store Data
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
Global Challenge Flashing Wheels Lesson 2.
Computational Thinking for KS3
Game Controller Lesson Two.
Global Challenge Flashing Wheels Lesson 2.
Getting Started with Physical Computing
Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
Stem Discovery Week at Kareas High School in Greece
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
Lesson 2 Variables and Lists.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
Global Challenge Flashing Wheels Lesson 2.
Lesson 1 – using the LED lights
Ecology Lab Instructions
Presentation transcript:

Lesson 1 Sequencing

What is it? The micro:bit is a handheld, fully programmable computer. It’s 70 times smaller and 18 times faster than the original BBC Micro computers used in schools in the 1980s. This little device has an awful lot of features, like 25 red LED lights that can flash messages. There are two programmable buttons that can be used to control games or pause and skip songs on a playlist. The BBC micro:bit can even detect motion and tell you which direction you’re heading in.

Algorithms An algorithm is a set of instructions that can be followed to solve a problem. Here is a simple algorithm for making toast: Start Slice the bread Toast the bread Butter the toast Spread the jam This algorithm is in the form of a flow chart which is a way of designing an algorithm. End

Sequencing The most simple type of algorithm uses sequencing, a set of instructions carried out one after another. This is an design for an algorithm which will display the text “Computer”, “Science”, “Rocks” on the micro:bit. Start Display “Computer” We can turn an algorithm into a computer program using a programming language such as Python. Display “Science” Python is a common programming language that is used a lot for web development. Display “Rocks” End

Match the Python code to correct part of the flow chart. Activity 1.1 Match the Python code to correct part of the flow chart. Start Display “Computer” Display “Science” Display “Rocks” End

Mu Editor You are going to use the Mu editor to program your micro:bit. Click this button to load your program onto your micro:bit You always need this line at the start of every program. Write your code here.

Displaying Text You can display text on the micro:bit using the display.scroll command. This code will output the text “Hello” and “World” on the micro:bit. Try it out for yourself.

Place a screenshot of your code here. Activity 1.2 Create a program that will display the text “Computer” “Science” “Rocks” on the micro:bit. Use this example code to help you. Place a screenshot of your code here.

Images MicroPython (the version of Python the micro:bit uses) comes with lots of built in images. Try creating a new program with the code shown below and load it onto your micro:bit.

Built In Images Here is a list of the built in images in Micro Python: Image.HEART Image.HEART_SMALL Image.HAPPY Image.SMILE Image.SAD Image.CONFUSED Image.ANGRY Image.ASLEEP Image.SURPRISED Image.SILLY Image.FABULOUS Image.MEH Image.YES Image.NO Image.TRIANGLE Image.TRIANGLE_LEFT Image.CHESSBOARD Image.DIAMOND Image.DIAMOND_SMALL Image.SQUARE Image.SQUARE_SMALL Image.RABBIT Image.COW Image.MUSIC_CROTCHET Image.MUSIC_QUAVER Image.MUSIC_QUAVERS Image.PITCHFORK Image.XMAS Image.PACMAN Image.TARGET Image.TSHIRT Image.ROLLERSKATE Image.DUCK Image.HOUSE Image.TORTOISE Image.BUTTERFLY Image.STICKFIGURE Image.GHOST Image.SWORD Image.GIRAFFE Image.SKULL Image.UMBRELLA Image.SNAKE Image.CLOCK12 # clock at 12 o' clock Image.ARROW_N ... # arrows pointing N, NE, E, SE, S, SW, W, NW (microbit.Image.ARROW_direction)

Place a screenshot of your code here. Activity 1.3 Create a program to display a built in image of your choice. Use this example code to help you: Place a screenshot of your code here.

You can create a delay between lines of code in Python. Delays You can create a delay between lines of code in Python. The code below will show a happy face for 1 second before switching to a sad face. Try it for yourself.

Activity 1.4 Create an animation using the different built in images. Use the sleep function to create a pause between the images. Place a screenshot of your code here. Use this example code as a starting point: