Generate a sound wave tone and getting an output through gpio
Moderators: adafruit_support_bill, adafruit

Generate a sound wave tone and getting an output through gpio

by monsieur_david on Sun Dec 23, 2012 9:40 pm

I am looking for examples on how to generate a sound wave and getting its output through one of the Bb many GPIO's by plugging in a piezo or a speaker. Ultimately, I'd like to generate different frequencies in a way that's akin to Arduino's Tone() function. Is this possible?
Thanks!
monsieur_david
 
Posts: 1
Joined: Thu Nov 08, 2012 6:13 pm

Re: Generate a sound wave tone and getting an output through

by spiceice on Fri Dec 27, 2013 5:46 pm

Hi,
remember that GPIO pins produce digital 1's and 0's, so you can use PWM to generate analog signals or connect your output gpio to DAC (digital to analog converter), check this too:

http://elinux.org/Beagleboard:BeagleBone_Black_Capes
spiceice
 
Posts: 4
Joined: Fri Dec 27, 2013 5:23 pm