[Microbit-Python] Microbit-Python “Simon Says” Example for Kitronik Inventor’s Kit

Radomir Dopieralski microbit at sheep.art.pl
Thu Feb 11 02:21:40 EST 2016


You can use a much higher frequency PWM and a capacitor to get actual
analog signal, or you can use several digital pins and a ladder of
resistors. Both approaches would let you play arbitrary sounds with
limited quality.


On Wed, 10 Feb 2016 17:09:05 +0000
Nevil Hunt <nevil.hunt at hotmail.co.uk> wrote:

> Hi Nicholas,
>  
> I tried a bit of Beethoven from the Python Library which worked fine!
> Looking at it on the Scope it is still generated as a square wave.
> I've a feeling that the "Analog" outputs on the micro:bit are in fact
> PWM outputs so tones are generated by a PWM square wave of the
> appropriate frequency. If so then playing, say a .WAV file may not be
> possible. Does anyone know if the analog outputs can generate a
> genuine analog audio signal? Nevil

-- 
Radomir Dopieralski


More information about the Microbit mailing list