Search found 2 matches

by Jeremyf
Mon Apr 04, 2016 10:28 am
Forum: Eleven
Topic: Coding for light sensor project
Replies: 2
Views: 2931

Re: Coding for light sensor project

Hi Andrew, Thanks, you're correct it does turn off, then waits 1 second and comes back on for 5 seconds etc. What I want is for it to turn off and stay off until the light sensor "sees" the light again. The application is for a dawn/dusk sensor on a solar system. Eventually the LED will be replaced ...
by Jeremyf
Sat Apr 02, 2016 11:22 am
Forum: Eleven
Topic: Coding for light sensor project
Replies: 2
Views: 2931

Coding for light sensor project

Hi, I have a small problem with a "while" statement - how do I end it? The idea is that the light (an LED for now) turns on when it goes dark, it stays on for 5 seconds and I want it to stay off until it resets once it gets light again. When the sketch gets to the while statement it stops measuring/...