Electronic – Wiring 3 led lights to a timer switch

led

My goal is to take a typical white clock and make it light up green at 3pm, yellow and 6pm and red at 9pm

I'm guessing I'm going to need 6 red led lights, 6 yellow led lights and 6 green led lights

What I'm not sure about is how something on a timer switch would be wired up, would I use transistors, diodes or something else

The clock is run off of 2 AA batteries

Best Answer

would I use transistors, diodes or something else

Seeing LEDs are diodes, we'll go with a yes to diodes.
Transistors? Very likely if you want to use the clock's LED driver.
You would configure the transistors as logic gates.
The "something else" could be resistors.

enter image description here

Your clock would need to be a digital clock with 7 segment digits.
You would need to know the pinout for the 7 segment LED driver.
You would need to know the driver's current and voltage for each segment.

You would drive the logic gates with with two of the clock's segments.
Build a logic table for the segments when the hour digit is a three, six, or nine. You need a logic combination that will have a unique output for each of these three digits. The outputs of the logic gates would drive another transistor that turns the LEDs off and on. OH! Look, more diodes!

enter image description here

It's not going to be easy to use the drivers in the clock.

Your best bet would be to use a microcontroller with a realtime clock to drive the red, yellow, and green LEDs. It will work with any type of clock, analog or digital.