Arduino Sine waves?


by elevfan7072
Tags: arduino, sine, waves
elevfan7072
elevfan7072 is offline
#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
New ultrasound device may add in detecting risk for heart attack, stroke
Enhanced ground control system and software for small unmanned aircraft
SensaBubble: It's a bubble, but not as we know it (w/ video)
berkeman
berkeman is offline
#2
Nov28-12, 04:10 PM
Mentor
berkeman's Avatar
P: 39,723
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
elevfan7072 is offline
#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
berkeman is offline
#4
Nov30-12, 12:39 PM
Mentor
berkeman's Avatar
P: 39,723

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
Borg is offline
#5
Jan1-13, 09:00 AM
PF Gold
Borg's Avatar
P: 729
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