So, I have this project where I came up with an LED-based lamp that basically has two temperature colors. One will be a warmish tone (3000K) and another will be a whiter tone (7000K). Basically, what we want to do is have the lamp to switch to the warmer tones once a certain time of the day is reached (let's say, 7PM, when it starts getting dark). The idea behind this is that a warmer tone of light is better for the eye and can help improve your sleep cycle, an idea I got from the F.lux app (look it up).
The thing is, I have no idea how to do this. We've heard some ideas about using a photosensor, but we just don't know how to do anything. Any ideas?
Also, the lamp was initially supposed to also have a backup battery in case the power went out, and a dimming function that would work depending on the lighting of the room (with a photosensor), but we canned both of those ideas because they only made the project harder for us.
I like the idea, but the photocell would (obviously) have to be remotely located, or out of sight from the lamps' light, which could be difficult.
I would try to fit in a 24 hour digital timer.
The battery back-up can be accomplished with a simple relay held closed when there is power to it from the cord.