• sales

    +86-0755-88291180

Chapter 4 of KitiBot-Microbit: Music User Guide

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.


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


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


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.


【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.

Play Piano


Using ring tone block, we can simulate piano by setting different tones.


Using play tone block, buzzer can sound tones as setting.


This code makes buzzer repeating music notes do, re, mi, fa, sol, la and si.

Button control


Here we use A and B buttons to control the buzzer.


Press A or B buttons, the buzzer will sound different.

TAG: RS485 TO ETH (B) Connect Alibaba Cloud And EMQX Raspberry Pi Core2021 LoRa LR2021 HF LF SPI LoRaWAN For Sub-GHz and 2.4GHz LuckFox Pico Camera Industrial USB TO RS232/485 Serial UART Converter FT232RNL Compact Size LuckFox Pico Power Raspberry Pi 5inch Display JETSON NANO MINI Raspberry Pi 5 27W Power X1301 Raspberry Pi 5 HDMI to CSI-2 Shield 1080P@60fps & Audio & Video Also For 4B/3B ESP32 S3 2.1 inch Round LCD Development Board 480x480 TouchScreen Display LVGL HMI With QMI8658C 6-Axis Sensor Raspberry Pi Zero 2W Dual Ethernet Expansion Board USB Hub Expansion RJ45 RP204 0.85inch LCD 0.49inch OLED Screen Display 64×32 SSD1315 Arduino Raspberry Pi ESP32 Pico STM32 Sipeed NanoKVM-USB Finger-sized 4K USB KVM for Server/SBCs Arduino Thermal imaging 1.3inch LCD USB camera 5MP IMX335 No Distortion Arduino board manager tutorial User Guide