Page 1 of 1

Load pre-recorded sounds on microbit

Posted: Wed Feb 12, 2020 11:26 pm
by drrich
The micro:bit comes with a bunch of pre-loaded music. I'd like to be able to record short clips of my own, which I'd make in audacity and export as mp3 files (or whatever format works best). The problem is that there doesn't appear to be a simple way to get external sound files onto the microbit. Any idea how I might accomplish this?

Re: Load pre-recorded sounds on microbit

Posted: Thu Feb 13, 2020 4:17 am
by jimmo
Stretching my memory here but the micro:bit doesn't have a way to play arbitrary PCM audio (i.e. waveforms). There's no hardware digital-to-analog converter.

The way the music works is that it plays a sequence of individual tones using a square wave generator (PWM) on some pins (you can define your own tunes though, similar to the built-in ones).