Timer interrupt

Hello Folks, I’m stuck in this. I want to write a program that should simply sample both FSR and EMG A\D outputs with a sampling rate of 100 Hz (using timer interrupts to do this rather than a “delay” loop).

Well worth looking at this article by Nick Gammon.

See blink without delay in the examples - the trick is called polling.

Mark

This may be similar to what you want too:

http://forum.arduino.cc/index.php?topic=171226.msg1277667#msg1277667

@Jack Christensen, I saw the codes. Though in this case, I should be able to use 2 analog inputs(FSR and EMG)with a sampling rate of 100Hz. Thanks for your help too.