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.


Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy