Hello,I just recieved my Arduino Board and I am ready to try a project. I want to create a continuous squarewave or sinewave (<= 1.2 mhz) in order to excite an RLC circuit. Is that possible? I am a beginner with this system. Can someone lead me in the right direction or tell me if there is a sample?Thanks,Curtis

Sine wave, no way without external filtering circuit. However to just excite a RLC circuit a square wave should be fine. I don't know the maximum frequency the timers can be operated on but I think that it might be possible to output a 1.2Mhz digital signal. You will have to wait for one of the software gurus around here to verify if and how it would be coded.

Hello,I tried the code below and I get many errors coming from the "FrequencyTimer" library. Where do I put the downloaded library files? I changed my hardware to accept a square wave from 100 khz to 900 khz. Thanks, Curtis// SqrWave#include <FrequencyTimer2.h>

To install, unzip the library to a sub-directory of the libraries sub-directory of your Arduino sketchbook directory (shown in the Arduino preferences dialog). If this is the first library you've installed, you'll need to create the libraries directory. After unzipping the library, (re-)launch the Arduino environment; you should see the library in the Import Library menu.

If you are still getting errors after copying the library into the correct place, please say what Arduino version you are running, your operating system and post the first few lines of the error message.

Hello,Thanks for the reply. Here are the errors:This is one of the errors, they are all the same from different files in FrequencyTimer2:C:\Documents and Settingings\Intern10\Desktop\Arduino-0017\Hardware\Libraries\FrequencyTimer2\FrequencyTimer2.cpp: In 'Static Member Function Void FrequencyTimer2::SetOnOverFlow(Void(*)())':

There was also the same type of error in that file and the other 'TIMSK' was not declared in this scope.

#if defined(__AVR_ATmega328P__)// A mega328 is mostly like an mega168, in terms of peripherals#define __AVR_ATmega168__#endifDownload the latest version if yours does not have that code at the beginning.

If you are running the latest code, can you say what board are you using?