Go Down

Topic: Sound Generation (Read 1 time) previous topic - next topic

boguz

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

AWOL

Have you looked at the Tone library?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

boguz

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:
http://www.youtube.com/watch?v=AS67HA4YMCs&feature=related

i also saw that there are several libraries about LCDs.


AWOL

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

Yes, of course.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Grumpy_Mike

Quote
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.

boguz

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  :D  ) i will come back to this...
=)

Go Up