In the most cases, you should imho skip the traffic lights all together and use a roundabout. Automatically balancing, can work to large capacities (not as large as traffic lights, but visit France if you need to see how much traffic they can handle). No fragile electronics, no power consumption, less maintenance, less accident-prone (really!).