Skip to content
Free IDE

← Components

Active buzzer

It has an oscillator inside: just drive the pin high to play a fixed tone. It has polarity: the + goes to the GPIO and the − to GND.

Pinout

++−
PinConnect toNote
+GPIOlong leg / + mark
−GND
FastTeacherFor teachers

From the syllabus to a planned semester

  • Teaching plan and calendar built automatically
  • Class diary ready to paste into SIGA
  • Slides and exercise lists with answer keys
Meet FastTeacher

Free Community edition · Windows

MicroPython example

from machine import Pin
import time

buzzer = Pin(5, Pin.OUT)

buzzer.on()
time.sleep(0.3)
buzzer.off()

Specifications

ItemValueSource
Frequency2,300 ± 200 Hz (fixed tone)Datasheet active buzzer 12 mm 5 V (YMD-12095-G, typical of the part sold in Brazil)
Rated voltage4–8 V (5 V)Datasheet active buzzer 12 mm 5 V (YMD-12095-G, typical of the part sold in Brazil) — on a 3.3 V GPIO it plays quieter. Under review: measure
Current≤ 30 mADatasheet active buzzer 12 mm 5 V (YMD-12095-G, typical of the part sold in Brazil)

Values marked "Under review" will still be checked against the parts in the lab.

FastMindLocal AI assistant

The AI that remembers your life and lives on your computer

  • Long-term memory with the source of every answer
  • Works offline: your data stays on your PC
  • Reads PDFs, slides, photos and meeting recordings
Download free for Windows

Essential plan free forever

FastTeacherFor teachers

From the syllabus to a planned semester

  • Teaching plan and calendar built automatically
  • Class diary ready to paste into SIGA
  • Slides and exercise lists with answer keys
Meet FastTeacher

Free Community edition · Windows

FastMindLocal AI assistant

The AI that remembers your life and lives on your computer

  • Long-term memory with the source of every answer
  • Works offline: your data stays on your PC
  • Reads PDFs, slides, photos and meeting recordings
Download free for Windows

Essential plan free forever