Interfacing of the Active Buzzer with Arduino

Components
Code Compiler
const int buzzer = 11;

void setup() {
pinMode(buzzer,);
}

void loop() {
tone(,1000);
delay(15);
noTone(buzzer);
delay(15);
}

© 2024 | Virtual Labs, IIT Roorkee