Close

10-bit Component-less Volume Control for Arduino!

Back to project overview

Using PWM at an ultrasonic frequency, I've given Arduino 10-bit volume control for Tone() generation using nothing but the speaker.

Discussions

napo7 wrote 06/13/2016 at 13:21 point

Awesome !

I need such a thing to drive a speaker (to be a metronome) on a DIY eDrum. 

I'd like to drive it via a transistor , to allow more current than the 20mA allowed by the Atmega ? Is that possible ?

  Are you sure? yes | no

Connor Nishijima wrote 06/13/2016 at 18:47 point

Should be fine! The high-speed PWM frequency used is 62,500Hz, which is higher than your hearing range, and lower than the upper limits of most transistors. :) 

  Are you sure? yes | no