Instructions

IDUINO for maker’s life
38 www.openplatform.cc
This module is similar with the Active Buzzer(Module 11), the only difference is that this
module only can be driven square wave signal, not DC signal.
2 pinout
Pin
Description
S
Signal input pin, which can be driven by
square wave signal
+
Power(3.3V/5V), you may not see this mark
on the board, it’s the middle pin
-
Ground
3 Example
Here is a example that driven the Passive buzzer sound. The connection as below:
********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