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

skiiiD - Easiest way to code Buzzer HW508 on Arduino.

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

https://www.instructables.com/id/Getting-Started-W...

Launch SkiiiD

1.png

Launch skiiiD and select New button

Select Arduino UNO

2.png

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

3.png

Click '+' (Add Component Button) to search and select the component.

Search or Find a Component

4.png

① Type 'Buzzer' on the search bar or find the Buzzer module on the list.

Select Buzzer

5.png

② Select Buzzer

Pin Indication and Configuration

6.png

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

7.png

⑤ Added Module has appeared on the right panel

SkiiiD Code of Passive Buzzer HW-508(or KY-006)

8.png

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.