PWM sound Tutorial


Posted on Feb 6, 2014

Here we demonstrate the use of an Arduino PWM output pin to generate sound. The output pin can be toggled very quickly from LOW to HIGH generating a square wave. If the frequency of this square wave is within the range of 20-20, 00Hz and sent directly into a Piezo Speaker, an audible tone will be produced (in reality, the range of output is limited


PWM sound Tutorial
Click here to download the full size of the above Circuit.

by the specs of the speaker and does not cover the entire audible frequency range. ) This tutorial covers three sound output schemes: first is the method with the Piezo Speaker connected directly to the Arduino output pin. The second uses a low pass filter to transform the square wave to a line level signal that can be used with standard audio equipment. The third output scheme uses a TDA7052 amplifier (8-DIP) chip with volume control and sends the audio signal into a small 8 OHM speaker.




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Narrow-band-fm-receiver
    RGB LED experiment Arduino
    3V to 24V Variable Power Supply
    PIC micro Tetris game
    Serial Interface LCD circuit
    Easy Debugging Terminal
    Phono Preamplifier
    Electronic Canary
    Port-O-Rotary
    Long-range high-frequency transistor FM transmitter circuit diagram
    STK4040x1 made HI-FI amplifier circuit
    CP2128 white LED driver circuit



    Top