• 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: Changeable Photo Frames ESP32-S3 ST7789 Core3566002000 Raspberry Pi 5 PCIe to M.2 NVME SSD And Gigabit Ethernet RJ45 HAT RTL8111H M_KEY For 2230/2242/2260/2280 Image extraction User Guide Raspberry Pi 18.5 inch Type C/HDMI/4K Display Screen 3840×2160 Computer PC Phone Xbox/PS4/Switch Milk V Duo Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board C HAT Pi5-PCIe-2280-2242-2230 Raspberry Pi Compute Module 5 CM5 Cortex A76 BCM2712 With/Without Wi-Fi RAM 2/4/8/16GB eMMC Lite/8/16/32/64GB Raspberry Pi 7.5 inch e-Paper link (H) RYBW 800x480 For Arduino / Jetson Nano / STM32 Raspberry Pi 11.6 inch LCD HDMI /Type C Display In-Cell Capacitive TouchScreen 1768x828 For Jetson Nano/mini Computer PC Raspberry Pi Thermal imaging camera Raspberry Pi 5 Fan Raspberry Pi 5 Audio hat Spotpear Sipeed NanoCluster Mini Cluster Board mini data center For Raspberry Pi CM45 / Computer /LM3H /M4N Milk-V Duo Camera Tutorial Attitude Sensor Raspberry Pi CM5 Official Original IO Board a Base Development Platform Compute Module 5 IO Board Pico-DALI2 Expansion Board For ESP32 C6 S3 DALI communication control multiple LED