In this video and article I have shared the code and details of how to interface buzzer with Arduino.

Detailed explanation of interfacing buzzer with arduino  is explained with all the files.