The Arizona STEM Acceleration Project
Temperature Conversion with the BBC micro:bit
Temperature Conversion with the BBC micro:bit
A 6-8 grade STEM lesson
Simon Escalada-Mastick
June 28, 2024
Notes for teachers
This lesson assumes that the students and teacher know how to connect and flash MakeCode blocks on the BBC micro:bit.
This lesson integrates mathematics and computer science concepts.
This lesson also works in the micro:bit simulator in MakeCode, and students can change the value of the temperature to see the converted values.
List of Materials
Standards
Mathematics �
6.EE.A.2.c: Evaluate expressions given specific values of their variables. Include expressions that arise from formulas used
to solve mathematical problems and problems in real-world context. Perform arithmetic operations, including
those involving whole-number exponents, in the conventional order when there are no parentheses to specify a particular order (Order of Operations).
Standards
Computer Science
6.AP.V.1: Identify variables that represent different data types and perform operations on their values.
7.CS.HS.1: Design projects that combine hardware and software to collect and exchange data.
8.DA.CVT.1: Collect data using computational tools and transform the data to make it more meaningful and useful.
Standards
Educational Technology
6-8.4.c. Students engage in a
design process to develop, test,
and revise prototypes, embrace
the iterative process of trial and
error, and understand setbacks
as potential opportunities for
improvement.
Standards
6-8.5.d. Students understand how automation works and apply algorithmic thinking to design and automate solutions.
Objectives:
By the end of this lesson, students will be able to:
Agenda
Intro/Driving Question/Opening:
Hands-on Activity:
Discussion:
Conclusion:
(5 minutes)
(35 minutes)
(5 minutes)
(5 minutes)
Intro/Driving Question/Opening
Begin the lesson by presenting the formula to calculate Celsius temperature to Fahrenheit temperature:
In pairs, ask the students to:
Intro/Driving Question/Opening
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
Hands-on Activity Instructions
This image was generated with AI. Mainly for amusement.
Assessment
Objective | 0 Points | 1 Point | 2 Points | 3 Points | 4 Points |
Convert temperature readings from Celsius to Fahrenheit | No attempt made to convert or use the blocks that display temperature. | Temperature data is only displayed in Celsius. | An attempt was made to convert the temperature but the attempt was unsuccessful. | Temperature is converted, but there are one or more errors in the code . | Temperature conversion is correct with no errors in the code. |
Declare variables in MakeCode | No attempt made to declare variables. | Variables are declared but are not used. | Variables are declared but used incorrectly. | Variables are declared and used correctly, but the name does not reflect the purpose of the variable. | Variables are declared and used correctly, and the name reflects the purpose of the variable. |
Display temperature data | No attempt made to use the micro:bit display. | An attempt was made to use the micro:bit display, but temperature data was not displayed. | Temperature data is displayed with errors. | Temperature data is displayed with a decimal value. | Temperature data is displayed without a decimal value. |
Differentiation
For Learners Needing Extra Support
Distribute a copy of the program with all the blocks preloaded on the workspace, and have the students assemble the blocks as described in the lesson.
For Advanced Learners
Have the students perform the conversion with an additional input such as the A and B Buttons or the Captive Touch Logo.
Remediation
Extension/Enrichment
Ask the students to write a program that converts the temperature from Celsius to Kelvin.
Ask the students to write a program that uses the buttons of the micro:bit to display in different temperature scales (Button A displays Fahrenheit, Button B displays Kelvin, No button pressed displays Celsius.)
Have the students compare the temperature readings with another temperature sensor as the DHT11 or BME230.