Chapter 4 of KitiBot-Microbit

From Waveshare Wiki
Revision as of 09:11, 1 August 2018 by Waveshare-eng11 (talk | contribs) (Created page with "===Music=== micro:bit board doesn't have buzzer. If you want to make micro:bit sound you need to add external speaker or buzzer. Buzzer is integrate on micro:bit expansion boa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Music

micro:bit board doesn't have buzzer. If you want to make micro:bit sound you need to add external speaker or buzzer. Buzzer is integrate on micro:bit expansion board, you just need to inset micro:bit to expansion board.

Buzzer of kitibot.png

You can also connect external buzzer/speaker if you want. micro:bit pin out music pin to P0.

Speaker external.png

The blocks in Musci class can be used to control music note and tone. It also has some musics already.

Music blocks.png

Create a new project, drag start melody block to on start. Choose a music and repeat times. You can choose ...in background to make music play in background.

Music code.gif

【Note】sound is generated by shaking of object. People shaking our vocal cord in different frequency to speak. Buzzer work in same way, it sounds when get high/low level with different frequency from control board. To change the music tone you can change the sound.

Related Pages