Setting delay time between 2 digitalWrite functions

Please help....

I have 2 digitalWrite functions I would like to call at different times. I would like to call "conv1start" HIGH then after approx. 10min has passed to call "aggbin1" LOW. Is there a way to accomplish this without using "delay".

Thank you

Dave

void loop()
    {
         val1 = digitalRead(relay1);
                digitalWrite(binhighled1, val1);  
      
     if (val1 = digitalRead(relay1) == HIGH) 
          {digitalWrite(conv1start, LOW);
           digitalWrite(aggbin1, HIGH);}
           
     else 
         {digitalWrite(conv1start, HIGH);  
          digitalWrite(aggbin1, LOW);}
          
          
    }

There is a "blink without delay" example sketch that might give you ideas. Also:

There are a few timer libraries out there that can make
things a bit easier even when not using timer interrupts and
still using millis().
This timer library looks like it may do what you want:
http://arduino.cc/playground/Code/Timer

This does essentially the same thing as the "blink without delay" stuff
by using millis() in your loop() function but is implemented as a library
using C++ objects.


Here are a few other timer libraries that use interrupts
for timing.
http://arduino.cc/playground/Main/MsTimer2
http://arduino.cc/playground/Main/FlexiTimer2

If you go with either of those get the latest libraries off Paul's site:
http://www.pjrc.com/teensy/td_libs_MsTimer2.html

These are useful if you want/need more accurate and regular timing intervals.

--- bill