Sample Source code how to use a buzzer connected to Arduino,
Electronic Parts you need
1x Arduino Uno / Mega / Pro
1x Buzzer or Beeper
[crayon-6855519e9a42b091171807/]
Download the core here | 14CoreBuzzer
Starter #6 Using Buzzer in Arduino Sample Code