Welcome to the DFRobot blog
:
www.dfrobot.com/blog-tag-microbit.html
52
/
86
volume of micro: bit.
Task 2 : Smart music box
Goal: We will build a smart music box in this task. When someone approaches, the micro: bit will
play a piece of music of your choice; when no one is near, it stays quite..
STEP 1: Edit the "Twinkle, Twinkle Little Star" .
Firstly, we will try to edit the first sentence of the “Twinkle, Twinkle Little Star”. Different tones and
notes are required for editing the vocal frequency.
Tone
Notes
"Twinkle, Twinkle Little Star" .
Take the middle C as example, the sound frequency and its corresponding notes are shown in the
following table:
not
es
1 2 3 4 5 6 7
Hz 26
2
29
4
33
0
35
0
39
3
44
1
49
5
The function “play tone Middle C for 1 beat” from “Music” will be used in this step. Here, you can
set the tone and beats.