Skip to content
Free IDE

← Components

Passive buzzer

No oscillator: it only plays when given a wave. The tone is the frequency of the PWM you generate, so you can play notes and songs.

Pinout

++−
PinConnect toNote
+GPIO (PWM)
−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, PWM
import time

buzzer = PWM(Pin(5), freq=440, duty_u16=32768)  # A (440 Hz)
time.sleep(0.5)
buzzer.deinit()

Specifications

ItemValueSource
Toneequal to the PWM frequencyTypical datasheet values

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