I had a outdoor light timer created which save a start time and a stop time.It works flawlessly but then I noticed that due to changing sunset and sunrise times (season changes) it is not that effective.I thought of using a LDR. No problem in that too it also worked fine but the problem with that is due to dew water and ofcourse rain water spoils the sensor and it dies off even if I have tried to make it waterproof,loosing sensors every now and then is not wise so I thought of a solution and I thought that If somehow every month has it own start and stop time saved according to the sunrise and sunset time then I don't have to worry about the sensor. But I don't know how it can be done .I thought of using switch statements but failed. Any suggestions guys so that I can start on a right path??
I think atmega16 would suffice even thought I can even use a atmega32 but I dont think so that that is necessary.
Thank you guys in advance.