Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Connor Nishijima
Published © GPL3+

Tone() with 8-bit Volume Control - No Extra Components!

Using ultrasong PWM frequencies, the Arduino can now produce square tone() waves with 256 volume levels with nothing but a speaker!

BeginnerFull instructions provided30,170
Tone() with 8-bit Volume Control - No Extra Components!

Things used in this project

Story

Read more

Schematics

Hookup Guide

Code

Volume Library

The Volume library is also available through the Arduino Library Manager!

Credits

Connor Nishijima
3 projects • 15 followers
I'm a bit of a cheapass. You might know me from adding motion detection and 10-bit volume control to AVR uCs with NO components.
Contact

Comments

Please log in or sign up to comment.