This Passive Buzzer is rated at 5V 42 Ohms and provides an easy way to add simple audio output to your robot. While you can’t expect this tiny little speaker to produce orchestra quality sound, it works just fine for simple beeps and boops. You can even program your robot to play a little song to wish your best friend a happy birthday.
What makes this buzzer so nice is that it can be connected directly to a 5V microcontroller pin without additional hardware. And it’s breadboard friendly!
To use this buzzer with an Arduino, simply attach one pin to a digital output and the other pin to ground and “presto!” - your Arduino can now play simple tones. Use the Arduino “tone” function to make simple sounds or play around with PWM for more complicated sounds.
Every robot should be able to beep when it needs attention!