Finally got to play with something that has been my list of things to play with, the Pimoroni Enviro:bit Weather Kit https://learn.pimoroni.com/tutorial/tanya/building-the-enviro-bit-kit (see below)- a nice kit based around Pimoroni's enviro:bit device which uses microbit and adds a number of sensors including temperature, pressure and humidity; as well as a microphone.
Programming is via MakeCode; extensions can be added using the Extension option and searching for envirobit.
So a quick experiment to work through the temperature, pressure and humidity sensors, a brief bit of code to do this is shown below:
Responding to sound
The microbit used with the kit was a V1, so this device added a microphone to the systems (V2 already has the microphone built-in). In the code below the microbit to react to a clapping sound.
There is still various things to try out the like the light sensors. As well as the expert blocks - what their functions are.
To develop further.
Fun and easy to play with.
All opinions in this blog are the Author's and should not in any way be seen as reflecting the views of any organisation the Author has any association with. Twitter @scottturneruon
Code available:
No comments:
Post a Comment