Download presentation
Presentation is loading. Please wait.
1
BBC Microbit
2
Objective of the lesson
Use Block Editor to make a temperature sensor All of you will: Make the Microbit display the temperature Most of you will: Display the temperature for other countries Some of you will: Use IF statements to say if the temperature is cold, warm or hot
3
Temperature Sensor The Microbit has an on-board temperature sensor Add a ‘forever’ loop Add a variable, rename it temperature. Get this variable to measure temperature from the Microbit
4
Now it needs to show a number
This number needs to be the Temperature variable
5
Challenge Add a message after the temperature e.g. ‘degrees Celsius’ The temperature in Norway is approximately 10 degrees colder than here. Write a program to display the temperature in Norway The temperature in Spain is approximately 5 degrees hotter than here. Write a program to display the temperature in Spain The temperature in Death Valley, California is approximately twice the temperature here. Write a program to display the temperature in Death Valley Write a program using if statements so that if the temperature is above 25 then it says ‘It is warm’, else it says ‘It is not hot’ Write a program using if statements so that if the temperature is above 25 then it says ‘It is hot’, if it is below 10 it says ‘It is cold’, else it says ‘It is warm’
6
Answers
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.