top of page
Kitty Code Programing Challenge

Make a Thermometer With Your micro:bit

Program your micro:bit so you can use it as a thermometer. Every computer processor is equipped with a digital temperature sensing device. Computers need it to monitor their temperatures. You can utilize the micro:bit's temperature sensor to read the temperature of the surrounding environment

New project.png

1 - Start a new project in MakeCode

Go to "MakeCode.microbit.org" to start a new project by clicking the new project icon above. Click the purple plus box labeled "New Project" to begin.

2 -  Program the radio's channel

You need to get one micro:bit to talk to the other, so choose a channel number for them to communicate on. Choose a unique channel number for your group (1-256). 

 Try these blocks: 

1_basic.png
Start Block.png
5_radio.png
Radio Group ID.png
Need Help_ Heres a Tip.png

3 - Display temp in Fahrenheit

Program your micro:bit to display the temperature in degrees Fahrenheit.  The micro:bit will only give you Celsius. What should you do? Use mathematical functions to convert Celsius to Fahrenheit. But beware, computers are so good at doing math that you will get answers with up to 9 decimal places! So, you will want to tell the computer to round its answers to the nearest whole number. Try creating this using the blocks below:  

arrow.png

Temperature conversion equation:

F to C.png

Why is that the equation? One degree C is equal to 1.8 degrees F and the units are offset by 32 degrees.

1_basic.png
Forever.png
5_radio.png
Radio Send Number.png
2_Input.png
Temperature.png
9_Math.png
Fahrenheit Equation addition.png
Fahrenheit Equation multiplication.png
roundnum.png
Need Help_ Heres a Tip.png
Times.png

This is how you do it!

equals.png

Mathematical!

Lovingly crafted!

Plus.png

4 - Display temp on second micro:bit 

Program second micro:bit to receive the data sent from the first. Try these blocks:

1_basic.png
5_radio.png
show number.png
Show LEDs.png
Receiver block.png
8_Variables.png
Screen Shot 2019-06-25 at 2.29.31 PM.png
Need Help_ Heres a Tip.png

Hooray! You Did It!

You made a temperature transmittor!

If you need help, click me to see the finished product!

Therma color.png
bottom of page