• 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: ESP32-P4-NANO Development Board RISC-V WiFi6 MIPI CSI Camera / 10.1 inch DSI Display / USB / RJ45 Ethernet / POE / Audio Buzzer 0.85inch LCD Button Mechanical Keyboard Display Screen 128x128 For Arduino /Raspberry Pi /ESP32 /RP2040 /STM32 ESP32-S3 1.14inch LCD Raspberry Pi Buzzer Serial Bus Servo Raspberry Pi AI Camera Official Original 12MP IMX500 Intelligent visual Sensor On-Board RP2040 Bevelopment Board Smart Car UART Serial TTL To RS232 B Built-In Protection Circuits Rail-mount RP2040-Keyboard-3 Raspberry Pi Pico 1024×600 Arduino Thermal imaging camera Raspberry Pi 10.1 inch QLED Quantum Dot Display 1280x720 Capacitive Touchscreen DDC/CI For Computer PC/Jetson/Game ESP32-S3 LCD ESP32 S3 R8 MP3 Board 2.8inch LCD TouchScreen Display Speaker/SD-Card/Battery/QMI8658-6-Axis-Sensor Raspberry Pi DSI 800×480 8.9inch LCD HDMI Capacitive 8.9 inch Touchscreen Display 600x1600 For Raspberry Pi/Jetson Nano/PC Raspberry Pi Pico rp2040 Display image 1.3inch LCD ST7789 change bmp to hex Sipeed Lichee Tang Nano1K FPGA MINI Development Board GW1NZ-1 ESP32 S3 Development Board 3.5 inch LCD Capacitive Touch Screen 3.5inch Display 320×480 N16R8