A system for automatically controlling vehicle equipment includes a controller to generate control signals. The control signals are derived based on information obtained from the image sensor as well as other detected parameters pertaining to the detected light source(s), the vehicle having the inventive control system, and the ambient environment. The control circuit may simply turn certain vehicle equipment, for example exterior lights, on or off, or change the brightness, aim, focus, etc. to produce various beam patterns that maximize the illuminated area in front of the vehicle without causing excessive glare in the eyes of other drivers.