user56116: I have a project where I need to turn a 24V solenoid on for a set amount of time, then have it turn off. I am rather new to Arduino and not certain how to do this or really where to start. Ideally the time would be displayed on a LCD screen as well but this is purely aesthetic. Any advice, help, examples ect would be appreciated. Thanks!

user56124: Use millis();
Record millis() in a long variable like below when the solenoid starts
StartTime = millis();
to switch off solenoid after 60 seconds you may do 
if ( (millis() - StartTime)/1000 ) >  60
{
   // switch off solenoid
}

enjoy coding.
There are other ways as well to achieve this... but this is being easiest  and you don't have to wait caused by using delay();

56116: <p>I have a project where I need to turn a 24V solenoid on for a set amount of time, then have it turn off. I am rather new to Arduino and not certain how to do this or really where to start. Ideally the time would be displayed on a LCD screen as well but this is purely aesthetic. Any advice, help, examples ect would be appreciated. Thanks!</p>
 56124: <p>Use <code>millis();</code></p>

<p>Record <code>millis()</code> in a <code>long</code> variable like below when the solenoid starts
<code>StartTime = millis();</code></p>

<p>to switch off solenoid after 60 seconds you may do </p>

<pre><code>if ( (millis() - StartTime)/1000 ) &gt;  60
{
   // switch off solenoid
}
</code></pre>

<p>enjoy coding.</p>

<p>There are other ways as well to achieve this... but this is being easiest  and you don't have to wait caused by using <code>delay();</code></p>
