In SX Microcontrollers, SX/B Compiler and SX-Key Tool, holdsthechains wrote: It would be attainable with a resistor ladder and a few different pins. That's what people mean by accomplishing something in hardware. changing the volume in software would be an alteration of the 5Vp-p waveform to produce those changes. Beau's idea is awesome, and you probably wouldn't be able to tell the difference in tone (the ear is a tricky thing) What is your application, and how many levels of volume do you need? P.S. the datasheet for your piezo speaker probably has an average figure for the resonant frequency of that specific speaker, you could start your search around there. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=128282#m128386 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)