Load pre-recorded sounds on microbit

Questions and discussion about running MicroPython on a micro:bit board.
Target audience: MicroPython users with a micro:bit.
Post Reply
drrich
Posts: 1
Joined: Wed Feb 12, 2020 9:58 pm

Load pre-recorded sounds on microbit

Post by drrich » Wed Feb 12, 2020 11:26 pm

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?

User avatar
jimmo
Posts: 1681
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Load pre-recorded sounds on microbit

Post by jimmo » Thu Feb 13, 2020 4:17 am

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).

Post Reply