Arduino Forum

Forum 2005-2010 (read only) => Software => Syntax & Programs => Topic started by: stungeye on Nov 17, 2006, 04:34 pm

Title: Setting Analog Read Sample-Rate
Post by: stungeye on Nov 17, 2006, 04:34 pm
Hi,

I would like to sample one of the A/D pins at a fixed rate of 512Hz, (the data then being sent out via USB).

Do I need to resort to interrupts to guarantee the timing?

Thanks,
wg
Title: Re: Setting Analog Read Sample-Rate
Post by: macsimski on Nov 30, 2006, 12:08 am
you could use a external clock to trigger the measure. like a simple rough 555 timer. the hickup is the serial interface. it will mess up your internal timing