• 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: STM32 downloader Milk V Duo Raspberry Pi Pico Camera NanoKVM-Lite JETSON-IO-BASE-A USB to SPI USB to UART Milk V Duo IO Board 1.33TFLOPS RAM-4G eMMC-16 High Performance AI at the Edge Raspberry Pi 4.26 inch e-Paper link (G) RYBW 800x480 For Arduino / Jetson / STM32 /ESP32 MAX9296 GMSL Camera Adapter Board 2-Ch High-Speed And Low-Latency Transmission For Jetson Orin Nano/NX here User Guide Raspberry Pi Pico 2 RP2350 1.75-inch AMOLED 1.75inch Round TouchScreen Display QMI8658 6-axis GPS Jetson Orin Nano/NX Super Developer IO Base Development Board Dual network RJ45 For Jetson Orin Nano/NX Module Raspberry Pi 5 UART Serial Server Raspberry Pi 7.5 inch e-Paper link (H) RYBW 800x480 For Arduino / Jetson Nano / STM32 Flash Firmware Flashing and Erasing User Guide Industrial grade isolated USB to RS232/485 converter supports USB to 2-way RS232 + 2-way RS232/485 original FT4232HL Raspberry Pi 2-Channel Isolated CAN Bus Expansion HAT Dual Chips Solution Built-In Multi Protections