• 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: Sipeed SLogic 4IN1 USB Logic Analyzer 80M / DAPLink / CKLink Debugger Tool / UART Module Serial UART Bus Servo ST3215 30KG.CM/19.5KG.CM Magnetic Encoder 360° High Precision And Large Torque Milk-V Duo S User Guide Total Writing-Image User Guide DeepSeek XiaoZhi AI Voice Chat Robot BOX ESP32-S3 Development Board 3.5 inch LCD N16R8 Touchscreen Display 6-Axis /Camera /SD Wiki SpotPear Allwinner H618 UGV Beast PT Kit AI OpenCV Robot Car MediaPipe For Jetson Orin 15.6 inch Dual LCD Computer PC Monitor Display Double Secondary Screen Type C Mini HDMI 1080P For Windows/MacOS ESP32-C6 WiFi 6 Development Board ESP32-C6-MINI-1Support WiFi6 Bluetooth5 Zigbee Thread OLED-LCD-HAT-A user guide PC USB Monitor Screen UPS HAT D Raspberry Pi 5 Official Red-White Case Milk-V Duo S Extend Partition on SD Card or eMMC Raspberry Pi AI Camera Official Original 12MP IMX500 Intelligent visual Sensor On-Board RP2040 Raspberry Pi 1.3inch Raspberry Pi Camera Industrial Modbus RS485 RTU 8-ch Magnetic Latching Relay Module (C) With Digital Input