Concept Flow - Passive vs active buzzer difference
Start
Choose Buzzer Type
Connect to Power
→Sound ON
Send Signal from Arduino
→Sound ON
End
The flow shows choosing between active and passive buzzers, then how each is powered and produces sound.
int buzzerPin = 9; void setup() { pinMode(buzzerPin, OUTPUT); } void loop() { tone(buzzerPin, 1000); // Passive buzzer sound delay(1000); noTone(buzzerPin); delay(1000); }
| Step | Action | Buzzer Type | Signal Sent | Sound Produced |
|---|---|---|---|---|
| 1 | Setup pinMode to OUTPUT | Passive | No | No |
| 2 | Call tone(9, 1000) | Passive | Yes (1000 Hz) | Yes (Sound ON) |
| 3 | delay(1000) | Passive | Signal continues | Sound ON for 1 sec |
| 4 | Call noTone(9) | Passive | No | Sound OFF |
| 5 | delay(1000) | Passive | No | Sound OFF for 1 sec |
| 6 | Repeat loop | Passive | Yes (1000 Hz) | Sound ON again |
| Variable | Start | After tone() | After delay(1000) | After noTone() | After delay(1000) | Loop Repeat |
|---|---|---|---|---|---|---|
| buzzerPin | 9 | 9 | 9 | 9 | 9 | 9 |
| Sound State | OFF | ON | ON | OFF | OFF | ON |
Passive buzzer needs a signal (like tone()) from Arduino to make sound. Active buzzer has built-in sound generator, just needs power. Use tone() and noTone() for passive buzzers. Active buzzers sound with simple HIGH voltage. Choose buzzer type based on your project needs.