Hi all, I'm thinking of programming a Arduino to do this... After a photo resister "X" senses dark, set an output high for "Y" period, then repeat each night.
(watering my garden)
Read analog pin "X"
If "X" >= (value), Set pin "Y" High
count 20000
Set pin "Y" low
??????????
This is where the brain fart comes in...does anyone know how to tell it to reset, or loop after the photo resister goes low all day, then starts going high the next night? what about another read of "X" <= (value) then loop?
I haven't played with it for a couple of years, so I have to re-learn the syntax, but this part is simply conceptual...
Any help would be appreciated, Thanks!
(watering my garden)
Read analog pin "X"
If "X" >= (value), Set pin "Y" High
count 20000
Set pin "Y" low
??????????
This is where the brain fart comes in...does anyone know how to tell it to reset, or loop after the photo resister goes low all day, then starts going high the next night? what about another read of "X" <= (value) then loop?
I haven't played with it for a couple of years, so I have to re-learn the syntax, but this part is simply conceptual...
Any help would be appreciated, Thanks!