Hw-508 Small Passive Buzzer Module Applicable For Ky-006 In Pakistan

 90
Talha88001@
Out stock

Out of stock

Category:

Description

Passive Buzzer Module is a built-in construction of digital transducers, DC energy provides, extensively utilized in computer systems, printers, copiers, alarms, digital toys, car digital apparatus, phones, timers and different digital electronics projects for Alert sound.

This PCB Mounted Passive Buzzer Module can produce a range of sound tones depending on the input frequency, i.e it can generate tones between 1.5 to 2.5 kHz by switching it on and off at different frequencies either using delays or PWM.

This module is ideally suited to adding noise to your project and is compatible with a pin pitch of 2.54mm while functioning with microcontrollers such as the Arduino. This module lets you respond to programmatic changes with a lovely annoying buzzer that can be altered over a range of frequencies to ensure maximum irritation.

To operate the I/O pin must receive a square wave to trigger the buzzer. This can be produced within all popular microcontrollers.


The following Arduino Sample sketch will generate two different tones by turning on and off the buzzer at different frequencies using a delay.

int buzzer = 8; // set the buzzer control digital IO pin 
void setup() { 
pinMode(buzzer, OUTPUT); // set pin 8 as output
 }
void loop() { 
for (int i = 0; i < 80; i++) { 
     digitalWrite(buzzer, HIGH); // make a sound
     delay(1); // send high signal to buzzer
     digitalWrite(buzzer, LOW); // delay 1ms
     delay(1); // send low signal to buzzer 
                             }
 delay(50);
 for (int j = 0; j < 100; j++) { 
     digitalWrite(buzzer, HIGH);  //make another sound 
     delay(2);
     digitalWrite(buzzer, LOW); // delay 2ms 
     delay(2);
                               }
 delay(100); 
}

Reviews

There are no reviews yet.

Be the first to review “Hw-508 Small Passive Buzzer Module Applicable For Ky-006 In Pakistan”

Your email address will not be published. Required fields are marked *