• 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 Development Board WiFi+Bluetooth Ultra Low Power Dual Core ESP 32S ESP 32 Similar ESP8266 CAN Analyzer i7-1165G7 Raspberry Pi Camera Module 3 Sensor Assembly IMX708 Official Original 11.9MP Camera ESP32 IR Thermal Imaging Camera Raspberry Pi 5 Camera User Guide User Guide Milk V Duo Raspberry Pi 5 PCIe to 2-CH PCIe FFC Dual PCIe HAT Board Pi5 Double 0.85inch Screen Industrial RJ45 Ethernet To 16-ch Relay Module Modbus RTU TCP With Protection and guide rails Arduino Board Managers Tutorial User Guide RP2040-PiZero Jetson Nano Development Kit JETSON-NANO-DEV-KIT Replace For Jetson-Nano-Developer-Kit-B01 Attitude Sensor Computer Monitor Screen Raspberry Pi Monitor Official Original DisplayScreen 15.6 inch LCD Full HD 1920x1080 15.6inch Retail electronic Tag Raspberry Pi Pico 2 RP2350B 3.49-inch capacitive TouchCcree 3.49inch LCD display development board 172×640 AURORA AI Laser Radar And Dual Eye Camera IMU Integrated Positioning Map For Android/ROS+RoboStudio