Show Posts
Pages: [1]
1  Using Arduino / Project Guidance / Re: toggle a pin at high frequency on: July 08, 2011, 03:11:20 pm
The first code by BenF worked! I included the code in the setup function and it ran beautifully. It's exactly what I needed, I'm getting fairly square pulses at almost 8Mhz (according to the oscilloscope).
 I really appreciate your help.


2  Using Arduino / Project Guidance / Re: toggle a pin at high frequency on: July 08, 2011, 02:45:44 pm
Thanks all for your responses. I understand Arduino is not ideal for these kind of things, but it's the only thing I have at hand and it would take me weeks to get other components down to Argentina (where I am).
Thanks BenF for the code. I have a question though. So far I always used code in the regular way with arduino (void setup then void loop, etc).Your code looks quite different, how should I upload your code to the board?
Since we are on this topic, any ideas about good tutorials on the use of the timer1 library, something for beginners?
Thanks again
3  Using Arduino / Project Guidance / toggle a pin at high frequency on: July 08, 2011, 11:27:32 am
Hi, I'm trying to use the arduino board (duemilanove) to generate a high frequency signal to test an amplifier. The signal should be in the Mhz range and I know Arduino can handle up to 8 Mhz with short codes based on other posts. However I'm quite a newbie and couldn't get anything to work even with the Timer1 example code. Can anyone suggest me how to start with this or pass me a simple code that will toggle any pin at over 1Mhz?
(the waveform of the signal doesn't really matter right now)
Many Thanks!
Pages: [1]