Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Schematics

This portion of the schematics shows how the speaker is connected to the target MCU.

...

How can the speaker generate a constant tone, for example at 440 Hz?

What is the exact nRF52833 pin the firmware needs to control to generate sound?

00std_speaker_1_cpu project

Load the project on your micro:bit.

How do modify the project to have a higher tone? A lower?

Extra credit! Modify the code to generate this sound:

View file
nameNew Recording 4.m4a

00std_speaker_2_pwm project

Tip

Your instructor will discuss what a PWM peripheral on a micro-controller does.

Load and run the project.

Have you recognized the song?

Extra credit! Have your micro:bit play a different song.