Objective of the lesson

Slides:



Advertisements
Similar presentations
Meet Me on Mars Lesson 7 Variables and Messages. Events and Variables 1. Click the _________ button 2. When ________ clicked, set ______ to ____ 3. Now,
Advertisements

Bug Session Four. Session description Objectives Session activities summary Resources Prior knowledge of sequencing instructions using Bug Bug website.
Scratch Programming Lesson 2 First glance to programming logic.
Scratch Programming Lesson 4 Question asking and answering.
The If Block. IF The “if” block can be found in the control tab. The if block means, “IF this happens, THEN do this.” You can put blocks ON the if block.
Lives and Scoring Games Programming in Scratch. Games Programming in Scratch L2 Lives and Scoring Learning Objectives Define a variable Understand the.
Objective of the lesson Use Blockly to make a dice for Snakes and Ladders All of you will: – Make an image which displays when you press a button Most.
Games Programming in Scratch
micro:bit for primary schools – mb4ps.co.uk
Exploring Computer Science Lesson 4-14
Robotics Programming Using Shaft Encoders
Exploring Computer Science Lesson 4-10 – Part 1
Objective of the lesson
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
Stopwatch Cards Stopwatch Cards
Music Cards Music Cards
Music Cards Music Cards
Dance Cards Dance Cards
BBC Microbit.
Introduction to Coding
INTERMEDIATE PROGRAMMING LESSON
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Music Cards Music Cards
Objective of the lesson
BBC Microbit.
Dance Cards Dance Cards
Dance Cards Dance Cards
micro:bit for primary schools – mb4ps.co.uk
Dance Cards Dance Cards
INTERMEDIATE PROGRAMMING LESSON
Dance Cards Dance Cards
Dance Cards Dance Cards
Objective of the lesson
BBC Microbit.
Objective of the lesson
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
Music Cards Music Cards
Objective of the lesson
Dance Cards Dance Cards
Stopwatch Cards Stopwatch Cards
Music Cards Music Cards
Dance Cards Dance Cards
Objective of the lesson
micro:bit for primary schools – mb4ps.co.uk
Stopwatch Cards Stopwatch Cards
Music Cards Music Cards
Step 1 Click on the link of the Course “Empowering Self” shared with you on . Once done, you will see this page. We are also putting it here:
Dance Cards Dance Cards
BBC Microbit.
Music Cards Music Cards
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Exploring Computer Science Lesson 4-14
Creating a Simple Game in Scratch
Music Cards Music Cards
Music Cards Music Cards
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Objective of the lesson
Stopwatch Cards Stopwatch Cards
Music Cards Music Cards
Dance Cards Dance Cards
Exploring Computer Science Lesson 4-10 – Part 1
Presentation transcript:

Objective of the lesson Use Blockly to make a Banana Piano All of you will: Display a message when a fruit is touched Most of you will: Display different messages depending on which fruit is touched Some of you will: Change messages to images representing the fruit

Go to www.codebug.org.uk Click on CREATE and then on the Blockly Tab You will see a simulation of the Codebug. The Triangular Play button can be used to run your program and view what will happen once you download to your Codebug

Click on the cog and tick legs 0,1,2,and 3 Set each of them as an output Each of these legs will output an electrical current If a circuit is complete and this leg is grounded it will display a message The circuit will be complete by the banana and then pass through your body to GND

Add a repeat while True loop so that the program will keep checking to see if you are touching the banana Add an ‘if’ block to see if you are touching the banana Add a log 0 grounded block. If you are touching the banana and the GND leg then the electric current coming from leg 0 is able to be grounded (return to GND through the banana and your body

Add a scroll sprite block to display the message ‘Banana’ it the banana is touched

Click on the cog to add an ‘else if’ block. This will check to see if another fruit is touched on leg 1

Challenge Create code to display a message if other fruits are added Add an ‘else’ block at the end. This will display a message if you are not touching any fruit at all Wire up your fruit piano and test that it works Change the display messages to be sprite images of the fruits

Answers