Table of Contents:
What does it do?
The SW01 weather station measures:
- Atmospheric pressure
And using these measures the SW01 extension can provide the following derived measures:
- Altitude (by density and pressure)
- Cloud base
To write code for the SW01 in MakeCode you will need to load the SW01 extension:
- Open MakeCode and start a new project
- Click on Extensions
- Type in XinaBox
- Click on the search icon
- Select the SW01 tile
One of the most simple programs you can write with the SW01 will display temperature or humidity or pressure on the micro:bit 5x5 LED display. As long as you've imported the SW01 extension the code below will turn your micro:bit into a barometer:
Remember to attach your SW01 to your micro:bit before running the code.
- Connecting the components together
- Getting start - Hello World
- Using the temperature blocks
- Using the pressure blocks
The micro:bit 5x5 LED screen is not ideal for displaying sensor readings, but the micro:bit can easily be upgraded to a 64x128 OLED monochrome monitor - the OD01 from XinaBox.