Arduino Sine waves?

  • #1
Is it possible for an Arduino to produce a sine wave to a piezoelectric buzzer?
 

Answers and Replies

  • #2
berkeman
Mentor
58,432
8,503
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.
 
  • #3
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?
 
  • #4
berkeman
Mentor
58,432
8,503
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...).
 
  • #5
Borg
Science Advisor
Gold Member
1,885
2,394

Related Threads on Arduino Sine waves?

Replies
12
Views
3K
Replies
5
Views
708
  • Last Post
Replies
11
Views
30K
  • Last Post
Replies
3
Views
2K
  • Last Post
Replies
10
Views
7K
  • Last Post
Replies
7
Views
8K
  • Last Post
Replies
7
Views
7K
  • Last Post
Replies
20
Views
1K
  • Last Post
Replies
9
Views
7K
  • Last Post
Replies
10
Views
7K
Top