Sound Generation

Hi
How would it be possible to use an Arduino to generate a constant frequency wave?

I would like to build such a device where i could control the frequency with a know and maybe even see what frequency it is on a LCD.
I am a real beginner just getting my hands into the electronics and micro controllers world, so any help would be very appreciated!

Thank you

Have you looked at the Tone library?

actually i didn't think about it before. Thanks!

I went to take a look now and i saw there is a Tone Generation Library. It seems to me with it we are able to produce certain frequencies, like for instance the musical notes we are used to.
But would it be possible to make it so that the frequency (pitch) would be controlled by a potentiometer? That would be great. Any ideas on how to do it?

I am trying to achieve somethings like this:

i also saw that there are several libraries about LCDs.

But would it be possible to make it so that the frequency (pitch) would be controlled by a potentiometer?

Yes, of course.

Any ideas on how to do it?

Read the value from the pot and use that value as an input paramater to the tone function.

Hey, thanks guys...

I have actually realized that this is maybe a bit overkill at this moment to try this project.
So i have decided to build another project following someone else's plans (http://www.jdeboi.com/portfolio/electronics.html )

After, hopefully after learning a thing or two (or 50 :smiley: ) i will come back to this...
=)