Controlling the light source in response to determined parameters by determining electrical parameters of the light source