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.
Snowpi and Microbit v2 reacting to music via the microphone @ItsAll_Geek2Me pic.twitter.com/3LXZEBJ166
— Dr Scott Turner (@scottturneruon) November 7, 2020
Next stop probably try this idea with the Kitronik's cube:bit (see https://robotsandphysicalcomputing.blogspot.com/2018/09/build-disco-cubebit-that-reacts-to-music.html )
If you do something more with this code please add a comment to the post.
No comments:
Post a Comment