Generating a 2kHz sine wave

Hi everyone, I'm completely stumped with this project. I'm trying to generate a 2kHz sine wave and output it through an LED, while also logging the voltages to an SD card. I've figured out how to log everything to an SD card, but I've hit a wall trying to figure out the sine wave - I haven't figured out how to generate anything even close to 2kHz, and I really have no idea where to go with this. I know that isn't much to go off of; I'm still a beginner, so any help would be greatly appreciated!

http://interface.khm.de/index.php/lab/experiments/arduino-dds-sinewave-generator/

Two things,

1, can you really read and log the values of the wave (sine or not), if so how many times per second?

2, why the **** are you trying to use the Arduino to generate a sine wave - it may come close with a lot of work - when you con do it with a few very very very cheap external components (topic oscillator)?

Marki

Go and buy yourself a DUE ($50) which has two 10-bit DAC's and you won't need as many external components. You would still need the sine lookup table but everything else is a lot cleaner. -- Rob