Guide

3/7/2018 SparkFun Inventor's Kit for micro:bit Experiment Guide - learn.sparkfun.com
https://learn.sparkfun.com/tutorials/sparkfun-inventors-kit-for-microbit-experiment-guide/all#introduction-to-microsoft-makecode 38/63
Light Not Turning On
The push button is square, and because of this it is easy to put it in the wrong way. Give it a 90-degree twist and see if it starts
working.
Underwhelmed
No worries; these circuits are all super stripped-down to make playing with the components easy, but once you throw them
together the sky is the limit.
Experiment 7: Reading the Temperature Sensor
Introduction
A temperature sensor is exactly what it sounds like — a sensor used to measure ambient temperature. In this experiment you will
add an external package of code to MakeCode that will make using the temperature sensor easier and then put the sensor to
good use… measuring the air temperature.
Parts Needed
You will need the following parts:
1x micro:bit
1x Micro B USB Cable
1x micro:bit Breakout (with Headers)
1x Breadboard
5x Jumper Wires
1x TMP36 Temperature Sensor
Didn’t Get the SIK for micro:bit?
If you are conducting this experiment and didn’t get the Inventor’s Kit, we suggest using these parts:
Introducing the TMP36
Temperature Sensor
The TMP36 is a low-voltage precision
centigrade temperature sensor. It
provides a voltage output that is
linearly proportional to the Celsius
temperature. It also doesn’t require
any external calibration to provide
typical accuracies of ±1°C at +25°C
and ±2°C over the −40°C to +125°C
temperature range. The output
voltage can easily convert to
temperature using the scale factor of
10 mV/°C.