Skip to main content

Buzzer


Introduction

Features

Buzzer:


Specifications

ItemParameter
NameBuzzer
SKUEF16007
ConnectionActuator
Operating Voltage4.15V
Product Size38.00mm×28.20mm (L×W)

Appearance and Dimensions


None


Quick Start

Hardware Connection Diagram


Usage Tutorials

Programming Software

Microsoft MakeCode

MakeCode Programming

Step 1: How to Add Jacdac Extension

  1. Go to Microsoft MakeCode and click "New Project".

  1. Enter the project name in the pop-up window and click "Create".

  1. Click "Extensions" in the code drawer.

  1. Enter "Jacdac" in the pop-up interface, click the search icon, and select the Jacdac library as shown.


Step 2:

  1. Connect the micro:bit to the computer with a data cable. Note: If the micro:bit runs a Jacdac program for the first time, please pre-install a blank Jacdac program on the micro:bit first; otherwise, skip this step.

  1. Connect the sensor. MakeCode will automatically recognize it and simulate its status in real time in the simulation area.

  1. Click "ADD BLOCKS" for the sensor extension module. Note: When connecting a new sensor, repeat the operation of clicking "ADD BLOCKS" for the sensor extension module.


Program Code Example


https://makecode.microbit.org/_bW1btg9VzLg9

You can also download and run it via the embedded link:


Result

When pressing button A on the micro:bit, the buzzer emits a sound.