Go Down

Topic: Will I blow my speaker up? (Read 1 time) previous topic - next topic

Nick Gammon

Well I have the speakers now (they were shipped "in a bunch" with the magnets holding them together).

So whilst I hardly need "audio quality" I am hoping for audibility, and not either blowing up the speaker or the Atmega.

Nick Gammon

Just to report back - I hooked up the speaker in series with a 33 uF capacitor and then a 33 ohm resistor, and connected it to pins 8 and Gnd. Then the toneMelody sketch worked OK.


Glad it's working, however if you leave it like that you may damage the mcu because the abs max rated output current per pin is 40mA. 150 ohm instead of 33 ohm would be OK.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Go Up