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-6742613078f9c137644173/]
Download the core here | 14CoreBuzzer
Starter #6 Using Buzzer in Arduino Sample Code