Pages: [1]   Go Down
Author Topic: Sound Generation  (Read 1095 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 8
Posts: 250
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25770
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you looked at the Tone library?
Logged

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

Offline Offline
Sr. Member
****
Karma: 8
Posts: 250
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25770
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
But would it be possible to make it so that the frequency (pitch) would be controlled by a potentiometer?
Yes, of course.
Logged

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

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 602
Posts: 33362
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Offline Offline
Sr. Member
****
Karma: 8
Posts: 250
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: