Go Down

Topic: Analog Input Waveform (Read 1 time) previous topic - next topic

Tanner R Smith

Hi all,

I'm looking at the arduino for a little project of mine, but I'm not sure if the arduino will work for me.

What I need to do is analyze a waveform (sine wave not reaching higher than ~1000hz) and get the frequency and amplitude?

Could this work on arduino? Is the sampling rate of the analog inputs fast enough?

Thanks
-Tanner

Papabravo

The ATmega328 datasheet allows a fairly wide range of clockspeeds for the A/D converter.  You can always trade speed for resolution.  It lists conversion times in the 13-260 microsecond range.
We never have time to do it right; but we always have time to do it over.

retrolefty

#2
Sep 14, 2009, 02:36 am Last Edit: Sep 14, 2009, 02:37 am by retrolefty Reason: 1
Analyzing the frequency will be the more difficult part. Not only do you require sufficient sampling speed but also a lot of hefty math functions. The 8 bit AVR chips may not be the best choice for that kind of application. There are micro-controller chips from TI and PIC that have special purpose DSP hardware on chip and are a better match for this kind of stuff.

Not saying it can't be done on a Arduino, but I'm sure it won't be a walk in the park getting the code to work.  ;)

Lefty

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