Time Delay Relay


hi

can please help, im after simple code create time delay relay function.

this i'm trying achieve.

if pin set high
the arduino count down pre determined amount of time,
if time expires react, (digitalwrite pin high)

eg.    if (pina == high)
        count down predetermined amount
        if expires
        digitalwrite ( pinb, high)

thanks in advance



which part stuck on ?

if program doing nothing else reading input , controlling relay the maligned delay() function want.  if program doing other things need use millis() timing.

more details required.


Arduino Forum > Using Arduino > Programming Questions > Time Delay Relay


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'