How to Use Buzzer HW-508 With SkiiiD
by skiiiD in Circuits > Arduino
3296 Views, 0 Favorites, 0 Comments
How to Use Buzzer HW-508 With SkiiiD
This project is an instruction of "how to use Buzzer HW-508(applicable for KY-006) with Arduino via skiiiD
Before start, below is a basic tutorial for how to use skiiiD
Launch SkiiiD
Launch skiiiD and select New button
Select Arduino UNO
Select ① Arduino Uno and then click ② OK button
*This is Tutorial, and we use Arduino UNO. Other boards(Mega, Nano) have the same process.
Add Component
Click '+' (Add Component Button) to search and select the component.
Search or Find a Component
① Type 'Buzzer' on the search bar or find the Buzzer module on the list.
Select Buzzer
② Select Buzzer
Pin Indication and Configuration
then you can see ③ pin indication. (You can configure it.)
*This module has 2 pins to connect
skiiiD Editor automatically indicate pin setting *configuration available
[Default Pin Indication for HW-508 (or KY-006) Passive Buzzer] in case of Arduino UNO
Signal: 3
NC: NONE (Don't have to connect)
GND: GND
After configuring pins ④ click ADD button on the right below side
Step 7: Check Added Module
⑤ Added Module has appeared on the right panel
SkiiiD Code of Passive Buzzer HW-508(or KY-006)
skiiiD Code is intuitive function-based codes. This is based on skiiiD libraries.
skiiiD auto-complete feature shows skiiID codes
on() - Turn on Buzzer ("Notes", Octave, DelayTime)
Example - ("C",4,200); = Play C Note 4th octave during 200ms
off() - Turn off Buzzer
examples() - Play a music as an example.
There are two pre-registered pieces of music. Put 1 or other numbers on the parenthesis.