Hi,
Can anyone help me to understand how I can use the arduino to produce a simple tone on an 8 ohm speaker that has the volume modulated by a pot and the frequency modulated by an IR sensor. I know how to hook the sensors up and can read them into the arduino and have been able to produce a steady tone using the analodWrite command.. but I can't seem to figure out how to adjust the frequency or the volume of that tone. I have looked at the tutorials but they are all for playing melodies and I get lost in the code.
Any help is appreciated,
Dave