For future projects getting started with a micro might be easier than you think.
mBlock is a GUI programming tool for Arduino. You create a graphical structure of blocks
and when complete mBlock generates the code for you.
Using a Nano or Uno board, PC, mBlock 5.0 which is free, here is a first cut at your project -
Basically the blocks determine if its sunrise of sunset, and act accordingly. You can read what the blocks
say and the comments and sort of follow on.
A simpler example, the above may seem over whelming, control an LED brightness proportional
to a V looks like this -
Note here I clicked the code tab to see the Arduino code mBlock generated. That
gives you a feel for what C code looks like, should you choose to learn C at a later
time. So you can see with 5 blocks dragged out of the block catalog, second window
from left, a fairly complicated design was done in a couple of minutes. Lots of fun.
Note Arduino code is not 100% same as C code, but close enough to look at.
So think of this for future designs. and cost of entry is < that of a hamburger.
Above is a Nano board, ~ < $ 3. Note usb connector a tad fragile, so don't do the gorilla thing
with plugin and removal. Another thing I recommend is new users always use a 1K resistor
in series with a pin connection, in case you short a pin or reverse polarity connect it to a
source, you won't generally fry the Nano board. When you confidence rises thru use eliminate
the R, no longer needed because you are an expert. Hint order board with pins already soldered,
makes life easy to plug into a solderless breadboard. Also order a board with included cable
to match the connector. Ebay, Banggood, alliexpress.....
Lastly there are variant of mBlock, like Ardublock, Visuino, Flow code, Scratch for Arduino, all
with similar and specific capabilities. Once you learn one the rest are trivial to start using.
One of them its trivial to hang a Nano off a PC and measure a V and speak its value via the PC.
All with a half dozen blocks. Not too shabby.....
Regards, Dana.