This project I like to share is one aquarium light where I tried to simulate the daylight.
I don’t know if have any similar project in this forum but by any way is another view of the problem
The good thing about this solution is that you can simulate four different phases of the day: morning, day, evening and night.
The day and the night use fixed values, but the “transitions phases” the morning and the evening could be adjusted in duration and speed.
To adjust the speed I used one exponential function for each channel to have a wide sort of colors in the sunrise and in the sunshine.
Any improvement are welcome
led_dimming_ds1307.ino (5.39 KB)