• 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: 64MP Camera USB TO 2.5G Ethernet Port Converter RJ45 RTL8156B Driver-Free For Windows/macOS/Linux/Android Jetson Nano Cooler LuckFox Pico max ESP32-Hi Mechanical Dog ESP32 C3 Servo AI Voice Chat Development Board Deepseek Raspberry Pi IR Ther Sipeed NanoCluster Mini Cluster Board mini data center For Raspberry Pi CM45 / Computer /LM3H /M4N 3D Display Transparent Screen Core3566004032 Milk-V Duo Ethernet Development Board MLX90641 ESP32 ST7789 configuration Raspberry Pi DSI 800×480 Mini Uninterruptible Power Supply module Supports charging And Power output at the same time 5V 2.5A ESP32 S3 LCD Camera Development Board 2 inch Display QMI8658 Sensor / Battery Port LVGL/HMI For Arduino PC USB Monitor Screen Magnetic Encoder Servo Motor 35KG.CM 24V 360° RS485 High Precision And Large Torque RSBL35-24-HS 树莓派Pico 2 RP2350B-Plus-W开发板WIFI官方Radio Module 2 Industrial CAN FD ETH RJ45 bidirectional converter CAN2.0A/2.0B