reading sensors triggered by timer interrupt Meag 2560


hi,
i've been struggling find answer relative simple question.
i want write program monitor greenhouse stats.
there 25 inputs , 8 outputs.
i have need read temperature sensors every 10 seconds. won't able use delay-function.
i want have void readtemp() triggered when internal timer has reached 10 seconds.

after temperatures have been read program needs resume.

there multiple examples online switching multiple led's nothing calling function timer interrupt.
can point me in right direction please? way, using mega 2560 board.
cheers,

luc

do need use timer interrupts? should take @ thread: http://forum.arduino.cc/index.php?topic=223286.0 might ideal solution problem.


Arduino Forum > Using Arduino > Programming Questions > reading sensors triggered by timer interrupt Meag 2560


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'