Generate a sound wave tone and getting an output through gpio

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
monsieur_david
 
Posts: 8
Joined: Thu Nov 08, 2012 7:13 pm

Generate a sound wave tone and getting an output through gpio

Post by monsieur_david »

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!

spiceice
 
Posts: 4
Joined: Fri Dec 27, 2013 6:23 pm

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

Post by spiceice »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Beagle Bone & Adafruit Beagle Bone products”