Blocking capacitor? Driving 8 ohm .5 watt speaker with microcontroller
Whoever wrote that page is criminally wrong. The blocking capacitor is only an open to DC. The AC current will still be much higher than the AVR's absolute maximum. As a minimum, put a push pull buffer between the micro and speaker. I would rather see a low side switch.