EasyManua.ls Logo

Keyestudio Micro:bit Mini Smart Robot Car V2 - 8 Getknowledgeof Micro:bit Shieldelements; Playing Music

Keyestudio Micro:bit Mini Smart Robot Car V2
184 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
21
Playing Music
Description
Buzzers can be categorized as active and passive ones.
The difference between the two is that an active buzzer has a built-in oscillating source, so it will generate a
sound when electrified.
A passive buzzer does not have such a source, so DC signal cannot drive it beep.
Instead, you need to use square waves whose frequency is between 2K and 5K to drive it.
Different frequencies produce different sounds.
You can use micro:bit to code the melody of a song, quite fun and simple.
The keyestudio Micro:bit robot shield comes with a passive buzzer element. The signal terminal of buzzer is
connected to the P0 interface of micro:bit main board.
In the experiment, we make use of the software built-in library to drive the passive buzzer play a song of Happy

Related product manuals