Skip to main content

Posts

Showing posts from December, 2020

10 top read posts on Robots and Physical Computing blog in 2020

microbit and neopixel cube reacting to music Please click on the links below for more details. Popular Posts PS3 Controller to move a USB Robot Arm Guest Blogger Hiren Mistry, Nuffield Research Placement Student working at the University of Northampton. How to use a PS3 Controller to... WebVR 5 Playtime: Augmented Reality to display Videos In previous posts ( post 1 , post 2 ) I have raved over the brilliant combination of Mozilla's AFrame and Jerome Etienne's fantastic... Micro:bit, Servo control with Micropython or blocks You can control servos (small ones) from a Micro:Bit directly. Following a link from the David Whale (Twitter  @ whaleygeek ) , thank you, t... Speech Recognition in Scratch 3 - turning Hello into Bonjour! The Raspberry Pi Foundation recently released a programming activity Alien Language , with support Dale from Machine Learning for Kids , tha... Speech with EduBlocks on BBC microbit The microbit is a great piece of kit, not least of wh...

Cube and microbit reacting to music

In a previous post - 'Dancing' Snowman - ok flashing LEDs to music - I played with Microbit V2 with its built-in microphone in combination with a Ryan Walmsley's SnowPi RGB  https://www.kickstarter.com/projects/ryanwalmsley/snowpi-rgb-edition  to make a Snowman that reacts to music. In this post, the aim is to show the idea been extended to a Cube of programmable LEDs the 4tronix's Cube:Bit . Essentially the process is the same as the previous post the microphone detects the sound level and cause an LED to light up.  Only a few minor changes were made to the code from the previous example. - The Pin had to be changed from 2 to 0 in the code (see Figure 1); - Increase the number of pixels/LEDs in the settings (see Figure 1); - It no longer chooses random LEDs/pixels to light up; but alters the first one and shifts the result to the result to the next one - so the lights shifts through the LEDs (see figure 2); - Add in when it is quiet set the first LED to set a value...