Buzzer
Peizo Buzzer Sound Generator
- Overview
- Driver
- Tethered
- Standalone
Use this peizo buzzer to generate tones and simple melodies. Sound an alarm, play a melody when a task is finished or even generate noises!
Key features • Frequency Range 200Hz to 10Khz | Resources PID: 0x070001 |
See Drivers page for further details.
| Function | Description |
|---|---|
PlayBeep(f, d) | Play beep, (f: frequency, d: duration in ms). |
PlaySound(f, d, c) | Play sound, (f: frequency, d: duration in ms, c: duty cycle). |
PlayMelody(a1) | Play melody. a1 is a float array, (odd elements: frequency, even elements: duration). |
StopMelody() | Stop melody. |
DVer() | This driver version. |
The Code!
Buzzer Driver
loading...
These Tethered samples assume the driver is installed, see the Driver Tab.
- Python
- MicroPython
- JavaScript
- .NET
Python Sample
loading...
MicroPython Sample
loading...
JavaScript Sample
loading...
.NET Sample
loading...
These samples show how to run DUELink Standalone.
- Script
- Arduino
This example runs using the default DUELink Internal Engine using its Scripting Language, and it expects the driver to be loaded first, see the Driver Tab.
Standalone Script Sample
loading...
See Arduino page for more info.
Standalone Arduino Sample
loading...
Ordering Info
| Product | Part Number | Price |
|---|---|---|
| DUELink Buzzer | GDL-SOBUZZER-B | $5.95 |