/
Lab 05. micro:bit speaker
Lab 05. micro:bit speaker
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:
00std_speaker_2_pwm
project
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.
, multiple selections available,
Related content
Lab 01. meet the micro:bit
Lab 01. meet the micro:bit
Read with this
Lab 03. micro:bit schematics
Lab 03. micro:bit schematics
Read with this
Lab 04. micro:bit LEDS
Lab 04. micro:bit LEDS
Read with this
Lab 00. Things to Install
Lab 00. Things to Install
Read with this
Lab 08. Your first network
Lab 08. Your first network
Read with this
Lab 07b. cutebot pro
Lab 07b. cutebot pro
Read with this