Interrupts

Robin2:
That seems to be a problem for what goes inside the mythical makeSound() function in my pseudo code. I'm afraid I know little or nothing about making sine waves.

I think the general approach that I suggested remains relevant.

...R

another problem i am having is i tried 1-Bit DAC but it works on pin 9 (or i think can work on pin 10) since both these pins are controlled by timer1 where the conflict arises as the servo library also uses these pins to control the servos. so i can either use the servos or generate sound not both.