Skip to content
05micro:bit · MakeCode 25 minutes

Onboard temperature

Read the processor's approximate temperature and watch it change slowly.

Onboard temperature project
Illustration of the finished idea. Build from the diagram and connection table, not the photo.

Lesson goal: Display input.temperature() in degrees Celsius every two seconds and understand why it is an approximation.

Open MakeCode

Section 1

Understand

  • approximate sensor
  • Celsius
  • sampling interval
  • data log
  • 1input.temperature gives a rough °C from the processor.
  • 2It is not a precise room thermometer, and not the kit's LM35.
  • 3Never heat the board to test it.

Safety first

  • Do not heat the board with a hair dryer, lamp, radiator or flame, and do not put it in a fridge or freezer. Change location gently instead, for example a cooler room.