Sensor:bit is a breakout board based on micro:bit. It extends all available I/O ports on micro:bit with individual pin breakouts. With this board, you can connect various 3V electric components like LED lights, photocell, etc..
The board has an integrated buzzer and an audio jack, which allows you to hear music from the buzzer or with headphones.
Definition of Pins
Introduction of Major Components
Headphone is controlled by P0 port. Plug in your headphone, the buzzer will disconnect automatically.
The buzzer is controlled by P0 port. Plug in your headphone, the buzzer will disconnect automatically.
16 Channel Standard GVS Port
This is a standard GVS interface with 16 channels. It can extend 3V electric brick module.
This is a group of I2C female header, which can connect with OLED module directly.
This is a group of I2C male header.
Plug your micro:bit into sensor:bit.
Navigate to the programming interface of Makecode online editor. Write your code to make the buzzer on sensor:bit play music.
You can see the whole program from the link here: https://makecode.microbit.org/_3At2iE5Ue3XK
Or you can download it from the page below:
Press button A on micro:bit, the buzzer starts to play music. Plug in your headphone to sensor:bit, the buzzer stops playing music, and you can hear the music through your headphone.
1 x sensor:bit