ok now i have a working arduino sketch and build the circuit on a breadboard.
now i want to control the frequency with a potentiometer.
there is a lin in the code like this dfreq=analogRead(0); // reading on analog pin 0
so my question is, the value is written every second, but i want to have a continuous frequency control, so i got rid of these lines
if(icnt1++ == 10) {
}
and incremented c4ms++ every time the interupt gets called, instaed of increment it every 4 milliseconds.
but the output sounds strange.
http://webuser.uni-weimar.de/~atix5565/arduino/test_sound.wav (dont watch the first 2 seconds)
there are these interupt sound.
how can i get rid of them?
thanks for your answers.
greetings peter.