I am looking for some advice on the best way to approach a project. I'll try and keep the description brief.
I have a model railway layout. Above it on three sides I have three wall lights. With these I want to simulate a day/night cycle over 24 minutes instead of 24 hours. So these lights will act like the sun. When appropriate then I want to turn on and off lights in the buildings at different times. Eg: As it starts to become night streetlights will come on and so on.
I imagined it would be easy to run a 24 minute timer and trigger the different lights from it. Mapping the "sun lights" brightness to its time and even running a 4 digit led display to show the current time. Unfortunately from doing some research this does not seem too easy.
My electronics knowledge isn't too bad, my coding is the inferior part.
I'm currently using delays to control the brightness and intervals but as is stated many times here on the forums, this is cumbersome.
Help me learn, what is the clever way to achieve what I'm looking for?
Thanks in advance for any help offered!