Shop by category
Shop all componentsSensors & MCUs
Buzzer is above the recommended 20 mA. It works, but the pin voltage sags and the chip runs warmer.
ATmega328P datasheet: 40 mA absolute maximum per pin, 200 mA total through the VCC and GND pins. Stay at or under 20 mA per pin for long life.
Each pin: I ≤ pin limitAll pins together: Σ I ≤ chip limitTwo LEDs at 15 mA, a 30 mA buzzer and a 5 mA relay input on an Uno add up to 65 mA, well under 200 mA, but the buzzer is above the 20 mA recommended per pin, so it should go through a transistor.
A microcontroller pin is a signal, not a power supply. Each pin has a current limit, and so does the chip as a whole, because every milliamp a pin delivers flows through the same few power pins inside the package.
Going over the limit rarely kills a chip instantly. Instead the pin voltage sags, readings become noisy and the chip slowly wears out. Anything heavier than an indicator LED (motors, relay coils, buzzers, LED strips) belongs behind a transistor, MOSFET or driver module.
40 mA is the absolute maximum, and 20 mA is the safe continuous figure. The whole ATmega328P should stay under 200 mA through its VCC and GND pins.
The RP2040 drives 4 mA per pin by default and can be set to 12 mA. Keep all GPIO together under about 50 mA.
No. Use a relay module with a transistor driver, or a MOSFET or motor driver, and let the pin only switch it.
Each pin: I ≤ pin limit; All pins together: Σ I ≤ chip limit.
Two LEDs at 15 mA, a 30 mA buzzer and a 5 mA relay input on an Uno add up to 65 mA, well under 200 mA, but the buzzer is above the 20 mA recommended per pin, so it should go through a transistor.
Geekobot builds that use it include Alternator charging check light, Darlington touch switch, Letterbox flap notifier and Battery gauge with an OLED. Each has the full parts list, wiring and code.
Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators