Arduino Sine Wave: Piezo Buzzer Possible?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 6K views
elevfan7072
Messages
4
Reaction score
0
Is it possible for an Arduino to produce a sine wave to a piezoelectric buzzer?
 
Engineering news on Phys.org
elevfan7072 said:
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.
 
berkeman said:
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?
 
elevfan7072 said:
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...).
 
A little late but are you you looking for something like this?
http://arduino.cc/en/Tutorial/tone