Skip to main content

Speaker

Back to article list

Speaker

You can connect an external speaker to the micro:bit’s pins or use its built-in speaker to play sounds.

Sample Code

Result: press button A on the micro:bit, and it should play the "ode" melody in the background. Press button B, and it should play the "blues" melody in the background instead.

Specifications

Item details
Type JIANGSU HUANENG MLT-8530
SPL 80dB @ 5V, 10cm
Self-resonant frequency 2700Hz
More Info Datasheet