+21622886281
Buzzer Micro:bit

Use the buzzer with Micro:bit

Purpose of this tutorial:

The goal of this tutorial is to find out how to use the buzzer with micro: bit: When you press button A, the buzzer emits a sound. When you press button B, the buzzer stops the sound emission.

Components required

  • Micro:bit card
  • buzzer
  • Micro:bit GPIO Expansion Board (for mounting 1)
  • connecting wires 

Mounting

The assembly consists in connecting the terminal (+) of the buzzer to pin P0 and the terminal (-) to the GND of the micro: bit.

There are several mounting methods.

Mounting (1)

Mounting (2)

Makecode program

Here is the makecode program which makes it possible to emit a sound from the buzzer when the A button of the micro: bit is pressed.




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top