Just so we can explode the myth...TL's will not change if you flash your lights at them! (even if you are driving with Blues and Twos!)
There are 2 types of detectors used on TL's. Motion sensors (the black box on top of the TL head) and loop detectors (coils of wire placed in the road prior to the junction, usually in the form of a diamond or lop sided diamond).
Motion detectors are microwave detectors and pick up a 'vehicle' moving towards it. They are active down to 2 mph so they can pick up bicycles. Loop detectors work on electromagnetic induction. A low voltage is passed through the loop and when a iron mass (such as a car) moves into the loop it induces a voltage rise in the loop which the electronics detect. These aren't as good at picking up bikes. When a TL system is not on constant demand (when a detector is tripped, it puts a 'demand' on the processor in the box of tricks for that route), it should default to keeping one particular direction green (usually the main road). When the demand is tripped it should change the lights.