Image

2SUPER SONIC

In this chapter, we’ll explore using sound with the micro:bit. We’ll teach the micro:bit to play music and even imitate speech, and we’ll get it to hear sound by connecting it to a microphone. You’ll try out a couple of experiments and create two simple projects: the first project is a musical doorbell that lets the Mad Scientist know when visitors have arrived, and the second is a Shout-o-meter that measures and displays the volume of sounds it detects.

CONNECTING A LOUDSPEAKER TO A MICRO:BIT

There are a couple of ways to hear sound from your micro:bit. Which one you should choose depends on how much sound you want to make.

The Quiet ...

Get Micro:bit for Mad Scientists now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.