Hello, I'm currently working with an ardunio microcontroller with a DS1377 RTC. The board I'm using is here: http://wiblocks.luciani.org/NB1/NB1A-index.html. I'm able to write a program that will dim the LEDs using the analogwrite function. I'm trying to accomplish a way that I can have the LEDs come on at a set time of the day gradually, and stay on for a set period of time and then turn off gradually. This is to basically simulate sun rise and sun set.
Just to give an example:
8am- leds turn on gradually reaching full intenstiy by 9am.
8pm- leds turn off gradually reaching completely off by 9pm.
It seems a bit involved when I try to read how to use the interrupt function and I really have a poor programming background. Any help would be greatly appreciated.
Just to give an example:
8am- leds turn on gradually reaching full intenstiy by 9am.
8pm- leds turn off gradually reaching completely off by 9pm.
It seems a bit involved when I try to read how to use the interrupt function and I really have a poor programming background. Any help would be greatly appreciated.