Being in love with the Microbit, I try to get my hands on anything related to it. Over the summer Sparkfun came out with a weather monitor expansion board called the Weather:Bit. For $14.95, its not a bad deal.
Well, last week I received an email from the pre-kindergarten teacher at Poughkeepsie Day School that they are studying the weather and want to collect weather data. Yes! So today, I got out the Weather:bit, plugged it in and went to Sparkfun.com to see how to program it.
First thing to do is to import the (beta) weather:bit package. This is done by clicking on the Add Package link in the Makecode, search for weather and select the package from Sparkfun.
Using Sparkfun’s code as a template, I created the program below. One new fact I learned about the Microbit that disappointed me greatly is that floating point numbers are not supported in Makecode. Ok, this is a great excuse to use MicroPhython. But for now, I press on.
In order to upload the data to the web, I’ll use the serial port interface on the weather bit or the radio function to get the data from the Microbit to a website. Stay tuned ….