2
2
Meet the Micro:bits
Coding is easy and fun when students meet the micro:bits. Learn to write and download code, so you are ready to create your own scientific tools!
Meet the Micro:bits
Coding is easy and fun when students meet the micro:bits. Learn to write and download code, so you are ready to create your own scientific tools!
Student Edition
(English/Spanish)
Student Edition
(English/Spanish)
Student Edition
(English/Spanish)
California Wildfires
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!
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:
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:
Temperature conversion equation:
Why is that the equation? One degree C is equal to 1.8 degrees F and the units are offset by 32 degrees.
This is how you do it!
Mathematical!
Lovingly crafted!
4 - Display temp on second micro:bit
Program second micro:bit to receive the data sent from the first. Try these blocks:
Hooray! You Did It!
You made a temperature transmittor!
If you need help, click me to see the finished product!