3.5-5.5V Standard Passive Buzzer Module For Arduino
Specification:
Working voltage: 3.5-5.5VWorking current: !#!amp!*!lt;25mAPCB Dimension: 18.5mm x 15mm(L x W)
Feature:
No oscillation source, need square wave (frequency 2K-5K ) to drive.Sound frequency control, you can make a !#!amp!*!quot;do re mi fa sol la si!#!amp!*!quot; effect.
Package included:
1 x Standard Passive Buzzer Module
ARDUINO reference source programme:
int buzzer=8;\/\/ Set the control the buzzer digital IO pinvoid setup(){pinMode(buzzer,OUTPUT);\/\/ Setting the digital IO pin mode , OUTPUT is Wen out}void loop(){unsigned char i,j;\/\/ Define the variablewhile(1){for(i=0;i!#!amp!*!lt;80;i++)\/\/ Wen a frequency sound{digitalWrite(buzzer,HIGH);\/\/ Sounddelay(1);\/\/delay 1msdigitalWrite(buzzer,LOW);\/\/Not sounddelay(1);\/\/ delay 1ms}for(i=0;i!#!amp!*!lt;100;i++)\/\/ Wen out another frequency sound{digitalWrite(buzzer,HIGH);\/\/ Sounddelay(2);\/\/delay 2msdigitalWrite(buzzer,LOW);\/\/ Not sounddelay(2);\/\/delay 2ms}}}After downloading the program, the buzzer experiments are finish.