Design of intelligent controller for single intersection red and green light based on fuzzy control