Ks0018 keyestudio Digital Buzzer Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
(Created page with "==Introduction== Here is the simplest sound making module. You can use high/low level to drive it. Changing the frequency it buzzes can produce different sound. This module is...")
 
No edit summary
Line 15: Line 15:


==Sample Code ==
==Sample Code ==


<pre>
<pre>
Line 31: Line 30:
}</pre>
}</pre>


 
==Video==
http://www.keyestudio.com/wp/2016/05/ks0018-keyestudio-active-buzzer-module/


[[Category: Sensor]]
[[Category: Sensor]]

Revision as of 09:36, 30 September 2016

Introduction

Here is the simplest sound making module. You can use high/low level to drive it. Changing the frequency it buzzes can produce different sound. This module is widely used on your daily appliance, like PC, refrigerator, phones etc. And you can also create many interesting interactive project with this small but useful module. Just try it!! You will find the electronic sound it creates so fascinating.
thumb


Specification

  • Working Voltage: 3.3-5v
  • Interface Type: digital
  • Size: 30*20mm
  • Weight: 4g

Connection Diagram


thumb

Sample Code

int buzzPin =  3;    //Connect Buzzer on Digital Pin3
 void setup()  
 {        
  pinMode(buzzPin, OUTPUT);     
}
 void loop()                     
{
  digitalWrite(buzzPin, HIGH);
  delay(1);
  digitalWrite(buzzPin, LOW); 
  delay(1);        
}

Video

http://www.keyestudio.com/wp/2016/05/ks0018-keyestudio-active-buzzer-module/