hi. what will be the circuit for an active buzzer connected with a switch using arduino mega? at 5 volts
If it's an active buzzer, then all you need to do is connect it to a battery and it will make noise. Unlike a simple piezo (or magnetically driven diaphragm for that matter) buzzer, you don't need an Arduino to generate the frequency.