<div dir="ltr"><div>Guy,<br><br>Yes I know that it is just for testing. the 10 minutes is what I want for the final build.<br><br></div><div>The serial monitor says that the program is abiding by the 10,000 the relay still shuts off after 2 secs.<br></div><div><br>=====<br></div>Bruce<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 March 2018 at 13:15, micro <span dir="ltr"><<a href="mailto:micro222@gmail.com" target="_blank">micro222@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Because of this line in the code I would expect 10 seconds before it turns off.<br>
<br>
delay(10000);<br>
<br>
I don't know why you're seeing 2 seconds. Replacing that line with<br>
this should give you 10 minutes.<br>
<br>
delay(1000 * 60 * 10);<br>
<br>
Guy<br>
<br>
<br>
On Fri, Mar 2, 2018 at 12:50 PM, Bruce Harding <<a href="mailto:bsharding@rogers.com">bsharding@rogers.com</a>> wrote:<br>
> I'm trying to get the code for this project to work.  I want the LEDs to<br>
> stay on<br>
> for 10 minute or continue on if more motion is detected. right now the LED<br>
> strip<br>
> turns off 2 seconds after no motion.<br>
><br>
> the code:<br>
> <a href="https://gist.github.com/anonymous/8f0be0ffb6366ebe814c6d9b0ef7cd49" rel="noreferrer" target="_blank">https://gist.github.com/<wbr>anonymous/<wbr>8f0be0ffb6366ebe814c6d9b0ef7cd<wbr>49</a><br>
><br>
> pics of the project:<br>
> <a href="https://photos.app.goo.gl/QrgMDG1KMnpNUjdy2" rel="noreferrer" target="_blank">https://photos.app.goo.gl/<wbr>QrgMDG1KMnpNUjdy2</a><br>
><br>
> I'm using the Grove Shield and Relay<br>
> <a href="http://wiki.seeed.cc/Grove-Relay/" rel="noreferrer" target="_blank">http://wiki.seeed.cc/Grove-<wbr>Relay/</a><br>
><br>
> PS. I've not coding experience<br>
><br>
> ====<br>
> bruce<br>
> <a href="http://faintfuzzies.ca" rel="noreferrer" target="_blank">faintfuzzies.ca</a><br>
><br>
> ______________________________<wbr>_________________<br>
> Lab mailing list<br>
> 1. subscribe <a href="https://artengine.ca/mailman/listinfo/lab" rel="noreferrer" target="_blank">https://artengine.ca/mailman/<wbr>listinfo/lab</a><br>
> 2. then email <a href="mailto:Lab@artengine.ca">Lab@artengine.ca</a> to send your message to the list<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span>====<br>bruce<div><a href="http://faintfuzzies.ca" target="_blank">faintfuzzies.ca</a></div></span></div></div>
</div>