Please select an option to see content specific to your location and shop online.

  • Free delivery on orders over £25 Free delivery on orders over £25

Project

Light-Controlled Sound Machine

Experimental instrument with LED visualisation

Scroll down

This project will run you through some of the capabilities of the new micro:bit to create a standalone experimental, electronic instrument with LED visualisation. Although it can run from the micro:bit’s built-in speaker, it’s sonic power becomes apparent when connected to an amplifier and speaker.

 

1. Programme the micro:bit

  • Assemble the micro:bit and the battery pack, don’t power the micro:bit yet.
  • Connect the micro:bit to your host computer using the micro USB cable.
  • Go to https://makecode.microbit.org/ We will use Makecode, a graphic programming environment.
  • Click on New Project.

makecode microbit

  • Name your project, we called it Light instrument.

Here is an overview of what you’ll be assembling. Below you’ll see a broken-down guide.

micro:bit light instrument

  • Assemble On start:

micro:bit on start

  • Assemble Button A and Button B presses.

micro:bit button press

  • Assemble Button A + Button B press.

button a b press micro:bit

  • Assemble the forever loop that runs the sound.

micro:bit forever

  • Assemble the forever loop that runs the graphics

micro:bit forever graphics loop.

2. Upload the programme to the micro:bit

  • Pair the micro:bit to your computer by clicking on the 3 dots to the right of the Download button.
  • Click on Pair device, a pop-up will open.
  • Click on Pair device again.

makecode microbit pair device

select microbit

  • Select “BBC micro:bit CMSIS-DAP” and click Connect.
  • Click on the Download button.
  • Eject the micro:bit from the computer using the usual procedure to eject a USB device.
  • Power up the mIcro:bit using the battery pack.

You should now have the instrument ready. 

 

3. Play your instrument

microbit-light-instrument

Above you can see the controls for your light instrument. Using a combination of button presses, tilting and light exposure you can change and modulate the sound to your liking. The LED matrix will graphically reflect what the sound is doing.

 

4. Do more

The first thing you might want to do is play your instrument through a HiFi or speakers to appreciate its sound range.

microbit-audio-out

  • Use a crocodile clip to connect electrode 0 to the live connection of a jack which will be connected to your headphones, HiFi etc.
  • Connect GND to the Ground connection of the jack.

Ensure to have the volume on your speakers set to low. The micro:bit IS LOUD!

 

Like what you read? Why not show your appreciation by giving some love.

From a quick tap to smashing that love button and show how much you enjoyed this project.