Chapter 3

Experimenting with Weather

In this chapter we are going to design an experiment where we will record temperature, humidity and atmospheric pressure. We’ll use our digital tool kit to build a weather station, then we’ll investigate how those measures impact on our day-to-day perception of the weather.

There are two code options here:

Using the micro:bit LED for output

Using an OD01 OLED display from XinaBox for output (ch3-sec 7)

The code for the (simpler) OD01 display and the micro:bit LED display is very similar, and will be easy to adapt to other types of output:

Errata:

On Page 61, Table 3-4, item 5:
The first block causes “T” to be displayed.   This SHOULD read: The first block causes “H” to be displayed.
Thanks to @Pycro1 for spotting this (and check out his brilliant blog site)