Register to reply

Arduino Sine waves?

by elevfan7072
Tags: arduino, sine, waves
Share this thread:
elevfan7072
#1
Nov28-12, 01:15 PM
P: 4
Is it possible for an Arduino to produce a sine wave to a piezoelectric buzzer?
Phys.Org News Partner Engineering news on Phys.org
Creative adaptation of a quadcopter
Filling up could cost less thanks to biomolecular engineering breakthrough
Tesla says decision on battery factory months away
berkeman
#2
Nov28-12, 04:10 PM
Mentor
berkeman's Avatar
P: 40,740
Quote Quote by elevfan7072 View Post
Is it possible for an Arduino to produce a sine wave to a piezoelectric buzzer?
Some piezo buzzers only need a DC input. What are the specs of your piezo buzzer?

You could use an R-2R ladder DAC arrangement, connected to some of the uC's IO lines. Then use a look-up table in the uC to drive a sine wave out the DAC. You may need to buffer that DAC output with an opamp to drive the buzzer, depending on the current required.
elevfan7072
#3
Nov30-12, 12:33 PM
P: 4
Quote Quote by berkeman View Post
Some piezo buzzers only need a DC input. What are the specs of your piezo buzzer?

You could use an R-2R ladder DAC arrangement, connected to some of the uC's IO lines. Then use a look-up table in the uC to drive a sine wave out the DAC. You may need to buffer that DAC output with an opamp to drive the buzzer, depending on the current required.
I don't have one yet. When it says (?? hz), does that mean what it's capable of, and not what it actually produces?

berkeman
#4
Nov30-12, 12:39 PM
Mentor
berkeman's Avatar
P: 40,740
Arduino Sine waves?

Quote Quote by elevfan7072 View Post
I don't have one yet. When it says (?? hz), does that mean what it's capable of, and not what it actually produces?
Can you post a datasheet that you are looking at?

I'm guessing that you put a DC voltage across it, and it produces a tone of that specified frequency (probably with some harmonics too...).
Borg
#5
Jan1-13, 09:00 AM
PF Gold
Borg's Avatar
P: 760
A little late but are you you looking for something like this?
Arduino tone example


Register to reply

Related Discussions
Sine waves Introductory Physics Homework 6
Sine waves Introductory Physics Homework 2
Square waves sine waves etc(signal propagation) Electrical Engineering 9
Sine waves General Math 6
Sine waves General Physics 7