I am very new to the exciting world of Arduino. I have some programming experience and some electronics. This is very exciting to have just discovered a new hobby.
What I am trying to do should be simple. I've looked at the example projects and am working through the code tutorials. But now what should be getting easier is looking like it's more complex.
I want to use my Arduino to turn on a relay that will run a pump for 8 to 10 seconds and then wait about 10 minutes and do it again. Then read from a photo sensor (LDR?) and if there is no light, do it all again.
So looking at the Blink example I thought I would code it as a loop. Check the photocell, delay 8 minutes, turn on the relay for 8 seconds, turn it off, do it all again.
Then I started reading about different libraries, timer1, timer2, Fuse, bla bla bla... now I am thinking there must be a reason not to use Delay to do this or why would all these libraries exist. Timer seems useful as does the fuse thing. But it seems like they would make my code more complex than my noobie brain can handle.
So please help me. Is my project simple enough to just use delay? Is there a reason not to?
I've looked for examples of people using delay to control relays and I didn't find much. Which makes me think maybe I missed something.
Have a Blessed Day.