Friday, 28 February 2025

Using Elecfreaks microbit Smart home kit

Using Elecfreaks microbit Smart home kit http://bit.ly/43ooJFo a cool set of comments to build simulated Smart Building activities using a Microbit it works with either V1 or V2.



Start https://makecode.microbit.org/#editor

Go to extensions (see below) and then search for smarthome and add the package to the editor (ie, click on the extension and makecode does the rest)






Attach the microbit to the sensorbit


Making the voice activated light solution - the first activity follow the circuit in the book


To get "led enable" you will need to click in makecode like on LED option and then + to find it. You will also need to set up three variables light, strip and noise.
Here is the code

Only turns on the LED for 10 seconds when the light level is low and noise is above 78dB.


Playtime
Slight adaptation to the code, makes the LED change with sound level
The circuit is the same.


Conclusion
Based on this one activity it is a nice bit of kit. The range of actuators and sensors justifies the cost with things like moisture sensor , servo, water pump, OLED screen, temperature sensor, fan and more. It is worth a look.






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

No comments:

Post a Comment

Using Elecfreaks microbit Smart home kit

Using Elecfreaks microbit Smart home kit  http://bit.ly/43ooJF o a cool set of comments to build simulated Smart Building activities using a...