Axiometa
Active Buzzer
Active Buzzer
SKU:AX22-0012
Regular price
$1.99
Regular price
Sale price
$1.99
Unit price
per
Taxes included.
Shipping calculated at checkout.
Couldn't load pickup availability



-
Pinout
-
Interface
PCB Design
-
Top
-
Bottom
Arduino Example Code
const int buzzerPin = 15; // Pin connected to the buzzer
// Notes (in Hz) for the song
const int NOTE_E4 = 330;
const int NOTE_D4 = 294;
const int NOTE_C4 = 262;
const int NOTE_G3 = 196;
// Song melody and note durations (4 = quarter note, 8 = eighth note, etc.)
int melody[] = { NOTE_E4, NOTE_D4, NOTE_C4, NOTE_D4, NOTE_E4, NOTE_E4, NOTE_E4,
NOTE_D4, NOTE_D4, NOTE_D4, NOTE_E4, NOTE_G3, NOTE_G3 };
int noteDurations[] = { 4, 4, 4, 4, 4, 4, 2,
4, 4, 2, 4, 4, 2 };
void setup() {
// No setup required for the buzzer
}
void loop() {
for (int i = 0; i < sizeof(melody) / sizeof(melody[0]); i++) {
int duration = 1000 / noteDurations[i]; // Convert note duration to milliseconds
tone(buzzerPin, melody[i], duration); // Play the note on the buzzer
delay(duration * 1.3); // Pause between notes (1.3x duration for spacing)
noTone(buzzerPin); // Stop the tone
}
delay(100); // Delay before repeating the song
}
Guides and Blogs
-
First time setup
Pair text with an image to focus on your chosen product, collection, or blog post. Add details on availability, style, or even provide a review.
-
Automatic Street Lights
Pair text with an image to focus on your chosen product, collection, or blog post. Add details on availability, style, or even provide a review.
-
How Does an LDR work ?
Pair text with an image to focus on your chosen product, collection, or blog post. Add details on availability, style, or even provide a review.