A new method of energy-saving lighting control was proposed,based on detecting and counting principle and software control.Classroom lights are automatically controlled according to the number of school buildings,and lighting is automatically controlled according to the light intensity within the classroom and the number of people,which is to achieve " Light on Demand" to save energy.The paper described the principle and the design scheme of hardware circuits and software programming of the control equipment which is a large area indoor energ...