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)
- Link to the full MakeCode project shown in the book (and replicated below).
- Link to download the precompiled hex file (in a .zip folder)
- There is a more sophisticated option available – try this MakeCode project
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: