Weather Monitoring and the Microbit

Posted by

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 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.

Screen Shot 2017-09-19 at 3.12.45 PM

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 ….



Screen Shot 2017-09-23 at 5.22.08 PM

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s