I finally received a Micro:bit V2!!! My first projects with the V2 is going to be porting some of my old V1 projects over to it, and make them work.


All the projects I did that required an external microphone and speakers on the V1 should be a breeze to port. Or so I think…


First project up is the “Accelerometer Tone Adjuster and Microsynth Case” project I did on the V1. I’m dropping the Microsynth case for this build since it’s just gluing the board in. Not exactly that technical for me to show.

What seems a bit different is the smoothing of the output signal with Micro:bit V2. It’s a super smooth tone this time. Of course, you can turn the signal smoothing off by setting a value to “False” in the code. See the code comments for more on that.


The software works as follows:

- Power it up.

- Press and hold “B” on the Micro:bit V2

- Move the Micro:bit around to hear the sounds change.


First, let’s gather all the necessary components you’ll need to build this project.

1x BBC Micro:bit V2

1x 5v 2A power supply


Video demonstration of the project:



Load the code onto the Micro:bit V2.

I am providing the hex file you need to drag and drop onto the Micro:bit V2, and the python code as two separate files. For the below process, just use the hex file.

Plug the MicroUSB cable into the Micro:bit V2, and plug the other end of the cable to a PC or MAC.

At this point, you are going to copy over the code to the Micro:bit V2. I am providing the program (code) in this post that needs to be copied over. When the Micro:bit V2 plugs into a computer, it shows up as a USB flash drive. All you have to do is copy the file over to the Micro:bit V2, like it’s a USB Flash Drive, and the Micro:bit V2 will reset, and the program is active.

You can remove the Micro:bit V2 from the computer at this point. The program will start running, and without the rest of the circuit, it will not function.

A little bit about the code:

The biggest change is the way sound is output. This time, I do not address an analog pin but “pin_speaker,” which was super nice. Read more about this change with Micro:bit V2 here.


See the code comments for every section.




Look at this… zero wiring this time! Micro:bit V2 adding a built in speaker was genius! So, it’s essentially “plug it in and let the fun begin.”

- Power it up.

- Press and hold “B” on the Micro:bit V2

- Move the Micro:bit around to hear the sounds change.




To this was fairly straight forward. After adding the necessary changes for the speaker output, there wasn’t much else to change. A very smooth port.


More ports to follow soon.