• 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 S3 Development Board 1.9 inch LCD Capacitive Touch Screen 1.9inch Display 170×320 N16R8 Core3566104000 USB CAN Analyzer ESP32-S3 LCD Raspberry Pi Display Driver Board Raspberry Pi 5 DSI User Guide Raspberry Pi Pico 2 Plus RP2350 Board RP2350A Core3566102000 Pi5 Power Raspberry Pi Prism Raspberry Pi display Raspberry Pi Transparent Screen Raspberry Pi 13.3 inch FHD Monitor LCD 1080P Capacitive TouchScreen Display Type-C/HDMI For Computer PC Omni-Directional Lidar Raspberry Pi OpenWrt Tutorial 2 ADXL354C Evaluation Board Raspberry Pi Pico 2 RP2350A 1.54inch TouchScreen 1.54 inch ePaper Display Development Board 200×200 Industrial Modbus POE ETH RJ45 To Relay 30CH RTU/Modbus TCP-Ethernet For IOT Raspberry-Pi-A7670E-GSM-GPRS-GNSS-LTE-Cat-1-2G-A-User-Guide Raspberry Pi Camera Module 3 Sensor Assembly IMX708 Official Original 11.9MP Camera