[Lab] Arduino LED Strip, PIR, and Relay

Bruce Harding bsharding at rogers.com
Fri Mar 2 13:25:00 EST 2018


Guy,

Yes I know that it is just for testing. the 10 minutes is what I want for
the final build.

The serial monitor says that the program is abiding by the 10,000 the relay
still shuts off after 2 secs.

=====
Bruce

On 2 March 2018 at 13:15, micro <micro222 at gmail.com> wrote:

> Because of this line in the code I would expect 10 seconds before it turns
> off.
>
> delay(10000);
>
> I don't know why you're seeing 2 seconds. Replacing that line with
> this should give you 10 minutes.
>
> delay(1000 * 60 * 10);
>
> Guy
>
>
> On Fri, Mar 2, 2018 at 12:50 PM, Bruce Harding <bsharding at rogers.com>
> wrote:
> > I'm trying to get the code for this project to work.  I want the LEDs to
> > stay on
> > for 10 minute or continue on if more motion is detected. right now the
> LED
> > strip
> > turns off 2 seconds after no motion.
> >
> > the code:
> > https://gist.github.com/anonymous/8f0be0ffb6366ebe814c6d9b0ef7cd49
> >
> > pics of the project:
> > https://photos.app.goo.gl/QrgMDG1KMnpNUjdy2
> >
> > I'm using the Grove Shield and Relay
> > http://wiki.seeed.cc/Grove-Relay/
> >
> > PS. I've not coding experience
> >
> > ====
> > bruce
> > faintfuzzies.ca
> >
> > _______________________________________________
> > Lab mailing list
> > 1. subscribe https://artengine.ca/mailman/listinfo/lab
> > 2. then email Lab at artengine.ca to send your message to the list
>



-- 
====
bruce
faintfuzzies.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://artengine.ca/pipermail/lab/attachments/20180302/8c964ace/attachment.html>


More information about the Lab mailing list