Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: ed1380 on April 18, 2008, 07:43:01 PM

Title: delay
Post by: ed1380 on April 18, 2008, 07:43:01 PM
i need to make a program for the atmega 8 to turn something on for 5 minutes and then turn it off for 3 minutes. and repeat. i know how to do the code, but is a 5 minute delay possible with?
Title: Re: delay
Post by: Ro-Bot-X on April 19, 2008, 06:28:55 AM
Make a delay for one minute and repeat that 5 times and then 3 times.
Title: Re: delay
Post by: benji on April 19, 2008, 07:37:57 AM
Code: [Select]
for( i=0;  i<300  ; i++)
             {delay_ms(1000);}