Go Down

Topic: Is it possible to generate 5-10Hz sine wave? (Read 1 time) previous topic - next topic

martin159

Hello,
I would like to try generate sine wave on Arduino. Output will be connected through an amplifier (500W) to subwoofer.
I looked at Tone function, but in description is: Generates a square wave of the specified frequency (and 50% duty cycle) on a pin.
Does exist any function or I must generate sinus wave by DA converter?

groundfungus

You can apply a low pass filter to a PWM signal to get an analog voltage then vary the PWM via a table or math to get a sine.  That is the only way that I know with a UNO.  There are, I believe, other boards with DAC.  You could also go with one of the SPI or I2C DACs.

elac

It's all about the skills

Go Up