Pages: [1]   Go Down
Author Topic: Is it possible to generate 5-10Hz sine wave?  (Read 1188 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 70
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

BCC AZ USA
Offline Offline
Edison Member
*
Karma: 33
Posts: 1133
It gets hot so it must be working
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Connecticut, USA
Offline Offline
Full Member
***
Karma: 8
Posts: 180
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This works well:
http://interface.khm.de/index.php/lab/experiments/arduino-dds-sinewave-generator/
Logged

It's all about the skills

Pages: [1]   Go Up
Jump to: