Sunday, 8 November 2020

'Dancing' Snowman - ok flashing LEDs to music



This post discusses a project that I want to play with since finding out the new Microbit V2 has an built in microphone - this is to use the new microbit in combination with a Ryan Walmsley's SnowPi RGB https://www.kickstarter.com/projects/ryanwalmsley/snowpi-rgb-edition to make the snow,man change the LEDs as the music's volume changes via the microphone. First though, thank to you to the fabulous  Rachel @ItsAll_Geek2Me from Microbit Education Foundation for letting me have Microbits to play with.


So thehe starting point is the Snowman, essentially following the instructions at snowpi.xyz for setting it up and writing an initial program in makecode for the snowman. If fact the code in this project is a twist on the code found there.


You need to use https://makecode.microbit.org/beta#editor at the time of writing and add the neopixels extension (see snowpi.xyz for more details) Some new blocks in the current beta version of makecode add for the new microbit; including some new blocks for the microphone under inputs - a very useful resource for details on the new microbit and programming it is https://tech.microbit.org/latest-revision/ the microphone blocks are in the input section.
 
The code is availabe at https://makecode.microbit.org/_KDo9KghUhPbw  it is a bit hard to see the code in the images below.
 

 

 
 






 
If you do something more with this code please add a comment to the post.



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

Remote Data Logging with V1 Microbit

In an earlier post  https://robotsandphysicalcomputing.blogspot.com/2024/08/microbit-v1-datalogging.html  a single microbit was used to log ...