HOME   |   STORE   |   SCHEMATICS   |   DOWNLOADS   |   CONTACT  

Circuit-Zone.com - Electronic Projects



Arduino Sinewave Generator
Posted on Wednesday, May 25, 2011   •   Category: Arduino

Arduino Sinewave Generator

Arduino Sine wave Generator using the direct digital synthesis Method. Here we describe how to generate sine waves with an Arduino board in a very accurate way. Almost no additional hardware is required. The frequency range reaches form zero to 16 KHz with a resolution of a millionth part of one Hertz! Distortions can be kept less than one percent on frequencies up to 3 KHz. This technique is not only useful for music and sound generation another range of application is test equipment or measurement instrumentation. Also in telecommunication the DDS Method is useful for instance in frequency of phase modulation (FSK PSK).

The DDS Method (digital direct synthesis). To implement the DDS Method in software we need four components. An accumulator and a tuning word which are in our case just two long integer variables, a sinewave table as a list of numerical values of one sine period stored as constants, a digital analog converter which is provided by the PWM (analogWrite) unit, and a reference clock derived by a internal hardware timer in the atmega. To the accumulator , the tuning word is added, the most significant byte of the accu is taken as address of the sinetable where the value is fetched and outputted as analog value bye the PWM unit. The whole process is cycle timed by an interrupt process which acts as the reference clock. Further details of the DDS Method are described in web of course.

     Arduino Breadboard Clone
     Two Wire I2C Arduino LCD Display
     Arduino RF link using 433MHz Transmitter / Receiver modules
     Arduino AVR In System Programmer
     Using RF 433MHz Transmitter / Receiver Modules With Arduino
     Arduino Prototype
     Arduino Battery Saver - Watchdog and Sleep Functions
     Arduino Sinewave Generator
Arduino Sinewave Generator

 

Build Accurate LC Meter and start making your own coils and inductors. This LC Meter allows to measure incredibly small inductances making it perfect tool for making all types of RF coils. LC Meter can measure inductances starting from 10nH - 1000nH, 1uH - 1000uH, 1mH - 100mH and capacitances from 0.1pF up to 900nF. The circuit includes an auto ranging and reset function to make sure the readings are as accurate as possible ... [more]



Circuit-Zone.com © 2007-2024. All Rights Reserved.

AC / DC Innveters
AM Radio
Amplifiers
Antennas
Arduino
Audio Attenuators
Audio DAC
AVR
Battery Chargers
CNC Milling Devices
Counters / Frequency Meters
Fluorescent Lamps
FM Radio / Receivers
FM Transmitters
Frequency Wave Generators
Headphone Amplifiers
iPOD Hacks
LC Meter
LED
Miscellaneous
Motor Controllers
MP3 Players
Oscillators
Oscilloscopes
PC Circuits
PCB
Phone Circuits
PIC
PLL Circuits
Power Supplies
RC Servo Motors
Remote Control
RF Radio Frequency
Robots
Sensors
Solar Circuits
Stepper Motors
Stereo Encoders
Test and Measurement
Timer Circuits
TV Transmitters
USB Circuts
USB Interface Adapters
USB Soundcards / USB Headphones
Video
Volume Control