Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Arduino Sine waves?

  1. Nov 28, 2012 #1
    Is it possible for an Arduino to produce a sine wave to a piezoelectric buzzer?
     
  2. jcsd
  3. Nov 28, 2012 #2

    berkeman

    User Avatar

    Staff: Mentor

    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.
     
  4. Nov 30, 2012 #3
    I don't have one yet. When it says (?? hz), does that mean what it's capable of, and not what it actually produces?
     
  5. Nov 30, 2012 #4

    berkeman

    User Avatar

    Staff: Mentor

    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...).
     
  6. Jan 1, 2013 #5

    Borg

    User Avatar
    Science Advisor
    Gold Member

    A little late but are you you looking for something like this?
    Arduino tone example
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Arduino Sine waves?
  1. LM324 - Sine Wave (Replies: 3)

Loading...