Bbc microbit Lesson 3 – Temperature hot medium.

Slides:



Advertisements
Similar presentations
PYTHON: PART 2 Catherine and Annie. VARIABLES  That last program was a little simple. You probably want something a little more challenging.  Let’s.
Advertisements

Bug Session Four. Session description Objectives Session activities summary Resources Prior knowledge of sequencing instructions using Bug Bug website.
Python Programming Using Variables and input. Objectives We’re learning to build functions and to use inputs and outputs. Outcomes Build a function Use.
BBC Microbit Getting set up and making your first program.
C++ LANGUAGE TUTORIAL LESSON 1 –WRITING YOUR FIRST PROGRAM.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
Lesson 1. Security At the menu bar at the top you will see the word Tools. Click your mouse on Tools scroll down to Macro. Move the Mouse over and down.
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
Introduction to TouchDevelop Lesson 3 – Comments & Lists Created by S. Johnson
Problem: Take Two Numbers, Add Them Together And Display The Results. Now To Build The Flowchart… We Probably Need One Like This… Let’s Add The Routines…
Part 1 Learning Objectives To understand that variables are a temporary named location to store data and that programmers work with different data types.
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.
Lesson 4 Accelerometer.
PYTHON PROGRAMMING Year 9. Objective and Outcome Teaching Objective Today we will look at conditional statements in order to understand how programs can.
Click the mouse button or press the Space Bar to display the answers.
Python Programming Module 3 Functions Python Programming, 2/e.
Lesson 1 - Sequencing.
Lesson 4 - Challenges.
Experiment 01 C programming environment
Starter Activity Instructions: Complete the starter sheet Planner
Lesson 1 An Introduction
Lesson 4 – Glowing pendulum
BBC Microbit.
BBC Microbit.
BBC Microbit.
micro:bit for primary schools – mb4ps.co.uk
BBC Microbit.
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
BBC Microbit.
Introduction to TouchDevelop
Objective of the lesson
BBC Microbit.
Dance Cards Dance Cards
BBC Microbit.
Please use speaker notes for additional information!
Dance Cards Dance Cards
Lesson 4 Accelerometer.
Dance Cards Dance Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
BBC Microbit.
HOW TO CREATE A CLASS Steps:
BBC Microbit.
Explain what touch develop is to your students:
Dance Cards Dance Cards
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Lesson 2.
BBC Microbit.
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
BBC Microbit.
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Dance Cards Dance Cards
Explain what touch develop is to your students:
Stopwatch Cards Stopwatch Cards
Lesson 1 – using the LED lights
Lesson 5 – Coding a temperature gauge
Dance Cards Dance Cards
Stopwatch Cards Stopwatch Cards
Dance Cards Dance Cards
Presentation transcript:

Bbc microbit Lesson 3 – Temperature hot medium

temperature You will learn how to get the ambient temperature (degree Celsius °C). The temperature is inferred from the the surface temperature of the various chips on the micro:bit. We will be learning how to get the temperature using on shake, local variables, as well as simple commands such as show number.

Temperature

Temperature First setup the variable temp and set it to 0, here we are telling the Micro:bit that the variable is a integer data type. Can you remember what that means? You then need to insert an input this can be shake or on button pressed.

Temperature Setup the input so that our Microbit will work out what the temperature is when you shake or press a button, this will then be stored in the temp variable. Finally ask your Micro:bit to show the temperature by inserting the show number code and linking it to the variable temp.

Temperature Run your code to see what happens, move around the room to see if the temperature changes. You should now know how to put files onto your Micro:bit.

Temperature Extension Challenge 1 – Add 1 IF statement to your code so that IF the temperature is more than (>) 26 your Micro:bit displays ITS HOT! Add 1 Else IF statement to your code so that IF the temperature is less than (<) 17 your Micro:bit displays ITS COLD! Add 1 Else statement to your code so that Else the Micro:bit displays GOOD TEMPERATURE.

Temperature Challenge 2 – Add images to display to your screen a Celsius sign.