
IDUINO for Maker’s life
Easy Passive Buzzer Sound Module (SE048)
1.Introduction
This module can make sounds by your HIGH signal , different high or low signal
frequency generate beautiful sounds. Its different from active buzzer module(SE047),
only the square wave signal can drive it. Because there is no built-in oscillation circuit
in this module, so the program is more complicated than the active buzzer module.
And, this module has integrated 3-pin terminal, which can be simply and tidily
connected with Arduino sensor expansion board, like the following picture:
www.openplatform.cc

IDUINO for Maker’s life
2 Pinout
3.Example
Wire connection as below:
Vcc-----------5V
Gnd-----------gnd
IN-----------D8
********Code begin********
int buzzer = 8 ;// setting controls the digital IO foot buzzer
void setup ()
{
pinMode (buzzer, OUTPUT) ;// set the digital IO pin mode, OUTPUT out of Wen
}
void loop ()
{
unsigned char i, j ;// define variables
while (1)
{
for (i = 0; i <80; i++) // Wen a frequency sound
{
digitalWrite (buzzer, HIGH) ;// send voice
delay (1) ;// Delay 1ms
digitalWrite (buzzer, LOW) ;// do not send voice
delay (1) ;// delay ms
}
for (i = 0; i <100; i++) // Wen Qie out another frequency sound
{
digitalWrite (buzzer, HIGH) ;// send voice
delay (2) ;// delay 2ms
digitalWrite (buzzer, LOW) ;// do not send voice
delay (2) ;// delay 2ms
}
}
}
********Code End*********
www.openplatform.cc